aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml19
-rw-r--r--contrib/native/client/readme.linux14
-rw-r--r--contrib/native/client/readme.macos2
-rw-r--r--contrib/native/client/readme.win.txt4
-rw-r--r--contrib/native/client/src/include/drill/protobuf/Types.pb.h264
-rw-r--r--contrib/native/client/src/protobuf/BitControl.pb.cc4184
-rw-r--r--contrib/native/client/src/protobuf/BitControl.pb.h2758
-rw-r--r--contrib/native/client/src/protobuf/BitData.pb.cc1752
-rw-r--r--contrib/native/client/src/protobuf/BitData.pb.h1006
-rw-r--r--contrib/native/client/src/protobuf/Coordination.pb.cc1408
-rw-r--r--contrib/native/client/src/protobuf/Coordination.pb.h949
-rw-r--r--contrib/native/client/src/protobuf/ExecutionProtos.pb.cc804
-rw-r--r--contrib/native/client/src/protobuf/ExecutionProtos.pb.h508
-rw-r--r--contrib/native/client/src/protobuf/GeneralRPC.pb.cc1036
-rw-r--r--contrib/native/client/src/protobuf/GeneralRPC.pb.h655
-rw-r--r--contrib/native/client/src/protobuf/SchemaDef.pb.cc97
-rw-r--r--contrib/native/client/src/protobuf/SchemaDef.pb.h55
-rw-r--r--contrib/native/client/src/protobuf/Types.pb.cc586
-rw-r--r--contrib/native/client/src/protobuf/User.pb.cc15904
-rw-r--r--contrib/native/client/src/protobuf/User.pb.h11710
-rw-r--r--contrib/native/client/src/protobuf/UserBitShared.pb.cc10311
-rw-r--r--contrib/native/client/src/protobuf/UserBitShared.pb.h7133
-rw-r--r--contrib/storage-hbase/src/test/java/org/apache/drill/hbase/HBaseTestsSuite.java2
-rw-r--r--contrib/storage-hive/hive-exec-shade/pom.xml4
-rw-r--r--exec/java-exec/pom.xml1
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java7
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/util/ProtobufPatcher.java186
-rw-r--r--exec/rpc/pom.xml1
-rw-r--r--exec/vector/pom.xml1
-rw-r--r--pom.xml6
-rw-r--r--protocol/pom.xml1
-rw-r--r--protocol/readme.txt24
-rw-r--r--protocol/src/main/java/org/apache/drill/common/types/TypeProtos.java1089
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/BitControl.java4272
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/BitData.java1825
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/CoordinationProtos.java1288
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java753
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java1262
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java53
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java10111
-rw-r--r--protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java19562
41 files changed, 60712 insertions, 40895 deletions
diff --git a/.travis.yml b/.travis.yml
index c7def4810..e85b14088 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,15 +25,26 @@ jdk:
cache:
directories:
- "$HOME/.m2"
+ - "$HOME/protobuf"
before_install:
- git fetch --unshallow
# Install libraries required for protobuf generation
- |
if [ $PHASE = "build_checkstyle_protobuf" ]; then \
- sudo apt-get install -y libboost-all-dev libzookeeper-mt-dev libsasl2-dev cmake libcppunit-dev && \
- pushd .. && wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz && \
- tar -xzvf protobuf-2.5.0.tar.gz && \
- pushd protobuf-2.5.0 && ./configure --prefix=/usr && make && sudo make install && popd && popd; \
+ sudo apt-get install -y libboost-all-dev libzookeeper-mt-dev libsasl2-dev cmake libcppunit-dev checkinstall && \
+ pushd .. && \
+ if [ -f $HOME/protobuf/protobuf_3.6.1* ]; then \
+ sudo dpkg -i $HOME/protobuf/protobuf_3.6.1*; \
+ else \
+ wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-java-3.6.1.zip && \
+ unzip protobuf-java-3.6.1.zip && pushd protobuf-3.6.1 && \
+ ./configure && sudo make && sudo checkinstall -y && \
+ if [ ! -d $HOME/protobuf ]; then \
+ mkdir -p $HOME/protobuf; \
+ fi && \
+ mv protobuf_3.6.1* $HOME/protobuf/ && popd; \
+ fi && \
+ sudo ldconfig && popd; \
fi
install:
# For tests phase runs unit tests
diff --git a/contrib/native/client/readme.linux b/contrib/native/client/readme.linux
index 92fe5194b..dab002322 100644
--- a/contrib/native/client/readme.linux
+++ b/contrib/native/client/readme.linux
@@ -27,15 +27,15 @@ Install Prerequisites
1) CMAKE 3.0
$> yum install cmake3
-2.1) Download protobuf 2.5 from :
- http://rpm.pbone.net/index.php3/stat/4/idpl/23552166/dir/centos_6/com/protobuf-2.5.0-16.1.x86_64.rpm.html
- http://rpm.pbone.net/index.php3/stat/4/idpl/23552167/dir/centos_6/com/protobuf-compiler-2.5.0-16.1.x86_64.rpm.html
- http://rpm.pbone.net/index.php3/stat/4/idpl/23552169/dir/centos_6/com/protobuf-devel-2.5.0-16.1.x86_64.rpm.html
+2.1) Download protobuf 3.6 from :
+ https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-java-3.6.1.zip
2.2) Install Protobufs
- $> sudo yum install protobuf
- $> sudo yum install protobuf-compiler
- $> sudo yum install protobuf-devel
+ $> unzip protobuf-java-3.6.1.zip
+ $> cd protobuf-3.6.1
+ $> ./configure
+ $> sudo make
+ $> sudo make install
3)
3.1) Install Zookeeper prerequisites
diff --git a/contrib/native/client/readme.macos b/contrib/native/client/readme.macos
index f50c30ae0..ccee80668 100644
--- a/contrib/native/client/readme.macos
+++ b/contrib/native/client/readme.macos
@@ -36,7 +36,7 @@ Install Prerequisites
2.0) Install cppunit
$> brew install cppunit
-2.1) Install protobuf 2.5.0 (or higher)
+2.1) Install protobuf 3.6.1 (or higher)
$> brew install protobuf
2.2) Install zookeeper
diff --git a/contrib/native/client/readme.win.txt b/contrib/native/client/readme.win.txt
index bd84b915f..c4ed704ae 100644
--- a/contrib/native/client/readme.win.txt
+++ b/contrib/native/client/readme.win.txt
@@ -118,8 +118,8 @@ Windows platforms should be more or less similar.
iii) If you do not have the 64 bit assembler installed, boost-context does not
build. It is safe to ignore it as boost-context is not needed for Drill
-2.2 Protobuf (2.5.0)
- Get protobuf from here: https://protobuf.googlecode.com/files/protobuf-2.5.0.zip
+2.2 Protobuf (3.6.1)
+ Get protobuf from here: https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-win32.zip
a) Protobuf builds static libraries
b) In Visual Studio, open <PROTOBUF_HOME>/vsprojects/protobuf.sln. The IDE may
diff --git a/contrib/native/client/src/include/drill/protobuf/Types.pb.h b/contrib/native/client/src/include/drill/protobuf/Types.pb.h
index b1dec7bd6..ed99a61d0 100644
--- a/contrib/native/client/src/include/drill/protobuf/Types.pb.h
+++ b/contrib/native/client/src/include/drill/protobuf/Types.pb.h
@@ -1,40 +1,62 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Types.proto
-#ifndef PROTOBUF_Types_2eproto__INCLUDED
-#define PROTOBUF_Types_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_Types_2eproto
+#define PROTOBUF_INCLUDED_Types_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_Types_2eproto
+
+namespace protobuf_Types_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[1];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_Types_2eproto
namespace common {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_Types_2eproto();
-void protobuf_AssignDesc_Types_2eproto();
-void protobuf_ShutdownFile_Types_2eproto();
-
class MajorType;
+class MajorTypeDefaultTypeInternal;
+extern MajorTypeDefaultTypeInternal _MajorType_default_instance_;
+} // namespace common
+namespace google {
+namespace protobuf {
+template<> ::common::MajorType* Arena::CreateMaybeMessage<::common::MajorType>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace common {
enum MinorType {
LATE = 0,
@@ -114,7 +136,7 @@ inline bool DataMode_Parse(
}
// ===================================================================
-class MajorType : public ::google::protobuf::Message {
+class MajorType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:common.MajorType) */ {
public:
MajorType();
virtual ~MajorType();
@@ -125,141 +147,177 @@ class MajorType : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ MajorType(MajorType&& from) noexcept
+ : MajorType() {
+ *this = ::std::move(from);
+ }
+ inline MajorType& operator=(MajorType&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const MajorType& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MajorType* internal_default_instance() {
+ return reinterpret_cast<const MajorType*>(
+ &_MajorType_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(MajorType* other);
+ friend void swap(MajorType& a, MajorType& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- MajorType* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline MajorType* New() const final {
+ return CreateMaybeMessage<MajorType>(NULL);
+ }
+
+ MajorType* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<MajorType>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const MajorType& from);
void MergeFrom(const MajorType& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(MajorType* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated .common.MinorType sub_type = 7;
+ int sub_type_size() const;
+ void clear_sub_type();
+ static const int kSubTypeFieldNumber = 7;
+ ::common::MinorType sub_type(int index) const;
+ void set_sub_type(int index, ::common::MinorType value);
+ void add_sub_type(::common::MinorType value);
+ const ::google::protobuf::RepeatedField<int>& sub_type() const;
+ ::google::protobuf::RepeatedField<int>* mutable_sub_type();
+
// optional .common.MinorType minor_type = 1;
- inline bool has_minor_type() const;
- inline void clear_minor_type();
+ bool has_minor_type() const;
+ void clear_minor_type();
static const int kMinorTypeFieldNumber = 1;
- inline ::common::MinorType minor_type() const;
- inline void set_minor_type(::common::MinorType value);
+ ::common::MinorType minor_type() const;
+ void set_minor_type(::common::MinorType value);
// optional .common.DataMode mode = 2;
- inline bool has_mode() const;
- inline void clear_mode();
+ bool has_mode() const;
+ void clear_mode();
static const int kModeFieldNumber = 2;
- inline ::common::DataMode mode() const;
- inline void set_mode(::common::DataMode value);
+ ::common::DataMode mode() const;
+ void set_mode(::common::DataMode value);
// optional int32 width = 3;
- inline bool has_width() const;
- inline void clear_width();
+ bool has_width() const;
+ void clear_width();
static const int kWidthFieldNumber = 3;
- inline ::google::protobuf::int32 width() const;
- inline void set_width(::google::protobuf::int32 value);
+ ::google::protobuf::int32 width() const;
+ void set_width(::google::protobuf::int32 value);
// optional int32 precision = 4;
- inline bool has_precision() const;
- inline void clear_precision();
+ bool has_precision() const;
+ void clear_precision();
static const int kPrecisionFieldNumber = 4;
- inline ::google::protobuf::int32 precision() const;
- inline void set_precision(::google::protobuf::int32 value);
+ ::google::protobuf::int32 precision() const;
+ void set_precision(::google::protobuf::int32 value);
// optional int32 scale = 5;
- inline bool has_scale() const;
- inline void clear_scale();
+ bool has_scale() const;
+ void clear_scale();
static const int kScaleFieldNumber = 5;
- inline ::google::protobuf::int32 scale() const;
- inline void set_scale(::google::protobuf::int32 value);
+ ::google::protobuf::int32 scale() const;
+ void set_scale(::google::protobuf::int32 value);
// optional int32 timeZone = 6;
- inline bool has_timezone() const;
- inline void clear_timezone();
+ bool has_timezone() const;
+ void clear_timezone();
static const int kTimeZoneFieldNumber = 6;
- inline ::google::protobuf::int32 timezone() const;
- inline void set_timezone(::google::protobuf::int32 value);
-
- // repeated .common.MinorType sub_type = 7;
- inline int sub_type_size() const;
- inline void clear_sub_type();
- static const int kSubTypeFieldNumber = 7;
- inline ::common::MinorType sub_type(int index) const;
- inline void set_sub_type(int index, ::common::MinorType value);
- inline void add_sub_type(::common::MinorType value);
- inline const ::google::protobuf::RepeatedField<int>& sub_type() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_sub_type();
+ ::google::protobuf::int32 timezone() const;
+ void set_timezone(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:common.MajorType)
private:
- inline void set_has_minor_type();
- inline void clear_has_minor_type();
- inline void set_has_mode();
- inline void clear_has_mode();
- inline void set_has_width();
- inline void clear_has_width();
- inline void set_has_precision();
- inline void clear_has_precision();
- inline void set_has_scale();
- inline void clear_has_scale();
- inline void set_has_timezone();
- inline void clear_has_timezone();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_minor_type();
+ void clear_has_minor_type();
+ void set_has_mode();
+ void clear_has_mode();
+ void set_has_width();
+ void clear_has_width();
+ void set_has_precision();
+ void clear_has_precision();
+ void set_has_scale();
+ void clear_has_scale();
+ void set_has_timezone();
+ void clear_has_timezone();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedField<int> sub_type_;
int minor_type_;
int mode_;
::google::protobuf::int32 width_;
::google::protobuf::int32 precision_;
::google::protobuf::int32 scale_;
::google::protobuf::int32 timezone_;
- ::google::protobuf::RepeatedField<int> sub_type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
-
- friend void protobuf_AddDesc_Types_2eproto();
- friend void protobuf_AssignDesc_Types_2eproto();
- friend void protobuf_ShutdownFile_Types_2eproto();
-
- void InitAsDefaultInstance();
- static MajorType* default_instance_;
+ friend struct ::protobuf_Types_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// MajorType
// optional .common.MinorType minor_type = 1;
@@ -277,12 +335,14 @@ inline void MajorType::clear_minor_type() {
clear_has_minor_type();
}
inline ::common::MinorType MajorType::minor_type() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.minor_type)
return static_cast< ::common::MinorType >(minor_type_);
}
inline void MajorType::set_minor_type(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
set_has_minor_type();
minor_type_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.minor_type)
}
// optional .common.DataMode mode = 2;
@@ -300,12 +360,14 @@ inline void MajorType::clear_mode() {
clear_has_mode();
}
inline ::common::DataMode MajorType::mode() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.mode)
return static_cast< ::common::DataMode >(mode_);
}
inline void MajorType::set_mode(::common::DataMode value) {
assert(::common::DataMode_IsValid(value));
set_has_mode();
mode_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.mode)
}
// optional int32 width = 3;
@@ -323,11 +385,13 @@ inline void MajorType::clear_width() {
clear_has_width();
}
inline ::google::protobuf::int32 MajorType::width() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.width)
return width_;
}
inline void MajorType::set_width(::google::protobuf::int32 value) {
set_has_width();
width_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.width)
}
// optional int32 precision = 4;
@@ -345,11 +409,13 @@ inline void MajorType::clear_precision() {
clear_has_precision();
}
inline ::google::protobuf::int32 MajorType::precision() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.precision)
return precision_;
}
inline void MajorType::set_precision(::google::protobuf::int32 value) {
set_has_precision();
precision_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.precision)
}
// optional int32 scale = 5;
@@ -367,11 +433,13 @@ inline void MajorType::clear_scale() {
clear_has_scale();
}
inline ::google::protobuf::int32 MajorType::scale() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.scale)
return scale_;
}
inline void MajorType::set_scale(::google::protobuf::int32 value) {
set_has_scale();
scale_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.scale)
}
// optional int32 timeZone = 6;
@@ -389,11 +457,13 @@ inline void MajorType::clear_timezone() {
clear_has_timezone();
}
inline ::google::protobuf::int32 MajorType::timezone() const {
+ // @@protoc_insertion_point(field_get:common.MajorType.timeZone)
return timezone_;
}
inline void MajorType::set_timezone(::google::protobuf::int32 value) {
set_has_timezone();
timezone_ = value;
+ // @@protoc_insertion_point(field_set:common.MajorType.timeZone)
}
// repeated .common.MinorType sub_type = 7;
@@ -404,47 +474,55 @@ inline void MajorType::clear_sub_type() {
sub_type_.Clear();
}
inline ::common::MinorType MajorType::sub_type(int index) const {
+ // @@protoc_insertion_point(field_get:common.MajorType.sub_type)
return static_cast< ::common::MinorType >(sub_type_.Get(index));
}
inline void MajorType::set_sub_type(int index, ::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
sub_type_.Set(index, value);
+ // @@protoc_insertion_point(field_set:common.MajorType.sub_type)
}
inline void MajorType::add_sub_type(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
sub_type_.Add(value);
+ // @@protoc_insertion_point(field_add:common.MajorType.sub_type)
}
inline const ::google::protobuf::RepeatedField<int>&
MajorType::sub_type() const {
+ // @@protoc_insertion_point(field_list:common.MajorType.sub_type)
return sub_type_;
}
inline ::google::protobuf::RepeatedField<int>*
MajorType::mutable_sub_type() {
+ // @@protoc_insertion_point(field_mutable_list:common.MajorType.sub_type)
return &sub_type_;
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace common
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::common::MinorType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::common::MinorType>() {
return ::common::MinorType_descriptor();
}
+template <> struct is_proto_enum< ::common::DataMode> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::common::DataMode>() {
return ::common::DataMode_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_Types_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_Types_2eproto
diff --git a/contrib/native/client/src/protobuf/BitControl.pb.cc b/contrib/native/client/src/protobuf/BitControl.pb.cc
index 53e53ea65..3bf9db5b5 100644
--- a/contrib/native/client/src/protobuf/BitControl.pb.cc
+++ b/contrib/native/client/src/protobuf/BitControl.pb.cc
@@ -1,403 +1,520 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BitControl.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "BitControl.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_BitControl_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Collector;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryContextInformation;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_FragmentStatus;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_PlanFragment;
+} // namespace protobuf_BitControl_2eproto
+namespace protobuf_Coordination_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_Coordination_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DrillbitEndpoint;
+} // namespace protobuf_Coordination_2eproto
+namespace protobuf_ExecutionProtos_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_ExecutionProtos_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FragmentHandle;
+} // namespace protobuf_ExecutionProtos_2eproto
+namespace protobuf_UserBitShared_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UserCredentials;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_MinorFragmentProfile;
+} // namespace protobuf_UserBitShared_2eproto
namespace exec {
namespace bit {
namespace control {
+class BitControlHandshakeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BitControlHandshake>
+ _instance;
+} _BitControlHandshake_default_instance_;
+class BitStatusDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BitStatus>
+ _instance;
+} _BitStatus_default_instance_;
+class FragmentStatusDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<FragmentStatus>
+ _instance;
+} _FragmentStatus_default_instance_;
+class InitializeFragmentsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<InitializeFragments>
+ _instance;
+} _InitializeFragments_default_instance_;
+class CustomMessageDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CustomMessage>
+ _instance;
+} _CustomMessage_default_instance_;
+class PlanFragmentDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<PlanFragment>
+ _instance;
+} _PlanFragment_default_instance_;
+class CollectorDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Collector>
+ _instance;
+} _Collector_default_instance_;
+class QueryContextInformationDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryContextInformation>
+ _instance;
+} _QueryContextInformation_default_instance_;
+class WorkQueueStatusDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WorkQueueStatus>
+ _instance;
+} _WorkQueueStatus_default_instance_;
+class FinishedReceiverDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<FinishedReceiver>
+ _instance;
+} _FinishedReceiver_default_instance_;
+} // namespace control
+} // namespace bit
+} // namespace exec
+namespace protobuf_BitControl_2eproto {
+static void InitDefaultsBitControlHandshake() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* BitControlHandshake_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- BitControlHandshake_reflection_ = NULL;
-const ::google::protobuf::Descriptor* BitStatus_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- BitStatus_reflection_ = NULL;
-const ::google::protobuf::Descriptor* FragmentStatus_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- FragmentStatus_reflection_ = NULL;
-const ::google::protobuf::Descriptor* InitializeFragments_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- InitializeFragments_reflection_ = NULL;
-const ::google::protobuf::Descriptor* CustomMessage_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- CustomMessage_reflection_ = NULL;
-const ::google::protobuf::Descriptor* PlanFragment_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- PlanFragment_reflection_ = NULL;
-const ::google::protobuf::Descriptor* Collector_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Collector_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryContextInformation_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryContextInformation_reflection_ = NULL;
-const ::google::protobuf::Descriptor* WorkQueueStatus_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- WorkQueueStatus_reflection_ = NULL;
-const ::google::protobuf::Descriptor* FinishedReceiver_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- FinishedReceiver_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* RpcType_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_BitControl_2eproto() {
- protobuf_AddDesc_BitControl_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "BitControl.proto");
- GOOGLE_CHECK(file != NULL);
- BitControlHandshake_descriptor_ = file->message_type(0);
- static const int BitControlHandshake_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, rpc_version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, channel_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, endpoint_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, authenticationmechanisms_),
- };
- BitControlHandshake_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- BitControlHandshake_descriptor_,
- BitControlHandshake::default_instance_,
- BitControlHandshake_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitControlHandshake, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(BitControlHandshake));
- BitStatus_descriptor_ = file->message_type(1);
- static const int BitStatus_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitStatus, fragment_status_),
- };
- BitStatus_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- BitStatus_descriptor_,
- BitStatus::default_instance_,
- BitStatus_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitStatus, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitStatus, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(BitStatus));
- FragmentStatus_descriptor_ = file->message_type(2);
- static const int FragmentStatus_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentStatus, profile_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentStatus, handle_),
- };
- FragmentStatus_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- FragmentStatus_descriptor_,
- FragmentStatus::default_instance_,
- FragmentStatus_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentStatus, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentStatus, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(FragmentStatus));
- InitializeFragments_descriptor_ = file->message_type(3);
- static const int InitializeFragments_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitializeFragments, fragment_),
- };
- InitializeFragments_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- InitializeFragments_descriptor_,
- InitializeFragments::default_instance_,
- InitializeFragments_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitializeFragments, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitializeFragments, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(InitializeFragments));
- CustomMessage_descriptor_ = file->message_type(4);
- static const int CustomMessage_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomMessage, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomMessage, message_),
- };
- CustomMessage_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- CustomMessage_descriptor_,
- CustomMessage::default_instance_,
- CustomMessage_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomMessage, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CustomMessage, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(CustomMessage));
- PlanFragment_descriptor_ = file->message_type(5);
- static const int PlanFragment_offsets_[15] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, handle_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, network_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, cpu_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, disk_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, memory_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, fragment_json_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, leaf_fragment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, assignment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, foreman_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, mem_initial_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, mem_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, credentials_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, options_json_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, context_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, collector_),
- };
- PlanFragment_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- PlanFragment_descriptor_,
- PlanFragment::default_instance_,
- PlanFragment_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlanFragment, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(PlanFragment));
- Collector_descriptor_ = file->message_type(6);
- static const int Collector_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, opposite_major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, incoming_minor_fragment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, supports_out_of_order_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, is_spooling_),
- };
- Collector_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Collector_descriptor_,
- Collector::default_instance_,
- Collector_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Collector, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Collector));
- QueryContextInformation_descriptor_ = file->message_type(7);
- static const int QueryContextInformation_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, query_start_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, time_zone_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, default_schema_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, session_id_),
- };
- QueryContextInformation_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryContextInformation_descriptor_,
- QueryContextInformation::default_instance_,
- QueryContextInformation_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryContextInformation, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryContextInformation));
- WorkQueueStatus_descriptor_ = file->message_type(8);
- static const int WorkQueueStatus_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorkQueueStatus, endpoint_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorkQueueStatus, queue_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorkQueueStatus, report_time_),
- };
- WorkQueueStatus_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- WorkQueueStatus_descriptor_,
- WorkQueueStatus::default_instance_,
- WorkQueueStatus_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorkQueueStatus, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WorkQueueStatus, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(WorkQueueStatus));
- FinishedReceiver_descriptor_ = file->message_type(9);
- static const int FinishedReceiver_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FinishedReceiver, receiver_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FinishedReceiver, sender_),
- };
- FinishedReceiver_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- FinishedReceiver_descriptor_,
- FinishedReceiver::default_instance_,
- FinishedReceiver_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FinishedReceiver, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FinishedReceiver, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(FinishedReceiver));
- RpcType_descriptor_ = file->enum_type(0);
+ {
+ void* ptr = &::exec::bit::control::_BitControlHandshake_default_instance_;
+ new (ptr) ::exec::bit::control::BitControlHandshake();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::BitControlHandshake::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<1> scc_info_BitControlHandshake =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBitControlHandshake}, {
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,}};
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_BitControl_2eproto);
+static void InitDefaultsBitStatus() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_BitStatus_default_instance_;
+ new (ptr) ::exec::bit::control::BitStatus();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::BitStatus::InitAsDefaultInstance();
}
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- BitControlHandshake_descriptor_, &BitControlHandshake::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- BitStatus_descriptor_, &BitStatus::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- FragmentStatus_descriptor_, &FragmentStatus::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- InitializeFragments_descriptor_, &InitializeFragments::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- CustomMessage_descriptor_, &CustomMessage::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- PlanFragment_descriptor_, &PlanFragment::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Collector_descriptor_, &Collector::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryContextInformation_descriptor_, &QueryContextInformation::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- WorkQueueStatus_descriptor_, &WorkQueueStatus::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- FinishedReceiver_descriptor_, &FinishedReceiver::default_instance());
-}
-
-} // namespace
-
-void protobuf_ShutdownFile_BitControl_2eproto() {
- delete BitControlHandshake::default_instance_;
- delete BitControlHandshake_reflection_;
- delete BitStatus::default_instance_;
- delete BitStatus_reflection_;
- delete FragmentStatus::default_instance_;
- delete FragmentStatus_reflection_;
- delete InitializeFragments::default_instance_;
- delete InitializeFragments_reflection_;
- delete CustomMessage::default_instance_;
- delete CustomMessage_reflection_;
- delete PlanFragment::default_instance_;
- delete PlanFragment_reflection_;
- delete Collector::default_instance_;
- delete Collector_reflection_;
- delete QueryContextInformation::default_instance_;
- delete QueryContextInformation_reflection_;
- delete WorkQueueStatus::default_instance_;
- delete WorkQueueStatus_reflection_;
- delete FinishedReceiver::default_instance_;
- delete FinishedReceiver_reflection_;
-}
-
-void protobuf_AddDesc_BitControl_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+::google::protobuf::internal::SCCInfo<1> scc_info_BitStatus =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBitStatus}, {
+ &protobuf_BitControl_2eproto::scc_info_FragmentStatus.base,}};
+
+static void InitDefaultsFragmentStatus() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_FragmentStatus_default_instance_;
+ new (ptr) ::exec::bit::control::FragmentStatus();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::FragmentStatus::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_FragmentStatus =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsFragmentStatus}, {
+ &protobuf_UserBitShared_2eproto::scc_info_MinorFragmentProfile.base,
+ &protobuf_ExecutionProtos_2eproto::scc_info_FragmentHandle.base,}};
+
+static void InitDefaultsInitializeFragments() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_InitializeFragments_default_instance_;
+ new (ptr) ::exec::bit::control::InitializeFragments();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::InitializeFragments::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_InitializeFragments =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInitializeFragments}, {
+ &protobuf_BitControl_2eproto::scc_info_PlanFragment.base,}};
+
+static void InitDefaultsCustomMessage() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_CustomMessage_default_instance_;
+ new (ptr) ::exec::bit::control::CustomMessage();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::CustomMessage::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_CustomMessage =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCustomMessage}, {}};
+
+static void InitDefaultsPlanFragment() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::exec::bit::protobuf_AddDesc_ExecutionProtos_2eproto();
- ::exec::protobuf_AddDesc_Coordination_2eproto();
- ::exec::shared::protobuf_AddDesc_UserBitShared_2eproto();
+ {
+ void* ptr = &::exec::bit::control::_PlanFragment_default_instance_;
+ new (ptr) ::exec::bit::control::PlanFragment();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::PlanFragment::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<5> scc_info_PlanFragment =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsPlanFragment}, {
+ &protobuf_ExecutionProtos_2eproto::scc_info_FragmentHandle.base,
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,
+ &protobuf_UserBitShared_2eproto::scc_info_UserCredentials.base,
+ &protobuf_BitControl_2eproto::scc_info_QueryContextInformation.base,
+ &protobuf_BitControl_2eproto::scc_info_Collector.base,}};
+
+static void InitDefaultsCollector() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_Collector_default_instance_;
+ new (ptr) ::exec::bit::control::Collector();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::Collector::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_Collector =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCollector}, {}};
+
+static void InitDefaultsQueryContextInformation() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_QueryContextInformation_default_instance_;
+ new (ptr) ::exec::bit::control::QueryContextInformation();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::QueryContextInformation::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_QueryContextInformation =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsQueryContextInformation}, {}};
+
+static void InitDefaultsWorkQueueStatus() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_WorkQueueStatus_default_instance_;
+ new (ptr) ::exec::bit::control::WorkQueueStatus();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::WorkQueueStatus::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_WorkQueueStatus =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkQueueStatus}, {
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,}};
+
+static void InitDefaultsFinishedReceiver() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::control::_FinishedReceiver_default_instance_;
+ new (ptr) ::exec::bit::control::FinishedReceiver();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::control::FinishedReceiver::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_FinishedReceiver =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFinishedReceiver}, {
+ &protobuf_ExecutionProtos_2eproto::scc_info_FragmentHandle.base,}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_BitControlHandshake.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_BitStatus.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_FragmentStatus.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_InitializeFragments.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_CustomMessage.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_PlanFragment.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_Collector.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryContextInformation.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_WorkQueueStatus.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_FinishedReceiver.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[10];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, rpc_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, channel_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, endpoint_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitControlHandshake, authenticationmechanisms_),
+ 1,
+ 2,
+ 0,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitStatus, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::BitStatus, fragment_status_),
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FragmentStatus, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FragmentStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FragmentStatus, profile_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FragmentStatus, handle_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::InitializeFragments, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::InitializeFragments, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::InitializeFragments, fragment_),
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::CustomMessage, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::CustomMessage, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::CustomMessage, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::CustomMessage, message_),
+ 1,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, handle_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, network_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, cpu_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, disk_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, memory_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, fragment_json_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, leaf_fragment_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, assignment_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, foreman_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, mem_initial_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, mem_max_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, credentials_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, options_json_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, context_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::PlanFragment, collector_),
+ 2,
+ 7,
+ 8,
+ 9,
+ 10,
+ 0,
+ 11,
+ 3,
+ 4,
+ 12,
+ 13,
+ 5,
+ 1,
+ 6,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, opposite_major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, incoming_minor_fragment_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, supports_out_of_order_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::Collector, is_spooling_),
+ 0,
+ ~0u,
+ 1,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, query_start_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, time_zone_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, default_schema_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::QueryContextInformation, session_id_),
+ 2,
+ 3,
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, endpoint_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, queue_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::WorkQueueStatus, report_time_),
+ 0,
+ 2,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, receiver_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::control::FinishedReceiver, sender_),
+ 0,
+ 1,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 9, sizeof(::exec::bit::control::BitControlHandshake)},
+ { 13, 19, sizeof(::exec::bit::control::BitStatus)},
+ { 20, 27, sizeof(::exec::bit::control::FragmentStatus)},
+ { 29, 35, sizeof(::exec::bit::control::InitializeFragments)},
+ { 36, 43, sizeof(::exec::bit::control::CustomMessage)},
+ { 45, 65, sizeof(::exec::bit::control::PlanFragment)},
+ { 80, 89, sizeof(::exec::bit::control::Collector)},
+ { 93, 102, sizeof(::exec::bit::control::QueryContextInformation)},
+ { 106, 114, sizeof(::exec::bit::control::WorkQueueStatus)},
+ { 117, 124, sizeof(::exec::bit::control::FinishedReceiver)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_BitControlHandshake_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_BitStatus_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_FragmentStatus_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_InitializeFragments_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_CustomMessage_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_PlanFragment_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_Collector_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_QueryContextInformation_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_WorkQueueStatus_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::control::_FinishedReceiver_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "BitControl.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\020BitControl.proto\022\020exec.bit.control\032\025Ex"
+ "ecutionProtos.proto\032\022Coordination.proto\032"
+ "\023UserBitShared.proto\"\255\001\n\023BitControlHands"
+ "hake\022\023\n\013rpc_version\030\001 \001(\005\0225\n\007channel\030\002 \001"
+ "(\0162\027.exec.shared.RpcChannel:\013BIT_CONTROL"
+ "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi"
+ "nt\022 \n\030authenticationMechanisms\030\004 \003(\t\"F\n\t"
+ "BitStatus\0229\n\017fragment_status\030\001 \003(\0132 .exe"
+ "c.bit.control.FragmentStatus\"n\n\016Fragment"
+ "Status\0222\n\007profile\030\001 \001(\0132!.exec.shared.Mi"
+ "norFragmentProfile\022(\n\006handle\030\002 \001(\0132\030.exe"
+ "c.bit.FragmentHandle\"G\n\023InitializeFragme"
+ "nts\0220\n\010fragment\030\001 \003(\0132\036.exec.bit.control"
+ ".PlanFragment\".\n\rCustomMessage\022\014\n\004type\030\001"
+ " \001(\005\022\017\n\007message\030\002 \001(\014\"\374\003\n\014PlanFragment\022("
+ "\n\006handle\030\001 \001(\0132\030.exec.bit.FragmentHandle"
+ "\022\024\n\014network_cost\030\004 \001(\002\022\020\n\010cpu_cost\030\005 \001(\002"
+ "\022\021\n\tdisk_cost\030\006 \001(\002\022\023\n\013memory_cost\030\007 \001(\002"
+ "\022\025\n\rfragment_json\030\010 \001(\t\022\025\n\rleaf_fragment"
+ "\030\t \001(\010\022*\n\nassignment\030\n \001(\0132\026.exec.Drillb"
+ "itEndpoint\022\'\n\007foreman\030\013 \001(\0132\026.exec.Drill"
+ "bitEndpoint\022\035\n\013mem_initial\030\014 \001(\003:\010200000"
+ "00\022\033\n\007mem_max\030\r \001(\003:\n2000000000\0221\n\013crede"
+ "ntials\030\016 \001(\0132\034.exec.shared.UserCredentia"
+ "ls\022\024\n\014options_json\030\017 \001(\t\022:\n\007context\030\020 \001("
+ "\0132).exec.bit.control.QueryContextInforma"
+ "tion\022.\n\tcollector\030\021 \003(\0132\033.exec.bit.contr"
+ "ol.Collector\"\210\001\n\tCollector\022\"\n\032opposite_m"
+ "ajor_fragment_id\030\001 \001(\005\022#\n\027incoming_minor"
+ "_fragment\030\002 \003(\005B\002\020\001\022\035\n\025supports_out_of_o"
+ "rder\030\003 \001(\010\022\023\n\013is_spooling\030\004 \001(\010\"w\n\027Query"
+ "ContextInformation\022\030\n\020query_start_time\030\001"
+ " \001(\003\022\021\n\ttime_zone\030\002 \001(\005\022\033\n\023default_schem"
+ "a_name\030\003 \001(\t\022\022\n\nsession_id\030\004 \001(\t\"f\n\017Work"
+ "QueueStatus\022(\n\010endpoint\030\001 \001(\0132\026.exec.Dri"
+ "llbitEndpoint\022\024\n\014queue_length\030\002 \001(\005\022\023\n\013r"
+ "eport_time\030\003 \001(\003\"h\n\020FinishedReceiver\022*\n\010"
+ "receiver\030\001 \001(\0132\030.exec.bit.FragmentHandle"
+ "\022(\n\006sender\030\002 \001(\0132\030.exec.bit.FragmentHand"
+ "le*\206\003\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013"
+ "\n\007GOODBYE\020\002\022\034\n\030REQ_INITIALIZE_FRAGMENTS\020"
+ "\003\022\027\n\023REQ_CANCEL_FRAGMENT\020\006\022\031\n\025REQ_RECEIV"
+ "ER_FINISHED\020\007\022\027\n\023REQ_FRAGMENT_STATUS\020\010\022\022"
+ "\n\016REQ_BIT_STATUS\020\t\022\024\n\020REQ_QUERY_STATUS\020\n"
+ "\022\024\n\020REQ_QUERY_CANCEL\020\017\022\030\n\024REQ_UNPAUSE_FR"
+ "AGMENT\020\020\022\016\n\nREQ_CUSTOM\020\021\022\030\n\024RESP_FRAGMEN"
+ "T_HANDLE\020\013\022\030\n\024RESP_FRAGMENT_STATUS\020\014\022\023\n\017"
+ "RESP_BIT_STATUS\020\r\022\025\n\021RESP_QUERY_STATUS\020\016"
+ "\022\017\n\013RESP_CUSTOM\020\022\022\020\n\014SASL_MESSAGE\020\023B+\n\033o"
+ "rg.apache.drill.exec.protoB\nBitControlH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\020BitControl.proto\022\020exec.bit.control\032\025Ex"
- "ecutionProtos.proto\032\022Coordination.proto\032"
- "\023UserBitShared.proto\"\255\001\n\023BitControlHands"
- "hake\022\023\n\013rpc_version\030\001 \001(\005\0225\n\007channel\030\002 \001"
- "(\0162\027.exec.shared.RpcChannel:\013BIT_CONTROL"
- "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi"
- "nt\022 \n\030authenticationMechanisms\030\004 \003(\t\"F\n\t"
- "BitStatus\0229\n\017fragment_status\030\001 \003(\0132 .exe"
- "c.bit.control.FragmentStatus\"n\n\016Fragment"
- "Status\0222\n\007profile\030\001 \001(\0132!.exec.shared.Mi"
- "norFragmentProfile\022(\n\006handle\030\002 \001(\0132\030.exe"
- "c.bit.FragmentHandle\"G\n\023InitializeFragme"
- "nts\0220\n\010fragment\030\001 \003(\0132\036.exec.bit.control"
- ".PlanFragment\".\n\rCustomMessage\022\014\n\004type\030\001"
- " \001(\005\022\017\n\007message\030\002 \001(\014\"\374\003\n\014PlanFragment\022("
- "\n\006handle\030\001 \001(\0132\030.exec.bit.FragmentHandle"
- "\022\024\n\014network_cost\030\004 \001(\002\022\020\n\010cpu_cost\030\005 \001(\002"
- "\022\021\n\tdisk_cost\030\006 \001(\002\022\023\n\013memory_cost\030\007 \001(\002"
- "\022\025\n\rfragment_json\030\010 \001(\t\022\025\n\rleaf_fragment"
- "\030\t \001(\010\022*\n\nassignment\030\n \001(\0132\026.exec.Drillb"
- "itEndpoint\022\'\n\007foreman\030\013 \001(\0132\026.exec.Drill"
- "bitEndpoint\022\035\n\013mem_initial\030\014 \001(\003:\010200000"
- "00\022\033\n\007mem_max\030\r \001(\003:\n2000000000\0221\n\013crede"
- "ntials\030\016 \001(\0132\034.exec.shared.UserCredentia"
- "ls\022\024\n\014options_json\030\017 \001(\t\022:\n\007context\030\020 \001("
- "\0132).exec.bit.control.QueryContextInforma"
- "tion\022.\n\tcollector\030\021 \003(\0132\033.exec.bit.contr"
- "ol.Collector\"\210\001\n\tCollector\022\"\n\032opposite_m"
- "ajor_fragment_id\030\001 \001(\005\022#\n\027incoming_minor"
- "_fragment\030\002 \003(\005B\002\020\001\022\035\n\025supports_out_of_o"
- "rder\030\003 \001(\010\022\023\n\013is_spooling\030\004 \001(\010\"w\n\027Query"
- "ContextInformation\022\030\n\020query_start_time\030\001"
- " \001(\003\022\021\n\ttime_zone\030\002 \001(\005\022\033\n\023default_schem"
- "a_name\030\003 \001(\t\022\022\n\nsession_id\030\004 \001(\t\"f\n\017Work"
- "QueueStatus\022(\n\010endpoint\030\001 \001(\0132\026.exec.Dri"
- "llbitEndpoint\022\024\n\014queue_length\030\002 \001(\005\022\023\n\013r"
- "eport_time\030\003 \001(\003\"h\n\020FinishedReceiver\022*\n\010"
- "receiver\030\001 \001(\0132\030.exec.bit.FragmentHandle"
- "\022(\n\006sender\030\002 \001(\0132\030.exec.bit.FragmentHand"
- "le*\206\003\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013"
- "\n\007GOODBYE\020\002\022\034\n\030REQ_INITIALIZE_FRAGMENTS\020"
- "\003\022\027\n\023REQ_CANCEL_FRAGMENT\020\006\022\031\n\025REQ_RECEIV"
- "ER_FINISHED\020\007\022\027\n\023REQ_FRAGMENT_STATUS\020\010\022\022"
- "\n\016REQ_BIT_STATUS\020\t\022\024\n\020REQ_QUERY_STATUS\020\n"
- "\022\024\n\020REQ_QUERY_CANCEL\020\017\022\030\n\024REQ_UNPAUSE_FR"
- "AGMENT\020\020\022\016\n\nREQ_CUSTOM\020\021\022\030\n\024RESP_FRAGMEN"
- "T_HANDLE\020\013\022\030\n\024RESP_FRAGMENT_STATUS\020\014\022\023\n\017"
- "RESP_BIT_STATUS\020\r\022\025\n\021RESP_QUERY_STATUS\020\016"
- "\022\017\n\013RESP_CUSTOM\020\022\022\020\n\014SASL_MESSAGE\020\023B+\n\033o"
- "rg.apache.drill.exec.protoB\nBitControlH\001", 2000);
+ descriptor, 2000);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"BitControl.proto", &protobuf_RegisterTypes);
- BitControlHandshake::default_instance_ = new BitControlHandshake();
- BitStatus::default_instance_ = new BitStatus();
- FragmentStatus::default_instance_ = new FragmentStatus();
- InitializeFragments::default_instance_ = new InitializeFragments();
- CustomMessage::default_instance_ = new CustomMessage();
- PlanFragment::default_instance_ = new PlanFragment();
- Collector::default_instance_ = new Collector();
- QueryContextInformation::default_instance_ = new QueryContextInformation();
- WorkQueueStatus::default_instance_ = new WorkQueueStatus();
- FinishedReceiver::default_instance_ = new FinishedReceiver();
- BitControlHandshake::default_instance_->InitAsDefaultInstance();
- BitStatus::default_instance_->InitAsDefaultInstance();
- FragmentStatus::default_instance_->InitAsDefaultInstance();
- InitializeFragments::default_instance_->InitAsDefaultInstance();
- CustomMessage::default_instance_->InitAsDefaultInstance();
- PlanFragment::default_instance_->InitAsDefaultInstance();
- Collector::default_instance_->InitAsDefaultInstance();
- QueryContextInformation::default_instance_->InitAsDefaultInstance();
- WorkQueueStatus::default_instance_->InitAsDefaultInstance();
- FinishedReceiver::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_BitControl_2eproto);
-}
-
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_BitControl_2eproto {
- StaticDescriptorInitializer_BitControl_2eproto() {
- protobuf_AddDesc_BitControl_2eproto();
- }
-} static_descriptor_initializer_BitControl_2eproto_;
+ ::protobuf_ExecutionProtos_2eproto::AddDescriptors();
+ ::protobuf_Coordination_2eproto::AddDescriptors();
+ ::protobuf_UserBitShared_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_BitControl_2eproto
+namespace exec {
+namespace bit {
+namespace control {
const ::google::protobuf::EnumDescriptor* RpcType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcType_descriptor_;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_BitControl_2eproto::file_level_enum_descriptors[0];
}
bool RpcType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -425,106 +542,123 @@ bool RpcType_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void BitControlHandshake::InitAsDefaultInstance() {
+ ::exec::bit::control::_BitControlHandshake_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+void BitControlHandshake::clear_endpoint() {
+ if (endpoint_ != NULL) endpoint_->Clear();
+ clear_has_endpoint();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BitControlHandshake::kRpcVersionFieldNumber;
const int BitControlHandshake::kChannelFieldNumber;
const int BitControlHandshake::kEndpointFieldNumber;
const int BitControlHandshake::kAuthenticationMechanismsFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BitControlHandshake::BitControlHandshake()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_BitControlHandshake.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.BitControlHandshake)
}
-
-void BitControlHandshake::InitAsDefaultInstance() {
- endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
BitControlHandshake::BitControlHandshake(const BitControlHandshake& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ authenticationmechanisms_(from.authenticationmechanisms_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_endpoint()) {
+ endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
+ } else {
+ endpoint_ = NULL;
+ }
+ ::memcpy(&rpc_version_, &from.rpc_version_,
+ static_cast<size_t>(reinterpret_cast<char*>(&channel_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(channel_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.BitControlHandshake)
}
void BitControlHandshake::SharedCtor() {
- _cached_size_ = 0;
- rpc_version_ = 0;
- channel_ = 0;
- endpoint_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&endpoint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&channel_) -
+ reinterpret_cast<char*>(&endpoint_)) + sizeof(channel_));
}
BitControlHandshake::~BitControlHandshake() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.BitControlHandshake)
SharedDtor();
}
void BitControlHandshake::SharedDtor() {
- if (this != default_instance_) {
- delete endpoint_;
- }
+ if (this != internal_default_instance()) delete endpoint_;
}
void BitControlHandshake::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* BitControlHandshake::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return BitControlHandshake_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BitControlHandshake& BitControlHandshake::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_BitControlHandshake.base);
+ return *internal_default_instance();
}
-BitControlHandshake* BitControlHandshake::default_instance_ = NULL;
-
-BitControlHandshake* BitControlHandshake::New() const {
- return new BitControlHandshake;
-}
void BitControlHandshake::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- rpc_version_ = 0;
- channel_ = 0;
- if (has_endpoint()) {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.BitControlHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
authenticationmechanisms_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(endpoint_ != NULL);
+ endpoint_->Clear();
+ }
+ if (cached_has_bits & 6u) {
+ ::memset(&rpc_version_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&channel_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(channel_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool BitControlHandshake::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.BitControlHandshake)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 rpc_version = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_rpc_version();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_version_)));
- set_has_rpc_version();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_channel;
break;
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_channel:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -532,138 +666,174 @@ bool BitControlHandshake::MergePartialFromCodedStream(
if (::exec::shared::RpcChannel_IsValid(value)) {
set_channel(static_cast< ::exec::shared::RpcChannel >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_endpoint;
break;
}
// optional .exec.DrillbitEndpoint endpoint = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_endpoint:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_endpoint()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_authenticationMechanisms;
break;
}
// repeated string authenticationMechanisms = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_authenticationMechanisms:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_authenticationmechanisms()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).data(),
- this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.control.BitControlHandshake.authenticationMechanisms");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_authenticationMechanisms;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.BitControlHandshake)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.BitControlHandshake)
+ return false;
#undef DO_
}
void BitControlHandshake::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.BitControlHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rpc_version(), output);
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->channel(), output);
}
// optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->endpoint(), output);
+ 3, this->_internal_endpoint(), output);
}
// repeated string authenticationMechanisms = 4;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.BitControlHandshake.authenticationMechanisms");
::google::protobuf::internal::WireFormatLite::WriteString(
4, this->authenticationmechanisms(i), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.BitControlHandshake)
}
-::google::protobuf::uint8* BitControlHandshake::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* BitControlHandshake::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.BitControlHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rpc_version(), target);
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->channel(), target);
}
// optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->endpoint(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_endpoint(), deterministic, target);
}
// repeated string authenticationMechanisms = 4;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.BitControlHandshake.authenticationMechanisms");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(4, this->authenticationmechanisms(i), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.BitControlHandshake)
return target;
}
-int BitControlHandshake::ByteSize() const {
- int total_size = 0;
+size_t BitControlHandshake::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.BitControlHandshake)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated string authenticationMechanisms = 4;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->authenticationmechanisms_size());
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->authenticationmechanisms(i));
+ }
+
+ if (_has_bits_[0 / 32] & 7u) {
+ // optional .exec.DrillbitEndpoint endpoint = 3;
+ if (has_endpoint()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *endpoint_);
+ }
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional int32 rpc_version = 1;
if (has_rpc_version()) {
total_size += 1 +
@@ -677,939 +847,1049 @@ int BitControlHandshake::ByteSize() const {
::google::protobuf::internal::WireFormatLite::EnumSize(this->channel());
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->endpoint());
- }
-
}
- // repeated string authenticationMechanisms = 4;
- total_size += 1 * this->authenticationmechanisms_size();
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->authenticationmechanisms(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void BitControlHandshake::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.BitControlHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
const BitControlHandshake* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const BitControlHandshake*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const BitControlHandshake>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.BitControlHandshake)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.BitControlHandshake)
MergeFrom(*source);
}
}
void BitControlHandshake::MergeFrom(const BitControlHandshake& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.BitControlHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
authenticationmechanisms_.MergeFrom(from.authenticationmechanisms_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_rpc_version()) {
- set_rpc_version(from.rpc_version());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
}
- if (from.has_channel()) {
- set_channel(from.channel());
+ if (cached_has_bits & 0x00000002u) {
+ rpc_version_ = from.rpc_version_;
}
- if (from.has_endpoint()) {
- mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
+ if (cached_has_bits & 0x00000004u) {
+ channel_ = from.channel_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BitControlHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.BitControlHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BitControlHandshake::CopyFrom(const BitControlHandshake& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.BitControlHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BitControlHandshake::IsInitialized() const {
-
return true;
}
void BitControlHandshake::Swap(BitControlHandshake* other) {
- if (other != this) {
- std::swap(rpc_version_, other->rpc_version_);
- std::swap(channel_, other->channel_);
- std::swap(endpoint_, other->endpoint_);
- authenticationmechanisms_.Swap(&other->authenticationmechanisms_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BitControlHandshake::InternalSwap(BitControlHandshake* other) {
+ using std::swap;
+ authenticationmechanisms_.InternalSwap(CastToBase(&other->authenticationmechanisms_));
+ swap(endpoint_, other->endpoint_);
+ swap(rpc_version_, other->rpc_version_);
+ swap(channel_, other->channel_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata BitControlHandshake::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = BitControlHandshake_descriptor_;
- metadata.reflection = BitControlHandshake_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void BitStatus::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BitStatus::kFragmentStatusFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BitStatus::BitStatus()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_BitStatus.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.BitStatus)
}
-
-void BitStatus::InitAsDefaultInstance() {
-}
-
BitStatus::BitStatus(const BitStatus& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ fragment_status_(from.fragment_status_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.BitStatus)
}
void BitStatus::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
BitStatus::~BitStatus() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.BitStatus)
SharedDtor();
}
void BitStatus::SharedDtor() {
- if (this != default_instance_) {
- }
}
void BitStatus::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* BitStatus::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return BitStatus_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BitStatus& BitStatus::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_BitStatus.base);
+ return *internal_default_instance();
}
-BitStatus* BitStatus::default_instance_ = NULL;
-
-BitStatus* BitStatus::New() const {
- return new BitStatus;
-}
void BitStatus::Clear() {
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.BitStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
fragment_status_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool BitStatus::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.BitStatus)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragment_status:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_fragment_status()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_fragment_status;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.BitStatus)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.BitStatus)
+ return false;
#undef DO_
}
void BitStatus::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.BitStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
- for (int i = 0; i < this->fragment_status_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_status_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->fragment_status(i), output);
+ 1,
+ this->fragment_status(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.BitStatus)
}
-::google::protobuf::uint8* BitStatus::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* BitStatus::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.BitStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
- for (int i = 0; i < this->fragment_status_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_status_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->fragment_status(i), target);
+ InternalWriteMessageToArray(
+ 1, this->fragment_status(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.BitStatus)
return target;
}
-int BitStatus::ByteSize() const {
- int total_size = 0;
-
- // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
- total_size += 1 * this->fragment_status_size();
- for (int i = 0; i < this->fragment_status_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fragment_status(i));
- }
+size_t BitStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.BitStatus)
+ size_t total_size = 0;
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fragment_status_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fragment_status(static_cast<int>(i)));
+ }
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void BitStatus::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.BitStatus)
+ GOOGLE_DCHECK_NE(&from, this);
const BitStatus* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const BitStatus*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const BitStatus>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.BitStatus)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.BitStatus)
MergeFrom(*source);
}
}
void BitStatus::MergeFrom(const BitStatus& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.BitStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
fragment_status_.MergeFrom(from.fragment_status_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BitStatus::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.BitStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BitStatus::CopyFrom(const BitStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.BitStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BitStatus::IsInitialized() const {
-
return true;
}
void BitStatus::Swap(BitStatus* other) {
- if (other != this) {
- fragment_status_.Swap(&other->fragment_status_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BitStatus::InternalSwap(BitStatus* other) {
+ using std::swap;
+ CastToBase(&fragment_status_)->InternalSwap(CastToBase(&other->fragment_status_));
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata BitStatus::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = BitStatus_descriptor_;
- metadata.reflection = BitStatus_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void FragmentStatus::InitAsDefaultInstance() {
+ ::exec::bit::control::_FragmentStatus_default_instance_._instance.get_mutable()->profile_ = const_cast< ::exec::shared::MinorFragmentProfile*>(
+ ::exec::shared::MinorFragmentProfile::internal_default_instance());
+ ::exec::bit::control::_FragmentStatus_default_instance_._instance.get_mutable()->handle_ = const_cast< ::exec::bit::FragmentHandle*>(
+ ::exec::bit::FragmentHandle::internal_default_instance());
+}
+void FragmentStatus::clear_profile() {
+ if (profile_ != NULL) profile_->Clear();
+ clear_has_profile();
+}
+void FragmentStatus::clear_handle() {
+ if (handle_ != NULL) handle_->Clear();
+ clear_has_handle();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int FragmentStatus::kProfileFieldNumber;
const int FragmentStatus::kHandleFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
FragmentStatus::FragmentStatus()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_FragmentStatus.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.FragmentStatus)
}
-
-void FragmentStatus::InitAsDefaultInstance() {
- profile_ = const_cast< ::exec::shared::MinorFragmentProfile*>(&::exec::shared::MinorFragmentProfile::default_instance());
- handle_ = const_cast< ::exec::bit::FragmentHandle*>(&::exec::bit::FragmentHandle::default_instance());
-}
-
FragmentStatus::FragmentStatus(const FragmentStatus& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_profile()) {
+ profile_ = new ::exec::shared::MinorFragmentProfile(*from.profile_);
+ } else {
+ profile_ = NULL;
+ }
+ if (from.has_handle()) {
+ handle_ = new ::exec::bit::FragmentHandle(*from.handle_);
+ } else {
+ handle_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.FragmentStatus)
}
void FragmentStatus::SharedCtor() {
- _cached_size_ = 0;
- profile_ = NULL;
- handle_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&profile_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&handle_) -
+ reinterpret_cast<char*>(&profile_)) + sizeof(handle_));
}
FragmentStatus::~FragmentStatus() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.FragmentStatus)
SharedDtor();
}
void FragmentStatus::SharedDtor() {
- if (this != default_instance_) {
- delete profile_;
- delete handle_;
- }
+ if (this != internal_default_instance()) delete profile_;
+ if (this != internal_default_instance()) delete handle_;
}
void FragmentStatus::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* FragmentStatus::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FragmentStatus_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const FragmentStatus& FragmentStatus::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_FragmentStatus.base);
+ return *internal_default_instance();
}
-FragmentStatus* FragmentStatus::default_instance_ = NULL;
-
-FragmentStatus* FragmentStatus::New() const {
- return new FragmentStatus;
-}
void FragmentStatus::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_profile()) {
- if (profile_ != NULL) profile_->::exec::shared::MinorFragmentProfile::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.FragmentStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(profile_ != NULL);
+ profile_->Clear();
}
- if (has_handle()) {
- if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(handle_ != NULL);
+ handle_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool FragmentStatus::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.FragmentStatus)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.MinorFragmentProfile profile = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_profile()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_handle;
break;
}
// optional .exec.bit.FragmentHandle handle = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_handle:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_handle()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.FragmentStatus)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.FragmentStatus)
+ return false;
#undef DO_
}
void FragmentStatus::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.FragmentStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.MinorFragmentProfile profile = 1;
- if (has_profile()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->profile(), output);
+ 1, this->_internal_profile(), output);
}
// optional .exec.bit.FragmentHandle handle = 2;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->handle(), output);
+ 2, this->_internal_handle(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.FragmentStatus)
}
-::google::protobuf::uint8* FragmentStatus::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* FragmentStatus::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.FragmentStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.MinorFragmentProfile profile = 1;
- if (has_profile()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->profile(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_profile(), deterministic, target);
}
// optional .exec.bit.FragmentHandle handle = 2;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->handle(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_handle(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.FragmentStatus)
return target;
}
-int FragmentStatus::ByteSize() const {
- int total_size = 0;
+size_t FragmentStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.FragmentStatus)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.MinorFragmentProfile profile = 1;
if (has_profile()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->profile());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *profile_);
}
// optional .exec.bit.FragmentHandle handle = 2;
if (has_handle()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->handle());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *handle_);
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void FragmentStatus::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.FragmentStatus)
+ GOOGLE_DCHECK_NE(&from, this);
const FragmentStatus* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const FragmentStatus*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const FragmentStatus>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.FragmentStatus)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.FragmentStatus)
MergeFrom(*source);
}
}
void FragmentStatus::MergeFrom(const FragmentStatus& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_profile()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.FragmentStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_profile()->::exec::shared::MinorFragmentProfile::MergeFrom(from.profile());
}
- if (from.has_handle()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from.handle());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FragmentStatus::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.FragmentStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FragmentStatus::CopyFrom(const FragmentStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.FragmentStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FragmentStatus::IsInitialized() const {
-
return true;
}
void FragmentStatus::Swap(FragmentStatus* other) {
- if (other != this) {
- std::swap(profile_, other->profile_);
- std::swap(handle_, other->handle_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void FragmentStatus::InternalSwap(FragmentStatus* other) {
+ using std::swap;
+ swap(profile_, other->profile_);
+ swap(handle_, other->handle_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata FragmentStatus::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = FragmentStatus_descriptor_;
- metadata.reflection = FragmentStatus_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void InitializeFragments::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int InitializeFragments::kFragmentFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
InitializeFragments::InitializeFragments()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_InitializeFragments.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.InitializeFragments)
}
-
-void InitializeFragments::InitAsDefaultInstance() {
-}
-
InitializeFragments::InitializeFragments(const InitializeFragments& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ fragment_(from.fragment_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.InitializeFragments)
}
void InitializeFragments::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
InitializeFragments::~InitializeFragments() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.InitializeFragments)
SharedDtor();
}
void InitializeFragments::SharedDtor() {
- if (this != default_instance_) {
- }
}
void InitializeFragments::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* InitializeFragments::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return InitializeFragments_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const InitializeFragments& InitializeFragments::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_InitializeFragments.base);
+ return *internal_default_instance();
}
-InitializeFragments* InitializeFragments::default_instance_ = NULL;
-
-InitializeFragments* InitializeFragments::New() const {
- return new InitializeFragments;
-}
void InitializeFragments::Clear() {
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.InitializeFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
fragment_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool InitializeFragments::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.InitializeFragments)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.bit.control.PlanFragment fragment = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragment:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_fragment()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_fragment;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.InitializeFragments)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.InitializeFragments)
+ return false;
#undef DO_
}
void InitializeFragments::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.InitializeFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.bit.control.PlanFragment fragment = 1;
- for (int i = 0; i < this->fragment_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->fragment(i), output);
+ 1,
+ this->fragment(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.InitializeFragments)
}
-::google::protobuf::uint8* InitializeFragments::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* InitializeFragments::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.InitializeFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.bit.control.PlanFragment fragment = 1;
- for (int i = 0; i < this->fragment_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->fragment(i), target);
+ InternalWriteMessageToArray(
+ 1, this->fragment(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.InitializeFragments)
return target;
}
-int InitializeFragments::ByteSize() const {
- int total_size = 0;
-
- // repeated .exec.bit.control.PlanFragment fragment = 1;
- total_size += 1 * this->fragment_size();
- for (int i = 0; i < this->fragment_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fragment(i));
- }
+size_t InitializeFragments::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.InitializeFragments)
+ size_t total_size = 0;
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.bit.control.PlanFragment fragment = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fragment_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fragment(static_cast<int>(i)));
+ }
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void InitializeFragments::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.InitializeFragments)
+ GOOGLE_DCHECK_NE(&from, this);
const InitializeFragments* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const InitializeFragments*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const InitializeFragments>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.InitializeFragments)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.InitializeFragments)
MergeFrom(*source);
}
}
void InitializeFragments::MergeFrom(const InitializeFragments& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.InitializeFragments)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
fragment_.MergeFrom(from.fragment_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void InitializeFragments::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.InitializeFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void InitializeFragments::CopyFrom(const InitializeFragments& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.InitializeFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool InitializeFragments::IsInitialized() const {
-
return true;
}
void InitializeFragments::Swap(InitializeFragments* other) {
- if (other != this) {
- fragment_.Swap(&other->fragment_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void InitializeFragments::InternalSwap(InitializeFragments* other) {
+ using std::swap;
+ CastToBase(&fragment_)->InternalSwap(CastToBase(&other->fragment_));
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata InitializeFragments::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = InitializeFragments_descriptor_;
- metadata.reflection = InitializeFragments_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void CustomMessage::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CustomMessage::kTypeFieldNumber;
const int CustomMessage::kMessageFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CustomMessage::CustomMessage()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_CustomMessage.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.CustomMessage)
}
-
-void CustomMessage::InitAsDefaultInstance() {
-}
-
CustomMessage::CustomMessage(const CustomMessage& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_message()) {
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ }
+ type_ = from.type_;
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.CustomMessage)
}
void CustomMessage::SharedCtor() {
- _cached_size_ = 0;
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
type_ = 0;
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CustomMessage::~CustomMessage() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.CustomMessage)
SharedDtor();
}
void CustomMessage::SharedDtor() {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (this != default_instance_) {
- }
+ message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void CustomMessage::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* CustomMessage::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CustomMessage_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const CustomMessage& CustomMessage::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_CustomMessage.base);
+ return *internal_default_instance();
}
-CustomMessage* CustomMessage::default_instance_ = NULL;
-
-CustomMessage* CustomMessage::New() const {
- return new CustomMessage;
-}
void CustomMessage::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- type_ = 0;
- if (has_message()) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.CustomMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ message_.ClearNonDefaultToEmptyNoArena();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ type_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool CustomMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.CustomMessage)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 type = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_type();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &type_)));
- set_has_type();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_message;
break;
}
// optional bytes message = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_message:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_message()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.CustomMessage)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.CustomMessage)
+ return false;
#undef DO_
}
void CustomMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.CustomMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 type = 1;
- if (has_type()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
}
// optional bytes message = 2;
- if (has_message()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2, this->message(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.CustomMessage)
}
-::google::protobuf::uint8* CustomMessage::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* CustomMessage::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.CustomMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 type = 1;
- if (has_type()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
}
// optional bytes message = 2;
- if (has_message()) {
+ if (cached_has_bits & 0x00000001u) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2, this->message(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.CustomMessage)
return target;
}
-int CustomMessage::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 type = 1;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->type());
- }
+size_t CustomMessage::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.CustomMessage)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional bytes message = 2;
if (has_message()) {
total_size += 1 +
@@ -1617,82 +1897,122 @@ int CustomMessage::ByteSize() const {
this->message());
}
+ // optional int32 type = 1;
+ if (has_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->type());
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void CustomMessage::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.CustomMessage)
+ GOOGLE_DCHECK_NE(&from, this);
const CustomMessage* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const CustomMessage*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const CustomMessage>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.CustomMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.CustomMessage)
MergeFrom(*source);
}
}
void CustomMessage::MergeFrom(const CustomMessage& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_type()) {
- set_type(from.type());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.CustomMessage)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_message();
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
}
- if (from.has_message()) {
- set_message(from.message());
+ if (cached_has_bits & 0x00000002u) {
+ type_ = from.type_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CustomMessage::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.CustomMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CustomMessage::CopyFrom(const CustomMessage& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.CustomMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CustomMessage::IsInitialized() const {
-
return true;
}
void CustomMessage::Swap(CustomMessage* other) {
- if (other != this) {
- std::swap(type_, other->type_);
- std::swap(message_, other->message_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CustomMessage::InternalSwap(CustomMessage* other) {
+ using std::swap;
+ message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(type_, other->type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata CustomMessage::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = CustomMessage_descriptor_;
- metadata.reflection = CustomMessage_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void PlanFragment::InitAsDefaultInstance() {
+ ::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->handle_ = const_cast< ::exec::bit::FragmentHandle*>(
+ ::exec::bit::FragmentHandle::internal_default_instance());
+ ::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->assignment_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+ ::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->foreman_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+ ::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->credentials_ = const_cast< ::exec::shared::UserCredentials*>(
+ ::exec::shared::UserCredentials::internal_default_instance());
+ ::exec::bit::control::_PlanFragment_default_instance_._instance.get_mutable()->context_ = const_cast< ::exec::bit::control::QueryContextInformation*>(
+ ::exec::bit::control::QueryContextInformation::internal_default_instance());
+}
+void PlanFragment::clear_handle() {
+ if (handle_ != NULL) handle_->Clear();
+ clear_has_handle();
+}
+void PlanFragment::clear_assignment() {
+ if (assignment_ != NULL) assignment_->Clear();
+ clear_has_assignment();
+}
+void PlanFragment::clear_foreman() {
+ if (foreman_ != NULL) foreman_->Clear();
+ clear_has_foreman();
+}
+void PlanFragment::clear_credentials() {
+ if (credentials_ != NULL) credentials_->Clear();
+ clear_has_credentials();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PlanFragment::kHandleFieldNumber;
const int PlanFragment::kNetworkCostFieldNumber;
const int PlanFragment::kCpuCostFieldNumber;
@@ -1708,593 +2028,671 @@ const int PlanFragment::kCredentialsFieldNumber;
const int PlanFragment::kOptionsJsonFieldNumber;
const int PlanFragment::kContextFieldNumber;
const int PlanFragment::kCollectorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PlanFragment::PlanFragment()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_PlanFragment.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.PlanFragment)
}
-
-void PlanFragment::InitAsDefaultInstance() {
- handle_ = const_cast< ::exec::bit::FragmentHandle*>(&::exec::bit::FragmentHandle::default_instance());
- assignment_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
- foreman_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
- credentials_ = const_cast< ::exec::shared::UserCredentials*>(&::exec::shared::UserCredentials::default_instance());
- context_ = const_cast< ::exec::bit::control::QueryContextInformation*>(&::exec::bit::control::QueryContextInformation::default_instance());
-}
-
PlanFragment::PlanFragment(const PlanFragment& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ collector_(from.collector_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ fragment_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_fragment_json()) {
+ fragment_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fragment_json_);
+ }
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_options_json()) {
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
+ }
+ if (from.has_handle()) {
+ handle_ = new ::exec::bit::FragmentHandle(*from.handle_);
+ } else {
+ handle_ = NULL;
+ }
+ if (from.has_assignment()) {
+ assignment_ = new ::exec::DrillbitEndpoint(*from.assignment_);
+ } else {
+ assignment_ = NULL;
+ }
+ if (from.has_foreman()) {
+ foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_);
+ } else {
+ foreman_ = NULL;
+ }
+ if (from.has_credentials()) {
+ credentials_ = new ::exec::shared::UserCredentials(*from.credentials_);
+ } else {
+ credentials_ = NULL;
+ }
+ if (from.has_context()) {
+ context_ = new ::exec::bit::control::QueryContextInformation(*from.context_);
+ } else {
+ context_ = NULL;
+ }
+ ::memcpy(&network_cost_, &from.network_cost_,
+ static_cast<size_t>(reinterpret_cast<char*>(&mem_max_) -
+ reinterpret_cast<char*>(&network_cost_)) + sizeof(mem_max_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.PlanFragment)
}
void PlanFragment::SharedCtor() {
- _cached_size_ = 0;
- handle_ = NULL;
- network_cost_ = 0;
- cpu_cost_ = 0;
- disk_cost_ = 0;
- memory_cost_ = 0;
- fragment_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- leaf_fragment_ = false;
- assignment_ = NULL;
- foreman_ = NULL;
+ fragment_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&handle_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&leaf_fragment_) -
+ reinterpret_cast<char*>(&handle_)) + sizeof(leaf_fragment_));
mem_initial_ = GOOGLE_LONGLONG(20000000);
mem_max_ = GOOGLE_LONGLONG(2000000000);
- credentials_ = NULL;
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- context_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PlanFragment::~PlanFragment() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.PlanFragment)
SharedDtor();
}
void PlanFragment::SharedDtor() {
- if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
- delete fragment_json_;
- }
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (this != default_instance_) {
- delete handle_;
- delete assignment_;
- delete foreman_;
- delete credentials_;
- delete context_;
- }
+ fragment_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ options_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete handle_;
+ if (this != internal_default_instance()) delete assignment_;
+ if (this != internal_default_instance()) delete foreman_;
+ if (this != internal_default_instance()) delete credentials_;
+ if (this != internal_default_instance()) delete context_;
}
void PlanFragment::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* PlanFragment::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return PlanFragment_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const PlanFragment& PlanFragment::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_PlanFragment.base);
+ return *internal_default_instance();
}
-PlanFragment* PlanFragment::default_instance_ = NULL;
-
-PlanFragment* PlanFragment::New() const {
- return new PlanFragment;
-}
void PlanFragment::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_handle()) {
- if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.PlanFragment)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ collector_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 127u) {
+ if (cached_has_bits & 0x00000001u) {
+ fragment_json_.ClearNonDefaultToEmptyNoArena();
}
- network_cost_ = 0;
- cpu_cost_ = 0;
- disk_cost_ = 0;
- memory_cost_ = 0;
- if (has_fragment_json()) {
- if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
- fragment_json_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ options_json_.ClearNonDefaultToEmptyNoArena();
}
- leaf_fragment_ = false;
- if (has_assignment()) {
- if (assignment_ != NULL) assignment_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(handle_ != NULL);
+ handle_->Clear();
}
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (has_foreman()) {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000008u) {
+ GOOGLE_DCHECK(assignment_ != NULL);
+ assignment_->Clear();
}
- mem_initial_ = GOOGLE_LONGLONG(20000000);
- mem_max_ = GOOGLE_LONGLONG(2000000000);
- if (has_credentials()) {
- if (credentials_ != NULL) credentials_->::exec::shared::UserCredentials::Clear();
+ if (cached_has_bits & 0x00000010u) {
+ GOOGLE_DCHECK(foreman_ != NULL);
+ foreman_->Clear();
}
- if (has_options_json()) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ if (cached_has_bits & 0x00000020u) {
+ GOOGLE_DCHECK(credentials_ != NULL);
+ credentials_->Clear();
}
- if (has_context()) {
- if (context_ != NULL) context_->::exec::bit::control::QueryContextInformation::Clear();
+ if (cached_has_bits & 0x00000040u) {
+ GOOGLE_DCHECK(context_ != NULL);
+ context_->Clear();
}
}
- collector_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ network_cost_ = 0;
+ if (cached_has_bits & 16128u) {
+ ::memset(&cpu_cost_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&leaf_fragment_) -
+ reinterpret_cast<char*>(&cpu_cost_)) + sizeof(leaf_fragment_));
+ mem_initial_ = GOOGLE_LONGLONG(20000000);
+ mem_max_ = GOOGLE_LONGLONG(2000000000);
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool PlanFragment::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.PlanFragment)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.bit.FragmentHandle handle = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_handle()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(37)) goto parse_network_cost;
break;
}
// optional float network_cost = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_network_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
+ set_has_network_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &network_cost_)));
- set_has_network_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(45)) goto parse_cpu_cost;
break;
}
// optional float cpu_cost = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_cpu_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
+ set_has_cpu_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &cpu_cost_)));
- set_has_cpu_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(53)) goto parse_disk_cost;
break;
}
// optional float disk_cost = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_disk_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
+ set_has_disk_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &disk_cost_)));
- set_has_disk_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(61)) goto parse_memory_cost;
break;
}
// optional float memory_cost = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
- parse_memory_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
+ set_has_memory_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &memory_cost_)));
- set_has_memory_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_fragment_json;
break;
}
// optional string fragment_json = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragment_json:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_fragment_json()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->fragment_json().data(), this->fragment_json().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->fragment_json().data(), static_cast<int>(this->fragment_json().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.control.PlanFragment.fragment_json");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(72)) goto parse_leaf_fragment;
break;
}
// optional bool leaf_fragment = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_leaf_fragment:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_leaf_fragment();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &leaf_fragment_)));
- set_has_leaf_fragment();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(82)) goto parse_assignment;
break;
}
// optional .exec.DrillbitEndpoint assignment = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_assignment:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_assignment()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(90)) goto parse_foreman;
break;
}
// optional .exec.DrillbitEndpoint foreman = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_foreman:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_foreman()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(96)) goto parse_mem_initial;
break;
}
// optional int64 mem_initial = 12 [default = 20000000];
case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_mem_initial:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
+ set_has_mem_initial();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &mem_initial_)));
- set_has_mem_initial();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(104)) goto parse_mem_max;
break;
}
// optional int64 mem_max = 13 [default = 2000000000];
case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_mem_max:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
+ set_has_mem_max();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &mem_max_)));
- set_has_mem_max();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(114)) goto parse_credentials;
break;
}
// optional .exec.shared.UserCredentials credentials = 14;
case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_credentials:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_credentials()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(122)) goto parse_options_json;
break;
}
// optional string options_json = 15;
case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_options_json:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_options_json()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.control.PlanFragment.options_json");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(130)) goto parse_context;
break;
}
// optional .exec.bit.control.QueryContextInformation context = 16;
case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_context:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_context()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(138)) goto parse_collector;
break;
}
// repeated .exec.bit.control.Collector collector = 17;
case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_collector:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_collector()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(138)) goto parse_collector;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.PlanFragment)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.PlanFragment)
+ return false;
#undef DO_
}
void PlanFragment::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.PlanFragment)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle handle = 1;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->handle(), output);
+ 1, this->_internal_handle(), output);
}
// optional float network_cost = 4;
- if (has_network_cost()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->network_cost(), output);
}
// optional float cpu_cost = 5;
- if (has_cpu_cost()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cpu_cost(), output);
}
// optional float disk_cost = 6;
- if (has_disk_cost()) {
+ if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->disk_cost(), output);
}
// optional float memory_cost = 7;
- if (has_memory_cost()) {
+ if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->memory_cost(), output);
}
// optional string fragment_json = 8;
- if (has_fragment_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->fragment_json().data(), this->fragment_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->fragment_json().data(), static_cast<int>(this->fragment_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.PlanFragment.fragment_json");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->fragment_json(), output);
}
// optional bool leaf_fragment = 9;
- if (has_leaf_fragment()) {
+ if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteBool(9, this->leaf_fragment(), output);
}
// optional .exec.DrillbitEndpoint assignment = 10;
- if (has_assignment()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, this->assignment(), output);
+ 10, this->_internal_assignment(), output);
}
// optional .exec.DrillbitEndpoint foreman = 11;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->foreman(), output);
+ 11, this->_internal_foreman(), output);
}
// optional int64 mem_initial = 12 [default = 20000000];
- if (has_mem_initial()) {
+ if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->mem_initial(), output);
}
// optional int64 mem_max = 13 [default = 2000000000];
- if (has_mem_max()) {
+ if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(13, this->mem_max(), output);
}
// optional .exec.shared.UserCredentials credentials = 14;
- if (has_credentials()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, this->credentials(), output);
+ 14, this->_internal_credentials(), output);
}
// optional string options_json = 15;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.PlanFragment.options_json");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15, this->options_json(), output);
}
// optional .exec.bit.control.QueryContextInformation context = 16;
- if (has_context()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, this->context(), output);
+ 16, this->_internal_context(), output);
}
// repeated .exec.bit.control.Collector collector = 17;
- for (int i = 0; i < this->collector_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->collector_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, this->collector(i), output);
+ 17,
+ this->collector(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.PlanFragment)
}
-::google::protobuf::uint8* PlanFragment::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* PlanFragment::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.PlanFragment)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle handle = 1;
- if (has_handle()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->handle(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_handle(), deterministic, target);
}
// optional float network_cost = 4;
- if (has_network_cost()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->network_cost(), target);
}
// optional float cpu_cost = 5;
- if (has_cpu_cost()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cpu_cost(), target);
}
// optional float disk_cost = 6;
- if (has_disk_cost()) {
+ if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->disk_cost(), target);
}
// optional float memory_cost = 7;
- if (has_memory_cost()) {
+ if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->memory_cost(), target);
}
// optional string fragment_json = 8;
- if (has_fragment_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->fragment_json().data(), this->fragment_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->fragment_json().data(), static_cast<int>(this->fragment_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.PlanFragment.fragment_json");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->fragment_json(), target);
}
// optional bool leaf_fragment = 9;
- if (has_leaf_fragment()) {
+ if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->leaf_fragment(), target);
}
// optional .exec.DrillbitEndpoint assignment = 10;
- if (has_assignment()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 10, this->assignment(), target);
+ InternalWriteMessageToArray(
+ 10, this->_internal_assignment(), deterministic, target);
}
// optional .exec.DrillbitEndpoint foreman = 11;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 11, this->foreman(), target);
+ InternalWriteMessageToArray(
+ 11, this->_internal_foreman(), deterministic, target);
}
// optional int64 mem_initial = 12 [default = 20000000];
- if (has_mem_initial()) {
+ if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->mem_initial(), target);
}
// optional int64 mem_max = 13 [default = 2000000000];
- if (has_mem_max()) {
+ if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(13, this->mem_max(), target);
}
// optional .exec.shared.UserCredentials credentials = 14;
- if (has_credentials()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 14, this->credentials(), target);
+ InternalWriteMessageToArray(
+ 14, this->_internal_credentials(), deterministic, target);
}
// optional string options_json = 15;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.PlanFragment.options_json");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15, this->options_json(), target);
}
// optional .exec.bit.control.QueryContextInformation context = 16;
- if (has_context()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 16, this->context(), target);
+ InternalWriteMessageToArray(
+ 16, this->_internal_context(), deterministic, target);
}
// repeated .exec.bit.control.Collector collector = 17;
- for (int i = 0; i < this->collector_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->collector_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 17, this->collector(i), target);
+ InternalWriteMessageToArray(
+ 17, this->collector(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.PlanFragment)
return target;
}
-int PlanFragment::ByteSize() const {
- int total_size = 0;
+size_t PlanFragment::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.PlanFragment)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.bit.control.Collector collector = 17;
+ {
+ unsigned int count = static_cast<unsigned int>(this->collector_size());
+ total_size += 2UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->collector(static_cast<int>(i)));
+ }
+ }
+
+ if (_has_bits_[0 / 32] & 255u) {
+ // optional string fragment_json = 8;
+ if (has_fragment_json()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->fragment_json());
+ }
+
+ // optional string options_json = 15;
+ if (has_options_json()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->options_json());
+ }
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .exec.bit.FragmentHandle handle = 1;
if (has_handle()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->handle());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *handle_);
+ }
+
+ // optional .exec.DrillbitEndpoint assignment = 10;
+ if (has_assignment()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *assignment_);
+ }
+
+ // optional .exec.DrillbitEndpoint foreman = 11;
+ if (has_foreman()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *foreman_);
+ }
+
+ // optional .exec.shared.UserCredentials credentials = 14;
+ if (has_credentials()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *credentials_);
+ }
+
+ // optional .exec.bit.control.QueryContextInformation context = 16;
+ if (has_context()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *context_);
}
// optional float network_cost = 4;
@@ -2302,6 +2700,8 @@ int PlanFragment::ByteSize() const {
total_size += 1 + 4;
}
+ }
+ if (_has_bits_[8 / 32] & 16128u) {
// optional float cpu_cost = 5;
if (has_cpu_cost()) {
total_size += 1 + 4;
@@ -2317,34 +2717,11 @@ int PlanFragment::ByteSize() const {
total_size += 1 + 4;
}
- // optional string fragment_json = 8;
- if (has_fragment_json()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fragment_json());
- }
-
// optional bool leaf_fragment = 9;
if (has_leaf_fragment()) {
total_size += 1 + 1;
}
- // optional .exec.DrillbitEndpoint assignment = 10;
- if (has_assignment()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->assignment());
- }
-
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional .exec.DrillbitEndpoint foreman = 11;
- if (has_foreman()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->foreman());
- }
-
// optional int64 mem_initial = 12 [default = 20000000];
if (has_mem_initial()) {
total_size += 1 +
@@ -2359,359 +2736,355 @@ int PlanFragment::ByteSize() const {
this->mem_max());
}
- // optional .exec.shared.UserCredentials credentials = 14;
- if (has_credentials()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->credentials());
- }
-
- // optional string options_json = 15;
- if (has_options_json()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->options_json());
- }
-
- // optional .exec.bit.control.QueryContextInformation context = 16;
- if (has_context()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->context());
- }
-
- }
- // repeated .exec.bit.control.Collector collector = 17;
- total_size += 2 * this->collector_size();
- for (int i = 0; i < this->collector_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->collector(i));
}
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void PlanFragment::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.PlanFragment)
+ GOOGLE_DCHECK_NE(&from, this);
const PlanFragment* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const PlanFragment*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const PlanFragment>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.PlanFragment)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.PlanFragment)
MergeFrom(*source);
}
}
void PlanFragment::MergeFrom(const PlanFragment& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.PlanFragment)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
collector_.MergeFrom(from.collector_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_handle()) {
- mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from.handle());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_fragment_json();
+ fragment_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fragment_json_);
}
- if (from.has_network_cost()) {
- set_network_cost(from.network_cost());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_options_json();
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
}
- if (from.has_cpu_cost()) {
- set_cpu_cost(from.cpu_cost());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_handle()->::exec::bit::FragmentHandle::MergeFrom(from.handle());
}
- if (from.has_disk_cost()) {
- set_disk_cost(from.disk_cost());
+ if (cached_has_bits & 0x00000008u) {
+ mutable_assignment()->::exec::DrillbitEndpoint::MergeFrom(from.assignment());
}
- if (from.has_memory_cost()) {
- set_memory_cost(from.memory_cost());
+ if (cached_has_bits & 0x00000010u) {
+ mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
}
- if (from.has_fragment_json()) {
- set_fragment_json(from.fragment_json());
+ if (cached_has_bits & 0x00000020u) {
+ mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from.credentials());
}
- if (from.has_leaf_fragment()) {
- set_leaf_fragment(from.leaf_fragment());
+ if (cached_has_bits & 0x00000040u) {
+ mutable_context()->::exec::bit::control::QueryContextInformation::MergeFrom(from.context());
}
- if (from.has_assignment()) {
- mutable_assignment()->::exec::DrillbitEndpoint::MergeFrom(from.assignment());
+ if (cached_has_bits & 0x00000080u) {
+ network_cost_ = from.network_cost_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_foreman()) {
- mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
+ if (cached_has_bits & 16128u) {
+ if (cached_has_bits & 0x00000100u) {
+ cpu_cost_ = from.cpu_cost_;
}
- if (from.has_mem_initial()) {
- set_mem_initial(from.mem_initial());
+ if (cached_has_bits & 0x00000200u) {
+ disk_cost_ = from.disk_cost_;
}
- if (from.has_mem_max()) {
- set_mem_max(from.mem_max());
+ if (cached_has_bits & 0x00000400u) {
+ memory_cost_ = from.memory_cost_;
}
- if (from.has_credentials()) {
- mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from.credentials());
+ if (cached_has_bits & 0x00000800u) {
+ leaf_fragment_ = from.leaf_fragment_;
}
- if (from.has_options_json()) {
- set_options_json(from.options_json());
+ if (cached_has_bits & 0x00001000u) {
+ mem_initial_ = from.mem_initial_;
}
- if (from.has_context()) {
- mutable_context()->::exec::bit::control::QueryContextInformation::MergeFrom(from.context());
+ if (cached_has_bits & 0x00002000u) {
+ mem_max_ = from.mem_max_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PlanFragment::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.PlanFragment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PlanFragment::CopyFrom(const PlanFragment& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.PlanFragment)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PlanFragment::IsInitialized() const {
-
return true;
}
void PlanFragment::Swap(PlanFragment* other) {
- if (other != this) {
- std::swap(handle_, other->handle_);
- std::swap(network_cost_, other->network_cost_);
- std::swap(cpu_cost_, other->cpu_cost_);
- std::swap(disk_cost_, other->disk_cost_);
- std::swap(memory_cost_, other->memory_cost_);
- std::swap(fragment_json_, other->fragment_json_);
- std::swap(leaf_fragment_, other->leaf_fragment_);
- std::swap(assignment_, other->assignment_);
- std::swap(foreman_, other->foreman_);
- std::swap(mem_initial_, other->mem_initial_);
- std::swap(mem_max_, other->mem_max_);
- std::swap(credentials_, other->credentials_);
- std::swap(options_json_, other->options_json_);
- std::swap(context_, other->context_);
- collector_.Swap(&other->collector_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void PlanFragment::InternalSwap(PlanFragment* other) {
+ using std::swap;
+ CastToBase(&collector_)->InternalSwap(CastToBase(&other->collector_));
+ fragment_json_.Swap(&other->fragment_json_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ options_json_.Swap(&other->options_json_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(handle_, other->handle_);
+ swap(assignment_, other->assignment_);
+ swap(foreman_, other->foreman_);
+ swap(credentials_, other->credentials_);
+ swap(context_, other->context_);
+ swap(network_cost_, other->network_cost_);
+ swap(cpu_cost_, other->cpu_cost_);
+ swap(disk_cost_, other->disk_cost_);
+ swap(memory_cost_, other->memory_cost_);
+ swap(leaf_fragment_, other->leaf_fragment_);
+ swap(mem_initial_, other->mem_initial_);
+ swap(mem_max_, other->mem_max_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata PlanFragment::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = PlanFragment_descriptor_;
- metadata.reflection = PlanFragment_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void Collector::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Collector::kOppositeMajorFragmentIdFieldNumber;
const int Collector::kIncomingMinorFragmentFieldNumber;
const int Collector::kSupportsOutOfOrderFieldNumber;
const int Collector::kIsSpoolingFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Collector::Collector()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_Collector.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.Collector)
}
-
-void Collector::InitAsDefaultInstance() {
-}
-
Collector::Collector(const Collector& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ incoming_minor_fragment_(from.incoming_minor_fragment_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&opposite_major_fragment_id_, &from.opposite_major_fragment_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&is_spooling_) -
+ reinterpret_cast<char*>(&opposite_major_fragment_id_)) + sizeof(is_spooling_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.Collector)
}
void Collector::SharedCtor() {
- _cached_size_ = 0;
- opposite_major_fragment_id_ = 0;
- supports_out_of_order_ = false;
- is_spooling_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&opposite_major_fragment_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_spooling_) -
+ reinterpret_cast<char*>(&opposite_major_fragment_id_)) + sizeof(is_spooling_));
}
Collector::~Collector() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.Collector)
SharedDtor();
}
void Collector::SharedDtor() {
- if (this != default_instance_) {
- }
}
void Collector::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Collector::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Collector_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Collector& Collector::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_Collector.base);
+ return *internal_default_instance();
}
-Collector* Collector::default_instance_ = NULL;
-
-Collector* Collector::New() const {
- return new Collector;
-}
void Collector::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- opposite_major_fragment_id_ = 0;
- supports_out_of_order_ = false;
- is_spooling_ = false;
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.Collector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
incoming_minor_fragment_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ ::memset(&opposite_major_fragment_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_spooling_) -
+ reinterpret_cast<char*>(&opposite_major_fragment_id_)) + sizeof(is_spooling_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Collector::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.Collector)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 opposite_major_fragment_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_opposite_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &opposite_major_fragment_id_)));
- set_has_opposite_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_incoming_minor_fragment;
break;
}
// repeated int32 incoming_minor_fragment = 2 [packed = true];
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_incoming_minor_fragment:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_incoming_minor_fragment())));
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_VARINT) {
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- 1, 18, input, this->mutable_incoming_minor_fragment())));
+ 1, 18u, input, this->mutable_incoming_minor_fragment())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_supports_out_of_order;
break;
}
// optional bool supports_out_of_order = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_supports_out_of_order:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_supports_out_of_order();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &supports_out_of_order_)));
- set_has_supports_out_of_order();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_is_spooling;
break;
}
// optional bool is_spooling = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_spooling:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_is_spooling();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_spooling_)));
- set_has_is_spooling();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.Collector)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.Collector)
+ return false;
#undef DO_
}
void Collector::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.Collector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 opposite_major_fragment_id = 1;
- if (has_opposite_major_fragment_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->opposite_major_fragment_id(), output);
}
// repeated int32 incoming_minor_fragment = 2 [packed = true];
if (this->incoming_minor_fragment_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
- output->WriteVarint32(_incoming_minor_fragment_cached_byte_size_);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _incoming_minor_fragment_cached_byte_size_));
}
- for (int i = 0; i < this->incoming_minor_fragment_size(); i++) {
+ for (int i = 0, n = this->incoming_minor_fragment_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->incoming_minor_fragment(i), output);
}
// optional bool supports_out_of_order = 3;
- if (has_supports_out_of_order()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->supports_out_of_order(), output);
}
// optional bool is_spooling = 4;
- if (has_is_spooling()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_spooling(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.Collector)
}
-::google::protobuf::uint8* Collector::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Collector::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.Collector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 opposite_major_fragment_id = 1;
- if (has_opposite_major_fragment_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->opposite_major_fragment_id(), target);
}
@@ -2722,34 +3095,56 @@ void Collector::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
- _incoming_minor_fragment_cached_byte_size_, target);
- }
- for (int i = 0; i < this->incoming_minor_fragment_size(); i++) {
+ static_cast< ::google::protobuf::int32>(
+ _incoming_minor_fragment_cached_byte_size_), target);
target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32NoTagToArray(this->incoming_minor_fragment(i), target);
+ WriteInt32NoTagToArray(this->incoming_minor_fragment_, target);
}
// optional bool supports_out_of_order = 3;
- if (has_supports_out_of_order()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->supports_out_of_order(), target);
}
// optional bool is_spooling = 4;
- if (has_is_spooling()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_spooling(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.Collector)
return target;
}
-int Collector::ByteSize() const {
- int total_size = 0;
+size_t Collector::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.Collector)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated int32 incoming_minor_fragment = 2 [packed = true];
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->incoming_minor_fragment_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _incoming_minor_fragment_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ if (_has_bits_[0 / 32] & 7u) {
// optional int32 opposite_major_fragment_id = 1;
if (has_opposite_major_fragment_id()) {
total_size += 1 +
@@ -2768,368 +3163,372 @@ int Collector::ByteSize() const {
}
}
- // repeated int32 incoming_minor_fragment = 2 [packed = true];
- {
- int data_size = 0;
- for (int i = 0; i < this->incoming_minor_fragment_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::
- Int32Size(this->incoming_minor_fragment(i));
- }
- if (data_size > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _incoming_minor_fragment_cached_byte_size_ = data_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- total_size += data_size;
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Collector::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.Collector)
+ GOOGLE_DCHECK_NE(&from, this);
const Collector* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Collector*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Collector>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.Collector)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.Collector)
MergeFrom(*source);
}
}
void Collector::MergeFrom(const Collector& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.Collector)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
incoming_minor_fragment_.MergeFrom(from.incoming_minor_fragment_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_opposite_major_fragment_id()) {
- set_opposite_major_fragment_id(from.opposite_major_fragment_id());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ opposite_major_fragment_id_ = from.opposite_major_fragment_id_;
}
- if (from.has_supports_out_of_order()) {
- set_supports_out_of_order(from.supports_out_of_order());
+ if (cached_has_bits & 0x00000002u) {
+ supports_out_of_order_ = from.supports_out_of_order_;
}
- if (from.has_is_spooling()) {
- set_is_spooling(from.is_spooling());
+ if (cached_has_bits & 0x00000004u) {
+ is_spooling_ = from.is_spooling_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Collector::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.Collector)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Collector::CopyFrom(const Collector& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.Collector)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Collector::IsInitialized() const {
-
return true;
}
void Collector::Swap(Collector* other) {
- if (other != this) {
- std::swap(opposite_major_fragment_id_, other->opposite_major_fragment_id_);
- incoming_minor_fragment_.Swap(&other->incoming_minor_fragment_);
- std::swap(supports_out_of_order_, other->supports_out_of_order_);
- std::swap(is_spooling_, other->is_spooling_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Collector::InternalSwap(Collector* other) {
+ using std::swap;
+ incoming_minor_fragment_.InternalSwap(&other->incoming_minor_fragment_);
+ swap(opposite_major_fragment_id_, other->opposite_major_fragment_id_);
+ swap(supports_out_of_order_, other->supports_out_of_order_);
+ swap(is_spooling_, other->is_spooling_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Collector::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Collector_descriptor_;
- metadata.reflection = Collector_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void QueryContextInformation::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryContextInformation::kQueryStartTimeFieldNumber;
const int QueryContextInformation::kTimeZoneFieldNumber;
const int QueryContextInformation::kDefaultSchemaNameFieldNumber;
const int QueryContextInformation::kSessionIdFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryContextInformation::QueryContextInformation()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_QueryContextInformation.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.QueryContextInformation)
}
-
-void QueryContextInformation::InitAsDefaultInstance() {
-}
-
QueryContextInformation::QueryContextInformation(const QueryContextInformation& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ default_schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_default_schema_name()) {
+ default_schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_schema_name_);
+ }
+ session_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_session_id()) {
+ session_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.session_id_);
+ }
+ ::memcpy(&query_start_time_, &from.query_start_time_,
+ static_cast<size_t>(reinterpret_cast<char*>(&time_zone_) -
+ reinterpret_cast<char*>(&query_start_time_)) + sizeof(time_zone_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.QueryContextInformation)
}
void QueryContextInformation::SharedCtor() {
- _cached_size_ = 0;
- query_start_time_ = GOOGLE_LONGLONG(0);
- time_zone_ = 0;
- default_schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ default_schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ session_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&query_start_time_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&time_zone_) -
+ reinterpret_cast<char*>(&query_start_time_)) + sizeof(time_zone_));
}
QueryContextInformation::~QueryContextInformation() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.QueryContextInformation)
SharedDtor();
}
void QueryContextInformation::SharedDtor() {
- if (default_schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete default_schema_name_;
- }
- if (session_id_ != &::google::protobuf::internal::kEmptyString) {
- delete session_id_;
- }
- if (this != default_instance_) {
- }
+ default_schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ session_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void QueryContextInformation::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryContextInformation::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryContextInformation_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryContextInformation& QueryContextInformation::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_QueryContextInformation.base);
+ return *internal_default_instance();
}
-QueryContextInformation* QueryContextInformation::default_instance_ = NULL;
-
-QueryContextInformation* QueryContextInformation::New() const {
- return new QueryContextInformation;
-}
void QueryContextInformation::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- query_start_time_ = GOOGLE_LONGLONG(0);
- time_zone_ = 0;
- if (has_default_schema_name()) {
- if (default_schema_name_ != &::google::protobuf::internal::kEmptyString) {
- default_schema_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.QueryContextInformation)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ default_schema_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_session_id()) {
- if (session_id_ != &::google::protobuf::internal::kEmptyString) {
- session_id_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ session_id_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 12u) {
+ ::memset(&query_start_time_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&time_zone_) -
+ reinterpret_cast<char*>(&query_start_time_)) + sizeof(time_zone_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryContextInformation::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.QueryContextInformation)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int64 query_start_time = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_query_start_time();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &query_start_time_)));
- set_has_query_start_time();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_time_zone;
break;
}
// optional int32 time_zone = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_time_zone:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_time_zone();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &time_zone_)));
- set_has_time_zone();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_default_schema_name;
break;
}
// optional string default_schema_name = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_default_schema_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_default_schema_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_schema_name().data(), this->default_schema_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_schema_name().data(), static_cast<int>(this->default_schema_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.control.QueryContextInformation.default_schema_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_session_id;
break;
}
// optional string session_id = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_session_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_session_id()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->session_id().data(), this->session_id().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->session_id().data(), static_cast<int>(this->session_id().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.control.QueryContextInformation.session_id");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.QueryContextInformation)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.QueryContextInformation)
+ return false;
#undef DO_
}
void QueryContextInformation::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.QueryContextInformation)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int64 query_start_time = 1;
- if (has_query_start_time()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->query_start_time(), output);
}
// optional int32 time_zone = 2;
- if (has_time_zone()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->time_zone(), output);
}
// optional string default_schema_name = 3;
- if (has_default_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_schema_name().data(), this->default_schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_schema_name().data(), static_cast<int>(this->default_schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.QueryContextInformation.default_schema_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->default_schema_name(), output);
}
// optional string session_id = 4;
- if (has_session_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->session_id().data(), this->session_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->session_id().data(), static_cast<int>(this->session_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.QueryContextInformation.session_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->session_id(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.QueryContextInformation)
}
-::google::protobuf::uint8* QueryContextInformation::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryContextInformation::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.QueryContextInformation)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int64 query_start_time = 1;
- if (has_query_start_time()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->query_start_time(), target);
}
// optional int32 time_zone = 2;
- if (has_time_zone()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->time_zone(), target);
}
// optional string default_schema_name = 3;
- if (has_default_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_schema_name().data(), this->default_schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_schema_name().data(), static_cast<int>(this->default_schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.QueryContextInformation.default_schema_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->default_schema_name(), target);
}
// optional string session_id = 4;
- if (has_session_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->session_id().data(), this->session_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->session_id().data(), static_cast<int>(this->session_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.control.QueryContextInformation.session_id");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->session_id(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.QueryContextInformation)
return target;
}
-int QueryContextInformation::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int64 query_start_time = 1;
- if (has_query_start_time()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->query_start_time());
- }
-
- // optional int32 time_zone = 2;
- if (has_time_zone()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->time_zone());
- }
+size_t QueryContextInformation::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.QueryContextInformation)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional string default_schema_name = 3;
if (has_default_schema_name()) {
total_size += 1 +
@@ -3144,294 +3543,344 @@ int QueryContextInformation::ByteSize() const {
this->session_id());
}
+ // optional int64 query_start_time = 1;
+ if (has_query_start_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->query_start_time());
+ }
+
+ // optional int32 time_zone = 2;
+ if (has_time_zone()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->time_zone());
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryContextInformation::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.QueryContextInformation)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryContextInformation* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryContextInformation*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryContextInformation>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.QueryContextInformation)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.QueryContextInformation)
MergeFrom(*source);
}
}
void QueryContextInformation::MergeFrom(const QueryContextInformation& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_start_time()) {
- set_query_start_time(from.query_start_time());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.QueryContextInformation)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_default_schema_name();
+ default_schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_schema_name_);
}
- if (from.has_time_zone()) {
- set_time_zone(from.time_zone());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_session_id();
+ session_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.session_id_);
}
- if (from.has_default_schema_name()) {
- set_default_schema_name(from.default_schema_name());
+ if (cached_has_bits & 0x00000004u) {
+ query_start_time_ = from.query_start_time_;
}
- if (from.has_session_id()) {
- set_session_id(from.session_id());
+ if (cached_has_bits & 0x00000008u) {
+ time_zone_ = from.time_zone_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryContextInformation::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.QueryContextInformation)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryContextInformation::CopyFrom(const QueryContextInformation& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.QueryContextInformation)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryContextInformation::IsInitialized() const {
-
return true;
}
void QueryContextInformation::Swap(QueryContextInformation* other) {
- if (other != this) {
- std::swap(query_start_time_, other->query_start_time_);
- std::swap(time_zone_, other->time_zone_);
- std::swap(default_schema_name_, other->default_schema_name_);
- std::swap(session_id_, other->session_id_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryContextInformation::InternalSwap(QueryContextInformation* other) {
+ using std::swap;
+ default_schema_name_.Swap(&other->default_schema_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ session_id_.Swap(&other->session_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(query_start_time_, other->query_start_time_);
+ swap(time_zone_, other->time_zone_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryContextInformation::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryContextInformation_descriptor_;
- metadata.reflection = QueryContextInformation_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void WorkQueueStatus::InitAsDefaultInstance() {
+ ::exec::bit::control::_WorkQueueStatus_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+void WorkQueueStatus::clear_endpoint() {
+ if (endpoint_ != NULL) endpoint_->Clear();
+ clear_has_endpoint();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int WorkQueueStatus::kEndpointFieldNumber;
const int WorkQueueStatus::kQueueLengthFieldNumber;
const int WorkQueueStatus::kReportTimeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
WorkQueueStatus::WorkQueueStatus()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_WorkQueueStatus.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.WorkQueueStatus)
}
-
-void WorkQueueStatus::InitAsDefaultInstance() {
- endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
WorkQueueStatus::WorkQueueStatus(const WorkQueueStatus& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_endpoint()) {
+ endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
+ } else {
+ endpoint_ = NULL;
+ }
+ ::memcpy(&report_time_, &from.report_time_,
+ static_cast<size_t>(reinterpret_cast<char*>(&queue_length_) -
+ reinterpret_cast<char*>(&report_time_)) + sizeof(queue_length_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.WorkQueueStatus)
}
void WorkQueueStatus::SharedCtor() {
- _cached_size_ = 0;
- endpoint_ = NULL;
- queue_length_ = 0;
- report_time_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&endpoint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&queue_length_) -
+ reinterpret_cast<char*>(&endpoint_)) + sizeof(queue_length_));
}
WorkQueueStatus::~WorkQueueStatus() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.WorkQueueStatus)
SharedDtor();
}
void WorkQueueStatus::SharedDtor() {
- if (this != default_instance_) {
- delete endpoint_;
- }
+ if (this != internal_default_instance()) delete endpoint_;
}
void WorkQueueStatus::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* WorkQueueStatus::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return WorkQueueStatus_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const WorkQueueStatus& WorkQueueStatus::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_WorkQueueStatus.base);
+ return *internal_default_instance();
}
-WorkQueueStatus* WorkQueueStatus::default_instance_ = NULL;
-
-WorkQueueStatus* WorkQueueStatus::New() const {
- return new WorkQueueStatus;
-}
void WorkQueueStatus::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_endpoint()) {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- }
- queue_length_ = 0;
- report_time_ = GOOGLE_LONGLONG(0);
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.WorkQueueStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(endpoint_ != NULL);
+ endpoint_->Clear();
+ }
+ if (cached_has_bits & 6u) {
+ ::memset(&report_time_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&queue_length_) -
+ reinterpret_cast<char*>(&report_time_)) + sizeof(queue_length_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool WorkQueueStatus::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.WorkQueueStatus)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.DrillbitEndpoint endpoint = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_endpoint()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_queue_length;
break;
}
// optional int32 queue_length = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_queue_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_queue_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &queue_length_)));
- set_has_queue_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_report_time;
break;
}
// optional int64 report_time = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_report_time:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_report_time();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &report_time_)));
- set_has_report_time();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.WorkQueueStatus)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.WorkQueueStatus)
+ return false;
#undef DO_
}
void WorkQueueStatus::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.WorkQueueStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.DrillbitEndpoint endpoint = 1;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->endpoint(), output);
+ 1, this->_internal_endpoint(), output);
}
// optional int32 queue_length = 2;
- if (has_queue_length()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->queue_length(), output);
}
// optional int64 report_time = 3;
- if (has_report_time()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->report_time(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.WorkQueueStatus)
}
-::google::protobuf::uint8* WorkQueueStatus::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* WorkQueueStatus::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.WorkQueueStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.DrillbitEndpoint endpoint = 1;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->endpoint(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_endpoint(), deterministic, target);
}
// optional int32 queue_length = 2;
- if (has_queue_length()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->queue_length(), target);
}
// optional int64 report_time = 3;
- if (has_report_time()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->report_time(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.WorkQueueStatus)
return target;
}
-int WorkQueueStatus::ByteSize() const {
- int total_size = 0;
+size_t WorkQueueStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.WorkQueueStatus)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional .exec.DrillbitEndpoint endpoint = 1;
if (has_endpoint()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->endpoint());
- }
-
- // optional int32 queue_length = 2;
- if (has_queue_length()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->queue_length());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *endpoint_);
}
// optional int64 report_time = 3;
@@ -3441,345 +3890,436 @@ int WorkQueueStatus::ByteSize() const {
this->report_time());
}
+ // optional int32 queue_length = 2;
+ if (has_queue_length()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->queue_length());
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void WorkQueueStatus::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.WorkQueueStatus)
+ GOOGLE_DCHECK_NE(&from, this);
const WorkQueueStatus* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const WorkQueueStatus*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const WorkQueueStatus>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.WorkQueueStatus)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.WorkQueueStatus)
MergeFrom(*source);
}
}
void WorkQueueStatus::MergeFrom(const WorkQueueStatus& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_endpoint()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.WorkQueueStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
}
- if (from.has_queue_length()) {
- set_queue_length(from.queue_length());
+ if (cached_has_bits & 0x00000002u) {
+ report_time_ = from.report_time_;
}
- if (from.has_report_time()) {
- set_report_time(from.report_time());
+ if (cached_has_bits & 0x00000004u) {
+ queue_length_ = from.queue_length_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void WorkQueueStatus::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.WorkQueueStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void WorkQueueStatus::CopyFrom(const WorkQueueStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.WorkQueueStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool WorkQueueStatus::IsInitialized() const {
-
return true;
}
void WorkQueueStatus::Swap(WorkQueueStatus* other) {
- if (other != this) {
- std::swap(endpoint_, other->endpoint_);
- std::swap(queue_length_, other->queue_length_);
- std::swap(report_time_, other->report_time_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void WorkQueueStatus::InternalSwap(WorkQueueStatus* other) {
+ using std::swap;
+ swap(endpoint_, other->endpoint_);
+ swap(report_time_, other->report_time_);
+ swap(queue_length_, other->queue_length_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata WorkQueueStatus::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = WorkQueueStatus_descriptor_;
- metadata.reflection = WorkQueueStatus_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void FinishedReceiver::InitAsDefaultInstance() {
+ ::exec::bit::control::_FinishedReceiver_default_instance_._instance.get_mutable()->receiver_ = const_cast< ::exec::bit::FragmentHandle*>(
+ ::exec::bit::FragmentHandle::internal_default_instance());
+ ::exec::bit::control::_FinishedReceiver_default_instance_._instance.get_mutable()->sender_ = const_cast< ::exec::bit::FragmentHandle*>(
+ ::exec::bit::FragmentHandle::internal_default_instance());
+}
+void FinishedReceiver::clear_receiver() {
+ if (receiver_ != NULL) receiver_->Clear();
+ clear_has_receiver();
+}
+void FinishedReceiver::clear_sender() {
+ if (sender_ != NULL) sender_->Clear();
+ clear_has_sender();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int FinishedReceiver::kReceiverFieldNumber;
const int FinishedReceiver::kSenderFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
FinishedReceiver::FinishedReceiver()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitControl_2eproto::scc_info_FinishedReceiver.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.control.FinishedReceiver)
}
-
-void FinishedReceiver::InitAsDefaultInstance() {
- receiver_ = const_cast< ::exec::bit::FragmentHandle*>(&::exec::bit::FragmentHandle::default_instance());
- sender_ = const_cast< ::exec::bit::FragmentHandle*>(&::exec::bit::FragmentHandle::default_instance());
-}
-
FinishedReceiver::FinishedReceiver(const FinishedReceiver& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_receiver()) {
+ receiver_ = new ::exec::bit::FragmentHandle(*from.receiver_);
+ } else {
+ receiver_ = NULL;
+ }
+ if (from.has_sender()) {
+ sender_ = new ::exec::bit::FragmentHandle(*from.sender_);
+ } else {
+ sender_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.bit.control.FinishedReceiver)
}
void FinishedReceiver::SharedCtor() {
- _cached_size_ = 0;
- receiver_ = NULL;
- sender_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&receiver_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&sender_) -
+ reinterpret_cast<char*>(&receiver_)) + sizeof(sender_));
}
FinishedReceiver::~FinishedReceiver() {
+ // @@protoc_insertion_point(destructor:exec.bit.control.FinishedReceiver)
SharedDtor();
}
void FinishedReceiver::SharedDtor() {
- if (this != default_instance_) {
- delete receiver_;
- delete sender_;
- }
+ if (this != internal_default_instance()) delete receiver_;
+ if (this != internal_default_instance()) delete sender_;
}
void FinishedReceiver::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* FinishedReceiver::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FinishedReceiver_descriptor_;
+ ::protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const FinishedReceiver& FinishedReceiver::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitControl_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitControl_2eproto::scc_info_FinishedReceiver.base);
+ return *internal_default_instance();
}
-FinishedReceiver* FinishedReceiver::default_instance_ = NULL;
-
-FinishedReceiver* FinishedReceiver::New() const {
- return new FinishedReceiver;
-}
void FinishedReceiver::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_receiver()) {
- if (receiver_ != NULL) receiver_->::exec::bit::FragmentHandle::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.bit.control.FinishedReceiver)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(receiver_ != NULL);
+ receiver_->Clear();
}
- if (has_sender()) {
- if (sender_ != NULL) sender_->::exec::bit::FragmentHandle::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(sender_ != NULL);
+ sender_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool FinishedReceiver::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.control.FinishedReceiver)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.bit.FragmentHandle receiver = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_receiver()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_sender;
break;
}
// optional .exec.bit.FragmentHandle sender = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_sender:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_sender()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.control.FinishedReceiver)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.control.FinishedReceiver)
+ return false;
#undef DO_
}
void FinishedReceiver::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.control.FinishedReceiver)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle receiver = 1;
- if (has_receiver()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->receiver(), output);
+ 1, this->_internal_receiver(), output);
}
// optional .exec.bit.FragmentHandle sender = 2;
- if (has_sender()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->sender(), output);
+ 2, this->_internal_sender(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.control.FinishedReceiver)
}
-::google::protobuf::uint8* FinishedReceiver::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* FinishedReceiver::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.control.FinishedReceiver)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.bit.FragmentHandle receiver = 1;
- if (has_receiver()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->receiver(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_receiver(), deterministic, target);
}
// optional .exec.bit.FragmentHandle sender = 2;
- if (has_sender()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->sender(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_sender(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.control.FinishedReceiver)
return target;
}
-int FinishedReceiver::ByteSize() const {
- int total_size = 0;
+size_t FinishedReceiver::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.control.FinishedReceiver)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.bit.FragmentHandle receiver = 1;
if (has_receiver()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->receiver());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *receiver_);
}
// optional .exec.bit.FragmentHandle sender = 2;
if (has_sender()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->sender());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *sender_);
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void FinishedReceiver::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.control.FinishedReceiver)
+ GOOGLE_DCHECK_NE(&from, this);
const FinishedReceiver* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const FinishedReceiver*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const FinishedReceiver>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.control.FinishedReceiver)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.control.FinishedReceiver)
MergeFrom(*source);
}
}
void FinishedReceiver::MergeFrom(const FinishedReceiver& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_receiver()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.control.FinishedReceiver)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_receiver()->::exec::bit::FragmentHandle::MergeFrom(from.receiver());
}
- if (from.has_sender()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_sender()->::exec::bit::FragmentHandle::MergeFrom(from.sender());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FinishedReceiver::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.control.FinishedReceiver)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FinishedReceiver::CopyFrom(const FinishedReceiver& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.control.FinishedReceiver)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FinishedReceiver::IsInitialized() const {
-
return true;
}
void FinishedReceiver::Swap(FinishedReceiver* other) {
- if (other != this) {
- std::swap(receiver_, other->receiver_);
- std::swap(sender_, other->sender_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void FinishedReceiver::InternalSwap(FinishedReceiver* other) {
+ using std::swap;
+ swap(receiver_, other->receiver_);
+ swap(sender_, other->sender_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata FinishedReceiver::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = FinishedReceiver_descriptor_;
- metadata.reflection = FinishedReceiver_reflection_;
- return metadata;
+ protobuf_BitControl_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitControl_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace control
} // namespace bit
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::BitControlHandshake* Arena::CreateMaybeMessage< ::exec::bit::control::BitControlHandshake >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::BitControlHandshake >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::BitStatus* Arena::CreateMaybeMessage< ::exec::bit::control::BitStatus >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::BitStatus >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::FragmentStatus* Arena::CreateMaybeMessage< ::exec::bit::control::FragmentStatus >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::FragmentStatus >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::InitializeFragments* Arena::CreateMaybeMessage< ::exec::bit::control::InitializeFragments >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::InitializeFragments >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::CustomMessage* Arena::CreateMaybeMessage< ::exec::bit::control::CustomMessage >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::CustomMessage >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::PlanFragment* Arena::CreateMaybeMessage< ::exec::bit::control::PlanFragment >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::PlanFragment >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::Collector* Arena::CreateMaybeMessage< ::exec::bit::control::Collector >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::Collector >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::QueryContextInformation* Arena::CreateMaybeMessage< ::exec::bit::control::QueryContextInformation >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::QueryContextInformation >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::WorkQueueStatus* Arena::CreateMaybeMessage< ::exec::bit::control::WorkQueueStatus >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::WorkQueueStatus >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::control::FinishedReceiver* Arena::CreateMaybeMessage< ::exec::bit::control::FinishedReceiver >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::control::FinishedReceiver >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/BitControl.pb.h b/contrib/native/client/src/protobuf/BitControl.pb.h
index 400c90116..abfda10d6 100644
--- a/contrib/native/client/src/protobuf/BitControl.pb.h
+++ b/contrib/native/client/src/protobuf/BitControl.pb.h
@@ -1,54 +1,107 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BitControl.proto
-#ifndef PROTOBUF_BitControl_2eproto__INCLUDED
-#define PROTOBUF_BitControl_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_BitControl_2eproto
+#define PROTOBUF_INCLUDED_BitControl_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "ExecutionProtos.pb.h"
#include "Coordination.pb.h"
#include "UserBitShared.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto
+
+namespace protobuf_BitControl_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[10];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_BitControl_2eproto
namespace exec {
namespace bit {
namespace control {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_BitControl_2eproto();
-void protobuf_AssignDesc_BitControl_2eproto();
-void protobuf_ShutdownFile_BitControl_2eproto();
-
class BitControlHandshake;
+class BitControlHandshakeDefaultTypeInternal;
+extern BitControlHandshakeDefaultTypeInternal _BitControlHandshake_default_instance_;
class BitStatus;
+class BitStatusDefaultTypeInternal;
+extern BitStatusDefaultTypeInternal _BitStatus_default_instance_;
+class Collector;
+class CollectorDefaultTypeInternal;
+extern CollectorDefaultTypeInternal _Collector_default_instance_;
+class CustomMessage;
+class CustomMessageDefaultTypeInternal;
+extern CustomMessageDefaultTypeInternal _CustomMessage_default_instance_;
+class FinishedReceiver;
+class FinishedReceiverDefaultTypeInternal;
+extern FinishedReceiverDefaultTypeInternal _FinishedReceiver_default_instance_;
class FragmentStatus;
+class FragmentStatusDefaultTypeInternal;
+extern FragmentStatusDefaultTypeInternal _FragmentStatus_default_instance_;
class InitializeFragments;
-class CustomMessage;
+class InitializeFragmentsDefaultTypeInternal;
+extern InitializeFragmentsDefaultTypeInternal _InitializeFragments_default_instance_;
class PlanFragment;
-class Collector;
+class PlanFragmentDefaultTypeInternal;
+extern PlanFragmentDefaultTypeInternal _PlanFragment_default_instance_;
class QueryContextInformation;
+class QueryContextInformationDefaultTypeInternal;
+extern QueryContextInformationDefaultTypeInternal _QueryContextInformation_default_instance_;
class WorkQueueStatus;
-class FinishedReceiver;
+class WorkQueueStatusDefaultTypeInternal;
+extern WorkQueueStatusDefaultTypeInternal _WorkQueueStatus_default_instance_;
+} // namespace control
+} // namespace bit
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::bit::control::BitControlHandshake* Arena::CreateMaybeMessage<::exec::bit::control::BitControlHandshake>(Arena*);
+template<> ::exec::bit::control::BitStatus* Arena::CreateMaybeMessage<::exec::bit::control::BitStatus>(Arena*);
+template<> ::exec::bit::control::Collector* Arena::CreateMaybeMessage<::exec::bit::control::Collector>(Arena*);
+template<> ::exec::bit::control::CustomMessage* Arena::CreateMaybeMessage<::exec::bit::control::CustomMessage>(Arena*);
+template<> ::exec::bit::control::FinishedReceiver* Arena::CreateMaybeMessage<::exec::bit::control::FinishedReceiver>(Arena*);
+template<> ::exec::bit::control::FragmentStatus* Arena::CreateMaybeMessage<::exec::bit::control::FragmentStatus>(Arena*);
+template<> ::exec::bit::control::InitializeFragments* Arena::CreateMaybeMessage<::exec::bit::control::InitializeFragments>(Arena*);
+template<> ::exec::bit::control::PlanFragment* Arena::CreateMaybeMessage<::exec::bit::control::PlanFragment>(Arena*);
+template<> ::exec::bit::control::QueryContextInformation* Arena::CreateMaybeMessage<::exec::bit::control::QueryContextInformation>(Arena*);
+template<> ::exec::bit::control::WorkQueueStatus* Arena::CreateMaybeMessage<::exec::bit::control::WorkQueueStatus>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace bit {
+namespace control {
enum RpcType {
HANDSHAKE = 0,
@@ -87,7 +140,7 @@ inline bool RpcType_Parse(
}
// ===================================================================
-class BitControlHandshake : public ::google::protobuf::Message {
+class BitControlHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitControlHandshake) */ {
public:
BitControlHandshake();
virtual ~BitControlHandshake();
@@ -98,117 +151,158 @@ class BitControlHandshake : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ BitControlHandshake(BitControlHandshake&& from) noexcept
+ : BitControlHandshake() {
+ *this = ::std::move(from);
+ }
+ inline BitControlHandshake& operator=(BitControlHandshake&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BitControlHandshake& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BitControlHandshake* internal_default_instance() {
+ return reinterpret_cast<const BitControlHandshake*>(
+ &_BitControlHandshake_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(BitControlHandshake* other);
+ friend void swap(BitControlHandshake& a, BitControlHandshake& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- BitControlHandshake* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline BitControlHandshake* New() const final {
+ return CreateMaybeMessage<BitControlHandshake>(NULL);
+ }
+
+ BitControlHandshake* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<BitControlHandshake>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BitControlHandshake& from);
void MergeFrom(const BitControlHandshake& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(BitControlHandshake* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated string authenticationMechanisms = 4;
+ int authenticationmechanisms_size() const;
+ void clear_authenticationmechanisms();
+ static const int kAuthenticationMechanismsFieldNumber = 4;
+ const ::std::string& authenticationmechanisms(int index) const;
+ ::std::string* mutable_authenticationmechanisms(int index);
+ void set_authenticationmechanisms(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_authenticationmechanisms(int index, ::std::string&& value);
+ #endif
+ void set_authenticationmechanisms(int index, const char* value);
+ void set_authenticationmechanisms(int index, const char* value, size_t size);
+ ::std::string* add_authenticationmechanisms();
+ void add_authenticationmechanisms(const ::std::string& value);
+ #if LANG_CXX11
+ void add_authenticationmechanisms(::std::string&& value);
+ #endif
+ void add_authenticationmechanisms(const char* value);
+ void add_authenticationmechanisms(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
+
+ // optional .exec.DrillbitEndpoint endpoint = 3;
+ bool has_endpoint() const;
+ void clear_endpoint();
+ static const int kEndpointFieldNumber = 3;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ public:
+ const ::exec::DrillbitEndpoint& endpoint() const;
+ ::exec::DrillbitEndpoint* release_endpoint();
+ ::exec::DrillbitEndpoint* mutable_endpoint();
+ void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+
// optional int32 rpc_version = 1;
- inline bool has_rpc_version() const;
- inline void clear_rpc_version();
+ bool has_rpc_version() const;
+ void clear_rpc_version();
static const int kRpcVersionFieldNumber = 1;
- inline ::google::protobuf::int32 rpc_version() const;
- inline void set_rpc_version(::google::protobuf::int32 value);
+ ::google::protobuf::int32 rpc_version() const;
+ void set_rpc_version(::google::protobuf::int32 value);
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- inline bool has_channel() const;
- inline void clear_channel();
+ bool has_channel() const;
+ void clear_channel();
static const int kChannelFieldNumber = 2;
- inline ::exec::shared::RpcChannel channel() const;
- inline void set_channel(::exec::shared::RpcChannel value);
-
- // optional .exec.DrillbitEndpoint endpoint = 3;
- inline bool has_endpoint() const;
- inline void clear_endpoint();
- static const int kEndpointFieldNumber = 3;
- inline const ::exec::DrillbitEndpoint& endpoint() const;
- inline ::exec::DrillbitEndpoint* mutable_endpoint();
- inline ::exec::DrillbitEndpoint* release_endpoint();
- inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
-
- // repeated string authenticationMechanisms = 4;
- inline int authenticationmechanisms_size() const;
- inline void clear_authenticationmechanisms();
- static const int kAuthenticationMechanismsFieldNumber = 4;
- inline const ::std::string& authenticationmechanisms(int index) const;
- inline ::std::string* mutable_authenticationmechanisms(int index);
- inline void set_authenticationmechanisms(int index, const ::std::string& value);
- inline void set_authenticationmechanisms(int index, const char* value);
- inline void set_authenticationmechanisms(int index, const char* value, size_t size);
- inline ::std::string* add_authenticationmechanisms();
- inline void add_authenticationmechanisms(const ::std::string& value);
- inline void add_authenticationmechanisms(const char* value);
- inline void add_authenticationmechanisms(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
+ ::exec::shared::RpcChannel channel() const;
+ void set_channel(::exec::shared::RpcChannel value);
// @@protoc_insertion_point(class_scope:exec.bit.control.BitControlHandshake)
private:
- inline void set_has_rpc_version();
- inline void clear_has_rpc_version();
- inline void set_has_channel();
- inline void clear_has_channel();
- inline void set_has_endpoint();
- inline void clear_has_endpoint();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_rpc_version();
+ void clear_has_rpc_version();
+ void set_has_channel();
+ void clear_has_channel();
+ void set_has_endpoint();
+ void clear_has_endpoint();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> authenticationmechanisms_;
+ ::exec::DrillbitEndpoint* endpoint_;
::google::protobuf::int32 rpc_version_;
int channel_;
- ::exec::DrillbitEndpoint* endpoint_;
- ::google::protobuf::RepeatedPtrField< ::std::string> authenticationmechanisms_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static BitControlHandshake* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class BitStatus : public ::google::protobuf::Message {
+class BitStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.BitStatus) */ {
public:
BitStatus();
virtual ~BitStatus();
@@ -219,81 +313,113 @@ class BitStatus : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ BitStatus(BitStatus&& from) noexcept
+ : BitStatus() {
+ *this = ::std::move(from);
+ }
+ inline BitStatus& operator=(BitStatus&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BitStatus& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BitStatus* internal_default_instance() {
+ return reinterpret_cast<const BitStatus*>(
+ &_BitStatus_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(BitStatus* other);
+ friend void swap(BitStatus& a, BitStatus& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- BitStatus* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline BitStatus* New() const final {
+ return CreateMaybeMessage<BitStatus>(NULL);
+ }
+
+ BitStatus* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<BitStatus>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BitStatus& from);
void MergeFrom(const BitStatus& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(BitStatus* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.bit.control.FragmentStatus fragment_status = 1;
- inline int fragment_status_size() const;
- inline void clear_fragment_status();
+ int fragment_status_size() const;
+ void clear_fragment_status();
static const int kFragmentStatusFieldNumber = 1;
- inline const ::exec::bit::control::FragmentStatus& fragment_status(int index) const;
- inline ::exec::bit::control::FragmentStatus* mutable_fragment_status(int index);
- inline ::exec::bit::control::FragmentStatus* add_fragment_status();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
- fragment_status() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+ ::exec::bit::control::FragmentStatus* mutable_fragment_status(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
mutable_fragment_status();
+ const ::exec::bit::control::FragmentStatus& fragment_status(int index) const;
+ ::exec::bit::control::FragmentStatus* add_fragment_status();
+ const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
+ fragment_status() const;
// @@protoc_insertion_point(class_scope:exec.bit.control.BitStatus)
private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus > fragment_status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static BitStatus* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class FragmentStatus : public ::google::protobuf::Message {
+class FragmentStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FragmentStatus) */ {
public:
FragmentStatus();
virtual ~FragmentStatus();
@@ -304,92 +430,130 @@ class FragmentStatus : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ FragmentStatus(FragmentStatus&& from) noexcept
+ : FragmentStatus() {
+ *this = ::std::move(from);
+ }
+ inline FragmentStatus& operator=(FragmentStatus&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const FragmentStatus& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FragmentStatus* internal_default_instance() {
+ return reinterpret_cast<const FragmentStatus*>(
+ &_FragmentStatus_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(FragmentStatus* other);
+ friend void swap(FragmentStatus& a, FragmentStatus& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- FragmentStatus* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline FragmentStatus* New() const final {
+ return CreateMaybeMessage<FragmentStatus>(NULL);
+ }
+
+ FragmentStatus* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<FragmentStatus>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const FragmentStatus& from);
void MergeFrom(const FragmentStatus& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(FragmentStatus* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.shared.MinorFragmentProfile profile = 1;
- inline bool has_profile() const;
- inline void clear_profile();
+ bool has_profile() const;
+ void clear_profile();
static const int kProfileFieldNumber = 1;
- inline const ::exec::shared::MinorFragmentProfile& profile() const;
- inline ::exec::shared::MinorFragmentProfile* mutable_profile();
- inline ::exec::shared::MinorFragmentProfile* release_profile();
- inline void set_allocated_profile(::exec::shared::MinorFragmentProfile* profile);
+ private:
+ const ::exec::shared::MinorFragmentProfile& _internal_profile() const;
+ public:
+ const ::exec::shared::MinorFragmentProfile& profile() const;
+ ::exec::shared::MinorFragmentProfile* release_profile();
+ ::exec::shared::MinorFragmentProfile* mutable_profile();
+ void set_allocated_profile(::exec::shared::MinorFragmentProfile* profile);
// optional .exec.bit.FragmentHandle handle = 2;
- inline bool has_handle() const;
- inline void clear_handle();
+ bool has_handle() const;
+ void clear_handle();
static const int kHandleFieldNumber = 2;
- inline const ::exec::bit::FragmentHandle& handle() const;
- inline ::exec::bit::FragmentHandle* mutable_handle();
- inline ::exec::bit::FragmentHandle* release_handle();
- inline void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_handle() const;
+ public:
+ const ::exec::bit::FragmentHandle& handle() const;
+ ::exec::bit::FragmentHandle* release_handle();
+ ::exec::bit::FragmentHandle* mutable_handle();
+ void set_allocated_handle(::exec::bit::FragmentHandle* handle);
// @@protoc_insertion_point(class_scope:exec.bit.control.FragmentStatus)
private:
- inline void set_has_profile();
- inline void clear_has_profile();
- inline void set_has_handle();
- inline void clear_has_handle();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_profile();
+ void clear_has_profile();
+ void set_has_handle();
+ void clear_has_handle();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::shared::MinorFragmentProfile* profile_;
::exec::bit::FragmentHandle* handle_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static FragmentStatus* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class InitializeFragments : public ::google::protobuf::Message {
+class InitializeFragments : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.InitializeFragments) */ {
public:
InitializeFragments();
virtual ~InitializeFragments();
@@ -400,81 +564,113 @@ class InitializeFragments : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ InitializeFragments(InitializeFragments&& from) noexcept
+ : InitializeFragments() {
+ *this = ::std::move(from);
+ }
+ inline InitializeFragments& operator=(InitializeFragments&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const InitializeFragments& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const InitializeFragments* internal_default_instance() {
+ return reinterpret_cast<const InitializeFragments*>(
+ &_InitializeFragments_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 3;
+
void Swap(InitializeFragments* other);
+ friend void swap(InitializeFragments& a, InitializeFragments& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- InitializeFragments* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline InitializeFragments* New() const final {
+ return CreateMaybeMessage<InitializeFragments>(NULL);
+ }
+
+ InitializeFragments* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<InitializeFragments>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const InitializeFragments& from);
void MergeFrom(const InitializeFragments& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(InitializeFragments* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.bit.control.PlanFragment fragment = 1;
- inline int fragment_size() const;
- inline void clear_fragment();
+ int fragment_size() const;
+ void clear_fragment();
static const int kFragmentFieldNumber = 1;
- inline const ::exec::bit::control::PlanFragment& fragment(int index) const;
- inline ::exec::bit::control::PlanFragment* mutable_fragment(int index);
- inline ::exec::bit::control::PlanFragment* add_fragment();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
- fragment() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+ ::exec::bit::control::PlanFragment* mutable_fragment(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
mutable_fragment();
+ const ::exec::bit::control::PlanFragment& fragment(int index) const;
+ ::exec::bit::control::PlanFragment* add_fragment();
+ const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
+ fragment() const;
// @@protoc_insertion_point(class_scope:exec.bit.control.InitializeFragments)
private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment > fragment_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static InitializeFragments* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class CustomMessage : public ::google::protobuf::Message {
+class CustomMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.CustomMessage) */ {
public:
CustomMessage();
virtual ~CustomMessage();
@@ -485,93 +681,128 @@ class CustomMessage : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ CustomMessage(CustomMessage&& from) noexcept
+ : CustomMessage() {
+ *this = ::std::move(from);
+ }
+ inline CustomMessage& operator=(CustomMessage&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const CustomMessage& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CustomMessage* internal_default_instance() {
+ return reinterpret_cast<const CustomMessage*>(
+ &_CustomMessage_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 4;
+
void Swap(CustomMessage* other);
+ friend void swap(CustomMessage& a, CustomMessage& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- CustomMessage* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline CustomMessage* New() const final {
+ return CreateMaybeMessage<CustomMessage>(NULL);
+ }
+
+ CustomMessage* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<CustomMessage>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const CustomMessage& from);
void MergeFrom(const CustomMessage& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(CustomMessage* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 type = 1;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 1;
- inline ::google::protobuf::int32 type() const;
- inline void set_type(::google::protobuf::int32 value);
-
// optional bytes message = 2;
- inline bool has_message() const;
- inline void clear_message();
+ bool has_message() const;
+ void clear_message();
static const int kMessageFieldNumber = 2;
- inline const ::std::string& message() const;
- inline void set_message(const ::std::string& value);
- inline void set_message(const char* value);
- inline void set_message(const void* value, size_t size);
- inline ::std::string* mutable_message();
- inline ::std::string* release_message();
- inline void set_allocated_message(::std::string* message);
+ const ::std::string& message() const;
+ void set_message(const ::std::string& value);
+ #if LANG_CXX11
+ void set_message(::std::string&& value);
+ #endif
+ void set_message(const char* value);
+ void set_message(const void* value, size_t size);
+ ::std::string* mutable_message();
+ ::std::string* release_message();
+ void set_allocated_message(::std::string* message);
+
+ // optional int32 type = 1;
+ bool has_type() const;
+ void clear_type();
+ static const int kTypeFieldNumber = 1;
+ ::google::protobuf::int32 type() const;
+ void set_type(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.bit.control.CustomMessage)
private:
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_message();
- inline void clear_has_message();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* message_;
+ void set_has_type();
+ void clear_has_type();
+ void set_has_message();
+ void clear_has_message();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr message_;
::google::protobuf::int32 type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static CustomMessage* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class PlanFragment : public ::google::protobuf::Message {
+class PlanFragment : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.PlanFragment) */ {
public:
PlanFragment();
virtual ~PlanFragment();
@@ -582,241 +813,294 @@ class PlanFragment : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ PlanFragment(PlanFragment&& from) noexcept
+ : PlanFragment() {
+ *this = ::std::move(from);
+ }
+ inline PlanFragment& operator=(PlanFragment&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const PlanFragment& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const PlanFragment* internal_default_instance() {
+ return reinterpret_cast<const PlanFragment*>(
+ &_PlanFragment_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 5;
+
void Swap(PlanFragment* other);
+ friend void swap(PlanFragment& a, PlanFragment& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- PlanFragment* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline PlanFragment* New() const final {
+ return CreateMaybeMessage<PlanFragment>(NULL);
+ }
+
+ PlanFragment* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<PlanFragment>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const PlanFragment& from);
void MergeFrom(const PlanFragment& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(PlanFragment* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated .exec.bit.control.Collector collector = 17;
+ int collector_size() const;
+ void clear_collector();
+ static const int kCollectorFieldNumber = 17;
+ ::exec::bit::control::Collector* mutable_collector(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >*
+ mutable_collector();
+ const ::exec::bit::control::Collector& collector(int index) const;
+ ::exec::bit::control::Collector* add_collector();
+ const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >&
+ collector() const;
+
+ // optional string fragment_json = 8;
+ bool has_fragment_json() const;
+ void clear_fragment_json();
+ static const int kFragmentJsonFieldNumber = 8;
+ const ::std::string& fragment_json() const;
+ void set_fragment_json(const ::std::string& value);
+ #if LANG_CXX11
+ void set_fragment_json(::std::string&& value);
+ #endif
+ void set_fragment_json(const char* value);
+ void set_fragment_json(const char* value, size_t size);
+ ::std::string* mutable_fragment_json();
+ ::std::string* release_fragment_json();
+ void set_allocated_fragment_json(::std::string* fragment_json);
+
+ // optional string options_json = 15;
+ bool has_options_json() const;
+ void clear_options_json();
+ static const int kOptionsJsonFieldNumber = 15;
+ const ::std::string& options_json() const;
+ void set_options_json(const ::std::string& value);
+ #if LANG_CXX11
+ void set_options_json(::std::string&& value);
+ #endif
+ void set_options_json(const char* value);
+ void set_options_json(const char* value, size_t size);
+ ::std::string* mutable_options_json();
+ ::std::string* release_options_json();
+ void set_allocated_options_json(::std::string* options_json);
+
// optional .exec.bit.FragmentHandle handle = 1;
- inline bool has_handle() const;
- inline void clear_handle();
+ bool has_handle() const;
+ void clear_handle();
static const int kHandleFieldNumber = 1;
- inline const ::exec::bit::FragmentHandle& handle() const;
- inline ::exec::bit::FragmentHandle* mutable_handle();
- inline ::exec::bit::FragmentHandle* release_handle();
- inline void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_handle() const;
+ public:
+ const ::exec::bit::FragmentHandle& handle() const;
+ ::exec::bit::FragmentHandle* release_handle();
+ ::exec::bit::FragmentHandle* mutable_handle();
+ void set_allocated_handle(::exec::bit::FragmentHandle* handle);
+
+ // optional .exec.DrillbitEndpoint assignment = 10;
+ bool has_assignment() const;
+ void clear_assignment();
+ static const int kAssignmentFieldNumber = 10;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_assignment() const;
+ public:
+ const ::exec::DrillbitEndpoint& assignment() const;
+ ::exec::DrillbitEndpoint* release_assignment();
+ ::exec::DrillbitEndpoint* mutable_assignment();
+ void set_allocated_assignment(::exec::DrillbitEndpoint* assignment);
+
+ // optional .exec.DrillbitEndpoint foreman = 11;
+ bool has_foreman() const;
+ void clear_foreman();
+ static const int kForemanFieldNumber = 11;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_foreman() const;
+ public:
+ const ::exec::DrillbitEndpoint& foreman() const;
+ ::exec::DrillbitEndpoint* release_foreman();
+ ::exec::DrillbitEndpoint* mutable_foreman();
+ void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+
+ // optional .exec.shared.UserCredentials credentials = 14;
+ bool has_credentials() const;
+ void clear_credentials();
+ static const int kCredentialsFieldNumber = 14;
+ private:
+ const ::exec::shared::UserCredentials& _internal_credentials() const;
+ public:
+ const ::exec::shared::UserCredentials& credentials() const;
+ ::exec::shared::UserCredentials* release_credentials();
+ ::exec::shared::UserCredentials* mutable_credentials();
+ void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
+
+ // optional .exec.bit.control.QueryContextInformation context = 16;
+ bool has_context() const;
+ void clear_context();
+ static const int kContextFieldNumber = 16;
+ private:
+ const ::exec::bit::control::QueryContextInformation& _internal_context() const;
+ public:
+ const ::exec::bit::control::QueryContextInformation& context() const;
+ ::exec::bit::control::QueryContextInformation* release_context();
+ ::exec::bit::control::QueryContextInformation* mutable_context();
+ void set_allocated_context(::exec::bit::control::QueryContextInformation* context);
// optional float network_cost = 4;
- inline bool has_network_cost() const;
- inline void clear_network_cost();
+ bool has_network_cost() const;
+ void clear_network_cost();
static const int kNetworkCostFieldNumber = 4;
- inline float network_cost() const;
- inline void set_network_cost(float value);
+ float network_cost() const;
+ void set_network_cost(float value);
// optional float cpu_cost = 5;
- inline bool has_cpu_cost() const;
- inline void clear_cpu_cost();
+ bool has_cpu_cost() const;
+ void clear_cpu_cost();
static const int kCpuCostFieldNumber = 5;
- inline float cpu_cost() const;
- inline void set_cpu_cost(float value);
+ float cpu_cost() const;
+ void set_cpu_cost(float value);
// optional float disk_cost = 6;
- inline bool has_disk_cost() const;
- inline void clear_disk_cost();
+ bool has_disk_cost() const;
+ void clear_disk_cost();
static const int kDiskCostFieldNumber = 6;
- inline float disk_cost() const;
- inline void set_disk_cost(float value);
+ float disk_cost() const;
+ void set_disk_cost(float value);
// optional float memory_cost = 7;
- inline bool has_memory_cost() const;
- inline void clear_memory_cost();
+ bool has_memory_cost() const;
+ void clear_memory_cost();
static const int kMemoryCostFieldNumber = 7;
- inline float memory_cost() const;
- inline void set_memory_cost(float value);
-
- // optional string fragment_json = 8;
- inline bool has_fragment_json() const;
- inline void clear_fragment_json();
- static const int kFragmentJsonFieldNumber = 8;
- inline const ::std::string& fragment_json() const;
- inline void set_fragment_json(const ::std::string& value);
- inline void set_fragment_json(const char* value);
- inline void set_fragment_json(const char* value, size_t size);
- inline ::std::string* mutable_fragment_json();
- inline ::std::string* release_fragment_json();
- inline void set_allocated_fragment_json(::std::string* fragment_json);
+ float memory_cost() const;
+ void set_memory_cost(float value);
// optional bool leaf_fragment = 9;
- inline bool has_leaf_fragment() const;
- inline void clear_leaf_fragment();
+ bool has_leaf_fragment() const;
+ void clear_leaf_fragment();
static const int kLeafFragmentFieldNumber = 9;
- inline bool leaf_fragment() const;
- inline void set_leaf_fragment(bool value);
-
- // optional .exec.DrillbitEndpoint assignment = 10;
- inline bool has_assignment() const;
- inline void clear_assignment();
- static const int kAssignmentFieldNumber = 10;
- inline const ::exec::DrillbitEndpoint& assignment() const;
- inline ::exec::DrillbitEndpoint* mutable_assignment();
- inline ::exec::DrillbitEndpoint* release_assignment();
- inline void set_allocated_assignment(::exec::DrillbitEndpoint* assignment);
-
- // optional .exec.DrillbitEndpoint foreman = 11;
- inline bool has_foreman() const;
- inline void clear_foreman();
- static const int kForemanFieldNumber = 11;
- inline const ::exec::DrillbitEndpoint& foreman() const;
- inline ::exec::DrillbitEndpoint* mutable_foreman();
- inline ::exec::DrillbitEndpoint* release_foreman();
- inline void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+ bool leaf_fragment() const;
+ void set_leaf_fragment(bool value);
// optional int64 mem_initial = 12 [default = 20000000];
- inline bool has_mem_initial() const;
- inline void clear_mem_initial();
+ bool has_mem_initial() const;
+ void clear_mem_initial();
static const int kMemInitialFieldNumber = 12;
- inline ::google::protobuf::int64 mem_initial() const;
- inline void set_mem_initial(::google::protobuf::int64 value);
+ ::google::protobuf::int64 mem_initial() const;
+ void set_mem_initial(::google::protobuf::int64 value);
// optional int64 mem_max = 13 [default = 2000000000];
- inline bool has_mem_max() const;
- inline void clear_mem_max();
+ bool has_mem_max() const;
+ void clear_mem_max();
static const int kMemMaxFieldNumber = 13;
- inline ::google::protobuf::int64 mem_max() const;
- inline void set_mem_max(::google::protobuf::int64 value);
-
- // optional .exec.shared.UserCredentials credentials = 14;
- inline bool has_credentials() const;
- inline void clear_credentials();
- static const int kCredentialsFieldNumber = 14;
- inline const ::exec::shared::UserCredentials& credentials() const;
- inline ::exec::shared::UserCredentials* mutable_credentials();
- inline ::exec::shared::UserCredentials* release_credentials();
- inline void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
-
- // optional string options_json = 15;
- inline bool has_options_json() const;
- inline void clear_options_json();
- static const int kOptionsJsonFieldNumber = 15;
- inline const ::std::string& options_json() const;
- inline void set_options_json(const ::std::string& value);
- inline void set_options_json(const char* value);
- inline void set_options_json(const char* value, size_t size);
- inline ::std::string* mutable_options_json();
- inline ::std::string* release_options_json();
- inline void set_allocated_options_json(::std::string* options_json);
-
- // optional .exec.bit.control.QueryContextInformation context = 16;
- inline bool has_context() const;
- inline void clear_context();
- static const int kContextFieldNumber = 16;
- inline const ::exec::bit::control::QueryContextInformation& context() const;
- inline ::exec::bit::control::QueryContextInformation* mutable_context();
- inline ::exec::bit::control::QueryContextInformation* release_context();
- inline void set_allocated_context(::exec::bit::control::QueryContextInformation* context);
-
- // repeated .exec.bit.control.Collector collector = 17;
- inline int collector_size() const;
- inline void clear_collector();
- static const int kCollectorFieldNumber = 17;
- inline const ::exec::bit::control::Collector& collector(int index) const;
- inline ::exec::bit::control::Collector* mutable_collector(int index);
- inline ::exec::bit::control::Collector* add_collector();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >&
- collector() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >*
- mutable_collector();
+ ::google::protobuf::int64 mem_max() const;
+ void set_mem_max(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.bit.control.PlanFragment)
private:
- inline void set_has_handle();
- inline void clear_has_handle();
- inline void set_has_network_cost();
- inline void clear_has_network_cost();
- inline void set_has_cpu_cost();
- inline void clear_has_cpu_cost();
- inline void set_has_disk_cost();
- inline void clear_has_disk_cost();
- inline void set_has_memory_cost();
- inline void clear_has_memory_cost();
- inline void set_has_fragment_json();
- inline void clear_has_fragment_json();
- inline void set_has_leaf_fragment();
- inline void clear_has_leaf_fragment();
- inline void set_has_assignment();
- inline void clear_has_assignment();
- inline void set_has_foreman();
- inline void clear_has_foreman();
- inline void set_has_mem_initial();
- inline void clear_has_mem_initial();
- inline void set_has_mem_max();
- inline void clear_has_mem_max();
- inline void set_has_credentials();
- inline void clear_has_credentials();
- inline void set_has_options_json();
- inline void clear_has_options_json();
- inline void set_has_context();
- inline void clear_has_context();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_handle();
+ void clear_has_handle();
+ void set_has_network_cost();
+ void clear_has_network_cost();
+ void set_has_cpu_cost();
+ void clear_has_cpu_cost();
+ void set_has_disk_cost();
+ void clear_has_disk_cost();
+ void set_has_memory_cost();
+ void clear_has_memory_cost();
+ void set_has_fragment_json();
+ void clear_has_fragment_json();
+ void set_has_leaf_fragment();
+ void clear_has_leaf_fragment();
+ void set_has_assignment();
+ void clear_has_assignment();
+ void set_has_foreman();
+ void clear_has_foreman();
+ void set_has_mem_initial();
+ void clear_has_mem_initial();
+ void set_has_mem_max();
+ void clear_has_mem_max();
+ void set_has_credentials();
+ void clear_has_credentials();
+ void set_has_options_json();
+ void clear_has_options_json();
+ void set_has_context();
+ void clear_has_context();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector > collector_;
+ ::google::protobuf::internal::ArenaStringPtr fragment_json_;
+ ::google::protobuf::internal::ArenaStringPtr options_json_;
::exec::bit::FragmentHandle* handle_;
+ ::exec::DrillbitEndpoint* assignment_;
+ ::exec::DrillbitEndpoint* foreman_;
+ ::exec::shared::UserCredentials* credentials_;
+ ::exec::bit::control::QueryContextInformation* context_;
float network_cost_;
float cpu_cost_;
float disk_cost_;
float memory_cost_;
- ::std::string* fragment_json_;
- ::exec::DrillbitEndpoint* assignment_;
- ::exec::DrillbitEndpoint* foreman_;
+ bool leaf_fragment_;
::google::protobuf::int64 mem_initial_;
::google::protobuf::int64 mem_max_;
- ::exec::shared::UserCredentials* credentials_;
- ::std::string* options_json_;
- ::exec::bit::control::QueryContextInformation* context_;
- ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector > collector_;
- bool leaf_fragment_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(15 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static PlanFragment* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class Collector : public ::google::protobuf::Message {
+class Collector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.Collector) */ {
public:
Collector();
virtual ~Collector();
@@ -827,112 +1111,144 @@ class Collector : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Collector(Collector&& from) noexcept
+ : Collector() {
+ *this = ::std::move(from);
+ }
+ inline Collector& operator=(Collector&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Collector& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Collector* internal_default_instance() {
+ return reinterpret_cast<const Collector*>(
+ &_Collector_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 6;
+
void Swap(Collector* other);
+ friend void swap(Collector& a, Collector& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Collector* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Collector* New() const final {
+ return CreateMaybeMessage<Collector>(NULL);
+ }
+
+ Collector* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Collector>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Collector& from);
void MergeFrom(const Collector& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Collector* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 opposite_major_fragment_id = 1;
- inline bool has_opposite_major_fragment_id() const;
- inline void clear_opposite_major_fragment_id();
- static const int kOppositeMajorFragmentIdFieldNumber = 1;
- inline ::google::protobuf::int32 opposite_major_fragment_id() const;
- inline void set_opposite_major_fragment_id(::google::protobuf::int32 value);
-
// repeated int32 incoming_minor_fragment = 2 [packed = true];
- inline int incoming_minor_fragment_size() const;
- inline void clear_incoming_minor_fragment();
+ int incoming_minor_fragment_size() const;
+ void clear_incoming_minor_fragment();
static const int kIncomingMinorFragmentFieldNumber = 2;
- inline ::google::protobuf::int32 incoming_minor_fragment(int index) const;
- inline void set_incoming_minor_fragment(int index, ::google::protobuf::int32 value);
- inline void add_incoming_minor_fragment(::google::protobuf::int32 value);
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ ::google::protobuf::int32 incoming_minor_fragment(int index) const;
+ void set_incoming_minor_fragment(int index, ::google::protobuf::int32 value);
+ void add_incoming_minor_fragment(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
incoming_minor_fragment() const;
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_incoming_minor_fragment();
+ // optional int32 opposite_major_fragment_id = 1;
+ bool has_opposite_major_fragment_id() const;
+ void clear_opposite_major_fragment_id();
+ static const int kOppositeMajorFragmentIdFieldNumber = 1;
+ ::google::protobuf::int32 opposite_major_fragment_id() const;
+ void set_opposite_major_fragment_id(::google::protobuf::int32 value);
+
// optional bool supports_out_of_order = 3;
- inline bool has_supports_out_of_order() const;
- inline void clear_supports_out_of_order();
+ bool has_supports_out_of_order() const;
+ void clear_supports_out_of_order();
static const int kSupportsOutOfOrderFieldNumber = 3;
- inline bool supports_out_of_order() const;
- inline void set_supports_out_of_order(bool value);
+ bool supports_out_of_order() const;
+ void set_supports_out_of_order(bool value);
// optional bool is_spooling = 4;
- inline bool has_is_spooling() const;
- inline void clear_is_spooling();
+ bool has_is_spooling() const;
+ void clear_is_spooling();
static const int kIsSpoolingFieldNumber = 4;
- inline bool is_spooling() const;
- inline void set_is_spooling(bool value);
+ bool is_spooling() const;
+ void set_is_spooling(bool value);
// @@protoc_insertion_point(class_scope:exec.bit.control.Collector)
private:
- inline void set_has_opposite_major_fragment_id();
- inline void clear_has_opposite_major_fragment_id();
- inline void set_has_supports_out_of_order();
- inline void clear_has_supports_out_of_order();
- inline void set_has_is_spooling();
- inline void clear_has_is_spooling();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_opposite_major_fragment_id();
+ void clear_has_opposite_major_fragment_id();
+ void set_has_supports_out_of_order();
+ void clear_has_supports_out_of_order();
+ void set_has_is_spooling();
+ void clear_has_is_spooling();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > incoming_minor_fragment_;
mutable int _incoming_minor_fragment_cached_byte_size_;
::google::protobuf::int32 opposite_major_fragment_id_;
bool supports_out_of_order_;
bool is_spooling_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static Collector* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryContextInformation : public ::google::protobuf::Message {
+class QueryContextInformation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.QueryContextInformation) */ {
public:
QueryContextInformation();
virtual ~QueryContextInformation();
@@ -943,118 +1259,156 @@ class QueryContextInformation : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryContextInformation(QueryContextInformation&& from) noexcept
+ : QueryContextInformation() {
+ *this = ::std::move(from);
+ }
+ inline QueryContextInformation& operator=(QueryContextInformation&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryContextInformation& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryContextInformation* internal_default_instance() {
+ return reinterpret_cast<const QueryContextInformation*>(
+ &_QueryContextInformation_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 7;
+
void Swap(QueryContextInformation* other);
+ friend void swap(QueryContextInformation& a, QueryContextInformation& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryContextInformation* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryContextInformation* New() const final {
+ return CreateMaybeMessage<QueryContextInformation>(NULL);
+ }
+
+ QueryContextInformation* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryContextInformation>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryContextInformation& from);
void MergeFrom(const QueryContextInformation& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryContextInformation* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int64 query_start_time = 1;
- inline bool has_query_start_time() const;
- inline void clear_query_start_time();
- static const int kQueryStartTimeFieldNumber = 1;
- inline ::google::protobuf::int64 query_start_time() const;
- inline void set_query_start_time(::google::protobuf::int64 value);
-
- // optional int32 time_zone = 2;
- inline bool has_time_zone() const;
- inline void clear_time_zone();
- static const int kTimeZoneFieldNumber = 2;
- inline ::google::protobuf::int32 time_zone() const;
- inline void set_time_zone(::google::protobuf::int32 value);
-
// optional string default_schema_name = 3;
- inline bool has_default_schema_name() const;
- inline void clear_default_schema_name();
+ bool has_default_schema_name() const;
+ void clear_default_schema_name();
static const int kDefaultSchemaNameFieldNumber = 3;
- inline const ::std::string& default_schema_name() const;
- inline void set_default_schema_name(const ::std::string& value);
- inline void set_default_schema_name(const char* value);
- inline void set_default_schema_name(const char* value, size_t size);
- inline ::std::string* mutable_default_schema_name();
- inline ::std::string* release_default_schema_name();
- inline void set_allocated_default_schema_name(::std::string* default_schema_name);
+ const ::std::string& default_schema_name() const;
+ void set_default_schema_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_default_schema_name(::std::string&& value);
+ #endif
+ void set_default_schema_name(const char* value);
+ void set_default_schema_name(const char* value, size_t size);
+ ::std::string* mutable_default_schema_name();
+ ::std::string* release_default_schema_name();
+ void set_allocated_default_schema_name(::std::string* default_schema_name);
// optional string session_id = 4;
- inline bool has_session_id() const;
- inline void clear_session_id();
+ bool has_session_id() const;
+ void clear_session_id();
static const int kSessionIdFieldNumber = 4;
- inline const ::std::string& session_id() const;
- inline void set_session_id(const ::std::string& value);
- inline void set_session_id(const char* value);
- inline void set_session_id(const char* value, size_t size);
- inline ::std::string* mutable_session_id();
- inline ::std::string* release_session_id();
- inline void set_allocated_session_id(::std::string* session_id);
+ const ::std::string& session_id() const;
+ void set_session_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_session_id(::std::string&& value);
+ #endif
+ void set_session_id(const char* value);
+ void set_session_id(const char* value, size_t size);
+ ::std::string* mutable_session_id();
+ ::std::string* release_session_id();
+ void set_allocated_session_id(::std::string* session_id);
- // @@protoc_insertion_point(class_scope:exec.bit.control.QueryContextInformation)
- private:
- inline void set_has_query_start_time();
- inline void clear_has_query_start_time();
- inline void set_has_time_zone();
- inline void clear_has_time_zone();
- inline void set_has_default_schema_name();
- inline void clear_has_default_schema_name();
- inline void set_has_session_id();
- inline void clear_has_session_id();
+ // optional int64 query_start_time = 1;
+ bool has_query_start_time() const;
+ void clear_query_start_time();
+ static const int kQueryStartTimeFieldNumber = 1;
+ ::google::protobuf::int64 query_start_time() const;
+ void set_query_start_time(::google::protobuf::int64 value);
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ // optional int32 time_zone = 2;
+ bool has_time_zone() const;
+ void clear_time_zone();
+ static const int kTimeZoneFieldNumber = 2;
+ ::google::protobuf::int32 time_zone() const;
+ void set_time_zone(::google::protobuf::int32 value);
+ // @@protoc_insertion_point(class_scope:exec.bit.control.QueryContextInformation)
+ private:
+ void set_has_query_start_time();
+ void clear_has_query_start_time();
+ void set_has_time_zone();
+ void clear_has_time_zone();
+ void set_has_default_schema_name();
+ void clear_has_default_schema_name();
+ void set_has_session_id();
+ void clear_has_session_id();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr default_schema_name_;
+ ::google::protobuf::internal::ArenaStringPtr session_id_;
::google::protobuf::int64 query_start_time_;
- ::std::string* default_schema_name_;
- ::std::string* session_id_;
::google::protobuf::int32 time_zone_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static QueryContextInformation* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class WorkQueueStatus : public ::google::protobuf::Message {
+class WorkQueueStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.WorkQueueStatus) */ {
public:
WorkQueueStatus();
virtual ~WorkQueueStatus();
@@ -1065,100 +1419,135 @@ class WorkQueueStatus : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ WorkQueueStatus(WorkQueueStatus&& from) noexcept
+ : WorkQueueStatus() {
+ *this = ::std::move(from);
+ }
+ inline WorkQueueStatus& operator=(WorkQueueStatus&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const WorkQueueStatus& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const WorkQueueStatus* internal_default_instance() {
+ return reinterpret_cast<const WorkQueueStatus*>(
+ &_WorkQueueStatus_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 8;
+
void Swap(WorkQueueStatus* other);
+ friend void swap(WorkQueueStatus& a, WorkQueueStatus& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- WorkQueueStatus* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline WorkQueueStatus* New() const final {
+ return CreateMaybeMessage<WorkQueueStatus>(NULL);
+ }
+
+ WorkQueueStatus* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<WorkQueueStatus>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const WorkQueueStatus& from);
void MergeFrom(const WorkQueueStatus& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(WorkQueueStatus* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.DrillbitEndpoint endpoint = 1;
- inline bool has_endpoint() const;
- inline void clear_endpoint();
+ bool has_endpoint() const;
+ void clear_endpoint();
static const int kEndpointFieldNumber = 1;
- inline const ::exec::DrillbitEndpoint& endpoint() const;
- inline ::exec::DrillbitEndpoint* mutable_endpoint();
- inline ::exec::DrillbitEndpoint* release_endpoint();
- inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
-
- // optional int32 queue_length = 2;
- inline bool has_queue_length() const;
- inline void clear_queue_length();
- static const int kQueueLengthFieldNumber = 2;
- inline ::google::protobuf::int32 queue_length() const;
- inline void set_queue_length(::google::protobuf::int32 value);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ public:
+ const ::exec::DrillbitEndpoint& endpoint() const;
+ ::exec::DrillbitEndpoint* release_endpoint();
+ ::exec::DrillbitEndpoint* mutable_endpoint();
+ void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
// optional int64 report_time = 3;
- inline bool has_report_time() const;
- inline void clear_report_time();
+ bool has_report_time() const;
+ void clear_report_time();
static const int kReportTimeFieldNumber = 3;
- inline ::google::protobuf::int64 report_time() const;
- inline void set_report_time(::google::protobuf::int64 value);
+ ::google::protobuf::int64 report_time() const;
+ void set_report_time(::google::protobuf::int64 value);
+
+ // optional int32 queue_length = 2;
+ bool has_queue_length() const;
+ void clear_queue_length();
+ static const int kQueueLengthFieldNumber = 2;
+ ::google::protobuf::int32 queue_length() const;
+ void set_queue_length(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.bit.control.WorkQueueStatus)
private:
- inline void set_has_endpoint();
- inline void clear_has_endpoint();
- inline void set_has_queue_length();
- inline void clear_has_queue_length();
- inline void set_has_report_time();
- inline void clear_has_report_time();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_endpoint();
+ void clear_has_endpoint();
+ void set_has_queue_length();
+ void clear_has_queue_length();
+ void set_has_report_time();
+ void clear_has_report_time();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::DrillbitEndpoint* endpoint_;
::google::protobuf::int64 report_time_;
::google::protobuf::int32 queue_length_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static WorkQueueStatus* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class FinishedReceiver : public ::google::protobuf::Message {
+class FinishedReceiver : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.control.FinishedReceiver) */ {
public:
FinishedReceiver();
virtual ~FinishedReceiver();
@@ -1169,177 +1558,239 @@ class FinishedReceiver : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ FinishedReceiver(FinishedReceiver&& from) noexcept
+ : FinishedReceiver() {
+ *this = ::std::move(from);
+ }
+ inline FinishedReceiver& operator=(FinishedReceiver&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const FinishedReceiver& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FinishedReceiver* internal_default_instance() {
+ return reinterpret_cast<const FinishedReceiver*>(
+ &_FinishedReceiver_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 9;
+
void Swap(FinishedReceiver* other);
+ friend void swap(FinishedReceiver& a, FinishedReceiver& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- FinishedReceiver* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline FinishedReceiver* New() const final {
+ return CreateMaybeMessage<FinishedReceiver>(NULL);
+ }
+
+ FinishedReceiver* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<FinishedReceiver>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const FinishedReceiver& from);
void MergeFrom(const FinishedReceiver& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(FinishedReceiver* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.bit.FragmentHandle receiver = 1;
- inline bool has_receiver() const;
- inline void clear_receiver();
+ bool has_receiver() const;
+ void clear_receiver();
static const int kReceiverFieldNumber = 1;
- inline const ::exec::bit::FragmentHandle& receiver() const;
- inline ::exec::bit::FragmentHandle* mutable_receiver();
- inline ::exec::bit::FragmentHandle* release_receiver();
- inline void set_allocated_receiver(::exec::bit::FragmentHandle* receiver);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_receiver() const;
+ public:
+ const ::exec::bit::FragmentHandle& receiver() const;
+ ::exec::bit::FragmentHandle* release_receiver();
+ ::exec::bit::FragmentHandle* mutable_receiver();
+ void set_allocated_receiver(::exec::bit::FragmentHandle* receiver);
// optional .exec.bit.FragmentHandle sender = 2;
- inline bool has_sender() const;
- inline void clear_sender();
+ bool has_sender() const;
+ void clear_sender();
static const int kSenderFieldNumber = 2;
- inline const ::exec::bit::FragmentHandle& sender() const;
- inline ::exec::bit::FragmentHandle* mutable_sender();
- inline ::exec::bit::FragmentHandle* release_sender();
- inline void set_allocated_sender(::exec::bit::FragmentHandle* sender);
+ private:
+ const ::exec::bit::FragmentHandle& _internal_sender() const;
+ public:
+ const ::exec::bit::FragmentHandle& sender() const;
+ ::exec::bit::FragmentHandle* release_sender();
+ ::exec::bit::FragmentHandle* mutable_sender();
+ void set_allocated_sender(::exec::bit::FragmentHandle* sender);
// @@protoc_insertion_point(class_scope:exec.bit.control.FinishedReceiver)
private:
- inline void set_has_receiver();
- inline void clear_has_receiver();
- inline void set_has_sender();
- inline void clear_has_sender();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_receiver();
+ void clear_has_receiver();
+ void set_has_sender();
+ void clear_has_sender();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::bit::FragmentHandle* receiver_;
::exec::bit::FragmentHandle* sender_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_BitControl_2eproto();
- friend void protobuf_AssignDesc_BitControl_2eproto();
- friend void protobuf_ShutdownFile_BitControl_2eproto();
-
- void InitAsDefaultInstance();
- static FinishedReceiver* default_instance_;
+ friend struct ::protobuf_BitControl_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// BitControlHandshake
// optional int32 rpc_version = 1;
inline bool BitControlHandshake::has_rpc_version() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void BitControlHandshake::set_has_rpc_version() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void BitControlHandshake::clear_has_rpc_version() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void BitControlHandshake::clear_rpc_version() {
rpc_version_ = 0;
clear_has_rpc_version();
}
inline ::google::protobuf::int32 BitControlHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.rpc_version)
return rpc_version_;
}
inline void BitControlHandshake::set_rpc_version(::google::protobuf::int32 value) {
set_has_rpc_version();
rpc_version_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.BitControlHandshake.rpc_version)
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
inline bool BitControlHandshake::has_channel() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void BitControlHandshake::set_has_channel() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void BitControlHandshake::clear_has_channel() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void BitControlHandshake::clear_channel() {
channel_ = 0;
clear_has_channel();
}
inline ::exec::shared::RpcChannel BitControlHandshake::channel() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.channel)
return static_cast< ::exec::shared::RpcChannel >(channel_);
}
inline void BitControlHandshake::set_channel(::exec::shared::RpcChannel value) {
assert(::exec::shared::RpcChannel_IsValid(value));
set_has_channel();
channel_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.BitControlHandshake.channel)
}
// optional .exec.DrillbitEndpoint endpoint = 3;
inline bool BitControlHandshake::has_endpoint() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void BitControlHandshake::set_has_endpoint() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void BitControlHandshake::clear_has_endpoint() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void BitControlHandshake::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- clear_has_endpoint();
+inline const ::exec::DrillbitEndpoint& BitControlHandshake::_internal_endpoint() const {
+ return *endpoint_;
}
inline const ::exec::DrillbitEndpoint& BitControlHandshake::endpoint() const {
- return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
-}
-inline ::exec::DrillbitEndpoint* BitControlHandshake::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
- return endpoint_;
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.endpoint)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* BitControlHandshake::release_endpoint() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.BitControlHandshake.endpoint)
clear_has_endpoint();
::exec::DrillbitEndpoint* temp = endpoint_;
endpoint_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* BitControlHandshake::mutable_endpoint() {
+ set_has_endpoint();
+ if (endpoint_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ endpoint_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.BitControlHandshake.endpoint)
+ return endpoint_;
+}
inline void BitControlHandshake::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- delete endpoint_;
- endpoint_ = endpoint;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(endpoint_);
+ }
if (endpoint) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, endpoint, submessage_arena);
+ }
set_has_endpoint();
} else {
clear_has_endpoint();
}
+ endpoint_ = endpoint;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.BitControlHandshake.endpoint)
}
// repeated string authenticationMechanisms = 4;
@@ -1350,39 +1801,64 @@ inline void BitControlHandshake::clear_authenticationmechanisms() {
authenticationmechanisms_.Clear();
}
inline const ::std::string& BitControlHandshake::authenticationmechanisms(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return authenticationmechanisms_.Get(index);
}
inline ::std::string* BitControlHandshake::mutable_authenticationmechanisms(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return authenticationmechanisms_.Mutable(index);
}
inline void BitControlHandshake::set_authenticationmechanisms(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.control.BitControlHandshake.authenticationMechanisms)
authenticationmechanisms_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void BitControlHandshake::set_authenticationmechanisms(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.control.BitControlHandshake.authenticationMechanisms)
+ authenticationmechanisms_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void BitControlHandshake::set_authenticationmechanisms(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
inline void BitControlHandshake::set_authenticationmechanisms(int index, const char* value, size_t size) {
authenticationmechanisms_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
inline ::std::string* BitControlHandshake::add_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_add_mutable:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return authenticationmechanisms_.Add();
}
inline void BitControlHandshake::add_authenticationmechanisms(const ::std::string& value) {
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.bit.control.BitControlHandshake.authenticationMechanisms)
+}
+#if LANG_CXX11
+inline void BitControlHandshake::add_authenticationmechanisms(::std::string&& value) {
+ authenticationmechanisms_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
+#endif
inline void BitControlHandshake::add_authenticationmechanisms(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
inline void BitControlHandshake::add_authenticationmechanisms(const char* value, size_t size) {
authenticationmechanisms_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.bit.control.BitControlHandshake.authenticationMechanisms)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
BitControlHandshake::authenticationmechanisms() const {
+ // @@protoc_insertion_point(field_list:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return authenticationmechanisms_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
BitControlHandshake::mutable_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.control.BitControlHandshake.authenticationMechanisms)
return &authenticationmechanisms_;
}
@@ -1397,23 +1873,28 @@ inline int BitStatus::fragment_status_size() const {
inline void BitStatus::clear_fragment_status() {
fragment_status_.Clear();
}
-inline const ::exec::bit::control::FragmentStatus& BitStatus::fragment_status(int index) const {
- return fragment_status_.Get(index);
-}
inline ::exec::bit::control::FragmentStatus* BitStatus::mutable_fragment_status(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.BitStatus.fragment_status)
return fragment_status_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
+BitStatus::mutable_fragment_status() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.control.BitStatus.fragment_status)
+ return &fragment_status_;
+}
+inline const ::exec::bit::control::FragmentStatus& BitStatus::fragment_status(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.BitStatus.fragment_status)
+ return fragment_status_.Get(index);
+}
inline ::exec::bit::control::FragmentStatus* BitStatus::add_fragment_status() {
+ // @@protoc_insertion_point(field_add:exec.bit.control.BitStatus.fragment_status)
return fragment_status_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >&
BitStatus::fragment_status() const {
+ // @@protoc_insertion_point(field_list:exec.bit.control.BitStatus.fragment_status)
return fragment_status_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::FragmentStatus >*
-BitStatus::mutable_fragment_status() {
- return &fragment_status_;
-}
// -------------------------------------------------------------------
@@ -1429,32 +1910,48 @@ inline void FragmentStatus::set_has_profile() {
inline void FragmentStatus::clear_has_profile() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void FragmentStatus::clear_profile() {
- if (profile_ != NULL) profile_->::exec::shared::MinorFragmentProfile::Clear();
- clear_has_profile();
+inline const ::exec::shared::MinorFragmentProfile& FragmentStatus::_internal_profile() const {
+ return *profile_;
}
inline const ::exec::shared::MinorFragmentProfile& FragmentStatus::profile() const {
- return profile_ != NULL ? *profile_ : *default_instance_->profile_;
-}
-inline ::exec::shared::MinorFragmentProfile* FragmentStatus::mutable_profile() {
- set_has_profile();
- if (profile_ == NULL) profile_ = new ::exec::shared::MinorFragmentProfile;
- return profile_;
+ const ::exec::shared::MinorFragmentProfile* p = profile_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.FragmentStatus.profile)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::MinorFragmentProfile*>(
+ &::exec::shared::_MinorFragmentProfile_default_instance_);
}
inline ::exec::shared::MinorFragmentProfile* FragmentStatus::release_profile() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.FragmentStatus.profile)
clear_has_profile();
::exec::shared::MinorFragmentProfile* temp = profile_;
profile_ = NULL;
return temp;
}
+inline ::exec::shared::MinorFragmentProfile* FragmentStatus::mutable_profile() {
+ set_has_profile();
+ if (profile_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::MinorFragmentProfile>(GetArenaNoVirtual());
+ profile_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.profile)
+ return profile_;
+}
inline void FragmentStatus::set_allocated_profile(::exec::shared::MinorFragmentProfile* profile) {
- delete profile_;
- profile_ = profile;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(profile_);
+ }
if (profile) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ profile = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, profile, submessage_arena);
+ }
set_has_profile();
} else {
clear_has_profile();
}
+ profile_ = profile;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.FragmentStatus.profile)
}
// optional .exec.bit.FragmentHandle handle = 2;
@@ -1467,32 +1964,48 @@ inline void FragmentStatus::set_has_handle() {
inline void FragmentStatus::clear_has_handle() {
_has_bits_[0] &= ~0x00000002u;
}
-inline void FragmentStatus::clear_handle() {
- if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
- clear_has_handle();
+inline const ::exec::bit::FragmentHandle& FragmentStatus::_internal_handle() const {
+ return *handle_;
}
inline const ::exec::bit::FragmentHandle& FragmentStatus::handle() const {
- return handle_ != NULL ? *handle_ : *default_instance_->handle_;
-}
-inline ::exec::bit::FragmentHandle* FragmentStatus::mutable_handle() {
- set_has_handle();
- if (handle_ == NULL) handle_ = new ::exec::bit::FragmentHandle;
- return handle_;
+ const ::exec::bit::FragmentHandle* p = handle_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.FragmentStatus.handle)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline ::exec::bit::FragmentHandle* FragmentStatus::release_handle() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.FragmentStatus.handle)
clear_has_handle();
::exec::bit::FragmentHandle* temp = handle_;
handle_ = NULL;
return temp;
}
+inline ::exec::bit::FragmentHandle* FragmentStatus::mutable_handle() {
+ set_has_handle();
+ if (handle_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
+ handle_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FragmentStatus.handle)
+ return handle_;
+}
inline void FragmentStatus::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
- delete handle_;
- handle_ = handle;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(handle_);
+ }
if (handle) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ handle = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, handle, submessage_arena);
+ }
set_has_handle();
} else {
clear_has_handle();
}
+ handle_ = handle;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.FragmentStatus.handle)
}
// -------------------------------------------------------------------
@@ -1506,23 +2019,28 @@ inline int InitializeFragments::fragment_size() const {
inline void InitializeFragments::clear_fragment() {
fragment_.Clear();
}
-inline const ::exec::bit::control::PlanFragment& InitializeFragments::fragment(int index) const {
- return fragment_.Get(index);
-}
inline ::exec::bit::control::PlanFragment* InitializeFragments::mutable_fragment(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.InitializeFragments.fragment)
return fragment_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+InitializeFragments::mutable_fragment() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.control.InitializeFragments.fragment)
+ return &fragment_;
+}
+inline const ::exec::bit::control::PlanFragment& InitializeFragments::fragment(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.InitializeFragments.fragment)
+ return fragment_.Get(index);
+}
inline ::exec::bit::control::PlanFragment* InitializeFragments::add_fragment() {
+ // @@protoc_insertion_point(field_add:exec.bit.control.InitializeFragments.fragment)
return fragment_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
InitializeFragments::fragment() const {
+ // @@protoc_insertion_point(field_list:exec.bit.control.InitializeFragments.fragment)
return fragment_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
-InitializeFragments::mutable_fragment() {
- return &fragment_;
-}
// -------------------------------------------------------------------
@@ -1530,94 +2048,92 @@ InitializeFragments::mutable_fragment() {
// optional int32 type = 1;
inline bool CustomMessage::has_type() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void CustomMessage::set_has_type() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void CustomMessage::clear_has_type() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void CustomMessage::clear_type() {
type_ = 0;
clear_has_type();
}
inline ::google::protobuf::int32 CustomMessage::type() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.CustomMessage.type)
return type_;
}
inline void CustomMessage::set_type(::google::protobuf::int32 value) {
set_has_type();
type_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.CustomMessage.type)
}
// optional bytes message = 2;
inline bool CustomMessage::has_message() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void CustomMessage::set_has_message() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void CustomMessage::clear_has_message() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void CustomMessage::clear_message() {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
+ message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_message();
}
inline const ::std::string& CustomMessage::message() const {
- return *message_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.CustomMessage.message)
+ return message_.GetNoArena();
}
inline void CustomMessage::set_message(const ::std::string& value) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.CustomMessage.message)
}
+#if LANG_CXX11
+inline void CustomMessage::set_message(::std::string&& value) {
+ set_has_message();
+ message_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.control.CustomMessage.message)
+}
+#endif
inline void CustomMessage::set_message(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.CustomMessage.message)
}
inline void CustomMessage::set_message(const void* value, size_t size) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(reinterpret_cast<const char*>(value), size);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.CustomMessage.message)
}
inline ::std::string* CustomMessage::mutable_message() {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- return message_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.CustomMessage.message)
+ return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CustomMessage::release_message() {
- clear_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.control.CustomMessage.message)
+ if (!has_message()) {
return NULL;
- } else {
- ::std::string* temp = message_;
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_message();
+ return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CustomMessage::set_allocated_message(::std::string* message) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (message) {
+ if (message != NULL) {
set_has_message();
- message_ = message;
} else {
clear_has_message();
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.CustomMessage.message)
}
// -------------------------------------------------------------------
@@ -1626,486 +2142,576 @@ inline void CustomMessage::set_allocated_message(::std::string* message) {
// optional .exec.bit.FragmentHandle handle = 1;
inline bool PlanFragment::has_handle() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void PlanFragment::set_has_handle() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void PlanFragment::clear_has_handle() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
-inline void PlanFragment::clear_handle() {
- if (handle_ != NULL) handle_->::exec::bit::FragmentHandle::Clear();
- clear_has_handle();
+inline const ::exec::bit::FragmentHandle& PlanFragment::_internal_handle() const {
+ return *handle_;
}
inline const ::exec::bit::FragmentHandle& PlanFragment::handle() const {
- return handle_ != NULL ? *handle_ : *default_instance_->handle_;
-}
-inline ::exec::bit::FragmentHandle* PlanFragment::mutable_handle() {
- set_has_handle();
- if (handle_ == NULL) handle_ = new ::exec::bit::FragmentHandle;
- return handle_;
+ const ::exec::bit::FragmentHandle* p = handle_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.handle)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline ::exec::bit::FragmentHandle* PlanFragment::release_handle() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.handle)
clear_has_handle();
::exec::bit::FragmentHandle* temp = handle_;
handle_ = NULL;
return temp;
}
+inline ::exec::bit::FragmentHandle* PlanFragment::mutable_handle() {
+ set_has_handle();
+ if (handle_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
+ handle_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.handle)
+ return handle_;
+}
inline void PlanFragment::set_allocated_handle(::exec::bit::FragmentHandle* handle) {
- delete handle_;
- handle_ = handle;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(handle_);
+ }
if (handle) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ handle = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, handle, submessage_arena);
+ }
set_has_handle();
} else {
clear_has_handle();
}
+ handle_ = handle;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.handle)
}
// optional float network_cost = 4;
inline bool PlanFragment::has_network_cost() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void PlanFragment::set_has_network_cost() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void PlanFragment::clear_has_network_cost() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void PlanFragment::clear_network_cost() {
network_cost_ = 0;
clear_has_network_cost();
}
inline float PlanFragment::network_cost() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.network_cost)
return network_cost_;
}
inline void PlanFragment::set_network_cost(float value) {
set_has_network_cost();
network_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.network_cost)
}
// optional float cpu_cost = 5;
inline bool PlanFragment::has_cpu_cost() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void PlanFragment::set_has_cpu_cost() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void PlanFragment::clear_has_cpu_cost() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void PlanFragment::clear_cpu_cost() {
cpu_cost_ = 0;
clear_has_cpu_cost();
}
inline float PlanFragment::cpu_cost() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.cpu_cost)
return cpu_cost_;
}
inline void PlanFragment::set_cpu_cost(float value) {
set_has_cpu_cost();
cpu_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.cpu_cost)
}
// optional float disk_cost = 6;
inline bool PlanFragment::has_disk_cost() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void PlanFragment::set_has_disk_cost() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void PlanFragment::clear_has_disk_cost() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void PlanFragment::clear_disk_cost() {
disk_cost_ = 0;
clear_has_disk_cost();
}
inline float PlanFragment::disk_cost() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.disk_cost)
return disk_cost_;
}
inline void PlanFragment::set_disk_cost(float value) {
set_has_disk_cost();
disk_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.disk_cost)
}
// optional float memory_cost = 7;
inline bool PlanFragment::has_memory_cost() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void PlanFragment::set_has_memory_cost() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000400u;
}
inline void PlanFragment::clear_has_memory_cost() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000400u;
}
inline void PlanFragment::clear_memory_cost() {
memory_cost_ = 0;
clear_has_memory_cost();
}
inline float PlanFragment::memory_cost() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.memory_cost)
return memory_cost_;
}
inline void PlanFragment::set_memory_cost(float value) {
set_has_memory_cost();
memory_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.memory_cost)
}
// optional string fragment_json = 8;
inline bool PlanFragment::has_fragment_json() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void PlanFragment::set_has_fragment_json() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void PlanFragment::clear_has_fragment_json() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void PlanFragment::clear_fragment_json() {
- if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
- fragment_json_->clear();
- }
+ fragment_json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_fragment_json();
}
inline const ::std::string& PlanFragment::fragment_json() const {
- return *fragment_json_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.fragment_json)
+ return fragment_json_.GetNoArena();
}
inline void PlanFragment::set_fragment_json(const ::std::string& value) {
set_has_fragment_json();
- if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
- fragment_json_ = new ::std::string;
- }
- fragment_json_->assign(value);
+ fragment_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.fragment_json)
}
+#if LANG_CXX11
+inline void PlanFragment::set_fragment_json(::std::string&& value) {
+ set_has_fragment_json();
+ fragment_json_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.control.PlanFragment.fragment_json)
+}
+#endif
inline void PlanFragment::set_fragment_json(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_fragment_json();
- if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
- fragment_json_ = new ::std::string;
- }
- fragment_json_->assign(value);
+ fragment_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.PlanFragment.fragment_json)
}
inline void PlanFragment::set_fragment_json(const char* value, size_t size) {
set_has_fragment_json();
- if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
- fragment_json_ = new ::std::string;
- }
- fragment_json_->assign(reinterpret_cast<const char*>(value), size);
+ fragment_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.PlanFragment.fragment_json)
}
inline ::std::string* PlanFragment::mutable_fragment_json() {
set_has_fragment_json();
- if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
- fragment_json_ = new ::std::string;
- }
- return fragment_json_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.fragment_json)
+ return fragment_json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PlanFragment::release_fragment_json() {
- clear_has_fragment_json();
- if (fragment_json_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.fragment_json)
+ if (!has_fragment_json()) {
return NULL;
- } else {
- ::std::string* temp = fragment_json_;
- fragment_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_fragment_json();
+ return fragment_json_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PlanFragment::set_allocated_fragment_json(::std::string* fragment_json) {
- if (fragment_json_ != &::google::protobuf::internal::kEmptyString) {
- delete fragment_json_;
- }
- if (fragment_json) {
+ if (fragment_json != NULL) {
set_has_fragment_json();
- fragment_json_ = fragment_json;
} else {
clear_has_fragment_json();
- fragment_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ fragment_json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fragment_json);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.fragment_json)
}
// optional bool leaf_fragment = 9;
inline bool PlanFragment::has_leaf_fragment() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void PlanFragment::set_has_leaf_fragment() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000800u;
}
inline void PlanFragment::clear_has_leaf_fragment() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000800u;
}
inline void PlanFragment::clear_leaf_fragment() {
leaf_fragment_ = false;
clear_has_leaf_fragment();
}
inline bool PlanFragment::leaf_fragment() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.leaf_fragment)
return leaf_fragment_;
}
inline void PlanFragment::set_leaf_fragment(bool value) {
set_has_leaf_fragment();
leaf_fragment_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.leaf_fragment)
}
// optional .exec.DrillbitEndpoint assignment = 10;
inline bool PlanFragment::has_assignment() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void PlanFragment::set_has_assignment() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void PlanFragment::clear_has_assignment() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000008u;
}
-inline void PlanFragment::clear_assignment() {
- if (assignment_ != NULL) assignment_->::exec::DrillbitEndpoint::Clear();
- clear_has_assignment();
+inline const ::exec::DrillbitEndpoint& PlanFragment::_internal_assignment() const {
+ return *assignment_;
}
inline const ::exec::DrillbitEndpoint& PlanFragment::assignment() const {
- return assignment_ != NULL ? *assignment_ : *default_instance_->assignment_;
-}
-inline ::exec::DrillbitEndpoint* PlanFragment::mutable_assignment() {
- set_has_assignment();
- if (assignment_ == NULL) assignment_ = new ::exec::DrillbitEndpoint;
- return assignment_;
+ const ::exec::DrillbitEndpoint* p = assignment_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.assignment)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* PlanFragment::release_assignment() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.assignment)
clear_has_assignment();
::exec::DrillbitEndpoint* temp = assignment_;
assignment_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* PlanFragment::mutable_assignment() {
+ set_has_assignment();
+ if (assignment_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ assignment_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.assignment)
+ return assignment_;
+}
inline void PlanFragment::set_allocated_assignment(::exec::DrillbitEndpoint* assignment) {
- delete assignment_;
- assignment_ = assignment;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(assignment_);
+ }
if (assignment) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ assignment = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, assignment, submessage_arena);
+ }
set_has_assignment();
} else {
clear_has_assignment();
}
+ assignment_ = assignment;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.assignment)
}
// optional .exec.DrillbitEndpoint foreman = 11;
inline bool PlanFragment::has_foreman() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void PlanFragment::set_has_foreman() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void PlanFragment::clear_has_foreman() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00000010u;
}
-inline void PlanFragment::clear_foreman() {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
- clear_has_foreman();
+inline const ::exec::DrillbitEndpoint& PlanFragment::_internal_foreman() const {
+ return *foreman_;
}
inline const ::exec::DrillbitEndpoint& PlanFragment::foreman() const {
- return foreman_ != NULL ? *foreman_ : *default_instance_->foreman_;
-}
-inline ::exec::DrillbitEndpoint* PlanFragment::mutable_foreman() {
- set_has_foreman();
- if (foreman_ == NULL) foreman_ = new ::exec::DrillbitEndpoint;
- return foreman_;
+ const ::exec::DrillbitEndpoint* p = foreman_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.foreman)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* PlanFragment::release_foreman() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.foreman)
clear_has_foreman();
::exec::DrillbitEndpoint* temp = foreman_;
foreman_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* PlanFragment::mutable_foreman() {
+ set_has_foreman();
+ if (foreman_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ foreman_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.foreman)
+ return foreman_;
+}
inline void PlanFragment::set_allocated_foreman(::exec::DrillbitEndpoint* foreman) {
- delete foreman_;
- foreman_ = foreman;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(foreman_);
+ }
if (foreman) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ foreman = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, foreman, submessage_arena);
+ }
set_has_foreman();
} else {
clear_has_foreman();
}
+ foreman_ = foreman;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.foreman)
}
// optional int64 mem_initial = 12 [default = 20000000];
inline bool PlanFragment::has_mem_initial() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void PlanFragment::set_has_mem_initial() {
- _has_bits_[0] |= 0x00000200u;
+ _has_bits_[0] |= 0x00001000u;
}
inline void PlanFragment::clear_has_mem_initial() {
- _has_bits_[0] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00001000u;
}
inline void PlanFragment::clear_mem_initial() {
mem_initial_ = GOOGLE_LONGLONG(20000000);
clear_has_mem_initial();
}
inline ::google::protobuf::int64 PlanFragment::mem_initial() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.mem_initial)
return mem_initial_;
}
inline void PlanFragment::set_mem_initial(::google::protobuf::int64 value) {
set_has_mem_initial();
mem_initial_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.mem_initial)
}
// optional int64 mem_max = 13 [default = 2000000000];
inline bool PlanFragment::has_mem_max() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
+ return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void PlanFragment::set_has_mem_max() {
- _has_bits_[0] |= 0x00000400u;
+ _has_bits_[0] |= 0x00002000u;
}
inline void PlanFragment::clear_has_mem_max() {
- _has_bits_[0] &= ~0x00000400u;
+ _has_bits_[0] &= ~0x00002000u;
}
inline void PlanFragment::clear_mem_max() {
mem_max_ = GOOGLE_LONGLONG(2000000000);
clear_has_mem_max();
}
inline ::google::protobuf::int64 PlanFragment::mem_max() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.mem_max)
return mem_max_;
}
inline void PlanFragment::set_mem_max(::google::protobuf::int64 value) {
set_has_mem_max();
mem_max_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.mem_max)
}
// optional .exec.shared.UserCredentials credentials = 14;
inline bool PlanFragment::has_credentials() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void PlanFragment::set_has_credentials() {
- _has_bits_[0] |= 0x00000800u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void PlanFragment::clear_has_credentials() {
- _has_bits_[0] &= ~0x00000800u;
+ _has_bits_[0] &= ~0x00000020u;
}
-inline void PlanFragment::clear_credentials() {
- if (credentials_ != NULL) credentials_->::exec::shared::UserCredentials::Clear();
- clear_has_credentials();
+inline const ::exec::shared::UserCredentials& PlanFragment::_internal_credentials() const {
+ return *credentials_;
}
inline const ::exec::shared::UserCredentials& PlanFragment::credentials() const {
- return credentials_ != NULL ? *credentials_ : *default_instance_->credentials_;
-}
-inline ::exec::shared::UserCredentials* PlanFragment::mutable_credentials() {
- set_has_credentials();
- if (credentials_ == NULL) credentials_ = new ::exec::shared::UserCredentials;
- return credentials_;
+ const ::exec::shared::UserCredentials* p = credentials_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.credentials)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::UserCredentials*>(
+ &::exec::shared::_UserCredentials_default_instance_);
}
inline ::exec::shared::UserCredentials* PlanFragment::release_credentials() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.credentials)
clear_has_credentials();
::exec::shared::UserCredentials* temp = credentials_;
credentials_ = NULL;
return temp;
}
+inline ::exec::shared::UserCredentials* PlanFragment::mutable_credentials() {
+ set_has_credentials();
+ if (credentials_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::UserCredentials>(GetArenaNoVirtual());
+ credentials_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.credentials)
+ return credentials_;
+}
inline void PlanFragment::set_allocated_credentials(::exec::shared::UserCredentials* credentials) {
- delete credentials_;
- credentials_ = credentials;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(credentials_);
+ }
if (credentials) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ credentials = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, credentials, submessage_arena);
+ }
set_has_credentials();
} else {
clear_has_credentials();
}
+ credentials_ = credentials;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.credentials)
}
// optional string options_json = 15;
inline bool PlanFragment::has_options_json() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void PlanFragment::set_has_options_json() {
- _has_bits_[0] |= 0x00001000u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void PlanFragment::clear_has_options_json() {
- _has_bits_[0] &= ~0x00001000u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void PlanFragment::clear_options_json() {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ options_json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_options_json();
}
inline const ::std::string& PlanFragment::options_json() const {
- return *options_json_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.options_json)
+ return options_json_.GetNoArena();
}
inline void PlanFragment::set_options_json(const ::std::string& value) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.PlanFragment.options_json)
+}
+#if LANG_CXX11
+inline void PlanFragment::set_options_json(::std::string&& value) {
+ set_has_options_json();
+ options_json_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.control.PlanFragment.options_json)
}
+#endif
inline void PlanFragment::set_options_json(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.PlanFragment.options_json)
}
inline void PlanFragment::set_options_json(const char* value, size_t size) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(reinterpret_cast<const char*>(value), size);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.PlanFragment.options_json)
}
inline ::std::string* PlanFragment::mutable_options_json() {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- return options_json_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.options_json)
+ return options_json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PlanFragment::release_options_json() {
- clear_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.options_json)
+ if (!has_options_json()) {
return NULL;
- } else {
- ::std::string* temp = options_json_;
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_options_json();
+ return options_json_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PlanFragment::set_allocated_options_json(::std::string* options_json) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (options_json) {
+ if (options_json != NULL) {
set_has_options_json();
- options_json_ = options_json;
} else {
clear_has_options_json();
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ options_json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), options_json);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.options_json)
}
// optional .exec.bit.control.QueryContextInformation context = 16;
inline bool PlanFragment::has_context() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void PlanFragment::set_has_context() {
- _has_bits_[0] |= 0x00002000u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void PlanFragment::clear_has_context() {
- _has_bits_[0] &= ~0x00002000u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void PlanFragment::clear_context() {
- if (context_ != NULL) context_->::exec::bit::control::QueryContextInformation::Clear();
+ if (context_ != NULL) context_->Clear();
clear_has_context();
}
-inline const ::exec::bit::control::QueryContextInformation& PlanFragment::context() const {
- return context_ != NULL ? *context_ : *default_instance_->context_;
+inline const ::exec::bit::control::QueryContextInformation& PlanFragment::_internal_context() const {
+ return *context_;
}
-inline ::exec::bit::control::QueryContextInformation* PlanFragment::mutable_context() {
- set_has_context();
- if (context_ == NULL) context_ = new ::exec::bit::control::QueryContextInformation;
- return context_;
+inline const ::exec::bit::control::QueryContextInformation& PlanFragment::context() const {
+ const ::exec::bit::control::QueryContextInformation* p = context_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.context)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::bit::control::QueryContextInformation*>(
+ &::exec::bit::control::_QueryContextInformation_default_instance_);
}
inline ::exec::bit::control::QueryContextInformation* PlanFragment::release_context() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.PlanFragment.context)
clear_has_context();
::exec::bit::control::QueryContextInformation* temp = context_;
context_ = NULL;
return temp;
}
+inline ::exec::bit::control::QueryContextInformation* PlanFragment::mutable_context() {
+ set_has_context();
+ if (context_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::bit::control::QueryContextInformation>(GetArenaNoVirtual());
+ context_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.context)
+ return context_;
+}
inline void PlanFragment::set_allocated_context(::exec::bit::control::QueryContextInformation* context) {
- delete context_;
- context_ = context;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete context_;
+ }
if (context) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ context = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, context, submessage_arena);
+ }
set_has_context();
} else {
clear_has_context();
}
+ context_ = context;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.PlanFragment.context)
}
// repeated .exec.bit.control.Collector collector = 17;
@@ -2115,23 +2721,28 @@ inline int PlanFragment::collector_size() const {
inline void PlanFragment::clear_collector() {
collector_.Clear();
}
-inline const ::exec::bit::control::Collector& PlanFragment::collector(int index) const {
- return collector_.Get(index);
-}
inline ::exec::bit::control::Collector* PlanFragment::mutable_collector(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.PlanFragment.collector)
return collector_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >*
+PlanFragment::mutable_collector() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.control.PlanFragment.collector)
+ return &collector_;
+}
+inline const ::exec::bit::control::Collector& PlanFragment::collector(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.PlanFragment.collector)
+ return collector_.Get(index);
+}
inline ::exec::bit::control::Collector* PlanFragment::add_collector() {
+ // @@protoc_insertion_point(field_add:exec.bit.control.PlanFragment.collector)
return collector_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >&
PlanFragment::collector() const {
+ // @@protoc_insertion_point(field_list:exec.bit.control.PlanFragment.collector)
return collector_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::Collector >*
-PlanFragment::mutable_collector() {
- return &collector_;
-}
// -------------------------------------------------------------------
@@ -2152,11 +2763,13 @@ inline void Collector::clear_opposite_major_fragment_id() {
clear_has_opposite_major_fragment_id();
}
inline ::google::protobuf::int32 Collector::opposite_major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.Collector.opposite_major_fragment_id)
return opposite_major_fragment_id_;
}
inline void Collector::set_opposite_major_fragment_id(::google::protobuf::int32 value) {
set_has_opposite_major_fragment_id();
opposite_major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.Collector.opposite_major_fragment_id)
}
// repeated int32 incoming_minor_fragment = 2 [packed = true];
@@ -2167,65 +2780,74 @@ inline void Collector::clear_incoming_minor_fragment() {
incoming_minor_fragment_.Clear();
}
inline ::google::protobuf::int32 Collector::incoming_minor_fragment(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.Collector.incoming_minor_fragment)
return incoming_minor_fragment_.Get(index);
}
inline void Collector::set_incoming_minor_fragment(int index, ::google::protobuf::int32 value) {
incoming_minor_fragment_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.Collector.incoming_minor_fragment)
}
inline void Collector::add_incoming_minor_fragment(::google::protobuf::int32 value) {
incoming_minor_fragment_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.bit.control.Collector.incoming_minor_fragment)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
Collector::incoming_minor_fragment() const {
+ // @@protoc_insertion_point(field_list:exec.bit.control.Collector.incoming_minor_fragment)
return incoming_minor_fragment_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
Collector::mutable_incoming_minor_fragment() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.control.Collector.incoming_minor_fragment)
return &incoming_minor_fragment_;
}
// optional bool supports_out_of_order = 3;
inline bool Collector::has_supports_out_of_order() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Collector::set_has_supports_out_of_order() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void Collector::clear_has_supports_out_of_order() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void Collector::clear_supports_out_of_order() {
supports_out_of_order_ = false;
clear_has_supports_out_of_order();
}
inline bool Collector::supports_out_of_order() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.Collector.supports_out_of_order)
return supports_out_of_order_;
}
inline void Collector::set_supports_out_of_order(bool value) {
set_has_supports_out_of_order();
supports_out_of_order_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.Collector.supports_out_of_order)
}
// optional bool is_spooling = 4;
inline bool Collector::has_is_spooling() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Collector::set_has_is_spooling() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void Collector::clear_has_is_spooling() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void Collector::clear_is_spooling() {
is_spooling_ = false;
clear_has_is_spooling();
}
inline bool Collector::is_spooling() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.Collector.is_spooling)
return is_spooling_;
}
inline void Collector::set_is_spooling(bool value) {
set_has_is_spooling();
is_spooling_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.Collector.is_spooling)
}
// -------------------------------------------------------------------
@@ -2234,186 +2856,182 @@ inline void Collector::set_is_spooling(bool value) {
// optional int64 query_start_time = 1;
inline bool QueryContextInformation::has_query_start_time() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void QueryContextInformation::set_has_query_start_time() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void QueryContextInformation::clear_has_query_start_time() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void QueryContextInformation::clear_query_start_time() {
query_start_time_ = GOOGLE_LONGLONG(0);
clear_has_query_start_time();
}
inline ::google::protobuf::int64 QueryContextInformation::query_start_time() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.QueryContextInformation.query_start_time)
return query_start_time_;
}
inline void QueryContextInformation::set_query_start_time(::google::protobuf::int64 value) {
set_has_query_start_time();
query_start_time_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.QueryContextInformation.query_start_time)
}
// optional int32 time_zone = 2;
inline bool QueryContextInformation::has_time_zone() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void QueryContextInformation::set_has_time_zone() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void QueryContextInformation::clear_has_time_zone() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void QueryContextInformation::clear_time_zone() {
time_zone_ = 0;
clear_has_time_zone();
}
inline ::google::protobuf::int32 QueryContextInformation::time_zone() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.QueryContextInformation.time_zone)
return time_zone_;
}
inline void QueryContextInformation::set_time_zone(::google::protobuf::int32 value) {
set_has_time_zone();
time_zone_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.QueryContextInformation.time_zone)
}
// optional string default_schema_name = 3;
inline bool QueryContextInformation::has_default_schema_name() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void QueryContextInformation::set_has_default_schema_name() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void QueryContextInformation::clear_has_default_schema_name() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void QueryContextInformation::clear_default_schema_name() {
- if (default_schema_name_ != &::google::protobuf::internal::kEmptyString) {
- default_schema_name_->clear();
- }
+ default_schema_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_default_schema_name();
}
inline const ::std::string& QueryContextInformation::default_schema_name() const {
- return *default_schema_name_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.QueryContextInformation.default_schema_name)
+ return default_schema_name_.GetNoArena();
}
inline void QueryContextInformation::set_default_schema_name(const ::std::string& value) {
set_has_default_schema_name();
- if (default_schema_name_ == &::google::protobuf::internal::kEmptyString) {
- default_schema_name_ = new ::std::string;
- }
- default_schema_name_->assign(value);
+ default_schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.QueryContextInformation.default_schema_name)
}
+#if LANG_CXX11
+inline void QueryContextInformation::set_default_schema_name(::std::string&& value) {
+ set_has_default_schema_name();
+ default_schema_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.control.QueryContextInformation.default_schema_name)
+}
+#endif
inline void QueryContextInformation::set_default_schema_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_default_schema_name();
- if (default_schema_name_ == &::google::protobuf::internal::kEmptyString) {
- default_schema_name_ = new ::std::string;
- }
- default_schema_name_->assign(value);
+ default_schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.QueryContextInformation.default_schema_name)
}
inline void QueryContextInformation::set_default_schema_name(const char* value, size_t size) {
set_has_default_schema_name();
- if (default_schema_name_ == &::google::protobuf::internal::kEmptyString) {
- default_schema_name_ = new ::std::string;
- }
- default_schema_name_->assign(reinterpret_cast<const char*>(value), size);
+ default_schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.QueryContextInformation.default_schema_name)
}
inline ::std::string* QueryContextInformation::mutable_default_schema_name() {
set_has_default_schema_name();
- if (default_schema_name_ == &::google::protobuf::internal::kEmptyString) {
- default_schema_name_ = new ::std::string;
- }
- return default_schema_name_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.QueryContextInformation.default_schema_name)
+ return default_schema_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryContextInformation::release_default_schema_name() {
- clear_has_default_schema_name();
- if (default_schema_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.control.QueryContextInformation.default_schema_name)
+ if (!has_default_schema_name()) {
return NULL;
- } else {
- ::std::string* temp = default_schema_name_;
- default_schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_default_schema_name();
+ return default_schema_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryContextInformation::set_allocated_default_schema_name(::std::string* default_schema_name) {
- if (default_schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete default_schema_name_;
- }
- if (default_schema_name) {
+ if (default_schema_name != NULL) {
set_has_default_schema_name();
- default_schema_name_ = default_schema_name;
} else {
clear_has_default_schema_name();
- default_schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ default_schema_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_schema_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.QueryContextInformation.default_schema_name)
}
// optional string session_id = 4;
inline bool QueryContextInformation::has_session_id() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryContextInformation::set_has_session_id() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryContextInformation::clear_has_session_id() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void QueryContextInformation::clear_session_id() {
- if (session_id_ != &::google::protobuf::internal::kEmptyString) {
- session_id_->clear();
- }
+ session_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_session_id();
}
inline const ::std::string& QueryContextInformation::session_id() const {
- return *session_id_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.QueryContextInformation.session_id)
+ return session_id_.GetNoArena();
}
inline void QueryContextInformation::set_session_id(const ::std::string& value) {
set_has_session_id();
- if (session_id_ == &::google::protobuf::internal::kEmptyString) {
- session_id_ = new ::std::string;
- }
- session_id_->assign(value);
+ session_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.control.QueryContextInformation.session_id)
+}
+#if LANG_CXX11
+inline void QueryContextInformation::set_session_id(::std::string&& value) {
+ set_has_session_id();
+ session_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.control.QueryContextInformation.session_id)
}
+#endif
inline void QueryContextInformation::set_session_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_session_id();
- if (session_id_ == &::google::protobuf::internal::kEmptyString) {
- session_id_ = new ::std::string;
- }
- session_id_->assign(value);
+ session_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.control.QueryContextInformation.session_id)
}
inline void QueryContextInformation::set_session_id(const char* value, size_t size) {
set_has_session_id();
- if (session_id_ == &::google::protobuf::internal::kEmptyString) {
- session_id_ = new ::std::string;
- }
- session_id_->assign(reinterpret_cast<const char*>(value), size);
+ session_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.control.QueryContextInformation.session_id)
}
inline ::std::string* QueryContextInformation::mutable_session_id() {
set_has_session_id();
- if (session_id_ == &::google::protobuf::internal::kEmptyString) {
- session_id_ = new ::std::string;
- }
- return session_id_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.QueryContextInformation.session_id)
+ return session_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryContextInformation::release_session_id() {
- clear_has_session_id();
- if (session_id_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.control.QueryContextInformation.session_id)
+ if (!has_session_id()) {
return NULL;
- } else {
- ::std::string* temp = session_id_;
- session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_session_id();
+ return session_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryContextInformation::set_allocated_session_id(::std::string* session_id) {
- if (session_id_ != &::google::protobuf::internal::kEmptyString) {
- delete session_id_;
- }
- if (session_id) {
+ if (session_id != NULL) {
set_has_session_id();
- session_id_ = session_id;
} else {
clear_has_session_id();
- session_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ session_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), session_id);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.QueryContextInformation.session_id)
}
// -------------------------------------------------------------------
@@ -2430,76 +3048,96 @@ inline void WorkQueueStatus::set_has_endpoint() {
inline void WorkQueueStatus::clear_has_endpoint() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void WorkQueueStatus::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- clear_has_endpoint();
+inline const ::exec::DrillbitEndpoint& WorkQueueStatus::_internal_endpoint() const {
+ return *endpoint_;
}
inline const ::exec::DrillbitEndpoint& WorkQueueStatus::endpoint() const {
- return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
-}
-inline ::exec::DrillbitEndpoint* WorkQueueStatus::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
- return endpoint_;
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.WorkQueueStatus.endpoint)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* WorkQueueStatus::release_endpoint() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.WorkQueueStatus.endpoint)
clear_has_endpoint();
::exec::DrillbitEndpoint* temp = endpoint_;
endpoint_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* WorkQueueStatus::mutable_endpoint() {
+ set_has_endpoint();
+ if (endpoint_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ endpoint_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.WorkQueueStatus.endpoint)
+ return endpoint_;
+}
inline void WorkQueueStatus::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- delete endpoint_;
- endpoint_ = endpoint;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(endpoint_);
+ }
if (endpoint) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, endpoint, submessage_arena);
+ }
set_has_endpoint();
} else {
clear_has_endpoint();
}
+ endpoint_ = endpoint;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.WorkQueueStatus.endpoint)
}
// optional int32 queue_length = 2;
inline bool WorkQueueStatus::has_queue_length() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void WorkQueueStatus::set_has_queue_length() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void WorkQueueStatus::clear_has_queue_length() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void WorkQueueStatus::clear_queue_length() {
queue_length_ = 0;
clear_has_queue_length();
}
inline ::google::protobuf::int32 WorkQueueStatus::queue_length() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.WorkQueueStatus.queue_length)
return queue_length_;
}
inline void WorkQueueStatus::set_queue_length(::google::protobuf::int32 value) {
set_has_queue_length();
queue_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.WorkQueueStatus.queue_length)
}
// optional int64 report_time = 3;
inline bool WorkQueueStatus::has_report_time() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void WorkQueueStatus::set_has_report_time() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void WorkQueueStatus::clear_has_report_time() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void WorkQueueStatus::clear_report_time() {
report_time_ = GOOGLE_LONGLONG(0);
clear_has_report_time();
}
inline ::google::protobuf::int64 WorkQueueStatus::report_time() const {
+ // @@protoc_insertion_point(field_get:exec.bit.control.WorkQueueStatus.report_time)
return report_time_;
}
inline void WorkQueueStatus::set_report_time(::google::protobuf::int64 value) {
set_has_report_time();
report_time_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.control.WorkQueueStatus.report_time)
}
// -------------------------------------------------------------------
@@ -2516,32 +3154,48 @@ inline void FinishedReceiver::set_has_receiver() {
inline void FinishedReceiver::clear_has_receiver() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void FinishedReceiver::clear_receiver() {
- if (receiver_ != NULL) receiver_->::exec::bit::FragmentHandle::Clear();
- clear_has_receiver();
+inline const ::exec::bit::FragmentHandle& FinishedReceiver::_internal_receiver() const {
+ return *receiver_;
}
inline const ::exec::bit::FragmentHandle& FinishedReceiver::receiver() const {
- return receiver_ != NULL ? *receiver_ : *default_instance_->receiver_;
-}
-inline ::exec::bit::FragmentHandle* FinishedReceiver::mutable_receiver() {
- set_has_receiver();
- if (receiver_ == NULL) receiver_ = new ::exec::bit::FragmentHandle;
- return receiver_;
+ const ::exec::bit::FragmentHandle* p = receiver_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.FinishedReceiver.receiver)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline ::exec::bit::FragmentHandle* FinishedReceiver::release_receiver() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.FinishedReceiver.receiver)
clear_has_receiver();
::exec::bit::FragmentHandle* temp = receiver_;
receiver_ = NULL;
return temp;
}
+inline ::exec::bit::FragmentHandle* FinishedReceiver::mutable_receiver() {
+ set_has_receiver();
+ if (receiver_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
+ receiver_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FinishedReceiver.receiver)
+ return receiver_;
+}
inline void FinishedReceiver::set_allocated_receiver(::exec::bit::FragmentHandle* receiver) {
- delete receiver_;
- receiver_ = receiver;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(receiver_);
+ }
if (receiver) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ receiver = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, receiver, submessage_arena);
+ }
set_has_receiver();
} else {
clear_has_receiver();
}
+ receiver_ = receiver;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.FinishedReceiver.receiver)
}
// optional .exec.bit.FragmentHandle sender = 2;
@@ -2554,34 +3208,71 @@ inline void FinishedReceiver::set_has_sender() {
inline void FinishedReceiver::clear_has_sender() {
_has_bits_[0] &= ~0x00000002u;
}
-inline void FinishedReceiver::clear_sender() {
- if (sender_ != NULL) sender_->::exec::bit::FragmentHandle::Clear();
- clear_has_sender();
+inline const ::exec::bit::FragmentHandle& FinishedReceiver::_internal_sender() const {
+ return *sender_;
}
inline const ::exec::bit::FragmentHandle& FinishedReceiver::sender() const {
- return sender_ != NULL ? *sender_ : *default_instance_->sender_;
-}
-inline ::exec::bit::FragmentHandle* FinishedReceiver::mutable_sender() {
- set_has_sender();
- if (sender_ == NULL) sender_ = new ::exec::bit::FragmentHandle;
- return sender_;
+ const ::exec::bit::FragmentHandle* p = sender_;
+ // @@protoc_insertion_point(field_get:exec.bit.control.FinishedReceiver.sender)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::bit::FragmentHandle*>(
+ &::exec::bit::_FragmentHandle_default_instance_);
}
inline ::exec::bit::FragmentHandle* FinishedReceiver::release_sender() {
+ // @@protoc_insertion_point(field_release:exec.bit.control.FinishedReceiver.sender)
clear_has_sender();
::exec::bit::FragmentHandle* temp = sender_;
sender_ = NULL;
return temp;
}
+inline ::exec::bit::FragmentHandle* FinishedReceiver::mutable_sender() {
+ set_has_sender();
+ if (sender_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::bit::FragmentHandle>(GetArenaNoVirtual());
+ sender_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.control.FinishedReceiver.sender)
+ return sender_;
+}
inline void FinishedReceiver::set_allocated_sender(::exec::bit::FragmentHandle* sender) {
- delete sender_;
- sender_ = sender;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(sender_);
+ }
if (sender) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ sender = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, sender, submessage_arena);
+ }
set_has_sender();
} else {
clear_has_sender();
}
+ sender_ = sender;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.control.FinishedReceiver.sender)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
@@ -2589,19 +3280,18 @@ inline void FinishedReceiver::set_allocated_sender(::exec::bit::FragmentHandle*
} // namespace bit
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::bit::control::RpcType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::bit::control::RpcType>() {
return ::exec::bit::control::RpcType_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_BitControl_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_BitControl_2eproto
diff --git a/contrib/native/client/src/protobuf/BitData.pb.cc b/contrib/native/client/src/protobuf/BitData.pb.cc
index df2207a3d..2a749a002 100644
--- a/contrib/native/client/src/protobuf/BitData.pb.cc
+++ b/contrib/native/client/src/protobuf/BitData.pb.cc
@@ -1,220 +1,273 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BitData.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "BitData.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_UserBitShared_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryId;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RecordBatchDef;
+} // namespace protobuf_UserBitShared_2eproto
namespace exec {
namespace bit {
namespace data {
+class BitClientHandshakeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BitClientHandshake>
+ _instance;
+} _BitClientHandshake_default_instance_;
+class BitServerHandshakeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BitServerHandshake>
+ _instance;
+} _BitServerHandshake_default_instance_;
+class FragmentRecordBatchDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<FragmentRecordBatch>
+ _instance;
+} _FragmentRecordBatch_default_instance_;
+class RuntimeFilterBDefDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RuntimeFilterBDef>
+ _instance;
+} _RuntimeFilterBDef_default_instance_;
+} // namespace data
+} // namespace bit
+} // namespace exec
+namespace protobuf_BitData_2eproto {
+static void InitDefaultsBitClientHandshake() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* BitClientHandshake_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- BitClientHandshake_reflection_ = NULL;
-const ::google::protobuf::Descriptor* BitServerHandshake_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- BitServerHandshake_reflection_ = NULL;
-const ::google::protobuf::Descriptor* FragmentRecordBatch_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- FragmentRecordBatch_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RuntimeFilterBDef_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RuntimeFilterBDef_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* RpcType_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_BitData_2eproto() {
- protobuf_AddDesc_BitData_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "BitData.proto");
- GOOGLE_CHECK(file != NULL);
- BitClientHandshake_descriptor_ = file->message_type(0);
- static const int BitClientHandshake_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitClientHandshake, rpc_version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitClientHandshake, channel_),
- };
- BitClientHandshake_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- BitClientHandshake_descriptor_,
- BitClientHandshake::default_instance_,
- BitClientHandshake_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitClientHandshake, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitClientHandshake, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(BitClientHandshake));
- BitServerHandshake_descriptor_ = file->message_type(1);
- static const int BitServerHandshake_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitServerHandshake, rpc_version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitServerHandshake, authenticationmechanisms_),
- };
- BitServerHandshake_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- BitServerHandshake_descriptor_,
- BitServerHandshake::default_instance_,
- BitServerHandshake_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitServerHandshake, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitServerHandshake, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(BitServerHandshake));
- FragmentRecordBatch_descriptor_ = file->message_type(2);
- static const int FragmentRecordBatch_offsets_[7] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, receiving_major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, receiving_minor_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, sending_major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, sending_minor_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, def_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, islastbatch_),
- };
- FragmentRecordBatch_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- FragmentRecordBatch_descriptor_,
- FragmentRecordBatch::default_instance_,
- FragmentRecordBatch_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentRecordBatch, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(FragmentRecordBatch));
- RuntimeFilterBDef_descriptor_ = file->message_type(3);
- static const int RuntimeFilterBDef_offsets_[8] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, minor_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, to_foreman_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, bloom_filter_size_in_bytes_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, probe_fields_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, hj_op_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, rf_identifier_),
- };
- RuntimeFilterBDef_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RuntimeFilterBDef_descriptor_,
- RuntimeFilterBDef::default_instance_,
- RuntimeFilterBDef_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RuntimeFilterBDef, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RuntimeFilterBDef));
- RpcType_descriptor_ = file->enum_type(0);
+ {
+ void* ptr = &::exec::bit::data::_BitClientHandshake_default_instance_;
+ new (ptr) ::exec::bit::data::BitClientHandshake();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::data::BitClientHandshake::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<0> scc_info_BitClientHandshake =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBitClientHandshake}, {}};
+
+static void InitDefaultsBitServerHandshake() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_BitData_2eproto);
+ {
+ void* ptr = &::exec::bit::data::_BitServerHandshake_default_instance_;
+ new (ptr) ::exec::bit::data::BitServerHandshake();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::data::BitServerHandshake::InitAsDefaultInstance();
}
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- BitClientHandshake_descriptor_, &BitClientHandshake::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- BitServerHandshake_descriptor_, &BitServerHandshake::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- FragmentRecordBatch_descriptor_, &FragmentRecordBatch::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RuntimeFilterBDef_descriptor_, &RuntimeFilterBDef::default_instance());
-}
-
-} // namespace
-
-void protobuf_ShutdownFile_BitData_2eproto() {
- delete BitClientHandshake::default_instance_;
- delete BitClientHandshake_reflection_;
- delete BitServerHandshake::default_instance_;
- delete BitServerHandshake_reflection_;
- delete FragmentRecordBatch::default_instance_;
- delete FragmentRecordBatch_reflection_;
- delete RuntimeFilterBDef::default_instance_;
- delete RuntimeFilterBDef_reflection_;
-}
-
-void protobuf_AddDesc_BitData_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+::google::protobuf::internal::SCCInfo<0> scc_info_BitServerHandshake =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBitServerHandshake}, {}};
+
+static void InitDefaultsFragmentRecordBatch() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::bit::data::_FragmentRecordBatch_default_instance_;
+ new (ptr) ::exec::bit::data::FragmentRecordBatch();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::data::FragmentRecordBatch::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_FragmentRecordBatch =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsFragmentRecordBatch}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,
+ &protobuf_UserBitShared_2eproto::scc_info_RecordBatchDef.base,}};
+
+static void InitDefaultsRuntimeFilterBDef() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::exec::bit::protobuf_AddDesc_ExecutionProtos_2eproto();
- ::exec::protobuf_AddDesc_Coordination_2eproto();
- ::exec::shared::protobuf_AddDesc_UserBitShared_2eproto();
+ {
+ void* ptr = &::exec::bit::data::_RuntimeFilterBDef_default_instance_;
+ new (ptr) ::exec::bit::data::RuntimeFilterBDef();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::data::RuntimeFilterBDef::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_RuntimeFilterBDef =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRuntimeFilterBDef}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_BitClientHandshake.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_BitServerHandshake.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_FragmentRecordBatch.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RuntimeFilterBDef.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[4];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitClientHandshake, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitClientHandshake, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitClientHandshake, rpc_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitClientHandshake, channel_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitServerHandshake, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitServerHandshake, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitServerHandshake, rpc_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::BitServerHandshake, authenticationmechanisms_),
+ 0,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, receiving_major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, receiving_minor_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, sending_major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, sending_minor_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, def_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::FragmentRecordBatch, islastbatch_),
+ 0,
+ 2,
+ ~0u,
+ 3,
+ 4,
+ 1,
+ 5,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, minor_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, to_foreman_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, bloom_filter_size_in_bytes_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, probe_fields_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, hj_op_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::data::RuntimeFilterBDef, rf_identifier_),
+ 0,
+ 1,
+ 2,
+ 3,
+ ~0u,
+ ~0u,
+ 4,
+ 5,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 7, sizeof(::exec::bit::data::BitClientHandshake)},
+ { 9, 16, sizeof(::exec::bit::data::BitServerHandshake)},
+ { 18, 30, sizeof(::exec::bit::data::FragmentRecordBatch)},
+ { 37, 50, sizeof(::exec::bit::data::RuntimeFilterBDef)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::data::_BitClientHandshake_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::data::_BitServerHandshake_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::data::_FragmentRecordBatch_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::data::_RuntimeFilterBDef_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "BitData.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\rBitData.proto\022\rexec.bit.data\032\025Executio"
+ "nProtos.proto\032\022Coordination.proto\032\023UserB"
+ "itShared.proto\"]\n\022BitClientHandshake\022\023\n\013"
+ "rpc_version\030\001 \001(\005\0222\n\007channel\030\002 \001(\0162\027.exe"
+ "c.shared.RpcChannel:\010BIT_DATA\"K\n\022BitServ"
+ "erHandshake\022\023\n\013rpc_version\030\001 \001(\005\022 \n\030auth"
+ "enticationMechanisms\030\002 \003(\t\"\214\002\n\023FragmentR"
+ "ecordBatch\022&\n\010query_id\030\001 \001(\0132\024.exec.shar"
+ "ed.QueryId\022#\n\033receiving_major_fragment_i"
+ "d\030\002 \001(\005\022#\n\033receiving_minor_fragment_id\030\003"
+ " \003(\005\022!\n\031sending_major_fragment_id\030\004 \001(\005\022"
+ "!\n\031sending_minor_fragment_id\030\005 \001(\005\022(\n\003de"
+ "f\030\006 \001(\0132\033.exec.shared.RecordBatchDef\022\023\n\013"
+ "isLastBatch\030\007 \001(\010\"\350\001\n\021RuntimeFilterBDef\022"
+ "&\n\010query_id\030\001 \001(\0132\024.exec.shared.QueryId\022"
+ "\031\n\021major_fragment_id\030\002 \001(\005\022\031\n\021minor_frag"
+ "ment_id\030\003 \001(\005\022\022\n\nto_foreman\030\004 \001(\010\022\"\n\032blo"
+ "om_filter_size_in_bytes\030\005 \003(\005\022\024\n\014probe_f"
+ "ields\030\006 \003(\t\022\020\n\010hj_op_id\030\007 \001(\005\022\025\n\rrf_iden"
+ "tifier\030\010 \001(\003*n\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007"
+ "\n\003ACK\020\001\022\013\n\007GOODBYE\020\002\022\024\n\020REQ_RECORD_BATCH"
+ "\020\003\022\020\n\014SASL_MESSAGE\020\004\022\026\n\022REQ_RUNTIME_FILT"
+ "ER\020\005B(\n\033org.apache.drill.exec.protoB\007Bit"
+ "DataH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\rBitData.proto\022\rexec.bit.data\032\025Executio"
- "nProtos.proto\032\022Coordination.proto\032\023UserB"
- "itShared.proto\"]\n\022BitClientHandshake\022\023\n\013"
- "rpc_version\030\001 \001(\005\0222\n\007channel\030\002 \001(\0162\027.exe"
- "c.shared.RpcChannel:\010BIT_DATA\"K\n\022BitServ"
- "erHandshake\022\023\n\013rpc_version\030\001 \001(\005\022 \n\030auth"
- "enticationMechanisms\030\002 \003(\t\"\214\002\n\023FragmentR"
- "ecordBatch\022&\n\010query_id\030\001 \001(\0132\024.exec.shar"
- "ed.QueryId\022#\n\033receiving_major_fragment_i"
- "d\030\002 \001(\005\022#\n\033receiving_minor_fragment_id\030\003"
- " \003(\005\022!\n\031sending_major_fragment_id\030\004 \001(\005\022"
- "!\n\031sending_minor_fragment_id\030\005 \001(\005\022(\n\003de"
- "f\030\006 \001(\0132\033.exec.shared.RecordBatchDef\022\023\n\013"
- "isLastBatch\030\007 \001(\010\"\350\001\n\021RuntimeFilterBDef\022"
- "&\n\010query_id\030\001 \001(\0132\024.exec.shared.QueryId\022"
- "\031\n\021major_fragment_id\030\002 \001(\005\022\031\n\021minor_frag"
- "ment_id\030\003 \001(\005\022\022\n\nto_foreman\030\004 \001(\010\022\"\n\032blo"
- "om_filter_size_in_bytes\030\005 \003(\005\022\024\n\014probe_f"
- "ields\030\006 \003(\t\022\020\n\010hj_op_id\030\007 \001(\005\022\025\n\rrf_iden"
- "tifier\030\010 \001(\003*n\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007"
- "\n\003ACK\020\001\022\013\n\007GOODBYE\020\002\022\024\n\020REQ_RECORD_BATCH"
- "\020\003\022\020\n\014SASL_MESSAGE\020\004\022\026\n\022REQ_RUNTIME_FILT"
- "ER\020\005B(\n\033org.apache.drill.exec.protoB\007Bit"
- "DataH\001", 926);
+ descriptor, 926);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"BitData.proto", &protobuf_RegisterTypes);
- BitClientHandshake::default_instance_ = new BitClientHandshake();
- BitServerHandshake::default_instance_ = new BitServerHandshake();
- FragmentRecordBatch::default_instance_ = new FragmentRecordBatch();
- RuntimeFilterBDef::default_instance_ = new RuntimeFilterBDef();
- BitClientHandshake::default_instance_->InitAsDefaultInstance();
- BitServerHandshake::default_instance_->InitAsDefaultInstance();
- FragmentRecordBatch::default_instance_->InitAsDefaultInstance();
- RuntimeFilterBDef::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_BitData_2eproto);
-}
-
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_BitData_2eproto {
- StaticDescriptorInitializer_BitData_2eproto() {
- protobuf_AddDesc_BitData_2eproto();
- }
-} static_descriptor_initializer_BitData_2eproto_;
+ ::protobuf_ExecutionProtos_2eproto::AddDescriptors();
+ ::protobuf_Coordination_2eproto::AddDescriptors();
+ ::protobuf_UserBitShared_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_BitData_2eproto
+namespace exec {
+namespace bit {
+namespace data {
const ::google::protobuf::EnumDescriptor* RpcType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcType_descriptor_;
+ protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_BitData_2eproto::file_level_enum_descriptors[0];
}
bool RpcType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -230,97 +283,101 @@ bool RpcType_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void BitClientHandshake::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BitClientHandshake::kRpcVersionFieldNumber;
const int BitClientHandshake::kChannelFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BitClientHandshake::BitClientHandshake()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitData_2eproto::scc_info_BitClientHandshake.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.data.BitClientHandshake)
}
-
-void BitClientHandshake::InitAsDefaultInstance() {
-}
-
BitClientHandshake::BitClientHandshake(const BitClientHandshake& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&rpc_version_, &from.rpc_version_,
+ static_cast<size_t>(reinterpret_cast<char*>(&channel_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(channel_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.data.BitClientHandshake)
}
void BitClientHandshake::SharedCtor() {
- _cached_size_ = 0;
rpc_version_ = 0;
channel_ = 1;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
BitClientHandshake::~BitClientHandshake() {
+ // @@protoc_insertion_point(destructor:exec.bit.data.BitClientHandshake)
SharedDtor();
}
void BitClientHandshake::SharedDtor() {
- if (this != default_instance_) {
- }
}
void BitClientHandshake::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* BitClientHandshake::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return BitClientHandshake_descriptor_;
+ ::protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BitClientHandshake& BitClientHandshake::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitData_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitData_2eproto::scc_info_BitClientHandshake.base);
+ return *internal_default_instance();
}
-BitClientHandshake* BitClientHandshake::default_instance_ = NULL;
-
-BitClientHandshake* BitClientHandshake::New() const {
- return new BitClientHandshake;
-}
void BitClientHandshake::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+// @@protoc_insertion_point(message_clear_start:exec.bit.data.BitClientHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
rpc_version_ = 0;
channel_ = 1;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool BitClientHandshake::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.data.BitClientHandshake)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 rpc_version = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_rpc_version();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_version_)));
- set_has_rpc_version();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_channel;
break;
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_channel:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -328,74 +385,97 @@ bool BitClientHandshake::MergePartialFromCodedStream(
if (::exec::shared::RpcChannel_IsValid(value)) {
set_channel(static_cast< ::exec::shared::RpcChannel >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.data.BitClientHandshake)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.data.BitClientHandshake)
+ return false;
#undef DO_
}
void BitClientHandshake::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.data.BitClientHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rpc_version(), output);
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->channel(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.data.BitClientHandshake)
}
-::google::protobuf::uint8* BitClientHandshake::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* BitClientHandshake::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.data.BitClientHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rpc_version(), target);
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->channel(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.data.BitClientHandshake)
return target;
}
-int BitClientHandshake::ByteSize() const {
- int total_size = 0;
+size_t BitClientHandshake::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.data.BitClientHandshake)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional int32 rpc_version = 1;
if (has_rpc_version()) {
total_size += 1 +
@@ -410,337 +490,376 @@ int BitClientHandshake::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void BitClientHandshake::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.data.BitClientHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
const BitClientHandshake* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const BitClientHandshake*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const BitClientHandshake>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.data.BitClientHandshake)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.data.BitClientHandshake)
MergeFrom(*source);
}
}
void BitClientHandshake::MergeFrom(const BitClientHandshake& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_rpc_version()) {
- set_rpc_version(from.rpc_version());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.data.BitClientHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ rpc_version_ = from.rpc_version_;
}
- if (from.has_channel()) {
- set_channel(from.channel());
+ if (cached_has_bits & 0x00000002u) {
+ channel_ = from.channel_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BitClientHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.data.BitClientHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BitClientHandshake::CopyFrom(const BitClientHandshake& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.data.BitClientHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BitClientHandshake::IsInitialized() const {
-
return true;
}
void BitClientHandshake::Swap(BitClientHandshake* other) {
- if (other != this) {
- std::swap(rpc_version_, other->rpc_version_);
- std::swap(channel_, other->channel_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BitClientHandshake::InternalSwap(BitClientHandshake* other) {
+ using std::swap;
+ swap(rpc_version_, other->rpc_version_);
+ swap(channel_, other->channel_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata BitClientHandshake::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = BitClientHandshake_descriptor_;
- metadata.reflection = BitClientHandshake_reflection_;
- return metadata;
+ protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void BitServerHandshake::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BitServerHandshake::kRpcVersionFieldNumber;
const int BitServerHandshake::kAuthenticationMechanismsFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BitServerHandshake::BitServerHandshake()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitData_2eproto::scc_info_BitServerHandshake.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.data.BitServerHandshake)
}
-
-void BitServerHandshake::InitAsDefaultInstance() {
-}
-
BitServerHandshake::BitServerHandshake(const BitServerHandshake& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ authenticationmechanisms_(from.authenticationmechanisms_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ rpc_version_ = from.rpc_version_;
+ // @@protoc_insertion_point(copy_constructor:exec.bit.data.BitServerHandshake)
}
void BitServerHandshake::SharedCtor() {
- _cached_size_ = 0;
rpc_version_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
BitServerHandshake::~BitServerHandshake() {
+ // @@protoc_insertion_point(destructor:exec.bit.data.BitServerHandshake)
SharedDtor();
}
void BitServerHandshake::SharedDtor() {
- if (this != default_instance_) {
- }
}
void BitServerHandshake::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* BitServerHandshake::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return BitServerHandshake_descriptor_;
+ ::protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BitServerHandshake& BitServerHandshake::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitData_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitData_2eproto::scc_info_BitServerHandshake.base);
+ return *internal_default_instance();
}
-BitServerHandshake* BitServerHandshake::default_instance_ = NULL;
-
-BitServerHandshake* BitServerHandshake::New() const {
- return new BitServerHandshake;
-}
void BitServerHandshake::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- rpc_version_ = 0;
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.data.BitServerHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
authenticationmechanisms_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ rpc_version_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool BitServerHandshake::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.data.BitServerHandshake)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 rpc_version = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_rpc_version();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_version_)));
- set_has_rpc_version();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_authenticationMechanisms;
break;
}
// repeated string authenticationMechanisms = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_authenticationMechanisms:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_authenticationmechanisms()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).data(),
- this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.data.BitServerHandshake.authenticationMechanisms");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_authenticationMechanisms;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.data.BitServerHandshake)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.data.BitServerHandshake)
+ return false;
#undef DO_
}
void BitServerHandshake::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.data.BitServerHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rpc_version(), output);
}
// repeated string authenticationMechanisms = 2;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.data.BitServerHandshake.authenticationMechanisms");
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->authenticationmechanisms(i), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.data.BitServerHandshake)
}
-::google::protobuf::uint8* BitServerHandshake::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* BitServerHandshake::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.data.BitServerHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 1;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rpc_version(), target);
}
// repeated string authenticationMechanisms = 2;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.data.BitServerHandshake.authenticationMechanisms");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(2, this->authenticationmechanisms(i), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.data.BitServerHandshake)
return target;
}
-int BitServerHandshake::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 rpc_version = 1;
- if (has_rpc_version()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->rpc_version());
- }
+size_t BitServerHandshake::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.data.BitServerHandshake)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
}
// repeated string authenticationMechanisms = 2;
- total_size += 1 * this->authenticationmechanisms_size();
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->authenticationmechanisms_size());
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->authenticationmechanisms(i));
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional int32 rpc_version = 1;
+ if (has_rpc_version()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->rpc_version());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void BitServerHandshake::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.data.BitServerHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
const BitServerHandshake* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const BitServerHandshake*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const BitServerHandshake>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.data.BitServerHandshake)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.data.BitServerHandshake)
MergeFrom(*source);
}
}
void BitServerHandshake::MergeFrom(const BitServerHandshake& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.data.BitServerHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
authenticationmechanisms_.MergeFrom(from.authenticationmechanisms_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_rpc_version()) {
- set_rpc_version(from.rpc_version());
- }
+ if (from.has_rpc_version()) {
+ set_rpc_version(from.rpc_version());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BitServerHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.data.BitServerHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BitServerHandshake::CopyFrom(const BitServerHandshake& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.data.BitServerHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BitServerHandshake::IsInitialized() const {
-
return true;
}
void BitServerHandshake::Swap(BitServerHandshake* other) {
- if (other != this) {
- std::swap(rpc_version_, other->rpc_version_);
- authenticationmechanisms_.Swap(&other->authenticationmechanisms_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BitServerHandshake::InternalSwap(BitServerHandshake* other) {
+ using std::swap;
+ authenticationmechanisms_.InternalSwap(CastToBase(&other->authenticationmechanisms_));
+ swap(rpc_version_, other->rpc_version_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata BitServerHandshake::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = BitServerHandshake_descriptor_;
- metadata.reflection = BitServerHandshake_reflection_;
- return metadata;
+ protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void FragmentRecordBatch::InitAsDefaultInstance() {
+ ::exec::bit::data::_FragmentRecordBatch_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+ ::exec::bit::data::_FragmentRecordBatch_default_instance_._instance.get_mutable()->def_ = const_cast< ::exec::shared::RecordBatchDef*>(
+ ::exec::shared::RecordBatchDef::internal_default_instance());
+}
+void FragmentRecordBatch::clear_query_id() {
+ if (query_id_ != NULL) query_id_->Clear();
+ clear_has_query_id();
+}
+void FragmentRecordBatch::clear_def() {
+ if (def_ != NULL) def_->Clear();
+ clear_has_def();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int FragmentRecordBatch::kQueryIdFieldNumber;
const int FragmentRecordBatch::kReceivingMajorFragmentIdFieldNumber;
const int FragmentRecordBatch::kReceivingMinorFragmentIdFieldNumber;
@@ -748,324 +867,360 @@ const int FragmentRecordBatch::kSendingMajorFragmentIdFieldNumber;
const int FragmentRecordBatch::kSendingMinorFragmentIdFieldNumber;
const int FragmentRecordBatch::kDefFieldNumber;
const int FragmentRecordBatch::kIsLastBatchFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
FragmentRecordBatch::FragmentRecordBatch()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitData_2eproto::scc_info_FragmentRecordBatch.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.data.FragmentRecordBatch)
}
-
-void FragmentRecordBatch::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
- def_ = const_cast< ::exec::shared::RecordBatchDef*>(&::exec::shared::RecordBatchDef::default_instance());
-}
-
FragmentRecordBatch::FragmentRecordBatch(const FragmentRecordBatch& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ receiving_minor_fragment_id_(from.receiving_minor_fragment_id_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ if (from.has_def()) {
+ def_ = new ::exec::shared::RecordBatchDef(*from.def_);
+ } else {
+ def_ = NULL;
+ }
+ ::memcpy(&receiving_major_fragment_id_, &from.receiving_major_fragment_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&islastbatch_) -
+ reinterpret_cast<char*>(&receiving_major_fragment_id_)) + sizeof(islastbatch_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.data.FragmentRecordBatch)
}
void FragmentRecordBatch::SharedCtor() {
- _cached_size_ = 0;
- query_id_ = NULL;
- receiving_major_fragment_id_ = 0;
- sending_major_fragment_id_ = 0;
- sending_minor_fragment_id_ = 0;
- def_ = NULL;
- islastbatch_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&islastbatch_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(islastbatch_));
}
FragmentRecordBatch::~FragmentRecordBatch() {
+ // @@protoc_insertion_point(destructor:exec.bit.data.FragmentRecordBatch)
SharedDtor();
}
void FragmentRecordBatch::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- delete def_;
- }
+ if (this != internal_default_instance()) delete query_id_;
+ if (this != internal_default_instance()) delete def_;
}
void FragmentRecordBatch::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* FragmentRecordBatch::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FragmentRecordBatch_descriptor_;
+ ::protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const FragmentRecordBatch& FragmentRecordBatch::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitData_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitData_2eproto::scc_info_FragmentRecordBatch.base);
+ return *internal_default_instance();
}
-FragmentRecordBatch* FragmentRecordBatch::default_instance_ = NULL;
-
-FragmentRecordBatch* FragmentRecordBatch::New() const {
- return new FragmentRecordBatch;
-}
void FragmentRecordBatch::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.bit.data.FragmentRecordBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ receiving_minor_fragment_id_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
}
- receiving_major_fragment_id_ = 0;
- sending_major_fragment_id_ = 0;
- sending_minor_fragment_id_ = 0;
- if (has_def()) {
- if (def_ != NULL) def_->::exec::shared::RecordBatchDef::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(def_ != NULL);
+ def_->Clear();
}
- islastbatch_ = false;
}
- receiving_minor_fragment_id_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 60u) {
+ ::memset(&receiving_major_fragment_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&islastbatch_) -
+ reinterpret_cast<char*>(&receiving_major_fragment_id_)) + sizeof(islastbatch_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool FragmentRecordBatch::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.data.FragmentRecordBatch)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_receiving_major_fragment_id;
break;
}
// optional int32 receiving_major_fragment_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_receiving_major_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_receiving_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &receiving_major_fragment_id_)));
- set_has_receiving_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_receiving_minor_fragment_id;
break;
}
// repeated int32 receiving_minor_fragment_id = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_receiving_minor_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- 1, 24, input, this->mutable_receiving_minor_fragment_id())));
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
+ 1, 24u, input, this->mutable_receiving_minor_fragment_id())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_receiving_minor_fragment_id())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_receiving_minor_fragment_id;
- if (input->ExpectTag(32)) goto parse_sending_major_fragment_id;
break;
}
// optional int32 sending_major_fragment_id = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_sending_major_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_sending_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &sending_major_fragment_id_)));
- set_has_sending_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_sending_minor_fragment_id;
break;
}
// optional int32 sending_minor_fragment_id = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_sending_minor_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_sending_minor_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &sending_minor_fragment_id_)));
- set_has_sending_minor_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_def;
break;
}
// optional .exec.shared.RecordBatchDef def = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_def:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_def()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_isLastBatch;
break;
}
// optional bool isLastBatch = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_isLastBatch:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_islastbatch();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &islastbatch_)));
- set_has_islastbatch();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.data.FragmentRecordBatch)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.data.FragmentRecordBatch)
+ return false;
#undef DO_
}
void FragmentRecordBatch::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.data.FragmentRecordBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->query_id(), output);
+ 1, this->_internal_query_id(), output);
}
// optional int32 receiving_major_fragment_id = 2;
- if (has_receiving_major_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->receiving_major_fragment_id(), output);
}
// repeated int32 receiving_minor_fragment_id = 3;
- for (int i = 0; i < this->receiving_minor_fragment_id_size(); i++) {
+ for (int i = 0, n = this->receiving_minor_fragment_id_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32(
3, this->receiving_minor_fragment_id(i), output);
}
// optional int32 sending_major_fragment_id = 4;
- if (has_sending_major_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->sending_major_fragment_id(), output);
}
// optional int32 sending_minor_fragment_id = 5;
- if (has_sending_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->sending_minor_fragment_id(), output);
}
// optional .exec.shared.RecordBatchDef def = 6;
- if (has_def()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->def(), output);
+ 6, this->_internal_def(), output);
}
// optional bool isLastBatch = 7;
- if (has_islastbatch()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->islastbatch(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.data.FragmentRecordBatch)
}
-::google::protobuf::uint8* FragmentRecordBatch::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* FragmentRecordBatch::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.data.FragmentRecordBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_query_id(), deterministic, target);
}
// optional int32 receiving_major_fragment_id = 2;
- if (has_receiving_major_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->receiving_major_fragment_id(), target);
}
// repeated int32 receiving_minor_fragment_id = 3;
- for (int i = 0; i < this->receiving_minor_fragment_id_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32ToArray(3, this->receiving_minor_fragment_id(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32ToArray(3, this->receiving_minor_fragment_id_, target);
// optional int32 sending_major_fragment_id = 4;
- if (has_sending_major_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->sending_major_fragment_id(), target);
}
// optional int32 sending_minor_fragment_id = 5;
- if (has_sending_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->sending_minor_fragment_id(), target);
}
// optional .exec.shared.RecordBatchDef def = 6;
- if (has_def()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 6, this->def(), target);
+ InternalWriteMessageToArray(
+ 6, this->_internal_def(), deterministic, target);
}
// optional bool isLastBatch = 7;
- if (has_islastbatch()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->islastbatch(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.data.FragmentRecordBatch)
return target;
}
-int FragmentRecordBatch::ByteSize() const {
- int total_size = 0;
+size_t FragmentRecordBatch::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.data.FragmentRecordBatch)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated int32 receiving_minor_fragment_id = 3;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->receiving_minor_fragment_id_);
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->receiving_minor_fragment_id_size());
+ total_size += data_size;
+ }
+
+ if (_has_bits_[0 / 32] & 63u) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
+ }
+
+ // optional .exec.shared.RecordBatchDef def = 6;
+ if (has_def()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *def_);
}
// optional int32 receiving_major_fragment_id = 2;
@@ -1089,122 +1244,116 @@ int FragmentRecordBatch::ByteSize() const {
this->sending_minor_fragment_id());
}
- // optional .exec.shared.RecordBatchDef def = 6;
- if (has_def()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->def());
- }
-
// optional bool isLastBatch = 7;
if (has_islastbatch()) {
total_size += 1 + 1;
}
}
- // repeated int32 receiving_minor_fragment_id = 3;
- {
- int data_size = 0;
- for (int i = 0; i < this->receiving_minor_fragment_id_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::
- Int32Size(this->receiving_minor_fragment_id(i));
- }
- total_size += 1 * this->receiving_minor_fragment_id_size() + data_size;
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void FragmentRecordBatch::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.data.FragmentRecordBatch)
+ GOOGLE_DCHECK_NE(&from, this);
const FragmentRecordBatch* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const FragmentRecordBatch*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const FragmentRecordBatch>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.data.FragmentRecordBatch)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.data.FragmentRecordBatch)
MergeFrom(*source);
}
}
void FragmentRecordBatch::MergeFrom(const FragmentRecordBatch& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.data.FragmentRecordBatch)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
receiving_minor_fragment_id_.MergeFrom(from.receiving_minor_fragment_id_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_id()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 63u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_receiving_major_fragment_id()) {
- set_receiving_major_fragment_id(from.receiving_major_fragment_id());
+ if (cached_has_bits & 0x00000002u) {
+ mutable_def()->::exec::shared::RecordBatchDef::MergeFrom(from.def());
}
- if (from.has_sending_major_fragment_id()) {
- set_sending_major_fragment_id(from.sending_major_fragment_id());
+ if (cached_has_bits & 0x00000004u) {
+ receiving_major_fragment_id_ = from.receiving_major_fragment_id_;
}
- if (from.has_sending_minor_fragment_id()) {
- set_sending_minor_fragment_id(from.sending_minor_fragment_id());
+ if (cached_has_bits & 0x00000008u) {
+ sending_major_fragment_id_ = from.sending_major_fragment_id_;
}
- if (from.has_def()) {
- mutable_def()->::exec::shared::RecordBatchDef::MergeFrom(from.def());
+ if (cached_has_bits & 0x00000010u) {
+ sending_minor_fragment_id_ = from.sending_minor_fragment_id_;
}
- if (from.has_islastbatch()) {
- set_islastbatch(from.islastbatch());
+ if (cached_has_bits & 0x00000020u) {
+ islastbatch_ = from.islastbatch_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FragmentRecordBatch::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.data.FragmentRecordBatch)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FragmentRecordBatch::CopyFrom(const FragmentRecordBatch& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.data.FragmentRecordBatch)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FragmentRecordBatch::IsInitialized() const {
-
return true;
}
void FragmentRecordBatch::Swap(FragmentRecordBatch* other) {
- if (other != this) {
- std::swap(query_id_, other->query_id_);
- std::swap(receiving_major_fragment_id_, other->receiving_major_fragment_id_);
- receiving_minor_fragment_id_.Swap(&other->receiving_minor_fragment_id_);
- std::swap(sending_major_fragment_id_, other->sending_major_fragment_id_);
- std::swap(sending_minor_fragment_id_, other->sending_minor_fragment_id_);
- std::swap(def_, other->def_);
- std::swap(islastbatch_, other->islastbatch_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void FragmentRecordBatch::InternalSwap(FragmentRecordBatch* other) {
+ using std::swap;
+ receiving_minor_fragment_id_.InternalSwap(&other->receiving_minor_fragment_id_);
+ swap(query_id_, other->query_id_);
+ swap(def_, other->def_);
+ swap(receiving_major_fragment_id_, other->receiving_major_fragment_id_);
+ swap(sending_major_fragment_id_, other->sending_major_fragment_id_);
+ swap(sending_minor_fragment_id_, other->sending_minor_fragment_id_);
+ swap(islastbatch_, other->islastbatch_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata FragmentRecordBatch::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = FragmentRecordBatch_descriptor_;
- metadata.reflection = FragmentRecordBatch_reflection_;
- return metadata;
+ protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RuntimeFilterBDef::InitAsDefaultInstance() {
+ ::exec::bit::data::_RuntimeFilterBDef_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+}
+void RuntimeFilterBDef::clear_query_id() {
+ if (query_id_ != NULL) query_id_->Clear();
+ clear_has_query_id();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RuntimeFilterBDef::kQueryIdFieldNumber;
const int RuntimeFilterBDef::kMajorFragmentIdFieldNumber;
const int RuntimeFilterBDef::kMinorFragmentIdFieldNumber;
@@ -1213,357 +1362,387 @@ const int RuntimeFilterBDef::kBloomFilterSizeInBytesFieldNumber;
const int RuntimeFilterBDef::kProbeFieldsFieldNumber;
const int RuntimeFilterBDef::kHjOpIdFieldNumber;
const int RuntimeFilterBDef::kRfIdentifierFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RuntimeFilterBDef::RuntimeFilterBDef()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_BitData_2eproto::scc_info_RuntimeFilterBDef.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.data.RuntimeFilterBDef)
}
-
-void RuntimeFilterBDef::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
-}
-
RuntimeFilterBDef::RuntimeFilterBDef(const RuntimeFilterBDef& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ bloom_filter_size_in_bytes_(from.bloom_filter_size_in_bytes_),
+ probe_fields_(from.probe_fields_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ ::memcpy(&major_fragment_id_, &from.major_fragment_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&rf_identifier_) -
+ reinterpret_cast<char*>(&major_fragment_id_)) + sizeof(rf_identifier_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.data.RuntimeFilterBDef)
}
void RuntimeFilterBDef::SharedCtor() {
- _cached_size_ = 0;
- query_id_ = NULL;
- major_fragment_id_ = 0;
- minor_fragment_id_ = 0;
- to_foreman_ = false;
- hj_op_id_ = 0;
- rf_identifier_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&rf_identifier_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(rf_identifier_));
}
RuntimeFilterBDef::~RuntimeFilterBDef() {
+ // @@protoc_insertion_point(destructor:exec.bit.data.RuntimeFilterBDef)
SharedDtor();
}
void RuntimeFilterBDef::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- }
+ if (this != internal_default_instance()) delete query_id_;
}
void RuntimeFilterBDef::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RuntimeFilterBDef::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RuntimeFilterBDef_descriptor_;
+ ::protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RuntimeFilterBDef& RuntimeFilterBDef::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_BitData_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_BitData_2eproto::scc_info_RuntimeFilterBDef.base);
+ return *internal_default_instance();
}
-RuntimeFilterBDef* RuntimeFilterBDef::default_instance_ = NULL;
-
-RuntimeFilterBDef* RuntimeFilterBDef::New() const {
- return new RuntimeFilterBDef;
-}
void RuntimeFilterBDef::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- }
- major_fragment_id_ = 0;
- minor_fragment_id_ = 0;
- to_foreman_ = false;
- hj_op_id_ = 0;
- rf_identifier_ = GOOGLE_LONGLONG(0);
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.data.RuntimeFilterBDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
bloom_filter_size_in_bytes_.Clear();
probe_fields_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
+ }
+ if (cached_has_bits & 62u) {
+ ::memset(&major_fragment_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&rf_identifier_) -
+ reinterpret_cast<char*>(&major_fragment_id_)) + sizeof(rf_identifier_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RuntimeFilterBDef::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.data.RuntimeFilterBDef)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_major_fragment_id;
break;
}
// optional int32 major_fragment_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_major_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &major_fragment_id_)));
- set_has_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_minor_fragment_id;
break;
}
// optional int32 minor_fragment_id = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_minor_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_minor_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &minor_fragment_id_)));
- set_has_minor_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_to_foreman;
break;
}
// optional bool to_foreman = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_to_foreman:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_to_foreman();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &to_foreman_)));
- set_has_to_foreman();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_bloom_filter_size_in_bytes;
break;
}
// repeated int32 bloom_filter_size_in_bytes = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_bloom_filter_size_in_bytes:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- 1, 40, input, this->mutable_bloom_filter_size_in_bytes())));
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
+ 1, 40u, input, this->mutable_bloom_filter_size_in_bytes())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_bloom_filter_size_in_bytes())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_bloom_filter_size_in_bytes;
- if (input->ExpectTag(50)) goto parse_probe_fields;
break;
}
// repeated string probe_fields = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_probe_fields:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_probe_fields()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->probe_fields(this->probe_fields_size() - 1).data(),
- this->probe_fields(this->probe_fields_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->probe_fields(this->probe_fields_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.data.RuntimeFilterBDef.probe_fields");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_probe_fields;
- if (input->ExpectTag(56)) goto parse_hj_op_id;
break;
}
// optional int32 hj_op_id = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_hj_op_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_hj_op_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &hj_op_id_)));
- set_has_hj_op_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_rf_identifier;
break;
}
// optional int64 rf_identifier = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_rf_identifier:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
+ set_has_rf_identifier();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &rf_identifier_)));
- set_has_rf_identifier();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.data.RuntimeFilterBDef)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.data.RuntimeFilterBDef)
+ return false;
#undef DO_
}
void RuntimeFilterBDef::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.data.RuntimeFilterBDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->query_id(), output);
+ 1, this->_internal_query_id(), output);
}
// optional int32 major_fragment_id = 2;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->major_fragment_id(), output);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->minor_fragment_id(), output);
}
// optional bool to_foreman = 4;
- if (has_to_foreman()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->to_foreman(), output);
}
// repeated int32 bloom_filter_size_in_bytes = 5;
- for (int i = 0; i < this->bloom_filter_size_in_bytes_size(); i++) {
+ for (int i = 0, n = this->bloom_filter_size_in_bytes_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32(
5, this->bloom_filter_size_in_bytes(i), output);
}
// repeated string probe_fields = 6;
- for (int i = 0; i < this->probe_fields_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->probe_fields(i).data(), this->probe_fields(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->probe_fields_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->probe_fields(i).data(), static_cast<int>(this->probe_fields(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.data.RuntimeFilterBDef.probe_fields");
::google::protobuf::internal::WireFormatLite::WriteString(
6, this->probe_fields(i), output);
}
// optional int32 hj_op_id = 7;
- if (has_hj_op_id()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->hj_op_id(), output);
}
// optional int64 rf_identifier = 8;
- if (has_rf_identifier()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->rf_identifier(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.data.RuntimeFilterBDef)
}
-::google::protobuf::uint8* RuntimeFilterBDef::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RuntimeFilterBDef::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.data.RuntimeFilterBDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_query_id(), deterministic, target);
}
// optional int32 major_fragment_id = 2;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->major_fragment_id(), target);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->minor_fragment_id(), target);
}
// optional bool to_foreman = 4;
- if (has_to_foreman()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->to_foreman(), target);
}
// repeated int32 bloom_filter_size_in_bytes = 5;
- for (int i = 0; i < this->bloom_filter_size_in_bytes_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt32ToArray(5, this->bloom_filter_size_in_bytes(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32ToArray(5, this->bloom_filter_size_in_bytes_, target);
// repeated string probe_fields = 6;
- for (int i = 0; i < this->probe_fields_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->probe_fields(i).data(), this->probe_fields(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->probe_fields_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->probe_fields(i).data(), static_cast<int>(this->probe_fields(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.data.RuntimeFilterBDef.probe_fields");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(6, this->probe_fields(i), target);
}
// optional int32 hj_op_id = 7;
- if (has_hj_op_id()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->hj_op_id(), target);
}
// optional int64 rf_identifier = 8;
- if (has_rf_identifier()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->rf_identifier(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.data.RuntimeFilterBDef)
return target;
}
-int RuntimeFilterBDef::ByteSize() const {
- int total_size = 0;
+size_t RuntimeFilterBDef::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.data.RuntimeFilterBDef)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated int32 bloom_filter_size_in_bytes = 5;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->bloom_filter_size_in_bytes_);
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->bloom_filter_size_in_bytes_size());
+ total_size += data_size;
+ }
+
+ // repeated string probe_fields = 6;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->probe_fields_size());
+ for (int i = 0, n = this->probe_fields_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->probe_fields(i));
+ }
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_has_bits_[0 / 32] & 63u) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
}
// optional int32 major_fragment_id = 2;
@@ -1600,119 +1779,120 @@ int RuntimeFilterBDef::ByteSize() const {
}
}
- // repeated int32 bloom_filter_size_in_bytes = 5;
- {
- int data_size = 0;
- for (int i = 0; i < this->bloom_filter_size_in_bytes_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::
- Int32Size(this->bloom_filter_size_in_bytes(i));
- }
- total_size += 1 * this->bloom_filter_size_in_bytes_size() + data_size;
- }
-
- // repeated string probe_fields = 6;
- total_size += 1 * this->probe_fields_size();
- for (int i = 0; i < this->probe_fields_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->probe_fields(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RuntimeFilterBDef::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.data.RuntimeFilterBDef)
+ GOOGLE_DCHECK_NE(&from, this);
const RuntimeFilterBDef* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RuntimeFilterBDef*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RuntimeFilterBDef>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.data.RuntimeFilterBDef)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.data.RuntimeFilterBDef)
MergeFrom(*source);
}
}
void RuntimeFilterBDef::MergeFrom(const RuntimeFilterBDef& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.data.RuntimeFilterBDef)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
bloom_filter_size_in_bytes_.MergeFrom(from.bloom_filter_size_in_bytes_);
probe_fields_.MergeFrom(from.probe_fields_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_id()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 63u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_major_fragment_id()) {
- set_major_fragment_id(from.major_fragment_id());
+ if (cached_has_bits & 0x00000002u) {
+ major_fragment_id_ = from.major_fragment_id_;
}
- if (from.has_minor_fragment_id()) {
- set_minor_fragment_id(from.minor_fragment_id());
+ if (cached_has_bits & 0x00000004u) {
+ minor_fragment_id_ = from.minor_fragment_id_;
}
- if (from.has_to_foreman()) {
- set_to_foreman(from.to_foreman());
+ if (cached_has_bits & 0x00000008u) {
+ to_foreman_ = from.to_foreman_;
}
- if (from.has_hj_op_id()) {
- set_hj_op_id(from.hj_op_id());
+ if (cached_has_bits & 0x00000010u) {
+ hj_op_id_ = from.hj_op_id_;
}
- if (from.has_rf_identifier()) {
- set_rf_identifier(from.rf_identifier());
+ if (cached_has_bits & 0x00000020u) {
+ rf_identifier_ = from.rf_identifier_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RuntimeFilterBDef::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.data.RuntimeFilterBDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RuntimeFilterBDef::CopyFrom(const RuntimeFilterBDef& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.data.RuntimeFilterBDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RuntimeFilterBDef::IsInitialized() const {
-
return true;
}
void RuntimeFilterBDef::Swap(RuntimeFilterBDef* other) {
- if (other != this) {
- std::swap(query_id_, other->query_id_);
- std::swap(major_fragment_id_, other->major_fragment_id_);
- std::swap(minor_fragment_id_, other->minor_fragment_id_);
- std::swap(to_foreman_, other->to_foreman_);
- bloom_filter_size_in_bytes_.Swap(&other->bloom_filter_size_in_bytes_);
- probe_fields_.Swap(&other->probe_fields_);
- std::swap(hj_op_id_, other->hj_op_id_);
- std::swap(rf_identifier_, other->rf_identifier_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RuntimeFilterBDef::InternalSwap(RuntimeFilterBDef* other) {
+ using std::swap;
+ bloom_filter_size_in_bytes_.InternalSwap(&other->bloom_filter_size_in_bytes_);
+ probe_fields_.InternalSwap(CastToBase(&other->probe_fields_));
+ swap(query_id_, other->query_id_);
+ swap(major_fragment_id_, other->major_fragment_id_);
+ swap(minor_fragment_id_, other->minor_fragment_id_);
+ swap(to_foreman_, other->to_foreman_);
+ swap(hj_op_id_, other->hj_op_id_);
+ swap(rf_identifier_, other->rf_identifier_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RuntimeFilterBDef::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RuntimeFilterBDef_descriptor_;
- metadata.reflection = RuntimeFilterBDef_reflection_;
- return metadata;
+ protobuf_BitData_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_BitData_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace data
} // namespace bit
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::data::BitClientHandshake* Arena::CreateMaybeMessage< ::exec::bit::data::BitClientHandshake >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::data::BitClientHandshake >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::data::BitServerHandshake* Arena::CreateMaybeMessage< ::exec::bit::data::BitServerHandshake >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::data::BitServerHandshake >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::data::FragmentRecordBatch* Arena::CreateMaybeMessage< ::exec::bit::data::FragmentRecordBatch >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::data::FragmentRecordBatch >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::data::RuntimeFilterBDef* Arena::CreateMaybeMessage< ::exec::bit::data::RuntimeFilterBDef >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::data::RuntimeFilterBDef >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/BitData.pb.h b/contrib/native/client/src/protobuf/BitData.pb.h
index 9c9c42f85..805c4982d 100644
--- a/contrib/native/client/src/protobuf/BitData.pb.h
+++ b/contrib/native/client/src/protobuf/BitData.pb.h
@@ -1,48 +1,83 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BitData.proto
-#ifndef PROTOBUF_BitData_2eproto__INCLUDED
-#define PROTOBUF_BitData_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_BitData_2eproto
+#define PROTOBUF_INCLUDED_BitData_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "ExecutionProtos.pb.h"
#include "Coordination.pb.h"
#include "UserBitShared.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_BitData_2eproto
+
+namespace protobuf_BitData_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[4];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_BitData_2eproto
namespace exec {
namespace bit {
namespace data {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_BitData_2eproto();
-void protobuf_AssignDesc_BitData_2eproto();
-void protobuf_ShutdownFile_BitData_2eproto();
-
class BitClientHandshake;
+class BitClientHandshakeDefaultTypeInternal;
+extern BitClientHandshakeDefaultTypeInternal _BitClientHandshake_default_instance_;
class BitServerHandshake;
+class BitServerHandshakeDefaultTypeInternal;
+extern BitServerHandshakeDefaultTypeInternal _BitServerHandshake_default_instance_;
class FragmentRecordBatch;
+class FragmentRecordBatchDefaultTypeInternal;
+extern FragmentRecordBatchDefaultTypeInternal _FragmentRecordBatch_default_instance_;
class RuntimeFilterBDef;
+class RuntimeFilterBDefDefaultTypeInternal;
+extern RuntimeFilterBDefDefaultTypeInternal _RuntimeFilterBDef_default_instance_;
+} // namespace data
+} // namespace bit
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::bit::data::BitClientHandshake* Arena::CreateMaybeMessage<::exec::bit::data::BitClientHandshake>(Arena*);
+template<> ::exec::bit::data::BitServerHandshake* Arena::CreateMaybeMessage<::exec::bit::data::BitServerHandshake>(Arena*);
+template<> ::exec::bit::data::FragmentRecordBatch* Arena::CreateMaybeMessage<::exec::bit::data::FragmentRecordBatch>(Arena*);
+template<> ::exec::bit::data::RuntimeFilterBDef* Arena::CreateMaybeMessage<::exec::bit::data::RuntimeFilterBDef>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace bit {
+namespace data {
enum RpcType {
HANDSHAKE = 0,
@@ -69,7 +104,7 @@ inline bool RpcType_Parse(
}
// ===================================================================
-class BitClientHandshake : public ::google::protobuf::Message {
+class BitClientHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.data.BitClientHandshake) */ {
public:
BitClientHandshake();
virtual ~BitClientHandshake();
@@ -80,88 +115,120 @@ class BitClientHandshake : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ BitClientHandshake(BitClientHandshake&& from) noexcept
+ : BitClientHandshake() {
+ *this = ::std::move(from);
+ }
+ inline BitClientHandshake& operator=(BitClientHandshake&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BitClientHandshake& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BitClientHandshake* internal_default_instance() {
+ return reinterpret_cast<const BitClientHandshake*>(
+ &_BitClientHandshake_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(BitClientHandshake* other);
+ friend void swap(BitClientHandshake& a, BitClientHandshake& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- BitClientHandshake* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline BitClientHandshake* New() const final {
+ return CreateMaybeMessage<BitClientHandshake>(NULL);
+ }
+
+ BitClientHandshake* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<BitClientHandshake>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BitClientHandshake& from);
void MergeFrom(const BitClientHandshake& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(BitClientHandshake* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 rpc_version = 1;
- inline bool has_rpc_version() const;
- inline void clear_rpc_version();
+ bool has_rpc_version() const;
+ void clear_rpc_version();
static const int kRpcVersionFieldNumber = 1;
- inline ::google::protobuf::int32 rpc_version() const;
- inline void set_rpc_version(::google::protobuf::int32 value);
+ ::google::protobuf::int32 rpc_version() const;
+ void set_rpc_version(::google::protobuf::int32 value);
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
- inline bool has_channel() const;
- inline void clear_channel();
+ bool has_channel() const;
+ void clear_channel();
static const int kChannelFieldNumber = 2;
- inline ::exec::shared::RpcChannel channel() const;
- inline void set_channel(::exec::shared::RpcChannel value);
+ ::exec::shared::RpcChannel channel() const;
+ void set_channel(::exec::shared::RpcChannel value);
// @@protoc_insertion_point(class_scope:exec.bit.data.BitClientHandshake)
private:
- inline void set_has_rpc_version();
- inline void clear_has_rpc_version();
- inline void set_has_channel();
- inline void clear_has_channel();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_rpc_version();
+ void clear_has_rpc_version();
+ void set_has_channel();
+ void clear_has_channel();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int32 rpc_version_;
int channel_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_BitData_2eproto();
- friend void protobuf_AssignDesc_BitData_2eproto();
- friend void protobuf_ShutdownFile_BitData_2eproto();
-
- void InitAsDefaultInstance();
- static BitClientHandshake* default_instance_;
+ friend struct ::protobuf_BitData_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class BitServerHandshake : public ::google::protobuf::Message {
+class BitServerHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.data.BitServerHandshake) */ {
public:
BitServerHandshake();
virtual ~BitServerHandshake();
@@ -172,95 +239,133 @@ class BitServerHandshake : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ BitServerHandshake(BitServerHandshake&& from) noexcept
+ : BitServerHandshake() {
+ *this = ::std::move(from);
+ }
+ inline BitServerHandshake& operator=(BitServerHandshake&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BitServerHandshake& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BitServerHandshake* internal_default_instance() {
+ return reinterpret_cast<const BitServerHandshake*>(
+ &_BitServerHandshake_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(BitServerHandshake* other);
+ friend void swap(BitServerHandshake& a, BitServerHandshake& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- BitServerHandshake* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline BitServerHandshake* New() const final {
+ return CreateMaybeMessage<BitServerHandshake>(NULL);
+ }
+
+ BitServerHandshake* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<BitServerHandshake>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BitServerHandshake& from);
void MergeFrom(const BitServerHandshake& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(BitServerHandshake* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 rpc_version = 1;
- inline bool has_rpc_version() const;
- inline void clear_rpc_version();
- static const int kRpcVersionFieldNumber = 1;
- inline ::google::protobuf::int32 rpc_version() const;
- inline void set_rpc_version(::google::protobuf::int32 value);
-
// repeated string authenticationMechanisms = 2;
- inline int authenticationmechanisms_size() const;
- inline void clear_authenticationmechanisms();
+ int authenticationmechanisms_size() const;
+ void clear_authenticationmechanisms();
static const int kAuthenticationMechanismsFieldNumber = 2;
- inline const ::std::string& authenticationmechanisms(int index) const;
- inline ::std::string* mutable_authenticationmechanisms(int index);
- inline void set_authenticationmechanisms(int index, const ::std::string& value);
- inline void set_authenticationmechanisms(int index, const char* value);
- inline void set_authenticationmechanisms(int index, const char* value, size_t size);
- inline ::std::string* add_authenticationmechanisms();
- inline void add_authenticationmechanisms(const ::std::string& value);
- inline void add_authenticationmechanisms(const char* value);
- inline void add_authenticationmechanisms(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
+ const ::std::string& authenticationmechanisms(int index) const;
+ ::std::string* mutable_authenticationmechanisms(int index);
+ void set_authenticationmechanisms(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_authenticationmechanisms(int index, ::std::string&& value);
+ #endif
+ void set_authenticationmechanisms(int index, const char* value);
+ void set_authenticationmechanisms(int index, const char* value, size_t size);
+ ::std::string* add_authenticationmechanisms();
+ void add_authenticationmechanisms(const ::std::string& value);
+ #if LANG_CXX11
+ void add_authenticationmechanisms(::std::string&& value);
+ #endif
+ void add_authenticationmechanisms(const char* value);
+ void add_authenticationmechanisms(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
+
+ // optional int32 rpc_version = 1;
+ bool has_rpc_version() const;
+ void clear_rpc_version();
+ static const int kRpcVersionFieldNumber = 1;
+ ::google::protobuf::int32 rpc_version() const;
+ void set_rpc_version(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.bit.data.BitServerHandshake)
private:
- inline void set_has_rpc_version();
- inline void clear_has_rpc_version();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_rpc_version();
+ void clear_has_rpc_version();
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::std::string> authenticationmechanisms_;
::google::protobuf::int32 rpc_version_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_BitData_2eproto();
- friend void protobuf_AssignDesc_BitData_2eproto();
- friend void protobuf_ShutdownFile_BitData_2eproto();
-
- void InitAsDefaultInstance();
- static BitServerHandshake* default_instance_;
+ friend struct ::protobuf_BitData_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class FragmentRecordBatch : public ::google::protobuf::Message {
+class FragmentRecordBatch : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.data.FragmentRecordBatch) */ {
public:
FragmentRecordBatch();
virtual ~FragmentRecordBatch();
@@ -271,145 +376,183 @@ class FragmentRecordBatch : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ FragmentRecordBatch(FragmentRecordBatch&& from) noexcept
+ : FragmentRecordBatch() {
+ *this = ::std::move(from);
+ }
+ inline FragmentRecordBatch& operator=(FragmentRecordBatch&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const FragmentRecordBatch& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FragmentRecordBatch* internal_default_instance() {
+ return reinterpret_cast<const FragmentRecordBatch*>(
+ &_FragmentRecordBatch_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(FragmentRecordBatch* other);
+ friend void swap(FragmentRecordBatch& a, FragmentRecordBatch& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- FragmentRecordBatch* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline FragmentRecordBatch* New() const final {
+ return CreateMaybeMessage<FragmentRecordBatch>(NULL);
+ }
+
+ FragmentRecordBatch* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<FragmentRecordBatch>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const FragmentRecordBatch& from);
void MergeFrom(const FragmentRecordBatch& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(FragmentRecordBatch* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated int32 receiving_minor_fragment_id = 3;
+ int receiving_minor_fragment_id_size() const;
+ void clear_receiving_minor_fragment_id();
+ static const int kReceivingMinorFragmentIdFieldNumber = 3;
+ ::google::protobuf::int32 receiving_minor_fragment_id(int index) const;
+ void set_receiving_minor_fragment_id(int index, ::google::protobuf::int32 value);
+ void add_receiving_minor_fragment_id(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ receiving_minor_fragment_id() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_receiving_minor_fragment_id();
+
// optional .exec.shared.QueryId query_id = 1;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
+
+ // optional .exec.shared.RecordBatchDef def = 6;
+ bool has_def() const;
+ void clear_def();
+ static const int kDefFieldNumber = 6;
+ private:
+ const ::exec::shared::RecordBatchDef& _internal_def() const;
+ public:
+ const ::exec::shared::RecordBatchDef& def() const;
+ ::exec::shared::RecordBatchDef* release_def();
+ ::exec::shared::RecordBatchDef* mutable_def();
+ void set_allocated_def(::exec::shared::RecordBatchDef* def);
// optional int32 receiving_major_fragment_id = 2;
- inline bool has_receiving_major_fragment_id() const;
- inline void clear_receiving_major_fragment_id();
+ bool has_receiving_major_fragment_id() const;
+ void clear_receiving_major_fragment_id();
static const int kReceivingMajorFragmentIdFieldNumber = 2;
- inline ::google::protobuf::int32 receiving_major_fragment_id() const;
- inline void set_receiving_major_fragment_id(::google::protobuf::int32 value);
-
- // repeated int32 receiving_minor_fragment_id = 3;
- inline int receiving_minor_fragment_id_size() const;
- inline void clear_receiving_minor_fragment_id();
- static const int kReceivingMinorFragmentIdFieldNumber = 3;
- inline ::google::protobuf::int32 receiving_minor_fragment_id(int index) const;
- inline void set_receiving_minor_fragment_id(int index, ::google::protobuf::int32 value);
- inline void add_receiving_minor_fragment_id(::google::protobuf::int32 value);
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- receiving_minor_fragment_id() const;
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_receiving_minor_fragment_id();
+ ::google::protobuf::int32 receiving_major_fragment_id() const;
+ void set_receiving_major_fragment_id(::google::protobuf::int32 value);
// optional int32 sending_major_fragment_id = 4;
- inline bool has_sending_major_fragment_id() const;
- inline void clear_sending_major_fragment_id();
+ bool has_sending_major_fragment_id() const;
+ void clear_sending_major_fragment_id();
static const int kSendingMajorFragmentIdFieldNumber = 4;
- inline ::google::protobuf::int32 sending_major_fragment_id() const;
- inline void set_sending_major_fragment_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 sending_major_fragment_id() const;
+ void set_sending_major_fragment_id(::google::protobuf::int32 value);
// optional int32 sending_minor_fragment_id = 5;
- inline bool has_sending_minor_fragment_id() const;
- inline void clear_sending_minor_fragment_id();
+ bool has_sending_minor_fragment_id() const;
+ void clear_sending_minor_fragment_id();
static const int kSendingMinorFragmentIdFieldNumber = 5;
- inline ::google::protobuf::int32 sending_minor_fragment_id() const;
- inline void set_sending_minor_fragment_id(::google::protobuf::int32 value);
-
- // optional .exec.shared.RecordBatchDef def = 6;
- inline bool has_def() const;
- inline void clear_def();
- static const int kDefFieldNumber = 6;
- inline const ::exec::shared::RecordBatchDef& def() const;
- inline ::exec::shared::RecordBatchDef* mutable_def();
- inline ::exec::shared::RecordBatchDef* release_def();
- inline void set_allocated_def(::exec::shared::RecordBatchDef* def);
+ ::google::protobuf::int32 sending_minor_fragment_id() const;
+ void set_sending_minor_fragment_id(::google::protobuf::int32 value);
// optional bool isLastBatch = 7;
- inline bool has_islastbatch() const;
- inline void clear_islastbatch();
+ bool has_islastbatch() const;
+ void clear_islastbatch();
static const int kIsLastBatchFieldNumber = 7;
- inline bool islastbatch() const;
- inline void set_islastbatch(bool value);
+ bool islastbatch() const;
+ void set_islastbatch(bool value);
// @@protoc_insertion_point(class_scope:exec.bit.data.FragmentRecordBatch)
private:
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_receiving_major_fragment_id();
- inline void clear_has_receiving_major_fragment_id();
- inline void set_has_sending_major_fragment_id();
- inline void clear_has_sending_major_fragment_id();
- inline void set_has_sending_minor_fragment_id();
- inline void clear_has_sending_minor_fragment_id();
- inline void set_has_def();
- inline void clear_has_def();
- inline void set_has_islastbatch();
- inline void clear_has_islastbatch();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::exec::shared::QueryId* query_id_;
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_receiving_major_fragment_id();
+ void clear_has_receiving_major_fragment_id();
+ void set_has_sending_major_fragment_id();
+ void clear_has_sending_major_fragment_id();
+ void set_has_sending_minor_fragment_id();
+ void clear_has_sending_minor_fragment_id();
+ void set_has_def();
+ void clear_has_def();
+ void set_has_islastbatch();
+ void clear_has_islastbatch();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedField< ::google::protobuf::int32 > receiving_minor_fragment_id_;
+ ::exec::shared::QueryId* query_id_;
+ ::exec::shared::RecordBatchDef* def_;
::google::protobuf::int32 receiving_major_fragment_id_;
::google::protobuf::int32 sending_major_fragment_id_;
- ::exec::shared::RecordBatchDef* def_;
::google::protobuf::int32 sending_minor_fragment_id_;
bool islastbatch_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
-
- friend void protobuf_AddDesc_BitData_2eproto();
- friend void protobuf_AssignDesc_BitData_2eproto();
- friend void protobuf_ShutdownFile_BitData_2eproto();
-
- void InitAsDefaultInstance();
- static FragmentRecordBatch* default_instance_;
+ friend struct ::protobuf_BitData_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RuntimeFilterBDef : public ::google::protobuf::Message {
+class RuntimeFilterBDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.data.RuntimeFilterBDef) */ {
public:
RuntimeFilterBDef();
virtual ~RuntimeFilterBDef();
@@ -420,162 +563,207 @@ class RuntimeFilterBDef : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RuntimeFilterBDef(RuntimeFilterBDef&& from) noexcept
+ : RuntimeFilterBDef() {
+ *this = ::std::move(from);
+ }
+ inline RuntimeFilterBDef& operator=(RuntimeFilterBDef&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RuntimeFilterBDef& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RuntimeFilterBDef* internal_default_instance() {
+ return reinterpret_cast<const RuntimeFilterBDef*>(
+ &_RuntimeFilterBDef_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 3;
+
void Swap(RuntimeFilterBDef* other);
+ friend void swap(RuntimeFilterBDef& a, RuntimeFilterBDef& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RuntimeFilterBDef* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RuntimeFilterBDef* New() const final {
+ return CreateMaybeMessage<RuntimeFilterBDef>(NULL);
+ }
+
+ RuntimeFilterBDef* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RuntimeFilterBDef>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RuntimeFilterBDef& from);
void MergeFrom(const RuntimeFilterBDef& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RuntimeFilterBDef* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated int32 bloom_filter_size_in_bytes = 5;
+ int bloom_filter_size_in_bytes_size() const;
+ void clear_bloom_filter_size_in_bytes();
+ static const int kBloomFilterSizeInBytesFieldNumber = 5;
+ ::google::protobuf::int32 bloom_filter_size_in_bytes(int index) const;
+ void set_bloom_filter_size_in_bytes(int index, ::google::protobuf::int32 value);
+ void add_bloom_filter_size_in_bytes(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ bloom_filter_size_in_bytes() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_bloom_filter_size_in_bytes();
+
+ // repeated string probe_fields = 6;
+ int probe_fields_size() const;
+ void clear_probe_fields();
+ static const int kProbeFieldsFieldNumber = 6;
+ const ::std::string& probe_fields(int index) const;
+ ::std::string* mutable_probe_fields(int index);
+ void set_probe_fields(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_probe_fields(int index, ::std::string&& value);
+ #endif
+ void set_probe_fields(int index, const char* value);
+ void set_probe_fields(int index, const char* value, size_t size);
+ ::std::string* add_probe_fields();
+ void add_probe_fields(const ::std::string& value);
+ #if LANG_CXX11
+ void add_probe_fields(::std::string&& value);
+ #endif
+ void add_probe_fields(const char* value);
+ void add_probe_fields(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& probe_fields() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_probe_fields();
+
// optional .exec.shared.QueryId query_id = 1;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
// optional int32 major_fragment_id = 2;
- inline bool has_major_fragment_id() const;
- inline void clear_major_fragment_id();
+ bool has_major_fragment_id() const;
+ void clear_major_fragment_id();
static const int kMajorFragmentIdFieldNumber = 2;
- inline ::google::protobuf::int32 major_fragment_id() const;
- inline void set_major_fragment_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 major_fragment_id() const;
+ void set_major_fragment_id(::google::protobuf::int32 value);
// optional int32 minor_fragment_id = 3;
- inline bool has_minor_fragment_id() const;
- inline void clear_minor_fragment_id();
+ bool has_minor_fragment_id() const;
+ void clear_minor_fragment_id();
static const int kMinorFragmentIdFieldNumber = 3;
- inline ::google::protobuf::int32 minor_fragment_id() const;
- inline void set_minor_fragment_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 minor_fragment_id() const;
+ void set_minor_fragment_id(::google::protobuf::int32 value);
// optional bool to_foreman = 4;
- inline bool has_to_foreman() const;
- inline void clear_to_foreman();
+ bool has_to_foreman() const;
+ void clear_to_foreman();
static const int kToForemanFieldNumber = 4;
- inline bool to_foreman() const;
- inline void set_to_foreman(bool value);
-
- // repeated int32 bloom_filter_size_in_bytes = 5;
- inline int bloom_filter_size_in_bytes_size() const;
- inline void clear_bloom_filter_size_in_bytes();
- static const int kBloomFilterSizeInBytesFieldNumber = 5;
- inline ::google::protobuf::int32 bloom_filter_size_in_bytes(int index) const;
- inline void set_bloom_filter_size_in_bytes(int index, ::google::protobuf::int32 value);
- inline void add_bloom_filter_size_in_bytes(::google::protobuf::int32 value);
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- bloom_filter_size_in_bytes() const;
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_bloom_filter_size_in_bytes();
-
- // repeated string probe_fields = 6;
- inline int probe_fields_size() const;
- inline void clear_probe_fields();
- static const int kProbeFieldsFieldNumber = 6;
- inline const ::std::string& probe_fields(int index) const;
- inline ::std::string* mutable_probe_fields(int index);
- inline void set_probe_fields(int index, const ::std::string& value);
- inline void set_probe_fields(int index, const char* value);
- inline void set_probe_fields(int index, const char* value, size_t size);
- inline ::std::string* add_probe_fields();
- inline void add_probe_fields(const ::std::string& value);
- inline void add_probe_fields(const char* value);
- inline void add_probe_fields(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& probe_fields() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_probe_fields();
+ bool to_foreman() const;
+ void set_to_foreman(bool value);
// optional int32 hj_op_id = 7;
- inline bool has_hj_op_id() const;
- inline void clear_hj_op_id();
+ bool has_hj_op_id() const;
+ void clear_hj_op_id();
static const int kHjOpIdFieldNumber = 7;
- inline ::google::protobuf::int32 hj_op_id() const;
- inline void set_hj_op_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 hj_op_id() const;
+ void set_hj_op_id(::google::protobuf::int32 value);
// optional int64 rf_identifier = 8;
- inline bool has_rf_identifier() const;
- inline void clear_rf_identifier();
+ bool has_rf_identifier() const;
+ void clear_rf_identifier();
static const int kRfIdentifierFieldNumber = 8;
- inline ::google::protobuf::int64 rf_identifier() const;
- inline void set_rf_identifier(::google::protobuf::int64 value);
+ ::google::protobuf::int64 rf_identifier() const;
+ void set_rf_identifier(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.bit.data.RuntimeFilterBDef)
private:
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_major_fragment_id();
- inline void clear_has_major_fragment_id();
- inline void set_has_minor_fragment_id();
- inline void clear_has_minor_fragment_id();
- inline void set_has_to_foreman();
- inline void clear_has_to_foreman();
- inline void set_has_hj_op_id();
- inline void clear_has_hj_op_id();
- inline void set_has_rf_identifier();
- inline void clear_has_rf_identifier();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_major_fragment_id();
+ void clear_has_major_fragment_id();
+ void set_has_minor_fragment_id();
+ void clear_has_minor_fragment_id();
+ void set_has_to_foreman();
+ void clear_has_to_foreman();
+ void set_has_hj_op_id();
+ void clear_has_hj_op_id();
+ void set_has_rf_identifier();
+ void clear_has_rf_identifier();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bloom_filter_size_in_bytes_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> probe_fields_;
::exec::shared::QueryId* query_id_;
::google::protobuf::int32 major_fragment_id_;
::google::protobuf::int32 minor_fragment_id_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bloom_filter_size_in_bytes_;
bool to_foreman_;
::google::protobuf::int32 hj_op_id_;
- ::google::protobuf::RepeatedPtrField< ::std::string> probe_fields_;
::google::protobuf::int64 rf_identifier_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
-
- friend void protobuf_AddDesc_BitData_2eproto();
- friend void protobuf_AssignDesc_BitData_2eproto();
- friend void protobuf_ShutdownFile_BitData_2eproto();
-
- void InitAsDefaultInstance();
- static RuntimeFilterBDef* default_instance_;
+ friend struct ::protobuf_BitData_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// BitClientHandshake
// optional int32 rpc_version = 1;
@@ -593,11 +781,13 @@ inline void BitClientHandshake::clear_rpc_version() {
clear_has_rpc_version();
}
inline ::google::protobuf::int32 BitClientHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.BitClientHandshake.rpc_version)
return rpc_version_;
}
inline void BitClientHandshake::set_rpc_version(::google::protobuf::int32 value) {
set_has_rpc_version();
rpc_version_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.BitClientHandshake.rpc_version)
}
// optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
@@ -615,12 +805,14 @@ inline void BitClientHandshake::clear_channel() {
clear_has_channel();
}
inline ::exec::shared::RpcChannel BitClientHandshake::channel() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.BitClientHandshake.channel)
return static_cast< ::exec::shared::RpcChannel >(channel_);
}
inline void BitClientHandshake::set_channel(::exec::shared::RpcChannel value) {
assert(::exec::shared::RpcChannel_IsValid(value));
set_has_channel();
channel_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.BitClientHandshake.channel)
}
// -------------------------------------------------------------------
@@ -642,11 +834,13 @@ inline void BitServerHandshake::clear_rpc_version() {
clear_has_rpc_version();
}
inline ::google::protobuf::int32 BitServerHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.BitServerHandshake.rpc_version)
return rpc_version_;
}
inline void BitServerHandshake::set_rpc_version(::google::protobuf::int32 value) {
set_has_rpc_version();
rpc_version_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.BitServerHandshake.rpc_version)
}
// repeated string authenticationMechanisms = 2;
@@ -657,39 +851,64 @@ inline void BitServerHandshake::clear_authenticationmechanisms() {
authenticationmechanisms_.Clear();
}
inline const ::std::string& BitServerHandshake::authenticationmechanisms(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.BitServerHandshake.authenticationMechanisms)
return authenticationmechanisms_.Get(index);
}
inline ::std::string* BitServerHandshake::mutable_authenticationmechanisms(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.data.BitServerHandshake.authenticationMechanisms)
return authenticationmechanisms_.Mutable(index);
}
inline void BitServerHandshake::set_authenticationmechanisms(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.data.BitServerHandshake.authenticationMechanisms)
authenticationmechanisms_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void BitServerHandshake::set_authenticationmechanisms(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.data.BitServerHandshake.authenticationMechanisms)
+ authenticationmechanisms_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void BitServerHandshake::set_authenticationmechanisms(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.bit.data.BitServerHandshake.authenticationMechanisms)
}
inline void BitServerHandshake::set_authenticationmechanisms(int index, const char* value, size_t size) {
authenticationmechanisms_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.data.BitServerHandshake.authenticationMechanisms)
}
inline ::std::string* BitServerHandshake::add_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_add_mutable:exec.bit.data.BitServerHandshake.authenticationMechanisms)
return authenticationmechanisms_.Add();
}
inline void BitServerHandshake::add_authenticationmechanisms(const ::std::string& value) {
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.bit.data.BitServerHandshake.authenticationMechanisms)
+}
+#if LANG_CXX11
+inline void BitServerHandshake::add_authenticationmechanisms(::std::string&& value) {
+ authenticationmechanisms_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.bit.data.BitServerHandshake.authenticationMechanisms)
}
+#endif
inline void BitServerHandshake::add_authenticationmechanisms(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.bit.data.BitServerHandshake.authenticationMechanisms)
}
inline void BitServerHandshake::add_authenticationmechanisms(const char* value, size_t size) {
authenticationmechanisms_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.bit.data.BitServerHandshake.authenticationMechanisms)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
BitServerHandshake::authenticationmechanisms() const {
+ // @@protoc_insertion_point(field_list:exec.bit.data.BitServerHandshake.authenticationMechanisms)
return authenticationmechanisms_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
BitServerHandshake::mutable_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.data.BitServerHandshake.authenticationMechanisms)
return &authenticationmechanisms_;
}
@@ -707,54 +926,72 @@ inline void FragmentRecordBatch::set_has_query_id() {
inline void FragmentRecordBatch::clear_has_query_id() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void FragmentRecordBatch::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- clear_has_query_id();
+inline const ::exec::shared::QueryId& FragmentRecordBatch::_internal_query_id() const {
+ return *query_id_;
}
inline const ::exec::shared::QueryId& FragmentRecordBatch::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
-}
-inline ::exec::shared::QueryId* FragmentRecordBatch::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* FragmentRecordBatch::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.bit.data.FragmentRecordBatch.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* FragmentRecordBatch::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.data.FragmentRecordBatch.query_id)
+ return query_id_;
+}
inline void FragmentRecordBatch::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_id_);
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.data.FragmentRecordBatch.query_id)
}
// optional int32 receiving_major_fragment_id = 2;
inline bool FragmentRecordBatch::has_receiving_major_fragment_id() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void FragmentRecordBatch::set_has_receiving_major_fragment_id() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void FragmentRecordBatch::clear_has_receiving_major_fragment_id() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void FragmentRecordBatch::clear_receiving_major_fragment_id() {
receiving_major_fragment_id_ = 0;
clear_has_receiving_major_fragment_id();
}
inline ::google::protobuf::int32 FragmentRecordBatch::receiving_major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.receiving_major_fragment_id)
return receiving_major_fragment_id_;
}
inline void FragmentRecordBatch::set_receiving_major_fragment_id(::google::protobuf::int32 value) {
set_has_receiving_major_fragment_id();
receiving_major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.FragmentRecordBatch.receiving_major_fragment_id)
}
// repeated int32 receiving_minor_fragment_id = 3;
@@ -765,20 +1002,25 @@ inline void FragmentRecordBatch::clear_receiving_minor_fragment_id() {
receiving_minor_fragment_id_.Clear();
}
inline ::google::protobuf::int32 FragmentRecordBatch::receiving_minor_fragment_id(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.receiving_minor_fragment_id)
return receiving_minor_fragment_id_.Get(index);
}
inline void FragmentRecordBatch::set_receiving_minor_fragment_id(int index, ::google::protobuf::int32 value) {
receiving_minor_fragment_id_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.bit.data.FragmentRecordBatch.receiving_minor_fragment_id)
}
inline void FragmentRecordBatch::add_receiving_minor_fragment_id(::google::protobuf::int32 value) {
receiving_minor_fragment_id_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.bit.data.FragmentRecordBatch.receiving_minor_fragment_id)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
FragmentRecordBatch::receiving_minor_fragment_id() const {
+ // @@protoc_insertion_point(field_list:exec.bit.data.FragmentRecordBatch.receiving_minor_fragment_id)
return receiving_minor_fragment_id_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
FragmentRecordBatch::mutable_receiving_minor_fragment_id() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.data.FragmentRecordBatch.receiving_minor_fragment_id)
return &receiving_minor_fragment_id_;
}
@@ -797,11 +1039,13 @@ inline void FragmentRecordBatch::clear_sending_major_fragment_id() {
clear_has_sending_major_fragment_id();
}
inline ::google::protobuf::int32 FragmentRecordBatch::sending_major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.sending_major_fragment_id)
return sending_major_fragment_id_;
}
inline void FragmentRecordBatch::set_sending_major_fragment_id(::google::protobuf::int32 value) {
set_has_sending_major_fragment_id();
sending_major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.FragmentRecordBatch.sending_major_fragment_id)
}
// optional int32 sending_minor_fragment_id = 5;
@@ -819,71 +1063,91 @@ inline void FragmentRecordBatch::clear_sending_minor_fragment_id() {
clear_has_sending_minor_fragment_id();
}
inline ::google::protobuf::int32 FragmentRecordBatch::sending_minor_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.sending_minor_fragment_id)
return sending_minor_fragment_id_;
}
inline void FragmentRecordBatch::set_sending_minor_fragment_id(::google::protobuf::int32 value) {
set_has_sending_minor_fragment_id();
sending_minor_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.FragmentRecordBatch.sending_minor_fragment_id)
}
// optional .exec.shared.RecordBatchDef def = 6;
inline bool FragmentRecordBatch::has_def() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void FragmentRecordBatch::set_has_def() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void FragmentRecordBatch::clear_has_def() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void FragmentRecordBatch::clear_def() {
- if (def_ != NULL) def_->::exec::shared::RecordBatchDef::Clear();
- clear_has_def();
+inline const ::exec::shared::RecordBatchDef& FragmentRecordBatch::_internal_def() const {
+ return *def_;
}
inline const ::exec::shared::RecordBatchDef& FragmentRecordBatch::def() const {
- return def_ != NULL ? *def_ : *default_instance_->def_;
-}
-inline ::exec::shared::RecordBatchDef* FragmentRecordBatch::mutable_def() {
- set_has_def();
- if (def_ == NULL) def_ = new ::exec::shared::RecordBatchDef;
- return def_;
+ const ::exec::shared::RecordBatchDef* p = def_;
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.def)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::RecordBatchDef*>(
+ &::exec::shared::_RecordBatchDef_default_instance_);
}
inline ::exec::shared::RecordBatchDef* FragmentRecordBatch::release_def() {
+ // @@protoc_insertion_point(field_release:exec.bit.data.FragmentRecordBatch.def)
clear_has_def();
::exec::shared::RecordBatchDef* temp = def_;
def_ = NULL;
return temp;
}
+inline ::exec::shared::RecordBatchDef* FragmentRecordBatch::mutable_def() {
+ set_has_def();
+ if (def_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::RecordBatchDef>(GetArenaNoVirtual());
+ def_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.data.FragmentRecordBatch.def)
+ return def_;
+}
inline void FragmentRecordBatch::set_allocated_def(::exec::shared::RecordBatchDef* def) {
- delete def_;
- def_ = def;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(def_);
+ }
if (def) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ def = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, def, submessage_arena);
+ }
set_has_def();
} else {
clear_has_def();
}
+ def_ = def;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.data.FragmentRecordBatch.def)
}
// optional bool isLastBatch = 7;
inline bool FragmentRecordBatch::has_islastbatch() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void FragmentRecordBatch::set_has_islastbatch() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void FragmentRecordBatch::clear_has_islastbatch() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void FragmentRecordBatch::clear_islastbatch() {
islastbatch_ = false;
clear_has_islastbatch();
}
inline bool FragmentRecordBatch::islastbatch() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.FragmentRecordBatch.isLastBatch)
return islastbatch_;
}
inline void FragmentRecordBatch::set_islastbatch(bool value) {
set_has_islastbatch();
islastbatch_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.FragmentRecordBatch.isLastBatch)
}
// -------------------------------------------------------------------
@@ -900,32 +1164,48 @@ inline void RuntimeFilterBDef::set_has_query_id() {
inline void RuntimeFilterBDef::clear_has_query_id() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void RuntimeFilterBDef::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- clear_has_query_id();
+inline const ::exec::shared::QueryId& RuntimeFilterBDef::_internal_query_id() const {
+ return *query_id_;
}
inline const ::exec::shared::QueryId& RuntimeFilterBDef::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
-}
-inline ::exec::shared::QueryId* RuntimeFilterBDef::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* RuntimeFilterBDef::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.bit.data.RuntimeFilterBDef.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* RuntimeFilterBDef::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.data.RuntimeFilterBDef.query_id)
+ return query_id_;
+}
inline void RuntimeFilterBDef::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_id_);
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.data.RuntimeFilterBDef.query_id)
}
// optional int32 major_fragment_id = 2;
@@ -943,11 +1223,13 @@ inline void RuntimeFilterBDef::clear_major_fragment_id() {
clear_has_major_fragment_id();
}
inline ::google::protobuf::int32 RuntimeFilterBDef::major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.major_fragment_id)
return major_fragment_id_;
}
inline void RuntimeFilterBDef::set_major_fragment_id(::google::protobuf::int32 value) {
set_has_major_fragment_id();
major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.major_fragment_id)
}
// optional int32 minor_fragment_id = 3;
@@ -965,11 +1247,13 @@ inline void RuntimeFilterBDef::clear_minor_fragment_id() {
clear_has_minor_fragment_id();
}
inline ::google::protobuf::int32 RuntimeFilterBDef::minor_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.minor_fragment_id)
return minor_fragment_id_;
}
inline void RuntimeFilterBDef::set_minor_fragment_id(::google::protobuf::int32 value) {
set_has_minor_fragment_id();
minor_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.minor_fragment_id)
}
// optional bool to_foreman = 4;
@@ -987,11 +1271,13 @@ inline void RuntimeFilterBDef::clear_to_foreman() {
clear_has_to_foreman();
}
inline bool RuntimeFilterBDef::to_foreman() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.to_foreman)
return to_foreman_;
}
inline void RuntimeFilterBDef::set_to_foreman(bool value) {
set_has_to_foreman();
to_foreman_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.to_foreman)
}
// repeated int32 bloom_filter_size_in_bytes = 5;
@@ -1002,20 +1288,25 @@ inline void RuntimeFilterBDef::clear_bloom_filter_size_in_bytes() {
bloom_filter_size_in_bytes_.Clear();
}
inline ::google::protobuf::int32 RuntimeFilterBDef::bloom_filter_size_in_bytes(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.bloom_filter_size_in_bytes)
return bloom_filter_size_in_bytes_.Get(index);
}
inline void RuntimeFilterBDef::set_bloom_filter_size_in_bytes(int index, ::google::protobuf::int32 value) {
bloom_filter_size_in_bytes_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.bloom_filter_size_in_bytes)
}
inline void RuntimeFilterBDef::add_bloom_filter_size_in_bytes(::google::protobuf::int32 value) {
bloom_filter_size_in_bytes_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.bit.data.RuntimeFilterBDef.bloom_filter_size_in_bytes)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
RuntimeFilterBDef::bloom_filter_size_in_bytes() const {
+ // @@protoc_insertion_point(field_list:exec.bit.data.RuntimeFilterBDef.bloom_filter_size_in_bytes)
return bloom_filter_size_in_bytes_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
RuntimeFilterBDef::mutable_bloom_filter_size_in_bytes() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.data.RuntimeFilterBDef.bloom_filter_size_in_bytes)
return &bloom_filter_size_in_bytes_;
}
@@ -1027,86 +1318,124 @@ inline void RuntimeFilterBDef::clear_probe_fields() {
probe_fields_.Clear();
}
inline const ::std::string& RuntimeFilterBDef::probe_fields(int index) const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.probe_fields)
return probe_fields_.Get(index);
}
inline ::std::string* RuntimeFilterBDef::mutable_probe_fields(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.bit.data.RuntimeFilterBDef.probe_fields)
return probe_fields_.Mutable(index);
}
inline void RuntimeFilterBDef::set_probe_fields(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.probe_fields)
probe_fields_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void RuntimeFilterBDef::set_probe_fields(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.probe_fields)
+ probe_fields_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void RuntimeFilterBDef::set_probe_fields(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
probe_fields_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.bit.data.RuntimeFilterBDef.probe_fields)
}
inline void RuntimeFilterBDef::set_probe_fields(int index, const char* value, size_t size) {
probe_fields_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.data.RuntimeFilterBDef.probe_fields)
}
inline ::std::string* RuntimeFilterBDef::add_probe_fields() {
+ // @@protoc_insertion_point(field_add_mutable:exec.bit.data.RuntimeFilterBDef.probe_fields)
return probe_fields_.Add();
}
inline void RuntimeFilterBDef::add_probe_fields(const ::std::string& value) {
probe_fields_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.bit.data.RuntimeFilterBDef.probe_fields)
}
+#if LANG_CXX11
+inline void RuntimeFilterBDef::add_probe_fields(::std::string&& value) {
+ probe_fields_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.bit.data.RuntimeFilterBDef.probe_fields)
+}
+#endif
inline void RuntimeFilterBDef::add_probe_fields(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
probe_fields_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.bit.data.RuntimeFilterBDef.probe_fields)
}
inline void RuntimeFilterBDef::add_probe_fields(const char* value, size_t size) {
probe_fields_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.bit.data.RuntimeFilterBDef.probe_fields)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
RuntimeFilterBDef::probe_fields() const {
+ // @@protoc_insertion_point(field_list:exec.bit.data.RuntimeFilterBDef.probe_fields)
return probe_fields_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
RuntimeFilterBDef::mutable_probe_fields() {
+ // @@protoc_insertion_point(field_mutable_list:exec.bit.data.RuntimeFilterBDef.probe_fields)
return &probe_fields_;
}
// optional int32 hj_op_id = 7;
inline bool RuntimeFilterBDef::has_hj_op_id() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void RuntimeFilterBDef::set_has_hj_op_id() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void RuntimeFilterBDef::clear_has_hj_op_id() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void RuntimeFilterBDef::clear_hj_op_id() {
hj_op_id_ = 0;
clear_has_hj_op_id();
}
inline ::google::protobuf::int32 RuntimeFilterBDef::hj_op_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.hj_op_id)
return hj_op_id_;
}
inline void RuntimeFilterBDef::set_hj_op_id(::google::protobuf::int32 value) {
set_has_hj_op_id();
hj_op_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.hj_op_id)
}
// optional int64 rf_identifier = 8;
inline bool RuntimeFilterBDef::has_rf_identifier() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void RuntimeFilterBDef::set_has_rf_identifier() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void RuntimeFilterBDef::clear_has_rf_identifier() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void RuntimeFilterBDef::clear_rf_identifier() {
rf_identifier_ = GOOGLE_LONGLONG(0);
clear_has_rf_identifier();
}
inline ::google::protobuf::int64 RuntimeFilterBDef::rf_identifier() const {
+ // @@protoc_insertion_point(field_get:exec.bit.data.RuntimeFilterBDef.rf_identifier)
return rf_identifier_;
}
inline void RuntimeFilterBDef::set_rf_identifier(::google::protobuf::int64 value) {
set_has_rf_identifier();
rf_identifier_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.data.RuntimeFilterBDef.rf_identifier)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
@@ -1114,19 +1443,18 @@ inline void RuntimeFilterBDef::set_rf_identifier(::google::protobuf::int64 value
} // namespace bit
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::bit::data::RpcType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::bit::data::RpcType>() {
return ::exec::bit::data::RpcType_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_BitData_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_BitData_2eproto
diff --git a/contrib/native/client/src/protobuf/Coordination.pb.cc b/contrib/native/client/src/protobuf/Coordination.pb.cc
index 31ffcceb4..bb954bfa0 100644
--- a/contrib/native/client/src/protobuf/Coordination.pb.cc
+++ b/contrib/native/client/src/protobuf/Coordination.pb.cc
@@ -1,184 +1,222 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Coordination.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "Coordination.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_Coordination_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_Coordination_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Roles;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_Coordination_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DrillbitEndpoint;
+} // namespace protobuf_Coordination_2eproto
namespace exec {
+class DrillbitEndpointDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DrillbitEndpoint>
+ _instance;
+} _DrillbitEndpoint_default_instance_;
+class DrillServiceInstanceDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DrillServiceInstance>
+ _instance;
+} _DrillServiceInstance_default_instance_;
+class RolesDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Roles>
+ _instance;
+} _Roles_default_instance_;
+} // namespace exec
+namespace protobuf_Coordination_2eproto {
+static void InitDefaultsDrillbitEndpoint() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* DrillbitEndpoint_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- DrillbitEndpoint_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* DrillbitEndpoint_State_descriptor_ = NULL;
-const ::google::protobuf::Descriptor* DrillServiceInstance_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- DrillServiceInstance_reflection_ = NULL;
-const ::google::protobuf::Descriptor* Roles_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Roles_reflection_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_Coordination_2eproto() {
- protobuf_AddDesc_Coordination_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "Coordination.proto");
- GOOGLE_CHECK(file != NULL);
- DrillbitEndpoint_descriptor_ = file->message_type(0);
- static const int DrillbitEndpoint_offsets_[8] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, address_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, user_port_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, control_port_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, data_port_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, roles_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, state_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, http_port_),
- };
- DrillbitEndpoint_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- DrillbitEndpoint_descriptor_,
- DrillbitEndpoint::default_instance_,
- DrillbitEndpoint_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillbitEndpoint, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(DrillbitEndpoint));
- DrillbitEndpoint_State_descriptor_ = DrillbitEndpoint_descriptor_->enum_type(0);
- DrillServiceInstance_descriptor_ = file->message_type(1);
- static const int DrillServiceInstance_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillServiceInstance, id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillServiceInstance, registrationtimeutc_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillServiceInstance, endpoint_),
- };
- DrillServiceInstance_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- DrillServiceInstance_descriptor_,
- DrillServiceInstance::default_instance_,
- DrillServiceInstance_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillServiceInstance, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillServiceInstance, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(DrillServiceInstance));
- Roles_descriptor_ = file->message_type(2);
- static const int Roles_offsets_[5] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, sql_query_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, logical_plan_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, physical_plan_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, java_executor_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, distributed_cache_),
- };
- Roles_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Roles_descriptor_,
- Roles::default_instance_,
- Roles_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Roles, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Roles));
+ {
+ void* ptr = &::exec::_DrillbitEndpoint_default_instance_;
+ new (ptr) ::exec::DrillbitEndpoint();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::DrillbitEndpoint::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<1> scc_info_DrillbitEndpoint =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDrillbitEndpoint}, {
+ &protobuf_Coordination_2eproto::scc_info_Roles.base,}};
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_Coordination_2eproto);
-}
+static void InitDefaultsDrillServiceInstance() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- DrillbitEndpoint_descriptor_, &DrillbitEndpoint::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- DrillServiceInstance_descriptor_, &DrillServiceInstance::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Roles_descriptor_, &Roles::default_instance());
+ {
+ void* ptr = &::exec::_DrillServiceInstance_default_instance_;
+ new (ptr) ::exec::DrillServiceInstance();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::DrillServiceInstance::InitAsDefaultInstance();
}
-} // namespace
+::google::protobuf::internal::SCCInfo<1> scc_info_DrillServiceInstance =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDrillServiceInstance}, {
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,}};
-void protobuf_ShutdownFile_Coordination_2eproto() {
- delete DrillbitEndpoint::default_instance_;
- delete DrillbitEndpoint_reflection_;
- delete DrillServiceInstance::default_instance_;
- delete DrillServiceInstance_reflection_;
- delete Roles::default_instance_;
- delete Roles_reflection_;
-}
-
-void protobuf_AddDesc_Coordination_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+static void InitDefaultsRoles() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
+ {
+ void* ptr = &::exec::_Roles_default_instance_;
+ new (ptr) ::exec::Roles();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::Roles::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_Roles =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRoles}, {}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_DrillbitEndpoint.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_DrillServiceInstance.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_Roles.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[3];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, address_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, user_port_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, control_port_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, data_port_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, roles_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillbitEndpoint, http_port_),
+ 0,
+ 3,
+ 4,
+ 5,
+ 2,
+ 1,
+ 6,
+ 7,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillServiceInstance, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillServiceInstance, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillServiceInstance, id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillServiceInstance, registrationtimeutc_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::DrillServiceInstance, endpoint_),
+ 0,
+ 2,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, sql_query_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, logical_plan_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, physical_plan_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, java_executor_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::Roles, distributed_cache_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 13, sizeof(::exec::DrillbitEndpoint)},
+ { 21, 29, sizeof(::exec::DrillServiceInstance)},
+ { 32, 42, sizeof(::exec::Roles)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::_DrillbitEndpoint_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::_DrillServiceInstance_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::_Roles_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "Coordination.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\022Coordination.proto\022\004exec\"\212\002\n\020DrillbitE"
+ "ndpoint\022\017\n\007address\030\001 \001(\t\022\021\n\tuser_port\030\002 "
+ "\001(\005\022\024\n\014control_port\030\003 \001(\005\022\021\n\tdata_port\030\004"
+ " \001(\005\022\032\n\005roles\030\005 \001(\0132\013.exec.Roles\022\017\n\007vers"
+ "ion\030\006 \001(\t\022+\n\005state\030\007 \001(\0162\034.exec.Drillbit"
+ "Endpoint.State\022\021\n\thttp_port\030\010 \001(\005\"<\n\005Sta"
+ "te\022\013\n\007STARTUP\020\000\022\n\n\006ONLINE\020\001\022\r\n\tQUIESCENT"
+ "\020\002\022\013\n\007OFFLINE\020\003\"i\n\024DrillServiceInstance\022"
+ "\n\n\002id\030\001 \001(\t\022\033\n\023registrationTimeUTC\030\002 \001(\003"
+ "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi"
+ "nt\"\227\001\n\005Roles\022\027\n\tsql_query\030\001 \001(\010:\004true\022\032\n"
+ "\014logical_plan\030\002 \001(\010:\004true\022\033\n\rphysical_pl"
+ "an\030\003 \001(\010:\004true\022\033\n\rjava_executor\030\004 \001(\010:\004t"
+ "rue\022\037\n\021distributed_cache\030\005 \001(\010:\004trueB3\n\033"
+ "org.apache.drill.exec.protoB\022Coordinatio"
+ "nProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\022Coordination.proto\022\004exec\"\212\002\n\020DrillbitE"
- "ndpoint\022\017\n\007address\030\001 \001(\t\022\021\n\tuser_port\030\002 "
- "\001(\005\022\024\n\014control_port\030\003 \001(\005\022\021\n\tdata_port\030\004"
- " \001(\005\022\032\n\005roles\030\005 \001(\0132\013.exec.Roles\022\017\n\007vers"
- "ion\030\006 \001(\t\022+\n\005state\030\007 \001(\0162\034.exec.Drillbit"
- "Endpoint.State\022\021\n\thttp_port\030\010 \001(\005\"<\n\005Sta"
- "te\022\013\n\007STARTUP\020\000\022\n\n\006ONLINE\020\001\022\r\n\tQUIESCENT"
- "\020\002\022\013\n\007OFFLINE\020\003\"i\n\024DrillServiceInstance\022"
- "\n\n\002id\030\001 \001(\t\022\033\n\023registrationTimeUTC\030\002 \001(\003"
- "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi"
- "nt\"\227\001\n\005Roles\022\027\n\tsql_query\030\001 \001(\010:\004true\022\032\n"
- "\014logical_plan\030\002 \001(\010:\004true\022\033\n\rphysical_pl"
- "an\030\003 \001(\010:\004true\022\033\n\rjava_executor\030\004 \001(\010:\004t"
- "rue\022\037\n\021distributed_cache\030\005 \001(\010:\004trueB3\n\033"
- "org.apache.drill.exec.protoB\022Coordinatio"
- "nProtosH\001", 609);
+ descriptor, 609);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"Coordination.proto", &protobuf_RegisterTypes);
- DrillbitEndpoint::default_instance_ = new DrillbitEndpoint();
- DrillServiceInstance::default_instance_ = new DrillServiceInstance();
- Roles::default_instance_ = new Roles();
- DrillbitEndpoint::default_instance_->InitAsDefaultInstance();
- DrillServiceInstance::default_instance_->InitAsDefaultInstance();
- Roles::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Coordination_2eproto);
}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_Coordination_2eproto {
- StaticDescriptorInitializer_Coordination_2eproto() {
- protobuf_AddDesc_Coordination_2eproto();
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
}
-} static_descriptor_initializer_Coordination_2eproto_;
-
-// ===================================================================
-
+} static_descriptor_initializer;
+} // namespace protobuf_Coordination_2eproto
+namespace exec {
const ::google::protobuf::EnumDescriptor* DrillbitEndpoint_State_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DrillbitEndpoint_State_descriptor_;
+ protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_Coordination_2eproto::file_level_enum_descriptors[0];
}
bool DrillbitEndpoint_State_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -189,7 +227,7 @@ bool DrillbitEndpoint_State_IsValid(int value) {
}
}
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const DrillbitEndpoint_State DrillbitEndpoint::STARTUP;
const DrillbitEndpoint_State DrillbitEndpoint::ONLINE;
const DrillbitEndpoint_State DrillbitEndpoint::QUIESCENT;
@@ -197,8 +235,15 @@ const DrillbitEndpoint_State DrillbitEndpoint::OFFLINE;
const DrillbitEndpoint_State DrillbitEndpoint::State_MIN;
const DrillbitEndpoint_State DrillbitEndpoint::State_MAX;
const int DrillbitEndpoint::State_ARRAYSIZE;
-#endif // _MSC_VER
-#ifndef _MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void DrillbitEndpoint::InitAsDefaultInstance() {
+ ::exec::_DrillbitEndpoint_default_instance_._instance.get_mutable()->roles_ = const_cast< ::exec::Roles*>(
+ ::exec::Roles::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DrillbitEndpoint::kAddressFieldNumber;
const int DrillbitEndpoint::kUserPortFieldNumber;
const int DrillbitEndpoint::kControlPortFieldNumber;
@@ -207,204 +252,200 @@ const int DrillbitEndpoint::kRolesFieldNumber;
const int DrillbitEndpoint::kVersionFieldNumber;
const int DrillbitEndpoint::kStateFieldNumber;
const int DrillbitEndpoint::kHttpPortFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DrillbitEndpoint::DrillbitEndpoint()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.DrillbitEndpoint)
}
-
-void DrillbitEndpoint::InitAsDefaultInstance() {
- roles_ = const_cast< ::exec::Roles*>(&::exec::Roles::default_instance());
-}
-
DrillbitEndpoint::DrillbitEndpoint(const DrillbitEndpoint& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_address()) {
+ address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
+ }
+ version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_version()) {
+ version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
+ }
+ if (from.has_roles()) {
+ roles_ = new ::exec::Roles(*from.roles_);
+ } else {
+ roles_ = NULL;
+ }
+ ::memcpy(&user_port_, &from.user_port_,
+ static_cast<size_t>(reinterpret_cast<char*>(&http_port_) -
+ reinterpret_cast<char*>(&user_port_)) + sizeof(http_port_));
+ // @@protoc_insertion_point(copy_constructor:exec.DrillbitEndpoint)
}
void DrillbitEndpoint::SharedCtor() {
- _cached_size_ = 0;
- address_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- user_port_ = 0;
- control_port_ = 0;
- data_port_ = 0;
- roles_ = NULL;
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- state_ = 0;
- http_port_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&roles_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&http_port_) -
+ reinterpret_cast<char*>(&roles_)) + sizeof(http_port_));
}
DrillbitEndpoint::~DrillbitEndpoint() {
+ // @@protoc_insertion_point(destructor:exec.DrillbitEndpoint)
SharedDtor();
}
void DrillbitEndpoint::SharedDtor() {
- if (address_ != &::google::protobuf::internal::kEmptyString) {
- delete address_;
- }
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- delete version_;
- }
- if (this != default_instance_) {
- delete roles_;
- }
+ address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete roles_;
}
void DrillbitEndpoint::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* DrillbitEndpoint::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DrillbitEndpoint_descriptor_;
+ ::protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const DrillbitEndpoint& DrillbitEndpoint::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_Coordination_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base);
+ return *internal_default_instance();
}
-DrillbitEndpoint* DrillbitEndpoint::default_instance_ = NULL;
-
-DrillbitEndpoint* DrillbitEndpoint::New() const {
- return new DrillbitEndpoint;
-}
void DrillbitEndpoint::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_address()) {
- if (address_ != &::google::protobuf::internal::kEmptyString) {
- address_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.DrillbitEndpoint)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ address_.ClearNonDefaultToEmptyNoArena();
}
- user_port_ = 0;
- control_port_ = 0;
- data_port_ = 0;
- if (has_roles()) {
- if (roles_ != NULL) roles_->::exec::Roles::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ version_.ClearNonDefaultToEmptyNoArena();
}
- if (has_version()) {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- version_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(roles_ != NULL);
+ roles_->Clear();
}
- state_ = 0;
- http_port_ = 0;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 248u) {
+ ::memset(&user_port_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&http_port_) -
+ reinterpret_cast<char*>(&user_port_)) + sizeof(http_port_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool DrillbitEndpoint::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.DrillbitEndpoint)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string address = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_address()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->address().data(), this->address().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->address().data(), static_cast<int>(this->address().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.DrillbitEndpoint.address");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_user_port;
break;
}
// optional int32 user_port = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_user_port:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_user_port();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &user_port_)));
- set_has_user_port();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_control_port;
break;
}
// optional int32 control_port = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_control_port:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_control_port();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &control_port_)));
- set_has_control_port();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_data_port;
break;
}
// optional int32 data_port = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_data_port:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_data_port();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &data_port_)));
- set_has_data_port();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_roles;
break;
}
// optional .exec.Roles roles = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_roles:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_roles()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_version;
break;
}
// optional string version = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_version:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_version()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.DrillbitEndpoint.version");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_state;
break;
}
// optional .exec.DrillbitEndpoint.State state = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_state:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -412,171 +453,196 @@ bool DrillbitEndpoint::MergePartialFromCodedStream(
if (::exec::DrillbitEndpoint_State_IsValid(value)) {
set_state(static_cast< ::exec::DrillbitEndpoint_State >(value));
} else {
- mutable_unknown_fields()->AddVarint(7, value);
+ mutable_unknown_fields()->AddVarint(
+ 7, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_http_port;
break;
}
// optional int32 http_port = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_http_port:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
+ set_has_http_port();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &http_port_)));
- set_has_http_port();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.DrillbitEndpoint)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.DrillbitEndpoint)
+ return false;
#undef DO_
}
void DrillbitEndpoint::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.DrillbitEndpoint)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string address = 1;
- if (has_address()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->address().data(), this->address().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->address().data(), static_cast<int>(this->address().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillbitEndpoint.address");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->address(), output);
}
// optional int32 user_port = 2;
- if (has_user_port()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->user_port(), output);
}
// optional int32 control_port = 3;
- if (has_control_port()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->control_port(), output);
}
// optional int32 data_port = 4;
- if (has_data_port()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->data_port(), output);
}
// optional .exec.Roles roles = 5;
- if (has_roles()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->roles(), output);
+ 5, this->_internal_roles(), output);
}
// optional string version = 6;
- if (has_version()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillbitEndpoint.version");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->version(), output);
}
// optional .exec.DrillbitEndpoint.State state = 7;
- if (has_state()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
7, this->state(), output);
}
// optional int32 http_port = 8;
- if (has_http_port()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->http_port(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.DrillbitEndpoint)
}
-::google::protobuf::uint8* DrillbitEndpoint::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* DrillbitEndpoint::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.DrillbitEndpoint)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string address = 1;
- if (has_address()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->address().data(), this->address().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->address().data(), static_cast<int>(this->address().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillbitEndpoint.address");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->address(), target);
}
// optional int32 user_port = 2;
- if (has_user_port()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->user_port(), target);
}
// optional int32 control_port = 3;
- if (has_control_port()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->control_port(), target);
}
// optional int32 data_port = 4;
- if (has_data_port()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->data_port(), target);
}
// optional .exec.Roles roles = 5;
- if (has_roles()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->roles(), target);
+ InternalWriteMessageToArray(
+ 5, this->_internal_roles(), deterministic, target);
}
// optional string version = 6;
- if (has_version()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillbitEndpoint.version");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->version(), target);
}
// optional .exec.DrillbitEndpoint.State state = 7;
- if (has_state()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7, this->state(), target);
}
// optional int32 http_port = 8;
- if (has_http_port()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->http_port(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.DrillbitEndpoint)
return target;
}
-int DrillbitEndpoint::ByteSize() const {
- int total_size = 0;
+size_t DrillbitEndpoint::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.DrillbitEndpoint)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string address = 1;
if (has_address()) {
total_size += 1 +
@@ -584,6 +650,20 @@ int DrillbitEndpoint::ByteSize() const {
this->address());
}
+ // optional string version = 6;
+ if (has_version()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->version());
+ }
+
+ // optional .exec.Roles roles = 5;
+ if (has_roles()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *roles_);
+ }
+
// optional int32 user_port = 2;
if (has_user_port()) {
total_size += 1 +
@@ -605,20 +685,6 @@ int DrillbitEndpoint::ByteSize() const {
this->data_port());
}
- // optional .exec.Roles roles = 5;
- if (has_roles()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->roles());
- }
-
- // optional string version = 6;
- if (has_version()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->version());
- }
-
// optional .exec.DrillbitEndpoint.State state = 7;
if (has_state()) {
total_size += 1 +
@@ -633,314 +699,354 @@ int DrillbitEndpoint::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void DrillbitEndpoint::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.DrillbitEndpoint)
+ GOOGLE_DCHECK_NE(&from, this);
const DrillbitEndpoint* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const DrillbitEndpoint*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const DrillbitEndpoint>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.DrillbitEndpoint)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.DrillbitEndpoint)
MergeFrom(*source);
}
}
void DrillbitEndpoint::MergeFrom(const DrillbitEndpoint& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_address()) {
- set_address(from.address());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.DrillbitEndpoint)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_address();
+ address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.address_);
}
- if (from.has_user_port()) {
- set_user_port(from.user_port());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_version();
+ version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
}
- if (from.has_control_port()) {
- set_control_port(from.control_port());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_roles()->::exec::Roles::MergeFrom(from.roles());
}
- if (from.has_data_port()) {
- set_data_port(from.data_port());
+ if (cached_has_bits & 0x00000008u) {
+ user_port_ = from.user_port_;
}
- if (from.has_roles()) {
- mutable_roles()->::exec::Roles::MergeFrom(from.roles());
+ if (cached_has_bits & 0x00000010u) {
+ control_port_ = from.control_port_;
}
- if (from.has_version()) {
- set_version(from.version());
+ if (cached_has_bits & 0x00000020u) {
+ data_port_ = from.data_port_;
}
- if (from.has_state()) {
- set_state(from.state());
+ if (cached_has_bits & 0x00000040u) {
+ state_ = from.state_;
}
- if (from.has_http_port()) {
- set_http_port(from.http_port());
+ if (cached_has_bits & 0x00000080u) {
+ http_port_ = from.http_port_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DrillbitEndpoint::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.DrillbitEndpoint)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DrillbitEndpoint::CopyFrom(const DrillbitEndpoint& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.DrillbitEndpoint)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DrillbitEndpoint::IsInitialized() const {
-
return true;
}
void DrillbitEndpoint::Swap(DrillbitEndpoint* other) {
- if (other != this) {
- std::swap(address_, other->address_);
- std::swap(user_port_, other->user_port_);
- std::swap(control_port_, other->control_port_);
- std::swap(data_port_, other->data_port_);
- std::swap(roles_, other->roles_);
- std::swap(version_, other->version_);
- std::swap(state_, other->state_);
- std::swap(http_port_, other->http_port_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DrillbitEndpoint::InternalSwap(DrillbitEndpoint* other) {
+ using std::swap;
+ address_.Swap(&other->address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(roles_, other->roles_);
+ swap(user_port_, other->user_port_);
+ swap(control_port_, other->control_port_);
+ swap(data_port_, other->data_port_);
+ swap(state_, other->state_);
+ swap(http_port_, other->http_port_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata DrillbitEndpoint::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = DrillbitEndpoint_descriptor_;
- metadata.reflection = DrillbitEndpoint_reflection_;
- return metadata;
+ protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void DrillServiceInstance::InitAsDefaultInstance() {
+ ::exec::_DrillServiceInstance_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DrillServiceInstance::kIdFieldNumber;
const int DrillServiceInstance::kRegistrationTimeUTCFieldNumber;
const int DrillServiceInstance::kEndpointFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DrillServiceInstance::DrillServiceInstance()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_Coordination_2eproto::scc_info_DrillServiceInstance.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.DrillServiceInstance)
}
-
-void DrillServiceInstance::InitAsDefaultInstance() {
- endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
DrillServiceInstance::DrillServiceInstance(const DrillServiceInstance& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_id()) {
+ id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
+ }
+ if (from.has_endpoint()) {
+ endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
+ } else {
+ endpoint_ = NULL;
+ }
+ registrationtimeutc_ = from.registrationtimeutc_;
+ // @@protoc_insertion_point(copy_constructor:exec.DrillServiceInstance)
}
void DrillServiceInstance::SharedCtor() {
- _cached_size_ = 0;
- id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- registrationtimeutc_ = GOOGLE_LONGLONG(0);
- endpoint_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&endpoint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&registrationtimeutc_) -
+ reinterpret_cast<char*>(&endpoint_)) + sizeof(registrationtimeutc_));
}
DrillServiceInstance::~DrillServiceInstance() {
+ // @@protoc_insertion_point(destructor:exec.DrillServiceInstance)
SharedDtor();
}
void DrillServiceInstance::SharedDtor() {
- if (id_ != &::google::protobuf::internal::kEmptyString) {
- delete id_;
- }
- if (this != default_instance_) {
- delete endpoint_;
- }
+ id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete endpoint_;
}
void DrillServiceInstance::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* DrillServiceInstance::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DrillServiceInstance_descriptor_;
+ ::protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const DrillServiceInstance& DrillServiceInstance::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_Coordination_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_Coordination_2eproto::scc_info_DrillServiceInstance.base);
+ return *internal_default_instance();
}
-DrillServiceInstance* DrillServiceInstance::default_instance_ = NULL;
-
-DrillServiceInstance* DrillServiceInstance::New() const {
- return new DrillServiceInstance;
-}
void DrillServiceInstance::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_id()) {
- if (id_ != &::google::protobuf::internal::kEmptyString) {
- id_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.DrillServiceInstance)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ id_.ClearNonDefaultToEmptyNoArena();
}
- registrationtimeutc_ = GOOGLE_LONGLONG(0);
- if (has_endpoint()) {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(endpoint_ != NULL);
+ endpoint_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ registrationtimeutc_ = GOOGLE_LONGLONG(0);
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool DrillServiceInstance::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.DrillServiceInstance)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_id()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->id().data(), this->id().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->id().data(), static_cast<int>(this->id().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.DrillServiceInstance.id");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_registrationTimeUTC;
break;
}
// optional int64 registrationTimeUTC = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_registrationTimeUTC:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_registrationtimeutc();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &registrationtimeutc_)));
- set_has_registrationtimeutc();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_endpoint;
break;
}
// optional .exec.DrillbitEndpoint endpoint = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_endpoint:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_endpoint()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.DrillServiceInstance)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.DrillServiceInstance)
+ return false;
#undef DO_
}
void DrillServiceInstance::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.DrillServiceInstance)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string id = 1;
- if (has_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->id().data(), this->id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->id().data(), static_cast<int>(this->id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillServiceInstance.id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->id(), output);
}
// optional int64 registrationTimeUTC = 2;
- if (has_registrationtimeutc()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->registrationtimeutc(), output);
}
// optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->endpoint(), output);
+ 3, this->_internal_endpoint(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.DrillServiceInstance)
}
-::google::protobuf::uint8* DrillServiceInstance::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* DrillServiceInstance::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.DrillServiceInstance)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string id = 1;
- if (has_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->id().data(), this->id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->id().data(), static_cast<int>(this->id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.DrillServiceInstance.id");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->id(), target);
}
// optional int64 registrationTimeUTC = 2;
- if (has_registrationtimeutc()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->registrationtimeutc(), target);
}
// optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->endpoint(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_endpoint(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.DrillServiceInstance)
return target;
}
-int DrillServiceInstance::ByteSize() const {
- int total_size = 0;
+size_t DrillServiceInstance::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.DrillServiceInstance)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional string id = 1;
if (has_id()) {
total_size += 1 +
@@ -948,6 +1054,13 @@ int DrillServiceInstance::ByteSize() const {
this->id());
}
+ // optional .exec.DrillbitEndpoint endpoint = 3;
+ if (has_endpoint()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *endpoint_);
+ }
+
// optional int64 registrationTimeUTC = 2;
if (has_registrationtimeutc()) {
total_size += 1 +
@@ -955,338 +1068,356 @@ int DrillServiceInstance::ByteSize() const {
this->registrationtimeutc());
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
- if (has_endpoint()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->endpoint());
- }
-
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void DrillServiceInstance::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.DrillServiceInstance)
+ GOOGLE_DCHECK_NE(&from, this);
const DrillServiceInstance* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const DrillServiceInstance*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const DrillServiceInstance>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.DrillServiceInstance)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.DrillServiceInstance)
MergeFrom(*source);
}
}
void DrillServiceInstance::MergeFrom(const DrillServiceInstance& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_id()) {
- set_id(from.id());
- }
- if (from.has_registrationtimeutc()) {
- set_registrationtimeutc(from.registrationtimeutc());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.DrillServiceInstance)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_id();
+ id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
}
- if (from.has_endpoint()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
}
+ if (cached_has_bits & 0x00000004u) {
+ registrationtimeutc_ = from.registrationtimeutc_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DrillServiceInstance::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.DrillServiceInstance)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DrillServiceInstance::CopyFrom(const DrillServiceInstance& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.DrillServiceInstance)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DrillServiceInstance::IsInitialized() const {
-
return true;
}
void DrillServiceInstance::Swap(DrillServiceInstance* other) {
- if (other != this) {
- std::swap(id_, other->id_);
- std::swap(registrationtimeutc_, other->registrationtimeutc_);
- std::swap(endpoint_, other->endpoint_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DrillServiceInstance::InternalSwap(DrillServiceInstance* other) {
+ using std::swap;
+ id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(endpoint_, other->endpoint_);
+ swap(registrationtimeutc_, other->registrationtimeutc_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata DrillServiceInstance::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = DrillServiceInstance_descriptor_;
- metadata.reflection = DrillServiceInstance_reflection_;
- return metadata;
+ protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void Roles::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Roles::kSqlQueryFieldNumber;
const int Roles::kLogicalPlanFieldNumber;
const int Roles::kPhysicalPlanFieldNumber;
const int Roles::kJavaExecutorFieldNumber;
const int Roles::kDistributedCacheFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Roles::Roles()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_Coordination_2eproto::scc_info_Roles.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.Roles)
}
-
-void Roles::InitAsDefaultInstance() {
-}
-
Roles::Roles(const Roles& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&sql_query_, &from.sql_query_,
+ static_cast<size_t>(reinterpret_cast<char*>(&distributed_cache_) -
+ reinterpret_cast<char*>(&sql_query_)) + sizeof(distributed_cache_));
+ // @@protoc_insertion_point(copy_constructor:exec.Roles)
}
void Roles::SharedCtor() {
- _cached_size_ = 0;
sql_query_ = true;
logical_plan_ = true;
physical_plan_ = true;
java_executor_ = true;
distributed_cache_ = true;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Roles::~Roles() {
+ // @@protoc_insertion_point(destructor:exec.Roles)
SharedDtor();
}
void Roles::SharedDtor() {
- if (this != default_instance_) {
- }
}
void Roles::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Roles::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Roles_descriptor_;
+ ::protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Roles& Roles::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_Coordination_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_Coordination_2eproto::scc_info_Roles.base);
+ return *internal_default_instance();
}
-Roles* Roles::default_instance_ = NULL;
-
-Roles* Roles::New() const {
- return new Roles;
-}
void Roles::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+// @@protoc_insertion_point(message_clear_start:exec.Roles)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 31u) {
sql_query_ = true;
logical_plan_ = true;
physical_plan_ = true;
java_executor_ = true;
distributed_cache_ = true;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Roles::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.Roles)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional bool sql_query = 1 [default = true];
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_sql_query();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &sql_query_)));
- set_has_sql_query();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_logical_plan;
break;
}
// optional bool logical_plan = 2 [default = true];
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_logical_plan:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_logical_plan();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &logical_plan_)));
- set_has_logical_plan();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_physical_plan;
break;
}
// optional bool physical_plan = 3 [default = true];
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_physical_plan:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_physical_plan();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &physical_plan_)));
- set_has_physical_plan();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_java_executor;
break;
}
// optional bool java_executor = 4 [default = true];
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_java_executor:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_java_executor();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &java_executor_)));
- set_has_java_executor();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_distributed_cache;
break;
}
// optional bool distributed_cache = 5 [default = true];
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_distributed_cache:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_distributed_cache();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &distributed_cache_)));
- set_has_distributed_cache();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.Roles)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.Roles)
+ return false;
#undef DO_
}
void Roles::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.Roles)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool sql_query = 1 [default = true];
- if (has_sql_query()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->sql_query(), output);
}
// optional bool logical_plan = 2 [default = true];
- if (has_logical_plan()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->logical_plan(), output);
}
// optional bool physical_plan = 3 [default = true];
- if (has_physical_plan()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->physical_plan(), output);
}
// optional bool java_executor = 4 [default = true];
- if (has_java_executor()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->java_executor(), output);
}
// optional bool distributed_cache = 5 [default = true];
- if (has_distributed_cache()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->distributed_cache(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.Roles)
}
-::google::protobuf::uint8* Roles::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Roles::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.Roles)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool sql_query = 1 [default = true];
- if (has_sql_query()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->sql_query(), target);
}
// optional bool logical_plan = 2 [default = true];
- if (has_logical_plan()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->logical_plan(), target);
}
// optional bool physical_plan = 3 [default = true];
- if (has_physical_plan()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->physical_plan(), target);
}
// optional bool java_executor = 4 [default = true];
- if (has_java_executor()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->java_executor(), target);
}
// optional bool distributed_cache = 5 [default = true];
- if (has_distributed_cache()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->distributed_cache(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.Roles)
return target;
}
-int Roles::ByteSize() const {
- int total_size = 0;
+size_t Roles::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.Roles)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 31u) {
// optional bool sql_query = 1 [default = true];
if (has_sql_query()) {
total_size += 1 + 1;
@@ -1313,92 +1444,107 @@ int Roles::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Roles::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.Roles)
+ GOOGLE_DCHECK_NE(&from, this);
const Roles* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Roles*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Roles>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.Roles)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.Roles)
MergeFrom(*source);
}
}
void Roles::MergeFrom(const Roles& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_sql_query()) {
- set_sql_query(from.sql_query());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.Roles)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ sql_query_ = from.sql_query_;
}
- if (from.has_logical_plan()) {
- set_logical_plan(from.logical_plan());
+ if (cached_has_bits & 0x00000002u) {
+ logical_plan_ = from.logical_plan_;
}
- if (from.has_physical_plan()) {
- set_physical_plan(from.physical_plan());
+ if (cached_has_bits & 0x00000004u) {
+ physical_plan_ = from.physical_plan_;
}
- if (from.has_java_executor()) {
- set_java_executor(from.java_executor());
+ if (cached_has_bits & 0x00000008u) {
+ java_executor_ = from.java_executor_;
}
- if (from.has_distributed_cache()) {
- set_distributed_cache(from.distributed_cache());
+ if (cached_has_bits & 0x00000010u) {
+ distributed_cache_ = from.distributed_cache_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Roles::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.Roles)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Roles::CopyFrom(const Roles& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.Roles)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Roles::IsInitialized() const {
-
return true;
}
void Roles::Swap(Roles* other) {
- if (other != this) {
- std::swap(sql_query_, other->sql_query_);
- std::swap(logical_plan_, other->logical_plan_);
- std::swap(physical_plan_, other->physical_plan_);
- std::swap(java_executor_, other->java_executor_);
- std::swap(distributed_cache_, other->distributed_cache_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Roles::InternalSwap(Roles* other) {
+ using std::swap;
+ swap(sql_query_, other->sql_query_);
+ swap(logical_plan_, other->logical_plan_);
+ swap(physical_plan_, other->physical_plan_);
+ swap(java_executor_, other->java_executor_);
+ swap(distributed_cache_, other->distributed_cache_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Roles::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Roles_descriptor_;
- metadata.reflection = Roles_reflection_;
- return metadata;
+ protobuf_Coordination_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Coordination_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::DrillbitEndpoint* Arena::CreateMaybeMessage< ::exec::DrillbitEndpoint >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::DrillbitEndpoint >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::DrillServiceInstance* Arena::CreateMaybeMessage< ::exec::DrillServiceInstance >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::DrillServiceInstance >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::Roles* Arena::CreateMaybeMessage< ::exec::Roles >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::Roles >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/Coordination.pb.h b/contrib/native/client/src/protobuf/Coordination.pb.h
index 07bbc8e33..4e6348521 100644
--- a/contrib/native/client/src/protobuf/Coordination.pb.h
+++ b/contrib/native/client/src/protobuf/Coordination.pb.h
@@ -1,42 +1,70 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Coordination.proto
-#ifndef PROTOBUF_Coordination_2eproto__INCLUDED
-#define PROTOBUF_Coordination_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_Coordination_2eproto
+#define PROTOBUF_INCLUDED_Coordination_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_Coordination_2eproto
+
+namespace protobuf_Coordination_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[3];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_Coordination_2eproto
namespace exec {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_Coordination_2eproto();
-void protobuf_AssignDesc_Coordination_2eproto();
-void protobuf_ShutdownFile_Coordination_2eproto();
-
-class DrillbitEndpoint;
class DrillServiceInstance;
+class DrillServiceInstanceDefaultTypeInternal;
+extern DrillServiceInstanceDefaultTypeInternal _DrillServiceInstance_default_instance_;
+class DrillbitEndpoint;
+class DrillbitEndpointDefaultTypeInternal;
+extern DrillbitEndpointDefaultTypeInternal _DrillbitEndpoint_default_instance_;
class Roles;
+class RolesDefaultTypeInternal;
+extern RolesDefaultTypeInternal _Roles_default_instance_;
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::DrillServiceInstance* Arena::CreateMaybeMessage<::exec::DrillServiceInstance>(Arena*);
+template<> ::exec::DrillbitEndpoint* Arena::CreateMaybeMessage<::exec::DrillbitEndpoint>(Arena*);
+template<> ::exec::Roles* Arena::CreateMaybeMessage<::exec::Roles>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
enum DrillbitEndpoint_State {
DrillbitEndpoint_State_STARTUP = 0,
@@ -61,7 +89,7 @@ inline bool DrillbitEndpoint_State_Parse(
}
// ===================================================================
-class DrillbitEndpoint : public ::google::protobuf::Message {
+class DrillbitEndpoint : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.DrillbitEndpoint) */ {
public:
DrillbitEndpoint();
virtual ~DrillbitEndpoint();
@@ -72,52 +100,96 @@ class DrillbitEndpoint : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ DrillbitEndpoint(DrillbitEndpoint&& from) noexcept
+ : DrillbitEndpoint() {
+ *this = ::std::move(from);
+ }
+ inline DrillbitEndpoint& operator=(DrillbitEndpoint&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const DrillbitEndpoint& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DrillbitEndpoint* internal_default_instance() {
+ return reinterpret_cast<const DrillbitEndpoint*>(
+ &_DrillbitEndpoint_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(DrillbitEndpoint* other);
+ friend void swap(DrillbitEndpoint& a, DrillbitEndpoint& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- DrillbitEndpoint* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline DrillbitEndpoint* New() const final {
+ return CreateMaybeMessage<DrillbitEndpoint>(NULL);
+ }
+
+ DrillbitEndpoint* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<DrillbitEndpoint>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const DrillbitEndpoint& from);
void MergeFrom(const DrillbitEndpoint& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(DrillbitEndpoint* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef DrillbitEndpoint_State State;
- static const State STARTUP = DrillbitEndpoint_State_STARTUP;
- static const State ONLINE = DrillbitEndpoint_State_ONLINE;
- static const State QUIESCENT = DrillbitEndpoint_State_QUIESCENT;
- static const State OFFLINE = DrillbitEndpoint_State_OFFLINE;
+ static const State STARTUP =
+ DrillbitEndpoint_State_STARTUP;
+ static const State ONLINE =
+ DrillbitEndpoint_State_ONLINE;
+ static const State QUIESCENT =
+ DrillbitEndpoint_State_QUIESCENT;
+ static const State OFFLINE =
+ DrillbitEndpoint_State_OFFLINE;
static inline bool State_IsValid(int value) {
return DrillbitEndpoint_State_IsValid(value);
}
@@ -142,116 +214,117 @@ class DrillbitEndpoint : public ::google::protobuf::Message {
// accessors -------------------------------------------------------
// optional string address = 1;
- inline bool has_address() const;
- inline void clear_address();
+ bool has_address() const;
+ void clear_address();
static const int kAddressFieldNumber = 1;
- inline const ::std::string& address() const;
- inline void set_address(const ::std::string& value);
- inline void set_address(const char* value);
- inline void set_address(const char* value, size_t size);
- inline ::std::string* mutable_address();
- inline ::std::string* release_address();
- inline void set_allocated_address(::std::string* address);
+ const ::std::string& address() const;
+ void set_address(const ::std::string& value);
+ #if LANG_CXX11
+ void set_address(::std::string&& value);
+ #endif
+ void set_address(const char* value);
+ void set_address(const char* value, size_t size);
+ ::std::string* mutable_address();
+ ::std::string* release_address();
+ void set_allocated_address(::std::string* address);
+
+ // optional string version = 6;
+ bool has_version() const;
+ void clear_version();
+ static const int kVersionFieldNumber = 6;
+ const ::std::string& version() const;
+ void set_version(const ::std::string& value);
+ #if LANG_CXX11
+ void set_version(::std::string&& value);
+ #endif
+ void set_version(const char* value);
+ void set_version(const char* value, size_t size);
+ ::std::string* mutable_version();
+ ::std::string* release_version();
+ void set_allocated_version(::std::string* version);
+
+ // optional .exec.Roles roles = 5;
+ bool has_roles() const;
+ void clear_roles();
+ static const int kRolesFieldNumber = 5;
+ private:
+ const ::exec::Roles& _internal_roles() const;
+ public:
+ const ::exec::Roles& roles() const;
+ ::exec::Roles* release_roles();
+ ::exec::Roles* mutable_roles();
+ void set_allocated_roles(::exec::Roles* roles);
// optional int32 user_port = 2;
- inline bool has_user_port() const;
- inline void clear_user_port();
+ bool has_user_port() const;
+ void clear_user_port();
static const int kUserPortFieldNumber = 2;
- inline ::google::protobuf::int32 user_port() const;
- inline void set_user_port(::google::protobuf::int32 value);
+ ::google::protobuf::int32 user_port() const;
+ void set_user_port(::google::protobuf::int32 value);
// optional int32 control_port = 3;
- inline bool has_control_port() const;
- inline void clear_control_port();
+ bool has_control_port() const;
+ void clear_control_port();
static const int kControlPortFieldNumber = 3;
- inline ::google::protobuf::int32 control_port() const;
- inline void set_control_port(::google::protobuf::int32 value);
+ ::google::protobuf::int32 control_port() const;
+ void set_control_port(::google::protobuf::int32 value);
// optional int32 data_port = 4;
- inline bool has_data_port() const;
- inline void clear_data_port();
+ bool has_data_port() const;
+ void clear_data_port();
static const int kDataPortFieldNumber = 4;
- inline ::google::protobuf::int32 data_port() const;
- inline void set_data_port(::google::protobuf::int32 value);
-
- // optional .exec.Roles roles = 5;
- inline bool has_roles() const;
- inline void clear_roles();
- static const int kRolesFieldNumber = 5;
- inline const ::exec::Roles& roles() const;
- inline ::exec::Roles* mutable_roles();
- inline ::exec::Roles* release_roles();
- inline void set_allocated_roles(::exec::Roles* roles);
-
- // optional string version = 6;
- inline bool has_version() const;
- inline void clear_version();
- static const int kVersionFieldNumber = 6;
- inline const ::std::string& version() const;
- inline void set_version(const ::std::string& value);
- inline void set_version(const char* value);
- inline void set_version(const char* value, size_t size);
- inline ::std::string* mutable_version();
- inline ::std::string* release_version();
- inline void set_allocated_version(::std::string* version);
+ ::google::protobuf::int32 data_port() const;
+ void set_data_port(::google::protobuf::int32 value);
// optional .exec.DrillbitEndpoint.State state = 7;
- inline bool has_state() const;
- inline void clear_state();
+ bool has_state() const;
+ void clear_state();
static const int kStateFieldNumber = 7;
- inline ::exec::DrillbitEndpoint_State state() const;
- inline void set_state(::exec::DrillbitEndpoint_State value);
+ ::exec::DrillbitEndpoint_State state() const;
+ void set_state(::exec::DrillbitEndpoint_State value);
// optional int32 http_port = 8;
- inline bool has_http_port() const;
- inline void clear_http_port();
+ bool has_http_port() const;
+ void clear_http_port();
static const int kHttpPortFieldNumber = 8;
- inline ::google::protobuf::int32 http_port() const;
- inline void set_http_port(::google::protobuf::int32 value);
+ ::google::protobuf::int32 http_port() const;
+ void set_http_port(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.DrillbitEndpoint)
private:
- inline void set_has_address();
- inline void clear_has_address();
- inline void set_has_user_port();
- inline void clear_has_user_port();
- inline void set_has_control_port();
- inline void clear_has_control_port();
- inline void set_has_data_port();
- inline void clear_has_data_port();
- inline void set_has_roles();
- inline void clear_has_roles();
- inline void set_has_version();
- inline void clear_has_version();
- inline void set_has_state();
- inline void clear_has_state();
- inline void set_has_http_port();
- inline void clear_has_http_port();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* address_;
+ void set_has_address();
+ void clear_has_address();
+ void set_has_user_port();
+ void clear_has_user_port();
+ void set_has_control_port();
+ void clear_has_control_port();
+ void set_has_data_port();
+ void clear_has_data_port();
+ void set_has_roles();
+ void clear_has_roles();
+ void set_has_version();
+ void clear_has_version();
+ void set_has_state();
+ void clear_has_state();
+ void set_has_http_port();
+ void clear_has_http_port();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr address_;
+ ::google::protobuf::internal::ArenaStringPtr version_;
+ ::exec::Roles* roles_;
::google::protobuf::int32 user_port_;
::google::protobuf::int32 control_port_;
- ::exec::Roles* roles_;
::google::protobuf::int32 data_port_;
int state_;
- ::std::string* version_;
::google::protobuf::int32 http_port_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
-
- friend void protobuf_AddDesc_Coordination_2eproto();
- friend void protobuf_AssignDesc_Coordination_2eproto();
- friend void protobuf_ShutdownFile_Coordination_2eproto();
-
- void InitAsDefaultInstance();
- static DrillbitEndpoint* default_instance_;
+ friend struct ::protobuf_Coordination_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class DrillServiceInstance : public ::google::protobuf::Message {
+class DrillServiceInstance : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.DrillServiceInstance) */ {
public:
DrillServiceInstance();
virtual ~DrillServiceInstance();
@@ -262,105 +335,143 @@ class DrillServiceInstance : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ DrillServiceInstance(DrillServiceInstance&& from) noexcept
+ : DrillServiceInstance() {
+ *this = ::std::move(from);
+ }
+ inline DrillServiceInstance& operator=(DrillServiceInstance&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const DrillServiceInstance& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DrillServiceInstance* internal_default_instance() {
+ return reinterpret_cast<const DrillServiceInstance*>(
+ &_DrillServiceInstance_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(DrillServiceInstance* other);
+ friend void swap(DrillServiceInstance& a, DrillServiceInstance& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- DrillServiceInstance* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline DrillServiceInstance* New() const final {
+ return CreateMaybeMessage<DrillServiceInstance>(NULL);
+ }
+
+ DrillServiceInstance* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<DrillServiceInstance>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const DrillServiceInstance& from);
void MergeFrom(const DrillServiceInstance& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(DrillServiceInstance* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string id = 1;
- inline bool has_id() const;
- inline void clear_id();
+ bool has_id() const;
+ void clear_id();
static const int kIdFieldNumber = 1;
- inline const ::std::string& id() const;
- inline void set_id(const ::std::string& value);
- inline void set_id(const char* value);
- inline void set_id(const char* value, size_t size);
- inline ::std::string* mutable_id();
- inline ::std::string* release_id();
- inline void set_allocated_id(::std::string* id);
-
- // optional int64 registrationTimeUTC = 2;
- inline bool has_registrationtimeutc() const;
- inline void clear_registrationtimeutc();
- static const int kRegistrationTimeUTCFieldNumber = 2;
- inline ::google::protobuf::int64 registrationtimeutc() const;
- inline void set_registrationtimeutc(::google::protobuf::int64 value);
+ const ::std::string& id() const;
+ void set_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_id(::std::string&& value);
+ #endif
+ void set_id(const char* value);
+ void set_id(const char* value, size_t size);
+ ::std::string* mutable_id();
+ ::std::string* release_id();
+ void set_allocated_id(::std::string* id);
// optional .exec.DrillbitEndpoint endpoint = 3;
- inline bool has_endpoint() const;
- inline void clear_endpoint();
+ bool has_endpoint() const;
+ void clear_endpoint();
static const int kEndpointFieldNumber = 3;
- inline const ::exec::DrillbitEndpoint& endpoint() const;
- inline ::exec::DrillbitEndpoint* mutable_endpoint();
- inline ::exec::DrillbitEndpoint* release_endpoint();
- inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ public:
+ const ::exec::DrillbitEndpoint& endpoint() const;
+ ::exec::DrillbitEndpoint* release_endpoint();
+ ::exec::DrillbitEndpoint* mutable_endpoint();
+ void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+
+ // optional int64 registrationTimeUTC = 2;
+ bool has_registrationtimeutc() const;
+ void clear_registrationtimeutc();
+ static const int kRegistrationTimeUTCFieldNumber = 2;
+ ::google::protobuf::int64 registrationtimeutc() const;
+ void set_registrationtimeutc(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.DrillServiceInstance)
private:
- inline void set_has_id();
- inline void clear_has_id();
- inline void set_has_registrationtimeutc();
- inline void clear_has_registrationtimeutc();
- inline void set_has_endpoint();
- inline void clear_has_endpoint();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* id_;
- ::google::protobuf::int64 registrationtimeutc_;
+ void set_has_id();
+ void clear_has_id();
+ void set_has_registrationtimeutc();
+ void clear_has_registrationtimeutc();
+ void set_has_endpoint();
+ void clear_has_endpoint();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr id_;
::exec::DrillbitEndpoint* endpoint_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_Coordination_2eproto();
- friend void protobuf_AssignDesc_Coordination_2eproto();
- friend void protobuf_ShutdownFile_Coordination_2eproto();
-
- void InitAsDefaultInstance();
- static DrillServiceInstance* default_instance_;
+ ::google::protobuf::int64 registrationtimeutc_;
+ friend struct ::protobuf_Coordination_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class Roles : public ::google::protobuf::Message {
+class Roles : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.Roles) */ {
public:
Roles();
virtual ~Roles();
@@ -371,120 +482,156 @@ class Roles : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Roles(Roles&& from) noexcept
+ : Roles() {
+ *this = ::std::move(from);
+ }
+ inline Roles& operator=(Roles&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Roles& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Roles* internal_default_instance() {
+ return reinterpret_cast<const Roles*>(
+ &_Roles_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(Roles* other);
+ friend void swap(Roles& a, Roles& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Roles* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Roles* New() const final {
+ return CreateMaybeMessage<Roles>(NULL);
+ }
+
+ Roles* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Roles>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Roles& from);
void MergeFrom(const Roles& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Roles* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bool sql_query = 1 [default = true];
- inline bool has_sql_query() const;
- inline void clear_sql_query();
+ bool has_sql_query() const;
+ void clear_sql_query();
static const int kSqlQueryFieldNumber = 1;
- inline bool sql_query() const;
- inline void set_sql_query(bool value);
+ bool sql_query() const;
+ void set_sql_query(bool value);
// optional bool logical_plan = 2 [default = true];
- inline bool has_logical_plan() const;
- inline void clear_logical_plan();
+ bool has_logical_plan() const;
+ void clear_logical_plan();
static const int kLogicalPlanFieldNumber = 2;
- inline bool logical_plan() const;
- inline void set_logical_plan(bool value);
+ bool logical_plan() const;
+ void set_logical_plan(bool value);
// optional bool physical_plan = 3 [default = true];
- inline bool has_physical_plan() const;
- inline void clear_physical_plan();
+ bool has_physical_plan() const;
+ void clear_physical_plan();
static const int kPhysicalPlanFieldNumber = 3;
- inline bool physical_plan() const;
- inline void set_physical_plan(bool value);
+ bool physical_plan() const;
+ void set_physical_plan(bool value);
// optional bool java_executor = 4 [default = true];
- inline bool has_java_executor() const;
- inline void clear_java_executor();
+ bool has_java_executor() const;
+ void clear_java_executor();
static const int kJavaExecutorFieldNumber = 4;
- inline bool java_executor() const;
- inline void set_java_executor(bool value);
+ bool java_executor() const;
+ void set_java_executor(bool value);
// optional bool distributed_cache = 5 [default = true];
- inline bool has_distributed_cache() const;
- inline void clear_distributed_cache();
+ bool has_distributed_cache() const;
+ void clear_distributed_cache();
static const int kDistributedCacheFieldNumber = 5;
- inline bool distributed_cache() const;
- inline void set_distributed_cache(bool value);
+ bool distributed_cache() const;
+ void set_distributed_cache(bool value);
// @@protoc_insertion_point(class_scope:exec.Roles)
private:
- inline void set_has_sql_query();
- inline void clear_has_sql_query();
- inline void set_has_logical_plan();
- inline void clear_has_logical_plan();
- inline void set_has_physical_plan();
- inline void clear_has_physical_plan();
- inline void set_has_java_executor();
- inline void clear_has_java_executor();
- inline void set_has_distributed_cache();
- inline void clear_has_distributed_cache();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_sql_query();
+ void clear_has_sql_query();
+ void set_has_logical_plan();
+ void clear_has_logical_plan();
+ void set_has_physical_plan();
+ void clear_has_physical_plan();
+ void set_has_java_executor();
+ void clear_has_java_executor();
+ void set_has_distributed_cache();
+ void clear_has_distributed_cache();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
bool sql_query_;
bool logical_plan_;
bool physical_plan_;
bool java_executor_;
bool distributed_cache_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
-
- friend void protobuf_AddDesc_Coordination_2eproto();
- friend void protobuf_AssignDesc_Coordination_2eproto();
- friend void protobuf_ShutdownFile_Coordination_2eproto();
-
- void InitAsDefaultInstance();
- static Roles* default_instance_;
+ friend struct ::protobuf_Coordination_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// DrillbitEndpoint
// optional string address = 1;
@@ -498,237 +645,255 @@ inline void DrillbitEndpoint::clear_has_address() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DrillbitEndpoint::clear_address() {
- if (address_ != &::google::protobuf::internal::kEmptyString) {
- address_->clear();
- }
+ address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_address();
}
inline const ::std::string& DrillbitEndpoint::address() const {
- return *address_;
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.address)
+ return address_.GetNoArena();
}
inline void DrillbitEndpoint::set_address(const ::std::string& value) {
set_has_address();
- if (address_ == &::google::protobuf::internal::kEmptyString) {
- address_ = new ::std::string;
- }
- address_->assign(value);
+ address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.address)
+}
+#if LANG_CXX11
+inline void DrillbitEndpoint::set_address(::std::string&& value) {
+ set_has_address();
+ address_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.DrillbitEndpoint.address)
}
+#endif
inline void DrillbitEndpoint::set_address(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_address();
- if (address_ == &::google::protobuf::internal::kEmptyString) {
- address_ = new ::std::string;
- }
- address_->assign(value);
+ address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.DrillbitEndpoint.address)
}
inline void DrillbitEndpoint::set_address(const char* value, size_t size) {
set_has_address();
- if (address_ == &::google::protobuf::internal::kEmptyString) {
- address_ = new ::std::string;
- }
- address_->assign(reinterpret_cast<const char*>(value), size);
+ address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.DrillbitEndpoint.address)
}
inline ::std::string* DrillbitEndpoint::mutable_address() {
set_has_address();
- if (address_ == &::google::protobuf::internal::kEmptyString) {
- address_ = new ::std::string;
- }
- return address_;
+ // @@protoc_insertion_point(field_mutable:exec.DrillbitEndpoint.address)
+ return address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DrillbitEndpoint::release_address() {
- clear_has_address();
- if (address_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.DrillbitEndpoint.address)
+ if (!has_address()) {
return NULL;
- } else {
- ::std::string* temp = address_;
- address_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_address();
+ return address_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DrillbitEndpoint::set_allocated_address(::std::string* address) {
- if (address_ != &::google::protobuf::internal::kEmptyString) {
- delete address_;
- }
- if (address) {
+ if (address != NULL) {
set_has_address();
- address_ = address;
} else {
clear_has_address();
- address_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), address);
+ // @@protoc_insertion_point(field_set_allocated:exec.DrillbitEndpoint.address)
}
// optional int32 user_port = 2;
inline bool DrillbitEndpoint::has_user_port() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DrillbitEndpoint::set_has_user_port() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void DrillbitEndpoint::clear_has_user_port() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void DrillbitEndpoint::clear_user_port() {
user_port_ = 0;
clear_has_user_port();
}
inline ::google::protobuf::int32 DrillbitEndpoint::user_port() const {
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.user_port)
return user_port_;
}
inline void DrillbitEndpoint::set_user_port(::google::protobuf::int32 value) {
set_has_user_port();
user_port_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.user_port)
}
// optional int32 control_port = 3;
inline bool DrillbitEndpoint::has_control_port() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void DrillbitEndpoint::set_has_control_port() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void DrillbitEndpoint::clear_has_control_port() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void DrillbitEndpoint::clear_control_port() {
control_port_ = 0;
clear_has_control_port();
}
inline ::google::protobuf::int32 DrillbitEndpoint::control_port() const {
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.control_port)
return control_port_;
}
inline void DrillbitEndpoint::set_control_port(::google::protobuf::int32 value) {
set_has_control_port();
control_port_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.control_port)
}
// optional int32 data_port = 4;
inline bool DrillbitEndpoint::has_data_port() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void DrillbitEndpoint::set_has_data_port() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void DrillbitEndpoint::clear_has_data_port() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void DrillbitEndpoint::clear_data_port() {
data_port_ = 0;
clear_has_data_port();
}
inline ::google::protobuf::int32 DrillbitEndpoint::data_port() const {
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.data_port)
return data_port_;
}
inline void DrillbitEndpoint::set_data_port(::google::protobuf::int32 value) {
set_has_data_port();
data_port_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.data_port)
}
// optional .exec.Roles roles = 5;
inline bool DrillbitEndpoint::has_roles() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DrillbitEndpoint::set_has_roles() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void DrillbitEndpoint::clear_has_roles() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void DrillbitEndpoint::clear_roles() {
- if (roles_ != NULL) roles_->::exec::Roles::Clear();
+ if (roles_ != NULL) roles_->Clear();
clear_has_roles();
}
-inline const ::exec::Roles& DrillbitEndpoint::roles() const {
- return roles_ != NULL ? *roles_ : *default_instance_->roles_;
+inline const ::exec::Roles& DrillbitEndpoint::_internal_roles() const {
+ return *roles_;
}
-inline ::exec::Roles* DrillbitEndpoint::mutable_roles() {
- set_has_roles();
- if (roles_ == NULL) roles_ = new ::exec::Roles;
- return roles_;
+inline const ::exec::Roles& DrillbitEndpoint::roles() const {
+ const ::exec::Roles* p = roles_;
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.roles)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::Roles*>(
+ &::exec::_Roles_default_instance_);
}
inline ::exec::Roles* DrillbitEndpoint::release_roles() {
+ // @@protoc_insertion_point(field_release:exec.DrillbitEndpoint.roles)
clear_has_roles();
::exec::Roles* temp = roles_;
roles_ = NULL;
return temp;
}
+inline ::exec::Roles* DrillbitEndpoint::mutable_roles() {
+ set_has_roles();
+ if (roles_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::Roles>(GetArenaNoVirtual());
+ roles_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.DrillbitEndpoint.roles)
+ return roles_;
+}
inline void DrillbitEndpoint::set_allocated_roles(::exec::Roles* roles) {
- delete roles_;
- roles_ = roles;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete roles_;
+ }
if (roles) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ roles = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, roles, submessage_arena);
+ }
set_has_roles();
} else {
clear_has_roles();
}
+ roles_ = roles;
+ // @@protoc_insertion_point(field_set_allocated:exec.DrillbitEndpoint.roles)
}
// optional string version = 6;
inline bool DrillbitEndpoint::has_version() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DrillbitEndpoint::set_has_version() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void DrillbitEndpoint::clear_has_version() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void DrillbitEndpoint::clear_version() {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- version_->clear();
- }
+ version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_version();
}
inline const ::std::string& DrillbitEndpoint::version() const {
- return *version_;
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.version)
+ return version_.GetNoArena();
}
inline void DrillbitEndpoint::set_version(const ::std::string& value) {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(value);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.version)
+}
+#if LANG_CXX11
+inline void DrillbitEndpoint::set_version(::std::string&& value) {
+ set_has_version();
+ version_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.DrillbitEndpoint.version)
}
+#endif
inline void DrillbitEndpoint::set_version(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(value);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.DrillbitEndpoint.version)
}
inline void DrillbitEndpoint::set_version(const char* value, size_t size) {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(reinterpret_cast<const char*>(value), size);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.DrillbitEndpoint.version)
}
inline ::std::string* DrillbitEndpoint::mutable_version() {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- return version_;
+ // @@protoc_insertion_point(field_mutable:exec.DrillbitEndpoint.version)
+ return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DrillbitEndpoint::release_version() {
- clear_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.DrillbitEndpoint.version)
+ if (!has_version()) {
return NULL;
- } else {
- ::std::string* temp = version_;
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_version();
+ return version_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DrillbitEndpoint::set_allocated_version(::std::string* version) {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- delete version_;
- }
- if (version) {
+ if (version != NULL) {
set_has_version();
- version_ = version;
} else {
clear_has_version();
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
+ // @@protoc_insertion_point(field_set_allocated:exec.DrillbitEndpoint.version)
}
// optional .exec.DrillbitEndpoint.State state = 7;
@@ -746,12 +911,14 @@ inline void DrillbitEndpoint::clear_state() {
clear_has_state();
}
inline ::exec::DrillbitEndpoint_State DrillbitEndpoint::state() const {
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.state)
return static_cast< ::exec::DrillbitEndpoint_State >(state_);
}
inline void DrillbitEndpoint::set_state(::exec::DrillbitEndpoint_State value) {
assert(::exec::DrillbitEndpoint_State_IsValid(value));
set_has_state();
state_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.state)
}
// optional int32 http_port = 8;
@@ -769,11 +936,13 @@ inline void DrillbitEndpoint::clear_http_port() {
clear_has_http_port();
}
inline ::google::protobuf::int32 DrillbitEndpoint::http_port() const {
+ // @@protoc_insertion_point(field_get:exec.DrillbitEndpoint.http_port)
return http_port_;
}
inline void DrillbitEndpoint::set_http_port(::google::protobuf::int32 value) {
set_has_http_port();
http_port_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillbitEndpoint.http_port)
}
// -------------------------------------------------------------------
@@ -791,123 +960,141 @@ inline void DrillServiceInstance::clear_has_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DrillServiceInstance::clear_id() {
- if (id_ != &::google::protobuf::internal::kEmptyString) {
- id_->clear();
- }
+ id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_id();
}
inline const ::std::string& DrillServiceInstance::id() const {
- return *id_;
+ // @@protoc_insertion_point(field_get:exec.DrillServiceInstance.id)
+ return id_.GetNoArena();
}
inline void DrillServiceInstance::set_id(const ::std::string& value) {
set_has_id();
- if (id_ == &::google::protobuf::internal::kEmptyString) {
- id_ = new ::std::string;
- }
- id_->assign(value);
+ id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.DrillServiceInstance.id)
+}
+#if LANG_CXX11
+inline void DrillServiceInstance::set_id(::std::string&& value) {
+ set_has_id();
+ id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.DrillServiceInstance.id)
}
+#endif
inline void DrillServiceInstance::set_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_id();
- if (id_ == &::google::protobuf::internal::kEmptyString) {
- id_ = new ::std::string;
- }
- id_->assign(value);
+ id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.DrillServiceInstance.id)
}
inline void DrillServiceInstance::set_id(const char* value, size_t size) {
set_has_id();
- if (id_ == &::google::protobuf::internal::kEmptyString) {
- id_ = new ::std::string;
- }
- id_->assign(reinterpret_cast<const char*>(value), size);
+ id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.DrillServiceInstance.id)
}
inline ::std::string* DrillServiceInstance::mutable_id() {
set_has_id();
- if (id_ == &::google::protobuf::internal::kEmptyString) {
- id_ = new ::std::string;
- }
- return id_;
+ // @@protoc_insertion_point(field_mutable:exec.DrillServiceInstance.id)
+ return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DrillServiceInstance::release_id() {
- clear_has_id();
- if (id_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.DrillServiceInstance.id)
+ if (!has_id()) {
return NULL;
- } else {
- ::std::string* temp = id_;
- id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_id();
+ return id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DrillServiceInstance::set_allocated_id(::std::string* id) {
- if (id_ != &::google::protobuf::internal::kEmptyString) {
- delete id_;
- }
- if (id) {
+ if (id != NULL) {
set_has_id();
- id_ = id;
} else {
clear_has_id();
- id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
+ // @@protoc_insertion_point(field_set_allocated:exec.DrillServiceInstance.id)
}
// optional int64 registrationTimeUTC = 2;
inline bool DrillServiceInstance::has_registrationtimeutc() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DrillServiceInstance::set_has_registrationtimeutc() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void DrillServiceInstance::clear_has_registrationtimeutc() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void DrillServiceInstance::clear_registrationtimeutc() {
registrationtimeutc_ = GOOGLE_LONGLONG(0);
clear_has_registrationtimeutc();
}
inline ::google::protobuf::int64 DrillServiceInstance::registrationtimeutc() const {
+ // @@protoc_insertion_point(field_get:exec.DrillServiceInstance.registrationTimeUTC)
return registrationtimeutc_;
}
inline void DrillServiceInstance::set_registrationtimeutc(::google::protobuf::int64 value) {
set_has_registrationtimeutc();
registrationtimeutc_ = value;
+ // @@protoc_insertion_point(field_set:exec.DrillServiceInstance.registrationTimeUTC)
}
// optional .exec.DrillbitEndpoint endpoint = 3;
inline bool DrillServiceInstance::has_endpoint() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DrillServiceInstance::set_has_endpoint() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void DrillServiceInstance::clear_has_endpoint() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void DrillServiceInstance::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+ if (endpoint_ != NULL) endpoint_->Clear();
clear_has_endpoint();
}
-inline const ::exec::DrillbitEndpoint& DrillServiceInstance::endpoint() const {
- return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
+inline const ::exec::DrillbitEndpoint& DrillServiceInstance::_internal_endpoint() const {
+ return *endpoint_;
}
-inline ::exec::DrillbitEndpoint* DrillServiceInstance::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
- return endpoint_;
+inline const ::exec::DrillbitEndpoint& DrillServiceInstance::endpoint() const {
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ // @@protoc_insertion_point(field_get:exec.DrillServiceInstance.endpoint)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* DrillServiceInstance::release_endpoint() {
+ // @@protoc_insertion_point(field_release:exec.DrillServiceInstance.endpoint)
clear_has_endpoint();
::exec::DrillbitEndpoint* temp = endpoint_;
endpoint_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* DrillServiceInstance::mutable_endpoint() {
+ set_has_endpoint();
+ if (endpoint_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ endpoint_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.DrillServiceInstance.endpoint)
+ return endpoint_;
+}
inline void DrillServiceInstance::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- delete endpoint_;
- endpoint_ = endpoint;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete endpoint_;
+ }
if (endpoint) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, endpoint, submessage_arena);
+ }
set_has_endpoint();
} else {
clear_has_endpoint();
}
+ endpoint_ = endpoint;
+ // @@protoc_insertion_point(field_set_allocated:exec.DrillServiceInstance.endpoint)
}
// -------------------------------------------------------------------
@@ -929,11 +1116,13 @@ inline void Roles::clear_sql_query() {
clear_has_sql_query();
}
inline bool Roles::sql_query() const {
+ // @@protoc_insertion_point(field_get:exec.Roles.sql_query)
return sql_query_;
}
inline void Roles::set_sql_query(bool value) {
set_has_sql_query();
sql_query_ = value;
+ // @@protoc_insertion_point(field_set:exec.Roles.sql_query)
}
// optional bool logical_plan = 2 [default = true];
@@ -951,11 +1140,13 @@ inline void Roles::clear_logical_plan() {
clear_has_logical_plan();
}
inline bool Roles::logical_plan() const {
+ // @@protoc_insertion_point(field_get:exec.Roles.logical_plan)
return logical_plan_;
}
inline void Roles::set_logical_plan(bool value) {
set_has_logical_plan();
logical_plan_ = value;
+ // @@protoc_insertion_point(field_set:exec.Roles.logical_plan)
}
// optional bool physical_plan = 3 [default = true];
@@ -973,11 +1164,13 @@ inline void Roles::clear_physical_plan() {
clear_has_physical_plan();
}
inline bool Roles::physical_plan() const {
+ // @@protoc_insertion_point(field_get:exec.Roles.physical_plan)
return physical_plan_;
}
inline void Roles::set_physical_plan(bool value) {
set_has_physical_plan();
physical_plan_ = value;
+ // @@protoc_insertion_point(field_set:exec.Roles.physical_plan)
}
// optional bool java_executor = 4 [default = true];
@@ -995,11 +1188,13 @@ inline void Roles::clear_java_executor() {
clear_has_java_executor();
}
inline bool Roles::java_executor() const {
+ // @@protoc_insertion_point(field_get:exec.Roles.java_executor)
return java_executor_;
}
inline void Roles::set_java_executor(bool value) {
set_has_java_executor();
java_executor_ = value;
+ // @@protoc_insertion_point(field_set:exec.Roles.java_executor)
}
// optional bool distributed_cache = 5 [default = true];
@@ -1017,31 +1212,39 @@ inline void Roles::clear_distributed_cache() {
clear_has_distributed_cache();
}
inline bool Roles::distributed_cache() const {
+ // @@protoc_insertion_point(field_get:exec.Roles.distributed_cache)
return distributed_cache_;
}
inline void Roles::set_distributed_cache(bool value) {
set_has_distributed_cache();
distributed_cache_ = value;
+ // @@protoc_insertion_point(field_set:exec.Roles.distributed_cache)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::DrillbitEndpoint_State> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::DrillbitEndpoint_State>() {
return ::exec::DrillbitEndpoint_State_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_Coordination_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_Coordination_2eproto
diff --git a/contrib/native/client/src/protobuf/ExecutionProtos.pb.cc b/contrib/native/client/src/protobuf/ExecutionProtos.pb.cc
index 26690f398..e5023d71f 100644
--- a/contrib/native/client/src/protobuf/ExecutionProtos.pb.cc
+++ b/contrib/native/client/src/protobuf/ExecutionProtos.pb.cc
@@ -1,370 +1,450 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ExecutionProtos.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "ExecutionProtos.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_UserBitShared_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryId;
+} // namespace protobuf_UserBitShared_2eproto
namespace exec {
namespace bit {
+class FragmentHandleDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<FragmentHandle>
+ _instance;
+} _FragmentHandle_default_instance_;
+class ServerPreparedStatementStateDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ServerPreparedStatementState>
+ _instance;
+} _ServerPreparedStatementState_default_instance_;
+} // namespace bit
+} // namespace exec
+namespace protobuf_ExecutionProtos_2eproto {
+static void InitDefaultsFragmentHandle() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* FragmentHandle_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- FragmentHandle_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ServerPreparedStatementState_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ServerPreparedStatementState_reflection_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_ExecutionProtos_2eproto() {
- protobuf_AddDesc_ExecutionProtos_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "ExecutionProtos.proto");
- GOOGLE_CHECK(file != NULL);
- FragmentHandle_descriptor_ = file->message_type(0);
- static const int FragmentHandle_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, minor_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, parent_query_id_),
- };
- FragmentHandle_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- FragmentHandle_descriptor_,
- FragmentHandle::default_instance_,
- FragmentHandle_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(FragmentHandle));
- ServerPreparedStatementState_descriptor_ = file->message_type(1);
- static const int ServerPreparedStatementState_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerPreparedStatementState, sql_query_),
- };
- ServerPreparedStatementState_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ServerPreparedStatementState_descriptor_,
- ServerPreparedStatementState::default_instance_,
- ServerPreparedStatementState_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerPreparedStatementState, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerPreparedStatementState, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ServerPreparedStatementState));
+ {
+ void* ptr = &::exec::bit::_FragmentHandle_default_instance_;
+ new (ptr) ::exec::bit::FragmentHandle();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::FragmentHandle::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<1> scc_info_FragmentHandle =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFragmentHandle}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,}};
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_ExecutionProtos_2eproto);
-}
+static void InitDefaultsServerPreparedStatementState() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+ {
+ void* ptr = &::exec::bit::_ServerPreparedStatementState_default_instance_;
+ new (ptr) ::exec::bit::ServerPreparedStatementState();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::bit::ServerPreparedStatementState::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_ServerPreparedStatementState =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsServerPreparedStatementState}, {}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_FragmentHandle.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ServerPreparedStatementState.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[2];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, minor_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::FragmentHandle, parent_query_id_),
+ 0,
+ 2,
+ 3,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::ServerPreparedStatementState, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::ServerPreparedStatementState, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::bit::ServerPreparedStatementState, sql_query_),
+ 0,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 9, sizeof(::exec::bit::FragmentHandle)},
+ { 13, 19, sizeof(::exec::bit::ServerPreparedStatementState)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::_FragmentHandle_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::bit::_ServerPreparedStatementState_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "ExecutionProtos.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- FragmentHandle_descriptor_, &FragmentHandle::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ServerPreparedStatementState_descriptor_, &ServerPreparedStatementState::default_instance());
-}
-
-} // namespace
-
-void protobuf_ShutdownFile_ExecutionProtos_2eproto() {
- delete FragmentHandle::default_instance_;
- delete FragmentHandle_reflection_;
- delete ServerPreparedStatementState::default_instance_;
- delete ServerPreparedStatementState_reflection_;
-}
-
-void protobuf_AddDesc_ExecutionProtos_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
-
- ::exec::protobuf_AddDesc_Coordination_2eproto();
- ::exec::shared::protobuf_AddDesc_UserBitShared_2eproto();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\025ExecutionProtos.proto\022\010exec.bit\032\022Coord"
+ "ination.proto\032\023UserBitShared.proto\"\235\001\n\016F"
+ "ragmentHandle\022&\n\010query_id\030\001 \001(\0132\024.exec.s"
+ "hared.QueryId\022\031\n\021major_fragment_id\030\002 \001(\005"
+ "\022\031\n\021minor_fragment_id\030\003 \001(\005\022-\n\017parent_qu"
+ "ery_id\030\004 \001(\0132\024.exec.shared.QueryId\"1\n\034Se"
+ "rverPreparedStatementState\022\021\n\tsql_query\030"
+ "\001 \001(\tB+\n\033org.apache.drill.exec.protoB\nEx"
+ "ecProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\025ExecutionProtos.proto\022\010exec.bit\032\022Coord"
- "ination.proto\032\023UserBitShared.proto\"\235\001\n\016F"
- "ragmentHandle\022&\n\010query_id\030\001 \001(\0132\024.exec.s"
- "hared.QueryId\022\031\n\021major_fragment_id\030\002 \001(\005"
- "\022\031\n\021minor_fragment_id\030\003 \001(\005\022-\n\017parent_qu"
- "ery_id\030\004 \001(\0132\024.exec.shared.QueryId\"1\n\034Se"
- "rverPreparedStatementState\022\021\n\tsql_query\030"
- "\001 \001(\tB+\n\033org.apache.drill.exec.protoB\nEx"
- "ecProtosH\001", 330);
+ descriptor, 330);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"ExecutionProtos.proto", &protobuf_RegisterTypes);
- FragmentHandle::default_instance_ = new FragmentHandle();
- ServerPreparedStatementState::default_instance_ = new ServerPreparedStatementState();
- FragmentHandle::default_instance_->InitAsDefaultInstance();
- ServerPreparedStatementState::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ExecutionProtos_2eproto);
+ ::protobuf_Coordination_2eproto::AddDescriptors();
+ ::protobuf_UserBitShared_2eproto::AddDescriptors();
}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_ExecutionProtos_2eproto {
- StaticDescriptorInitializer_ExecutionProtos_2eproto() {
- protobuf_AddDesc_ExecutionProtos_2eproto();
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
}
-} static_descriptor_initializer_ExecutionProtos_2eproto_;
+} static_descriptor_initializer;
+} // namespace protobuf_ExecutionProtos_2eproto
+namespace exec {
+namespace bit {
// ===================================================================
-#ifndef _MSC_VER
+void FragmentHandle::InitAsDefaultInstance() {
+ ::exec::bit::_FragmentHandle_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+ ::exec::bit::_FragmentHandle_default_instance_._instance.get_mutable()->parent_query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+}
+void FragmentHandle::clear_query_id() {
+ if (query_id_ != NULL) query_id_->Clear();
+ clear_has_query_id();
+}
+void FragmentHandle::clear_parent_query_id() {
+ if (parent_query_id_ != NULL) parent_query_id_->Clear();
+ clear_has_parent_query_id();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int FragmentHandle::kQueryIdFieldNumber;
const int FragmentHandle::kMajorFragmentIdFieldNumber;
const int FragmentHandle::kMinorFragmentIdFieldNumber;
const int FragmentHandle::kParentQueryIdFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
FragmentHandle::FragmentHandle()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_ExecutionProtos_2eproto::scc_info_FragmentHandle.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.FragmentHandle)
}
-
-void FragmentHandle::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
- parent_query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
-}
-
FragmentHandle::FragmentHandle(const FragmentHandle& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ if (from.has_parent_query_id()) {
+ parent_query_id_ = new ::exec::shared::QueryId(*from.parent_query_id_);
+ } else {
+ parent_query_id_ = NULL;
+ }
+ ::memcpy(&major_fragment_id_, &from.major_fragment_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&minor_fragment_id_) -
+ reinterpret_cast<char*>(&major_fragment_id_)) + sizeof(minor_fragment_id_));
+ // @@protoc_insertion_point(copy_constructor:exec.bit.FragmentHandle)
}
void FragmentHandle::SharedCtor() {
- _cached_size_ = 0;
- query_id_ = NULL;
- major_fragment_id_ = 0;
- minor_fragment_id_ = 0;
- parent_query_id_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&minor_fragment_id_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(minor_fragment_id_));
}
FragmentHandle::~FragmentHandle() {
+ // @@protoc_insertion_point(destructor:exec.bit.FragmentHandle)
SharedDtor();
}
void FragmentHandle::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- delete parent_query_id_;
- }
+ if (this != internal_default_instance()) delete query_id_;
+ if (this != internal_default_instance()) delete parent_query_id_;
}
void FragmentHandle::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* FragmentHandle::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FragmentHandle_descriptor_;
+ ::protobuf_ExecutionProtos_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_ExecutionProtos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const FragmentHandle& FragmentHandle::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_ExecutionProtos_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_ExecutionProtos_2eproto::scc_info_FragmentHandle.base);
+ return *internal_default_instance();
}
-FragmentHandle* FragmentHandle::default_instance_ = NULL;
-
-FragmentHandle* FragmentHandle::New() const {
- return new FragmentHandle;
-}
void FragmentHandle::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.bit.FragmentHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
}
- major_fragment_id_ = 0;
- minor_fragment_id_ = 0;
- if (has_parent_query_id()) {
- if (parent_query_id_ != NULL) parent_query_id_->::exec::shared::QueryId::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(parent_query_id_ != NULL);
+ parent_query_id_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 12u) {
+ ::memset(&major_fragment_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&minor_fragment_id_) -
+ reinterpret_cast<char*>(&major_fragment_id_)) + sizeof(minor_fragment_id_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool FragmentHandle::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.FragmentHandle)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_major_fragment_id;
break;
}
// optional int32 major_fragment_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_major_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &major_fragment_id_)));
- set_has_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_minor_fragment_id;
break;
}
// optional int32 minor_fragment_id = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_minor_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_minor_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &minor_fragment_id_)));
- set_has_minor_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_parent_query_id;
break;
}
// optional .exec.shared.QueryId parent_query_id = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_parent_query_id:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_parent_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.FragmentHandle)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.FragmentHandle)
+ return false;
#undef DO_
}
void FragmentHandle::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.FragmentHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->query_id(), output);
+ 1, this->_internal_query_id(), output);
}
// optional int32 major_fragment_id = 2;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->major_fragment_id(), output);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->minor_fragment_id(), output);
}
// optional .exec.shared.QueryId parent_query_id = 4;
- if (has_parent_query_id()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->parent_query_id(), output);
+ 4, this->_internal_parent_query_id(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.FragmentHandle)
}
-::google::protobuf::uint8* FragmentHandle::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* FragmentHandle::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.FragmentHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_query_id(), deterministic, target);
}
// optional int32 major_fragment_id = 2;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->major_fragment_id(), target);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->minor_fragment_id(), target);
}
// optional .exec.shared.QueryId parent_query_id = 4;
- if (has_parent_query_id()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->parent_query_id(), target);
+ InternalWriteMessageToArray(
+ 4, this->_internal_parent_query_id(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.FragmentHandle)
return target;
}
-int FragmentHandle::ByteSize() const {
- int total_size = 0;
+size_t FragmentHandle::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.FragmentHandle)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
+ }
+
+ // optional .exec.shared.QueryId parent_query_id = 4;
+ if (has_parent_query_id()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *parent_query_id_);
}
// optional int32 major_fragment_id = 2;
@@ -381,322 +461,352 @@ int FragmentHandle::ByteSize() const {
this->minor_fragment_id());
}
- // optional .exec.shared.QueryId parent_query_id = 4;
- if (has_parent_query_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->parent_query_id());
- }
-
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void FragmentHandle::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.FragmentHandle)
+ GOOGLE_DCHECK_NE(&from, this);
const FragmentHandle* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const FragmentHandle*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const FragmentHandle>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.FragmentHandle)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.FragmentHandle)
MergeFrom(*source);
}
}
void FragmentHandle::MergeFrom(const FragmentHandle& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_id()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.FragmentHandle)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_major_fragment_id()) {
- set_major_fragment_id(from.major_fragment_id());
+ if (cached_has_bits & 0x00000002u) {
+ mutable_parent_query_id()->::exec::shared::QueryId::MergeFrom(from.parent_query_id());
}
- if (from.has_minor_fragment_id()) {
- set_minor_fragment_id(from.minor_fragment_id());
+ if (cached_has_bits & 0x00000004u) {
+ major_fragment_id_ = from.major_fragment_id_;
}
- if (from.has_parent_query_id()) {
- mutable_parent_query_id()->::exec::shared::QueryId::MergeFrom(from.parent_query_id());
+ if (cached_has_bits & 0x00000008u) {
+ minor_fragment_id_ = from.minor_fragment_id_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FragmentHandle::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.FragmentHandle)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FragmentHandle::CopyFrom(const FragmentHandle& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.FragmentHandle)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FragmentHandle::IsInitialized() const {
-
return true;
}
void FragmentHandle::Swap(FragmentHandle* other) {
- if (other != this) {
- std::swap(query_id_, other->query_id_);
- std::swap(major_fragment_id_, other->major_fragment_id_);
- std::swap(minor_fragment_id_, other->minor_fragment_id_);
- std::swap(parent_query_id_, other->parent_query_id_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void FragmentHandle::InternalSwap(FragmentHandle* other) {
+ using std::swap;
+ swap(query_id_, other->query_id_);
+ swap(parent_query_id_, other->parent_query_id_);
+ swap(major_fragment_id_, other->major_fragment_id_);
+ swap(minor_fragment_id_, other->minor_fragment_id_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata FragmentHandle::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = FragmentHandle_descriptor_;
- metadata.reflection = FragmentHandle_reflection_;
- return metadata;
+ protobuf_ExecutionProtos_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_ExecutionProtos_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ServerPreparedStatementState::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ServerPreparedStatementState::kSqlQueryFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ServerPreparedStatementState::ServerPreparedStatementState()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_ExecutionProtos_2eproto::scc_info_ServerPreparedStatementState.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.bit.ServerPreparedStatementState)
}
-
-void ServerPreparedStatementState::InitAsDefaultInstance() {
-}
-
ServerPreparedStatementState::ServerPreparedStatementState(const ServerPreparedStatementState& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ sql_query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_sql_query()) {
+ sql_query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sql_query_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.bit.ServerPreparedStatementState)
}
void ServerPreparedStatementState::SharedCtor() {
- _cached_size_ = 0;
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ sql_query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
ServerPreparedStatementState::~ServerPreparedStatementState() {
+ // @@protoc_insertion_point(destructor:exec.bit.ServerPreparedStatementState)
SharedDtor();
}
void ServerPreparedStatementState::SharedDtor() {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- delete sql_query_;
- }
- if (this != default_instance_) {
- }
+ sql_query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ServerPreparedStatementState::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ServerPreparedStatementState::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ServerPreparedStatementState_descriptor_;
+ ::protobuf_ExecutionProtos_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_ExecutionProtos_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ServerPreparedStatementState& ServerPreparedStatementState::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_ExecutionProtos_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_ExecutionProtos_2eproto::scc_info_ServerPreparedStatementState.base);
+ return *internal_default_instance();
}
-ServerPreparedStatementState* ServerPreparedStatementState::default_instance_ = NULL;
-
-ServerPreparedStatementState* ServerPreparedStatementState::New() const {
- return new ServerPreparedStatementState;
-}
void ServerPreparedStatementState::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_sql_query()) {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- sql_query_->clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.bit.ServerPreparedStatementState)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ sql_query_.ClearNonDefaultToEmptyNoArena();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ServerPreparedStatementState::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.bit.ServerPreparedStatementState)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string sql_query = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_sql_query()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.bit.ServerPreparedStatementState.sql_query");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.bit.ServerPreparedStatementState)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.bit.ServerPreparedStatementState)
+ return false;
#undef DO_
}
void ServerPreparedStatementState::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.bit.ServerPreparedStatementState)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string sql_query = 1;
- if (has_sql_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.ServerPreparedStatementState.sql_query");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->sql_query(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.bit.ServerPreparedStatementState)
}
-::google::protobuf::uint8* ServerPreparedStatementState::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ServerPreparedStatementState::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.bit.ServerPreparedStatementState)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string sql_query = 1;
- if (has_sql_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.bit.ServerPreparedStatementState.sql_query");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->sql_query(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.bit.ServerPreparedStatementState)
return target;
}
-int ServerPreparedStatementState::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional string sql_query = 1;
- if (has_sql_query()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->sql_query());
- }
+size_t ServerPreparedStatementState::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.bit.ServerPreparedStatementState)
+ size_t total_size = 0;
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ // optional string sql_query = 1;
+ if (has_sql_query()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->sql_query());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ServerPreparedStatementState::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.bit.ServerPreparedStatementState)
+ GOOGLE_DCHECK_NE(&from, this);
const ServerPreparedStatementState* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ServerPreparedStatementState*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ServerPreparedStatementState>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.bit.ServerPreparedStatementState)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.bit.ServerPreparedStatementState)
MergeFrom(*source);
}
}
void ServerPreparedStatementState::MergeFrom(const ServerPreparedStatementState& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_sql_query()) {
- set_sql_query(from.sql_query());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.bit.ServerPreparedStatementState)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_sql_query()) {
+ set_has_sql_query();
+ sql_query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sql_query_);
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ServerPreparedStatementState::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.bit.ServerPreparedStatementState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ServerPreparedStatementState::CopyFrom(const ServerPreparedStatementState& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.bit.ServerPreparedStatementState)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ServerPreparedStatementState::IsInitialized() const {
-
return true;
}
void ServerPreparedStatementState::Swap(ServerPreparedStatementState* other) {
- if (other != this) {
- std::swap(sql_query_, other->sql_query_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ServerPreparedStatementState::InternalSwap(ServerPreparedStatementState* other) {
+ using std::swap;
+ sql_query_.Swap(&other->sql_query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ServerPreparedStatementState::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ServerPreparedStatementState_descriptor_;
- metadata.reflection = ServerPreparedStatementState_reflection_;
- return metadata;
+ protobuf_ExecutionProtos_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_ExecutionProtos_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace bit
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::FragmentHandle* Arena::CreateMaybeMessage< ::exec::bit::FragmentHandle >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::FragmentHandle >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::bit::ServerPreparedStatementState* Arena::CreateMaybeMessage< ::exec::bit::ServerPreparedStatementState >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::bit::ServerPreparedStatementState >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/ExecutionProtos.pb.h b/contrib/native/client/src/protobuf/ExecutionProtos.pb.h
index 86cddb9dd..91221c437 100644
--- a/contrib/native/client/src/protobuf/ExecutionProtos.pb.h
+++ b/contrib/native/client/src/protobuf/ExecutionProtos.pb.h
@@ -1,47 +1,74 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ExecutionProtos.proto
-#ifndef PROTOBUF_ExecutionProtos_2eproto__INCLUDED
-#define PROTOBUF_ExecutionProtos_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_ExecutionProtos_2eproto
+#define PROTOBUF_INCLUDED_ExecutionProtos_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "Coordination.pb.h"
#include "UserBitShared.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_ExecutionProtos_2eproto
+
+namespace protobuf_ExecutionProtos_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[2];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_ExecutionProtos_2eproto
namespace exec {
namespace bit {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_ExecutionProtos_2eproto();
-void protobuf_AssignDesc_ExecutionProtos_2eproto();
-void protobuf_ShutdownFile_ExecutionProtos_2eproto();
-
class FragmentHandle;
+class FragmentHandleDefaultTypeInternal;
+extern FragmentHandleDefaultTypeInternal _FragmentHandle_default_instance_;
class ServerPreparedStatementState;
+class ServerPreparedStatementStateDefaultTypeInternal;
+extern ServerPreparedStatementStateDefaultTypeInternal _ServerPreparedStatementState_default_instance_;
+} // namespace bit
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::bit::FragmentHandle* Arena::CreateMaybeMessage<::exec::bit::FragmentHandle>(Arena*);
+template<> ::exec::bit::ServerPreparedStatementState* Arena::CreateMaybeMessage<::exec::bit::ServerPreparedStatementState>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace bit {
// ===================================================================
-class FragmentHandle : public ::google::protobuf::Message {
+class FragmentHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.FragmentHandle) */ {
public:
FragmentHandle();
virtual ~FragmentHandle();
@@ -52,112 +79,150 @@ class FragmentHandle : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ FragmentHandle(FragmentHandle&& from) noexcept
+ : FragmentHandle() {
+ *this = ::std::move(from);
+ }
+ inline FragmentHandle& operator=(FragmentHandle&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const FragmentHandle& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FragmentHandle* internal_default_instance() {
+ return reinterpret_cast<const FragmentHandle*>(
+ &_FragmentHandle_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(FragmentHandle* other);
+ friend void swap(FragmentHandle& a, FragmentHandle& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- FragmentHandle* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline FragmentHandle* New() const final {
+ return CreateMaybeMessage<FragmentHandle>(NULL);
+ }
+
+ FragmentHandle* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<FragmentHandle>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const FragmentHandle& from);
void MergeFrom(const FragmentHandle& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(FragmentHandle* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.shared.QueryId query_id = 1;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
+
+ // optional .exec.shared.QueryId parent_query_id = 4;
+ bool has_parent_query_id() const;
+ void clear_parent_query_id();
+ static const int kParentQueryIdFieldNumber = 4;
+ private:
+ const ::exec::shared::QueryId& _internal_parent_query_id() const;
+ public:
+ const ::exec::shared::QueryId& parent_query_id() const;
+ ::exec::shared::QueryId* release_parent_query_id();
+ ::exec::shared::QueryId* mutable_parent_query_id();
+ void set_allocated_parent_query_id(::exec::shared::QueryId* parent_query_id);
// optional int32 major_fragment_id = 2;
- inline bool has_major_fragment_id() const;
- inline void clear_major_fragment_id();
+ bool has_major_fragment_id() const;
+ void clear_major_fragment_id();
static const int kMajorFragmentIdFieldNumber = 2;
- inline ::google::protobuf::int32 major_fragment_id() const;
- inline void set_major_fragment_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 major_fragment_id() const;
+ void set_major_fragment_id(::google::protobuf::int32 value);
// optional int32 minor_fragment_id = 3;
- inline bool has_minor_fragment_id() const;
- inline void clear_minor_fragment_id();
+ bool has_minor_fragment_id() const;
+ void clear_minor_fragment_id();
static const int kMinorFragmentIdFieldNumber = 3;
- inline ::google::protobuf::int32 minor_fragment_id() const;
- inline void set_minor_fragment_id(::google::protobuf::int32 value);
-
- // optional .exec.shared.QueryId parent_query_id = 4;
- inline bool has_parent_query_id() const;
- inline void clear_parent_query_id();
- static const int kParentQueryIdFieldNumber = 4;
- inline const ::exec::shared::QueryId& parent_query_id() const;
- inline ::exec::shared::QueryId* mutable_parent_query_id();
- inline ::exec::shared::QueryId* release_parent_query_id();
- inline void set_allocated_parent_query_id(::exec::shared::QueryId* parent_query_id);
+ ::google::protobuf::int32 minor_fragment_id() const;
+ void set_minor_fragment_id(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.bit.FragmentHandle)
private:
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_major_fragment_id();
- inline void clear_has_major_fragment_id();
- inline void set_has_minor_fragment_id();
- inline void clear_has_minor_fragment_id();
- inline void set_has_parent_query_id();
- inline void clear_has_parent_query_id();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_major_fragment_id();
+ void clear_has_major_fragment_id();
+ void set_has_minor_fragment_id();
+ void clear_has_minor_fragment_id();
+ void set_has_parent_query_id();
+ void clear_has_parent_query_id();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::shared::QueryId* query_id_;
+ ::exec::shared::QueryId* parent_query_id_;
::google::protobuf::int32 major_fragment_id_;
::google::protobuf::int32 minor_fragment_id_;
- ::exec::shared::QueryId* parent_query_id_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_ExecutionProtos_2eproto();
- friend void protobuf_AssignDesc_ExecutionProtos_2eproto();
- friend void protobuf_ShutdownFile_ExecutionProtos_2eproto();
-
- void InitAsDefaultInstance();
- static FragmentHandle* default_instance_;
+ friend struct ::protobuf_ExecutionProtos_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ServerPreparedStatementState : public ::google::protobuf::Message {
+class ServerPreparedStatementState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.bit.ServerPreparedStatementState) */ {
public:
ServerPreparedStatementState();
virtual ~ServerPreparedStatementState();
@@ -168,85 +233,124 @@ class ServerPreparedStatementState : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ServerPreparedStatementState(ServerPreparedStatementState&& from) noexcept
+ : ServerPreparedStatementState() {
+ *this = ::std::move(from);
+ }
+ inline ServerPreparedStatementState& operator=(ServerPreparedStatementState&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ServerPreparedStatementState& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ServerPreparedStatementState* internal_default_instance() {
+ return reinterpret_cast<const ServerPreparedStatementState*>(
+ &_ServerPreparedStatementState_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(ServerPreparedStatementState* other);
+ friend void swap(ServerPreparedStatementState& a, ServerPreparedStatementState& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ServerPreparedStatementState* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ServerPreparedStatementState* New() const final {
+ return CreateMaybeMessage<ServerPreparedStatementState>(NULL);
+ }
+
+ ServerPreparedStatementState* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ServerPreparedStatementState>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ServerPreparedStatementState& from);
void MergeFrom(const ServerPreparedStatementState& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ServerPreparedStatementState* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string sql_query = 1;
- inline bool has_sql_query() const;
- inline void clear_sql_query();
+ bool has_sql_query() const;
+ void clear_sql_query();
static const int kSqlQueryFieldNumber = 1;
- inline const ::std::string& sql_query() const;
- inline void set_sql_query(const ::std::string& value);
- inline void set_sql_query(const char* value);
- inline void set_sql_query(const char* value, size_t size);
- inline ::std::string* mutable_sql_query();
- inline ::std::string* release_sql_query();
- inline void set_allocated_sql_query(::std::string* sql_query);
+ const ::std::string& sql_query() const;
+ void set_sql_query(const ::std::string& value);
+ #if LANG_CXX11
+ void set_sql_query(::std::string&& value);
+ #endif
+ void set_sql_query(const char* value);
+ void set_sql_query(const char* value, size_t size);
+ ::std::string* mutable_sql_query();
+ ::std::string* release_sql_query();
+ void set_allocated_sql_query(::std::string* sql_query);
// @@protoc_insertion_point(class_scope:exec.bit.ServerPreparedStatementState)
private:
- inline void set_has_sql_query();
- inline void clear_has_sql_query();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* sql_query_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_ExecutionProtos_2eproto();
- friend void protobuf_AssignDesc_ExecutionProtos_2eproto();
- friend void protobuf_ShutdownFile_ExecutionProtos_2eproto();
-
- void InitAsDefaultInstance();
- static ServerPreparedStatementState* default_instance_;
+ void set_has_sql_query();
+ void clear_has_sql_query();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr sql_query_;
+ friend struct ::protobuf_ExecutionProtos_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// FragmentHandle
// optional .exec.shared.QueryId query_id = 1;
@@ -259,114 +363,150 @@ inline void FragmentHandle::set_has_query_id() {
inline void FragmentHandle::clear_has_query_id() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void FragmentHandle::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- clear_has_query_id();
+inline const ::exec::shared::QueryId& FragmentHandle::_internal_query_id() const {
+ return *query_id_;
}
inline const ::exec::shared::QueryId& FragmentHandle::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
-}
-inline ::exec::shared::QueryId* FragmentHandle::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.bit.FragmentHandle.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* FragmentHandle::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.bit.FragmentHandle.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* FragmentHandle::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.FragmentHandle.query_id)
+ return query_id_;
+}
inline void FragmentHandle::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_id_);
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.FragmentHandle.query_id)
}
// optional int32 major_fragment_id = 2;
inline bool FragmentHandle::has_major_fragment_id() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void FragmentHandle::set_has_major_fragment_id() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void FragmentHandle::clear_has_major_fragment_id() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void FragmentHandle::clear_major_fragment_id() {
major_fragment_id_ = 0;
clear_has_major_fragment_id();
}
inline ::google::protobuf::int32 FragmentHandle::major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.FragmentHandle.major_fragment_id)
return major_fragment_id_;
}
inline void FragmentHandle::set_major_fragment_id(::google::protobuf::int32 value) {
set_has_major_fragment_id();
major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.FragmentHandle.major_fragment_id)
}
// optional int32 minor_fragment_id = 3;
inline bool FragmentHandle::has_minor_fragment_id() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void FragmentHandle::set_has_minor_fragment_id() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void FragmentHandle::clear_has_minor_fragment_id() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void FragmentHandle::clear_minor_fragment_id() {
minor_fragment_id_ = 0;
clear_has_minor_fragment_id();
}
inline ::google::protobuf::int32 FragmentHandle::minor_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.bit.FragmentHandle.minor_fragment_id)
return minor_fragment_id_;
}
inline void FragmentHandle::set_minor_fragment_id(::google::protobuf::int32 value) {
set_has_minor_fragment_id();
minor_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.bit.FragmentHandle.minor_fragment_id)
}
// optional .exec.shared.QueryId parent_query_id = 4;
inline bool FragmentHandle::has_parent_query_id() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void FragmentHandle::set_has_parent_query_id() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void FragmentHandle::clear_has_parent_query_id() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void FragmentHandle::clear_parent_query_id() {
- if (parent_query_id_ != NULL) parent_query_id_->::exec::shared::QueryId::Clear();
- clear_has_parent_query_id();
+inline const ::exec::shared::QueryId& FragmentHandle::_internal_parent_query_id() const {
+ return *parent_query_id_;
}
inline const ::exec::shared::QueryId& FragmentHandle::parent_query_id() const {
- return parent_query_id_ != NULL ? *parent_query_id_ : *default_instance_->parent_query_id_;
-}
-inline ::exec::shared::QueryId* FragmentHandle::mutable_parent_query_id() {
- set_has_parent_query_id();
- if (parent_query_id_ == NULL) parent_query_id_ = new ::exec::shared::QueryId;
- return parent_query_id_;
+ const ::exec::shared::QueryId* p = parent_query_id_;
+ // @@protoc_insertion_point(field_get:exec.bit.FragmentHandle.parent_query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* FragmentHandle::release_parent_query_id() {
+ // @@protoc_insertion_point(field_release:exec.bit.FragmentHandle.parent_query_id)
clear_has_parent_query_id();
::exec::shared::QueryId* temp = parent_query_id_;
parent_query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* FragmentHandle::mutable_parent_query_id() {
+ set_has_parent_query_id();
+ if (parent_query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ parent_query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.bit.FragmentHandle.parent_query_id)
+ return parent_query_id_;
+}
inline void FragmentHandle::set_allocated_parent_query_id(::exec::shared::QueryId* parent_query_id) {
- delete parent_query_id_;
- parent_query_id_ = parent_query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_query_id_);
+ }
if (parent_query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ parent_query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, parent_query_id, submessage_arena);
+ }
set_has_parent_query_id();
} else {
clear_has_parent_query_id();
}
+ parent_query_id_ = parent_query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.FragmentHandle.parent_query_id)
}
// -------------------------------------------------------------------
@@ -384,80 +524,72 @@ inline void ServerPreparedStatementState::clear_has_sql_query() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ServerPreparedStatementState::clear_sql_query() {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- sql_query_->clear();
- }
+ sql_query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_sql_query();
}
inline const ::std::string& ServerPreparedStatementState::sql_query() const {
- return *sql_query_;
+ // @@protoc_insertion_point(field_get:exec.bit.ServerPreparedStatementState.sql_query)
+ return sql_query_.GetNoArena();
}
inline void ServerPreparedStatementState::set_sql_query(const ::std::string& value) {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(value);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.bit.ServerPreparedStatementState.sql_query)
+}
+#if LANG_CXX11
+inline void ServerPreparedStatementState::set_sql_query(::std::string&& value) {
+ set_has_sql_query();
+ sql_query_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.bit.ServerPreparedStatementState.sql_query)
}
+#endif
inline void ServerPreparedStatementState::set_sql_query(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(value);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.bit.ServerPreparedStatementState.sql_query)
}
inline void ServerPreparedStatementState::set_sql_query(const char* value, size_t size) {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(reinterpret_cast<const char*>(value), size);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.bit.ServerPreparedStatementState.sql_query)
}
inline ::std::string* ServerPreparedStatementState::mutable_sql_query() {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- return sql_query_;
+ // @@protoc_insertion_point(field_mutable:exec.bit.ServerPreparedStatementState.sql_query)
+ return sql_query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerPreparedStatementState::release_sql_query() {
- clear_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.bit.ServerPreparedStatementState.sql_query)
+ if (!has_sql_query()) {
return NULL;
- } else {
- ::std::string* temp = sql_query_;
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_sql_query();
+ return sql_query_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerPreparedStatementState::set_allocated_sql_query(::std::string* sql_query) {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- delete sql_query_;
- }
- if (sql_query) {
+ if (sql_query != NULL) {
set_has_sql_query();
- sql_query_ = sql_query;
} else {
clear_has_sql_query();
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ sql_query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sql_query);
+ // @@protoc_insertion_point(field_set_allocated:exec.bit.ServerPreparedStatementState.sql_query)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
} // namespace bit
} // namespace exec
-#ifndef SWIG
-namespace google {
-namespace protobuf {
-
-
-} // namespace google
-} // namespace protobuf
-#endif // SWIG
-
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_ExecutionProtos_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_ExecutionProtos_2eproto
diff --git a/contrib/native/client/src/protobuf/GeneralRPC.pb.cc b/contrib/native/client/src/protobuf/GeneralRPC.pb.cc
index b02ef0ea6..ab5dfcf0c 100644
--- a/contrib/native/client/src/protobuf/GeneralRPC.pb.cc
+++ b/contrib/native/client/src/protobuf/GeneralRPC.pb.cc
@@ -1,168 +1,200 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GeneralRPC.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "GeneralRPC.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_GeneralRPC_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_GeneralRPC_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RpcHeader;
+} // namespace protobuf_GeneralRPC_2eproto
namespace exec {
namespace rpc {
+class AckDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Ack>
+ _instance;
+} _Ack_default_instance_;
+class RpcHeaderDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RpcHeader>
+ _instance;
+} _RpcHeader_default_instance_;
+class CompleteRpcMessageDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CompleteRpcMessage>
+ _instance;
+} _CompleteRpcMessage_default_instance_;
+} // namespace rpc
+} // namespace exec
+namespace protobuf_GeneralRPC_2eproto {
+static void InitDefaultsAck() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* Ack_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Ack_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RpcHeader_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RpcHeader_reflection_ = NULL;
-const ::google::protobuf::Descriptor* CompleteRpcMessage_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- CompleteRpcMessage_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* RpcMode_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_GeneralRPC_2eproto() {
- protobuf_AddDesc_GeneralRPC_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "GeneralRPC.proto");
- GOOGLE_CHECK(file != NULL);
- Ack_descriptor_ = file->message_type(0);
- static const int Ack_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ack, ok_),
- };
- Ack_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Ack_descriptor_,
- Ack::default_instance_,
- Ack_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ack, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ack, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Ack));
- RpcHeader_descriptor_ = file->message_type(1);
- static const int RpcHeader_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcHeader, mode_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcHeader, coordination_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcHeader, rpc_type_),
- };
- RpcHeader_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RpcHeader_descriptor_,
- RpcHeader::default_instance_,
- RpcHeader_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcHeader, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcHeader, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RpcHeader));
- CompleteRpcMessage_descriptor_ = file->message_type(2);
- static const int CompleteRpcMessage_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompleteRpcMessage, header_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompleteRpcMessage, protobuf_body_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompleteRpcMessage, raw_body_),
- };
- CompleteRpcMessage_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- CompleteRpcMessage_descriptor_,
- CompleteRpcMessage::default_instance_,
- CompleteRpcMessage_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompleteRpcMessage, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompleteRpcMessage, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(CompleteRpcMessage));
- RpcMode_descriptor_ = file->enum_type(0);
+ {
+ void* ptr = &::exec::rpc::_Ack_default_instance_;
+ new (ptr) ::exec::rpc::Ack();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::rpc::Ack::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<0> scc_info_Ack =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAck}, {}};
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_GeneralRPC_2eproto);
-}
+static void InitDefaultsRpcHeader() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Ack_descriptor_, &Ack::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RpcHeader_descriptor_, &RpcHeader::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- CompleteRpcMessage_descriptor_, &CompleteRpcMessage::default_instance());
+ {
+ void* ptr = &::exec::rpc::_RpcHeader_default_instance_;
+ new (ptr) ::exec::rpc::RpcHeader();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::rpc::RpcHeader::InitAsDefaultInstance();
}
-} // namespace
-
-void protobuf_ShutdownFile_GeneralRPC_2eproto() {
- delete Ack::default_instance_;
- delete Ack_reflection_;
- delete RpcHeader::default_instance_;
- delete RpcHeader_reflection_;
- delete CompleteRpcMessage::default_instance_;
- delete CompleteRpcMessage_reflection_;
-}
+::google::protobuf::internal::SCCInfo<0> scc_info_RpcHeader =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRpcHeader}, {}};
-void protobuf_AddDesc_GeneralRPC_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+static void InitDefaultsCompleteRpcMessage() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::exec::protobuf_AddDesc_Coordination_2eproto();
+ {
+ void* ptr = &::exec::rpc::_CompleteRpcMessage_default_instance_;
+ new (ptr) ::exec::rpc::CompleteRpcMessage();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::rpc::CompleteRpcMessage::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_CompleteRpcMessage =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCompleteRpcMessage}, {
+ &protobuf_GeneralRPC_2eproto::scc_info_RpcHeader.base,}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_Ack.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RpcHeader.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_CompleteRpcMessage.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[3];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::Ack, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::Ack, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::Ack, ok_),
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::RpcHeader, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::RpcHeader, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::RpcHeader, mode_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::RpcHeader, coordination_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::RpcHeader, rpc_type_),
+ 0,
+ 1,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::CompleteRpcMessage, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::CompleteRpcMessage, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::CompleteRpcMessage, header_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::CompleteRpcMessage, protobuf_body_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::rpc::CompleteRpcMessage, raw_body_),
+ 2,
+ 0,
+ 1,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 6, sizeof(::exec::rpc::Ack)},
+ { 7, 15, sizeof(::exec::rpc::RpcHeader)},
+ { 18, 26, sizeof(::exec::rpc::CompleteRpcMessage)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::rpc::_Ack_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::rpc::_RpcHeader_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::rpc::_CompleteRpcMessage_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "GeneralRPC.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\020GeneralRPC.proto\022\010exec.rpc\032\022Coordinati"
+ "on.proto\"\021\n\003Ack\022\n\n\002ok\030\001 \001(\010\"W\n\tRpcHeader"
+ "\022\037\n\004mode\030\001 \001(\0162\021.exec.rpc.RpcMode\022\027\n\017coo"
+ "rdination_id\030\002 \001(\005\022\020\n\010rpc_type\030\003 \001(\005\"b\n\022"
+ "CompleteRpcMessage\022#\n\006header\030\001 \001(\0132\023.exe"
+ "c.rpc.RpcHeader\022\025\n\rprotobuf_body\030\002 \001(\014\022\020"
+ "\n\010raw_body\030\003 \001(\014*N\n\007RpcMode\022\013\n\007REQUEST\020\000"
+ "\022\014\n\010RESPONSE\020\001\022\024\n\020RESPONSE_FAILURE\020\002\022\010\n\004"
+ "PING\020\003\022\010\n\004PONG\020\004B1\n\033org.apache.drill.exe"
+ "c.protoB\020GeneralRPCProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\020GeneralRPC.proto\022\010exec.rpc\032\022Coordinati"
- "on.proto\"\021\n\003Ack\022\n\n\002ok\030\001 \001(\010\"W\n\tRpcHeader"
- "\022\037\n\004mode\030\001 \001(\0162\021.exec.rpc.RpcMode\022\027\n\017coo"
- "rdination_id\030\002 \001(\005\022\020\n\010rpc_type\030\003 \001(\005\"b\n\022"
- "CompleteRpcMessage\022#\n\006header\030\001 \001(\0132\023.exe"
- "c.rpc.RpcHeader\022\025\n\rprotobuf_body\030\002 \001(\014\022\020"
- "\n\010raw_body\030\003 \001(\014*N\n\007RpcMode\022\013\n\007REQUEST\020\000"
- "\022\014\n\010RESPONSE\020\001\022\024\n\020RESPONSE_FAILURE\020\002\022\010\n\004"
- "PING\020\003\022\010\n\004PONG\020\004B1\n\033org.apache.drill.exe"
- "c.protoB\020GeneralRPCProtosH\001", 387);
+ descriptor, 387);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"GeneralRPC.proto", &protobuf_RegisterTypes);
- Ack::default_instance_ = new Ack();
- RpcHeader::default_instance_ = new RpcHeader();
- CompleteRpcMessage::default_instance_ = new CompleteRpcMessage();
- Ack::default_instance_->InitAsDefaultInstance();
- RpcHeader::default_instance_->InitAsDefaultInstance();
- CompleteRpcMessage::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_GeneralRPC_2eproto);
+ ::protobuf_Coordination_2eproto::AddDescriptors();
}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_GeneralRPC_2eproto {
- StaticDescriptorInitializer_GeneralRPC_2eproto() {
- protobuf_AddDesc_GeneralRPC_2eproto();
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
}
-} static_descriptor_initializer_GeneralRPC_2eproto_;
+} static_descriptor_initializer;
+} // namespace protobuf_GeneralRPC_2eproto
+namespace exec {
+namespace rpc {
const ::google::protobuf::EnumDescriptor* RpcMode_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcMode_descriptor_;
+ protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_GeneralRPC_2eproto::file_level_enum_descriptors[0];
}
bool RpcMode_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -177,290 +209,316 @@ bool RpcMode_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void Ack::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Ack::kOkFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Ack::Ack()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_GeneralRPC_2eproto::scc_info_Ack.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.rpc.Ack)
}
-
-void Ack::InitAsDefaultInstance() {
-}
-
Ack::Ack(const Ack& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ok_ = from.ok_;
+ // @@protoc_insertion_point(copy_constructor:exec.rpc.Ack)
}
void Ack::SharedCtor() {
- _cached_size_ = 0;
ok_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Ack::~Ack() {
+ // @@protoc_insertion_point(destructor:exec.rpc.Ack)
SharedDtor();
}
void Ack::SharedDtor() {
- if (this != default_instance_) {
- }
}
void Ack::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Ack::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Ack_descriptor_;
+ ::protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Ack& Ack::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_GeneralRPC_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_GeneralRPC_2eproto::scc_info_Ack.base);
+ return *internal_default_instance();
}
-Ack* Ack::default_instance_ = NULL;
-
-Ack* Ack::New() const {
- return new Ack;
-}
void Ack::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- ok_ = false;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+// @@protoc_insertion_point(message_clear_start:exec.rpc.Ack)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ok_ = false;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Ack::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.rpc.Ack)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional bool ok = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_ok();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &ok_)));
- set_has_ok();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.rpc.Ack)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.rpc.Ack)
+ return false;
#undef DO_
}
void Ack::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.rpc.Ack)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool ok = 1;
- if (has_ok()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->ok(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.rpc.Ack)
}
-::google::protobuf::uint8* Ack::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Ack::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.rpc.Ack)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool ok = 1;
- if (has_ok()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->ok(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.rpc.Ack)
return target;
}
-int Ack::ByteSize() const {
- int total_size = 0;
+size_t Ack::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.rpc.Ack)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional bool ok = 1;
- if (has_ok()) {
- total_size += 1 + 1;
- }
-
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // optional bool ok = 1;
+ if (has_ok()) {
+ total_size += 1 + 1;
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Ack::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.rpc.Ack)
+ GOOGLE_DCHECK_NE(&from, this);
const Ack* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Ack*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Ack>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.rpc.Ack)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.rpc.Ack)
MergeFrom(*source);
}
}
void Ack::MergeFrom(const Ack& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_ok()) {
- set_ok(from.ok());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.rpc.Ack)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_ok()) {
+ set_ok(from.ok());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Ack::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.rpc.Ack)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Ack::CopyFrom(const Ack& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.rpc.Ack)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Ack::IsInitialized() const {
-
return true;
}
void Ack::Swap(Ack* other) {
- if (other != this) {
- std::swap(ok_, other->ok_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Ack::InternalSwap(Ack* other) {
+ using std::swap;
+ swap(ok_, other->ok_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Ack::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Ack_descriptor_;
- metadata.reflection = Ack_reflection_;
- return metadata;
+ protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RpcHeader::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RpcHeader::kModeFieldNumber;
const int RpcHeader::kCoordinationIdFieldNumber;
const int RpcHeader::kRpcTypeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RpcHeader::RpcHeader()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_GeneralRPC_2eproto::scc_info_RpcHeader.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.rpc.RpcHeader)
}
-
-void RpcHeader::InitAsDefaultInstance() {
-}
-
RpcHeader::RpcHeader(const RpcHeader& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&mode_, &from.mode_,
+ static_cast<size_t>(reinterpret_cast<char*>(&rpc_type_) -
+ reinterpret_cast<char*>(&mode_)) + sizeof(rpc_type_));
+ // @@protoc_insertion_point(copy_constructor:exec.rpc.RpcHeader)
}
void RpcHeader::SharedCtor() {
- _cached_size_ = 0;
- mode_ = 0;
- coordination_id_ = 0;
- rpc_type_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&mode_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&rpc_type_) -
+ reinterpret_cast<char*>(&mode_)) + sizeof(rpc_type_));
}
RpcHeader::~RpcHeader() {
+ // @@protoc_insertion_point(destructor:exec.rpc.RpcHeader)
SharedDtor();
}
void RpcHeader::SharedDtor() {
- if (this != default_instance_) {
- }
}
void RpcHeader::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RpcHeader::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcHeader_descriptor_;
+ ::protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RpcHeader& RpcHeader::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_GeneralRPC_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_GeneralRPC_2eproto::scc_info_RpcHeader.base);
+ return *internal_default_instance();
}
-RpcHeader* RpcHeader::default_instance_ = NULL;
-
-RpcHeader* RpcHeader::New() const {
- return new RpcHeader;
-}
void RpcHeader::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- mode_ = 0;
- coordination_id_ = 0;
- rpc_type_ = 0;
+// @@protoc_insertion_point(message_clear_start:exec.rpc.RpcHeader)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ ::memset(&mode_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&rpc_type_) -
+ reinterpret_cast<char*>(&mode_)) + sizeof(rpc_type_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RpcHeader::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.rpc.RpcHeader)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.rpc.RpcMode mode = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -468,116 +526,135 @@ bool RpcHeader::MergePartialFromCodedStream(
if (::exec::rpc::RpcMode_IsValid(value)) {
set_mode(static_cast< ::exec::rpc::RpcMode >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_coordination_id;
break;
}
// optional int32 coordination_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_coordination_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_coordination_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &coordination_id_)));
- set_has_coordination_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_rpc_type;
break;
}
// optional int32 rpc_type = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_rpc_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_rpc_type();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_type_)));
- set_has_rpc_type();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.rpc.RpcHeader)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.rpc.RpcHeader)
+ return false;
#undef DO_
}
void RpcHeader::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.rpc.RpcHeader)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.rpc.RpcMode mode = 1;
- if (has_mode()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->mode(), output);
}
// optional int32 coordination_id = 2;
- if (has_coordination_id()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->coordination_id(), output);
}
// optional int32 rpc_type = 3;
- if (has_rpc_type()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->rpc_type(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.rpc.RpcHeader)
}
-::google::protobuf::uint8* RpcHeader::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RpcHeader::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.rpc.RpcHeader)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.rpc.RpcMode mode = 1;
- if (has_mode()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->mode(), target);
}
// optional int32 coordination_id = 2;
- if (has_coordination_id()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->coordination_id(), target);
}
// optional int32 rpc_type = 3;
- if (has_rpc_type()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->rpc_type(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.rpc.RpcHeader)
return target;
}
-int RpcHeader::ByteSize() const {
- int total_size = 0;
+size_t RpcHeader::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.rpc.RpcHeader)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional .exec.rpc.RpcMode mode = 1;
if (has_mode()) {
total_size += 1 +
@@ -599,300 +676,324 @@ int RpcHeader::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RpcHeader::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.rpc.RpcHeader)
+ GOOGLE_DCHECK_NE(&from, this);
const RpcHeader* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RpcHeader*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RpcHeader>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.rpc.RpcHeader)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.rpc.RpcHeader)
MergeFrom(*source);
}
}
void RpcHeader::MergeFrom(const RpcHeader& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_mode()) {
- set_mode(from.mode());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.rpc.RpcHeader)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ mode_ = from.mode_;
}
- if (from.has_coordination_id()) {
- set_coordination_id(from.coordination_id());
+ if (cached_has_bits & 0x00000002u) {
+ coordination_id_ = from.coordination_id_;
}
- if (from.has_rpc_type()) {
- set_rpc_type(from.rpc_type());
+ if (cached_has_bits & 0x00000004u) {
+ rpc_type_ = from.rpc_type_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RpcHeader::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.rpc.RpcHeader)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RpcHeader::CopyFrom(const RpcHeader& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.rpc.RpcHeader)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RpcHeader::IsInitialized() const {
-
return true;
}
void RpcHeader::Swap(RpcHeader* other) {
- if (other != this) {
- std::swap(mode_, other->mode_);
- std::swap(coordination_id_, other->coordination_id_);
- std::swap(rpc_type_, other->rpc_type_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RpcHeader::InternalSwap(RpcHeader* other) {
+ using std::swap;
+ swap(mode_, other->mode_);
+ swap(coordination_id_, other->coordination_id_);
+ swap(rpc_type_, other->rpc_type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RpcHeader::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RpcHeader_descriptor_;
- metadata.reflection = RpcHeader_reflection_;
- return metadata;
+ protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void CompleteRpcMessage::InitAsDefaultInstance() {
+ ::exec::rpc::_CompleteRpcMessage_default_instance_._instance.get_mutable()->header_ = const_cast< ::exec::rpc::RpcHeader*>(
+ ::exec::rpc::RpcHeader::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CompleteRpcMessage::kHeaderFieldNumber;
const int CompleteRpcMessage::kProtobufBodyFieldNumber;
const int CompleteRpcMessage::kRawBodyFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CompleteRpcMessage::CompleteRpcMessage()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_GeneralRPC_2eproto::scc_info_CompleteRpcMessage.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.rpc.CompleteRpcMessage)
}
-
-void CompleteRpcMessage::InitAsDefaultInstance() {
- header_ = const_cast< ::exec::rpc::RpcHeader*>(&::exec::rpc::RpcHeader::default_instance());
-}
-
CompleteRpcMessage::CompleteRpcMessage(const CompleteRpcMessage& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ protobuf_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_protobuf_body()) {
+ protobuf_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.protobuf_body_);
+ }
+ raw_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_raw_body()) {
+ raw_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_body_);
+ }
+ if (from.has_header()) {
+ header_ = new ::exec::rpc::RpcHeader(*from.header_);
+ } else {
+ header_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.rpc.CompleteRpcMessage)
}
void CompleteRpcMessage::SharedCtor() {
- _cached_size_ = 0;
+ protobuf_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ raw_body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
header_ = NULL;
- protobuf_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- raw_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CompleteRpcMessage::~CompleteRpcMessage() {
+ // @@protoc_insertion_point(destructor:exec.rpc.CompleteRpcMessage)
SharedDtor();
}
void CompleteRpcMessage::SharedDtor() {
- if (protobuf_body_ != &::google::protobuf::internal::kEmptyString) {
- delete protobuf_body_;
- }
- if (raw_body_ != &::google::protobuf::internal::kEmptyString) {
- delete raw_body_;
- }
- if (this != default_instance_) {
- delete header_;
- }
+ protobuf_body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ raw_body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete header_;
}
void CompleteRpcMessage::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* CompleteRpcMessage::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CompleteRpcMessage_descriptor_;
+ ::protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const CompleteRpcMessage& CompleteRpcMessage::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_GeneralRPC_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_GeneralRPC_2eproto::scc_info_CompleteRpcMessage.base);
+ return *internal_default_instance();
}
-CompleteRpcMessage* CompleteRpcMessage::default_instance_ = NULL;
-
-CompleteRpcMessage* CompleteRpcMessage::New() const {
- return new CompleteRpcMessage;
-}
void CompleteRpcMessage::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_header()) {
- if (header_ != NULL) header_->::exec::rpc::RpcHeader::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.rpc.CompleteRpcMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ protobuf_body_.ClearNonDefaultToEmptyNoArena();
}
- if (has_protobuf_body()) {
- if (protobuf_body_ != &::google::protobuf::internal::kEmptyString) {
- protobuf_body_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ raw_body_.ClearNonDefaultToEmptyNoArena();
}
- if (has_raw_body()) {
- if (raw_body_ != &::google::protobuf::internal::kEmptyString) {
- raw_body_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(header_ != NULL);
+ header_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool CompleteRpcMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.rpc.CompleteRpcMessage)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.rpc.RpcHeader header = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_header()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_protobuf_body;
break;
}
// optional bytes protobuf_body = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_protobuf_body:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_protobuf_body()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_raw_body;
break;
}
// optional bytes raw_body = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_raw_body:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_raw_body()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.rpc.CompleteRpcMessage)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.rpc.CompleteRpcMessage)
+ return false;
#undef DO_
}
void CompleteRpcMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.rpc.CompleteRpcMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.rpc.RpcHeader header = 1;
- if (has_header()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->header(), output);
+ 1, this->_internal_header(), output);
}
// optional bytes protobuf_body = 2;
- if (has_protobuf_body()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2, this->protobuf_body(), output);
}
// optional bytes raw_body = 3;
- if (has_raw_body()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3, this->raw_body(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.rpc.CompleteRpcMessage)
}
-::google::protobuf::uint8* CompleteRpcMessage::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* CompleteRpcMessage::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.rpc.CompleteRpcMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.rpc.RpcHeader header = 1;
- if (has_header()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->header(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_header(), deterministic, target);
}
// optional bytes protobuf_body = 2;
- if (has_protobuf_body()) {
+ if (cached_has_bits & 0x00000001u) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2, this->protobuf_body(), target);
}
// optional bytes raw_body = 3;
- if (has_raw_body()) {
+ if (cached_has_bits & 0x00000002u) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3, this->raw_body(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.rpc.CompleteRpcMessage)
return target;
}
-int CompleteRpcMessage::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.rpc.RpcHeader header = 1;
- if (has_header()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->header());
- }
+size_t CompleteRpcMessage::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.rpc.CompleteRpcMessage)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional bytes protobuf_body = 2;
if (has_protobuf_body()) {
total_size += 1 +
@@ -907,86 +1008,111 @@ int CompleteRpcMessage::ByteSize() const {
this->raw_body());
}
+ // optional .exec.rpc.RpcHeader header = 1;
+ if (has_header()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *header_);
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void CompleteRpcMessage::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.rpc.CompleteRpcMessage)
+ GOOGLE_DCHECK_NE(&from, this);
const CompleteRpcMessage* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const CompleteRpcMessage*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const CompleteRpcMessage>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.rpc.CompleteRpcMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.rpc.CompleteRpcMessage)
MergeFrom(*source);
}
}
void CompleteRpcMessage::MergeFrom(const CompleteRpcMessage& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_header()) {
- mutable_header()->::exec::rpc::RpcHeader::MergeFrom(from.header());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.rpc.CompleteRpcMessage)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_protobuf_body();
+ protobuf_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.protobuf_body_);
}
- if (from.has_protobuf_body()) {
- set_protobuf_body(from.protobuf_body());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_raw_body();
+ raw_body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_body_);
}
- if (from.has_raw_body()) {
- set_raw_body(from.raw_body());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_header()->::exec::rpc::RpcHeader::MergeFrom(from.header());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CompleteRpcMessage::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.rpc.CompleteRpcMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CompleteRpcMessage::CopyFrom(const CompleteRpcMessage& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.rpc.CompleteRpcMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CompleteRpcMessage::IsInitialized() const {
-
return true;
}
void CompleteRpcMessage::Swap(CompleteRpcMessage* other) {
- if (other != this) {
- std::swap(header_, other->header_);
- std::swap(protobuf_body_, other->protobuf_body_);
- std::swap(raw_body_, other->raw_body_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CompleteRpcMessage::InternalSwap(CompleteRpcMessage* other) {
+ using std::swap;
+ protobuf_body_.Swap(&other->protobuf_body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ raw_body_.Swap(&other->raw_body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(header_, other->header_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata CompleteRpcMessage::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = CompleteRpcMessage_descriptor_;
- metadata.reflection = CompleteRpcMessage_reflection_;
- return metadata;
+ protobuf_GeneralRPC_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_GeneralRPC_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace rpc
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::rpc::Ack* Arena::CreateMaybeMessage< ::exec::rpc::Ack >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::rpc::Ack >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::rpc::RpcHeader* Arena::CreateMaybeMessage< ::exec::rpc::RpcHeader >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::rpc::RpcHeader >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::rpc::CompleteRpcMessage* Arena::CreateMaybeMessage< ::exec::rpc::CompleteRpcMessage >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::rpc::CompleteRpcMessage >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/GeneralRPC.pb.h b/contrib/native/client/src/protobuf/GeneralRPC.pb.h
index 8ebef9a61..ce8367f80 100644
--- a/contrib/native/client/src/protobuf/GeneralRPC.pb.h
+++ b/contrib/native/client/src/protobuf/GeneralRPC.pb.h
@@ -1,44 +1,74 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GeneralRPC.proto
-#ifndef PROTOBUF_GeneralRPC_2eproto__INCLUDED
-#define PROTOBUF_GeneralRPC_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_GeneralRPC_2eproto
+#define PROTOBUF_INCLUDED_GeneralRPC_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "Coordination.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_GeneralRPC_2eproto
+
+namespace protobuf_GeneralRPC_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[3];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_GeneralRPC_2eproto
namespace exec {
namespace rpc {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_GeneralRPC_2eproto();
-void protobuf_AssignDesc_GeneralRPC_2eproto();
-void protobuf_ShutdownFile_GeneralRPC_2eproto();
-
class Ack;
-class RpcHeader;
+class AckDefaultTypeInternal;
+extern AckDefaultTypeInternal _Ack_default_instance_;
class CompleteRpcMessage;
+class CompleteRpcMessageDefaultTypeInternal;
+extern CompleteRpcMessageDefaultTypeInternal _CompleteRpcMessage_default_instance_;
+class RpcHeader;
+class RpcHeaderDefaultTypeInternal;
+extern RpcHeaderDefaultTypeInternal _RpcHeader_default_instance_;
+} // namespace rpc
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::rpc::Ack* Arena::CreateMaybeMessage<::exec::rpc::Ack>(Arena*);
+template<> ::exec::rpc::CompleteRpcMessage* Arena::CreateMaybeMessage<::exec::rpc::CompleteRpcMessage>(Arena*);
+template<> ::exec::rpc::RpcHeader* Arena::CreateMaybeMessage<::exec::rpc::RpcHeader>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace rpc {
enum RpcMode {
REQUEST = 0,
@@ -64,7 +94,7 @@ inline bool RpcMode_Parse(
}
// ===================================================================
-class Ack : public ::google::protobuf::Message {
+class Ack : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.rpc.Ack) */ {
public:
Ack();
virtual ~Ack();
@@ -75,78 +105,110 @@ class Ack : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Ack(Ack&& from) noexcept
+ : Ack() {
+ *this = ::std::move(from);
+ }
+ inline Ack& operator=(Ack&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Ack& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Ack* internal_default_instance() {
+ return reinterpret_cast<const Ack*>(
+ &_Ack_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(Ack* other);
+ friend void swap(Ack& a, Ack& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Ack* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Ack* New() const final {
+ return CreateMaybeMessage<Ack>(NULL);
+ }
+
+ Ack* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Ack>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Ack& from);
void MergeFrom(const Ack& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Ack* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bool ok = 1;
- inline bool has_ok() const;
- inline void clear_ok();
+ bool has_ok() const;
+ void clear_ok();
static const int kOkFieldNumber = 1;
- inline bool ok() const;
- inline void set_ok(bool value);
+ bool ok() const;
+ void set_ok(bool value);
// @@protoc_insertion_point(class_scope:exec.rpc.Ack)
private:
- inline void set_has_ok();
- inline void clear_has_ok();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_ok();
+ void clear_has_ok();
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
bool ok_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_GeneralRPC_2eproto();
- friend void protobuf_AssignDesc_GeneralRPC_2eproto();
- friend void protobuf_ShutdownFile_GeneralRPC_2eproto();
-
- void InitAsDefaultInstance();
- static Ack* default_instance_;
+ friend struct ::protobuf_GeneralRPC_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RpcHeader : public ::google::protobuf::Message {
+class RpcHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.rpc.RpcHeader) */ {
public:
RpcHeader();
virtual ~RpcHeader();
@@ -157,98 +219,130 @@ class RpcHeader : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RpcHeader(RpcHeader&& from) noexcept
+ : RpcHeader() {
+ *this = ::std::move(from);
+ }
+ inline RpcHeader& operator=(RpcHeader&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RpcHeader& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RpcHeader* internal_default_instance() {
+ return reinterpret_cast<const RpcHeader*>(
+ &_RpcHeader_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(RpcHeader* other);
+ friend void swap(RpcHeader& a, RpcHeader& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RpcHeader* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RpcHeader* New() const final {
+ return CreateMaybeMessage<RpcHeader>(NULL);
+ }
+
+ RpcHeader* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RpcHeader>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RpcHeader& from);
void MergeFrom(const RpcHeader& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RpcHeader* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.rpc.RpcMode mode = 1;
- inline bool has_mode() const;
- inline void clear_mode();
+ bool has_mode() const;
+ void clear_mode();
static const int kModeFieldNumber = 1;
- inline ::exec::rpc::RpcMode mode() const;
- inline void set_mode(::exec::rpc::RpcMode value);
+ ::exec::rpc::RpcMode mode() const;
+ void set_mode(::exec::rpc::RpcMode value);
// optional int32 coordination_id = 2;
- inline bool has_coordination_id() const;
- inline void clear_coordination_id();
+ bool has_coordination_id() const;
+ void clear_coordination_id();
static const int kCoordinationIdFieldNumber = 2;
- inline ::google::protobuf::int32 coordination_id() const;
- inline void set_coordination_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 coordination_id() const;
+ void set_coordination_id(::google::protobuf::int32 value);
// optional int32 rpc_type = 3;
- inline bool has_rpc_type() const;
- inline void clear_rpc_type();
+ bool has_rpc_type() const;
+ void clear_rpc_type();
static const int kRpcTypeFieldNumber = 3;
- inline ::google::protobuf::int32 rpc_type() const;
- inline void set_rpc_type(::google::protobuf::int32 value);
+ ::google::protobuf::int32 rpc_type() const;
+ void set_rpc_type(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.rpc.RpcHeader)
private:
- inline void set_has_mode();
- inline void clear_has_mode();
- inline void set_has_coordination_id();
- inline void clear_has_coordination_id();
- inline void set_has_rpc_type();
- inline void clear_has_rpc_type();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_mode();
+ void clear_has_mode();
+ void set_has_coordination_id();
+ void clear_has_coordination_id();
+ void set_has_rpc_type();
+ void clear_has_rpc_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
int mode_;
::google::protobuf::int32 coordination_id_;
::google::protobuf::int32 rpc_type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_GeneralRPC_2eproto();
- friend void protobuf_AssignDesc_GeneralRPC_2eproto();
- friend void protobuf_ShutdownFile_GeneralRPC_2eproto();
-
- void InitAsDefaultInstance();
- static RpcHeader* default_instance_;
+ friend struct ::protobuf_GeneralRPC_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class CompleteRpcMessage : public ::google::protobuf::Message {
+class CompleteRpcMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.rpc.CompleteRpcMessage) */ {
public:
CompleteRpcMessage();
virtual ~CompleteRpcMessage();
@@ -259,112 +353,157 @@ class CompleteRpcMessage : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ CompleteRpcMessage(CompleteRpcMessage&& from) noexcept
+ : CompleteRpcMessage() {
+ *this = ::std::move(from);
+ }
+ inline CompleteRpcMessage& operator=(CompleteRpcMessage&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const CompleteRpcMessage& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CompleteRpcMessage* internal_default_instance() {
+ return reinterpret_cast<const CompleteRpcMessage*>(
+ &_CompleteRpcMessage_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(CompleteRpcMessage* other);
+ friend void swap(CompleteRpcMessage& a, CompleteRpcMessage& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- CompleteRpcMessage* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline CompleteRpcMessage* New() const final {
+ return CreateMaybeMessage<CompleteRpcMessage>(NULL);
+ }
+
+ CompleteRpcMessage* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<CompleteRpcMessage>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const CompleteRpcMessage& from);
void MergeFrom(const CompleteRpcMessage& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(CompleteRpcMessage* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.rpc.RpcHeader header = 1;
- inline bool has_header() const;
- inline void clear_header();
- static const int kHeaderFieldNumber = 1;
- inline const ::exec::rpc::RpcHeader& header() const;
- inline ::exec::rpc::RpcHeader* mutable_header();
- inline ::exec::rpc::RpcHeader* release_header();
- inline void set_allocated_header(::exec::rpc::RpcHeader* header);
-
// optional bytes protobuf_body = 2;
- inline bool has_protobuf_body() const;
- inline void clear_protobuf_body();
+ bool has_protobuf_body() const;
+ void clear_protobuf_body();
static const int kProtobufBodyFieldNumber = 2;
- inline const ::std::string& protobuf_body() const;
- inline void set_protobuf_body(const ::std::string& value);
- inline void set_protobuf_body(const char* value);
- inline void set_protobuf_body(const void* value, size_t size);
- inline ::std::string* mutable_protobuf_body();
- inline ::std::string* release_protobuf_body();
- inline void set_allocated_protobuf_body(::std::string* protobuf_body);
+ const ::std::string& protobuf_body() const;
+ void set_protobuf_body(const ::std::string& value);
+ #if LANG_CXX11
+ void set_protobuf_body(::std::string&& value);
+ #endif
+ void set_protobuf_body(const char* value);
+ void set_protobuf_body(const void* value, size_t size);
+ ::std::string* mutable_protobuf_body();
+ ::std::string* release_protobuf_body();
+ void set_allocated_protobuf_body(::std::string* protobuf_body);
// optional bytes raw_body = 3;
- inline bool has_raw_body() const;
- inline void clear_raw_body();
+ bool has_raw_body() const;
+ void clear_raw_body();
static const int kRawBodyFieldNumber = 3;
- inline const ::std::string& raw_body() const;
- inline void set_raw_body(const ::std::string& value);
- inline void set_raw_body(const char* value);
- inline void set_raw_body(const void* value, size_t size);
- inline ::std::string* mutable_raw_body();
- inline ::std::string* release_raw_body();
- inline void set_allocated_raw_body(::std::string* raw_body);
+ const ::std::string& raw_body() const;
+ void set_raw_body(const ::std::string& value);
+ #if LANG_CXX11
+ void set_raw_body(::std::string&& value);
+ #endif
+ void set_raw_body(const char* value);
+ void set_raw_body(const void* value, size_t size);
+ ::std::string* mutable_raw_body();
+ ::std::string* release_raw_body();
+ void set_allocated_raw_body(::std::string* raw_body);
+
+ // optional .exec.rpc.RpcHeader header = 1;
+ bool has_header() const;
+ void clear_header();
+ static const int kHeaderFieldNumber = 1;
+ private:
+ const ::exec::rpc::RpcHeader& _internal_header() const;
+ public:
+ const ::exec::rpc::RpcHeader& header() const;
+ ::exec::rpc::RpcHeader* release_header();
+ ::exec::rpc::RpcHeader* mutable_header();
+ void set_allocated_header(::exec::rpc::RpcHeader* header);
// @@protoc_insertion_point(class_scope:exec.rpc.CompleteRpcMessage)
private:
- inline void set_has_header();
- inline void clear_has_header();
- inline void set_has_protobuf_body();
- inline void clear_has_protobuf_body();
- inline void set_has_raw_body();
- inline void clear_has_raw_body();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_header();
+ void clear_has_header();
+ void set_has_protobuf_body();
+ void clear_has_protobuf_body();
+ void set_has_raw_body();
+ void clear_has_raw_body();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr protobuf_body_;
+ ::google::protobuf::internal::ArenaStringPtr raw_body_;
::exec::rpc::RpcHeader* header_;
- ::std::string* protobuf_body_;
- ::std::string* raw_body_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_GeneralRPC_2eproto();
- friend void protobuf_AssignDesc_GeneralRPC_2eproto();
- friend void protobuf_ShutdownFile_GeneralRPC_2eproto();
-
- void InitAsDefaultInstance();
- static CompleteRpcMessage* default_instance_;
+ friend struct ::protobuf_GeneralRPC_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// Ack
// optional bool ok = 1;
@@ -382,11 +521,13 @@ inline void Ack::clear_ok() {
clear_has_ok();
}
inline bool Ack::ok() const {
+ // @@protoc_insertion_point(field_get:exec.rpc.Ack.ok)
return ok_;
}
inline void Ack::set_ok(bool value) {
set_has_ok();
ok_ = value;
+ // @@protoc_insertion_point(field_set:exec.rpc.Ack.ok)
}
// -------------------------------------------------------------------
@@ -408,12 +549,14 @@ inline void RpcHeader::clear_mode() {
clear_has_mode();
}
inline ::exec::rpc::RpcMode RpcHeader::mode() const {
+ // @@protoc_insertion_point(field_get:exec.rpc.RpcHeader.mode)
return static_cast< ::exec::rpc::RpcMode >(mode_);
}
inline void RpcHeader::set_mode(::exec::rpc::RpcMode value) {
assert(::exec::rpc::RpcMode_IsValid(value));
set_has_mode();
mode_ = value;
+ // @@protoc_insertion_point(field_set:exec.rpc.RpcHeader.mode)
}
// optional int32 coordination_id = 2;
@@ -431,11 +574,13 @@ inline void RpcHeader::clear_coordination_id() {
clear_has_coordination_id();
}
inline ::google::protobuf::int32 RpcHeader::coordination_id() const {
+ // @@protoc_insertion_point(field_get:exec.rpc.RpcHeader.coordination_id)
return coordination_id_;
}
inline void RpcHeader::set_coordination_id(::google::protobuf::int32 value) {
set_has_coordination_id();
coordination_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.rpc.RpcHeader.coordination_id)
}
// optional int32 rpc_type = 3;
@@ -453,11 +598,13 @@ inline void RpcHeader::clear_rpc_type() {
clear_has_rpc_type();
}
inline ::google::protobuf::int32 RpcHeader::rpc_type() const {
+ // @@protoc_insertion_point(field_get:exec.rpc.RpcHeader.rpc_type)
return rpc_type_;
}
inline void RpcHeader::set_rpc_type(::google::protobuf::int32 value) {
set_has_rpc_type();
rpc_type_ = value;
+ // @@protoc_insertion_point(field_set:exec.rpc.RpcHeader.rpc_type)
}
// -------------------------------------------------------------------
@@ -466,201 +613,219 @@ inline void RpcHeader::set_rpc_type(::google::protobuf::int32 value) {
// optional .exec.rpc.RpcHeader header = 1;
inline bool CompleteRpcMessage::has_header() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void CompleteRpcMessage::set_has_header() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void CompleteRpcMessage::clear_has_header() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void CompleteRpcMessage::clear_header() {
- if (header_ != NULL) header_->::exec::rpc::RpcHeader::Clear();
+ if (header_ != NULL) header_->Clear();
clear_has_header();
}
-inline const ::exec::rpc::RpcHeader& CompleteRpcMessage::header() const {
- return header_ != NULL ? *header_ : *default_instance_->header_;
+inline const ::exec::rpc::RpcHeader& CompleteRpcMessage::_internal_header() const {
+ return *header_;
}
-inline ::exec::rpc::RpcHeader* CompleteRpcMessage::mutable_header() {
- set_has_header();
- if (header_ == NULL) header_ = new ::exec::rpc::RpcHeader;
- return header_;
+inline const ::exec::rpc::RpcHeader& CompleteRpcMessage::header() const {
+ const ::exec::rpc::RpcHeader* p = header_;
+ // @@protoc_insertion_point(field_get:exec.rpc.CompleteRpcMessage.header)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::rpc::RpcHeader*>(
+ &::exec::rpc::_RpcHeader_default_instance_);
}
inline ::exec::rpc::RpcHeader* CompleteRpcMessage::release_header() {
+ // @@protoc_insertion_point(field_release:exec.rpc.CompleteRpcMessage.header)
clear_has_header();
::exec::rpc::RpcHeader* temp = header_;
header_ = NULL;
return temp;
}
+inline ::exec::rpc::RpcHeader* CompleteRpcMessage::mutable_header() {
+ set_has_header();
+ if (header_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::rpc::RpcHeader>(GetArenaNoVirtual());
+ header_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.rpc.CompleteRpcMessage.header)
+ return header_;
+}
inline void CompleteRpcMessage::set_allocated_header(::exec::rpc::RpcHeader* header) {
- delete header_;
- header_ = header;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete header_;
+ }
if (header) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ header = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, header, submessage_arena);
+ }
set_has_header();
} else {
clear_has_header();
}
+ header_ = header;
+ // @@protoc_insertion_point(field_set_allocated:exec.rpc.CompleteRpcMessage.header)
}
// optional bytes protobuf_body = 2;
inline bool CompleteRpcMessage::has_protobuf_body() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void CompleteRpcMessage::set_has_protobuf_body() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void CompleteRpcMessage::clear_has_protobuf_body() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void CompleteRpcMessage::clear_protobuf_body() {
- if (protobuf_body_ != &::google::protobuf::internal::kEmptyString) {
- protobuf_body_->clear();
- }
+ protobuf_body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_protobuf_body();
}
inline const ::std::string& CompleteRpcMessage::protobuf_body() const {
- return *protobuf_body_;
+ // @@protoc_insertion_point(field_get:exec.rpc.CompleteRpcMessage.protobuf_body)
+ return protobuf_body_.GetNoArena();
}
inline void CompleteRpcMessage::set_protobuf_body(const ::std::string& value) {
set_has_protobuf_body();
- if (protobuf_body_ == &::google::protobuf::internal::kEmptyString) {
- protobuf_body_ = new ::std::string;
- }
- protobuf_body_->assign(value);
+ protobuf_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.rpc.CompleteRpcMessage.protobuf_body)
}
+#if LANG_CXX11
+inline void CompleteRpcMessage::set_protobuf_body(::std::string&& value) {
+ set_has_protobuf_body();
+ protobuf_body_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.rpc.CompleteRpcMessage.protobuf_body)
+}
+#endif
inline void CompleteRpcMessage::set_protobuf_body(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_protobuf_body();
- if (protobuf_body_ == &::google::protobuf::internal::kEmptyString) {
- protobuf_body_ = new ::std::string;
- }
- protobuf_body_->assign(value);
+ protobuf_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.rpc.CompleteRpcMessage.protobuf_body)
}
inline void CompleteRpcMessage::set_protobuf_body(const void* value, size_t size) {
set_has_protobuf_body();
- if (protobuf_body_ == &::google::protobuf::internal::kEmptyString) {
- protobuf_body_ = new ::std::string;
- }
- protobuf_body_->assign(reinterpret_cast<const char*>(value), size);
+ protobuf_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.rpc.CompleteRpcMessage.protobuf_body)
}
inline ::std::string* CompleteRpcMessage::mutable_protobuf_body() {
set_has_protobuf_body();
- if (protobuf_body_ == &::google::protobuf::internal::kEmptyString) {
- protobuf_body_ = new ::std::string;
- }
- return protobuf_body_;
+ // @@protoc_insertion_point(field_mutable:exec.rpc.CompleteRpcMessage.protobuf_body)
+ return protobuf_body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CompleteRpcMessage::release_protobuf_body() {
- clear_has_protobuf_body();
- if (protobuf_body_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.rpc.CompleteRpcMessage.protobuf_body)
+ if (!has_protobuf_body()) {
return NULL;
- } else {
- ::std::string* temp = protobuf_body_;
- protobuf_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_protobuf_body();
+ return protobuf_body_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CompleteRpcMessage::set_allocated_protobuf_body(::std::string* protobuf_body) {
- if (protobuf_body_ != &::google::protobuf::internal::kEmptyString) {
- delete protobuf_body_;
- }
- if (protobuf_body) {
+ if (protobuf_body != NULL) {
set_has_protobuf_body();
- protobuf_body_ = protobuf_body;
} else {
clear_has_protobuf_body();
- protobuf_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ protobuf_body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), protobuf_body);
+ // @@protoc_insertion_point(field_set_allocated:exec.rpc.CompleteRpcMessage.protobuf_body)
}
// optional bytes raw_body = 3;
inline bool CompleteRpcMessage::has_raw_body() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void CompleteRpcMessage::set_has_raw_body() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void CompleteRpcMessage::clear_has_raw_body() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void CompleteRpcMessage::clear_raw_body() {
- if (raw_body_ != &::google::protobuf::internal::kEmptyString) {
- raw_body_->clear();
- }
+ raw_body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_raw_body();
}
inline const ::std::string& CompleteRpcMessage::raw_body() const {
- return *raw_body_;
+ // @@protoc_insertion_point(field_get:exec.rpc.CompleteRpcMessage.raw_body)
+ return raw_body_.GetNoArena();
}
inline void CompleteRpcMessage::set_raw_body(const ::std::string& value) {
set_has_raw_body();
- if (raw_body_ == &::google::protobuf::internal::kEmptyString) {
- raw_body_ = new ::std::string;
- }
- raw_body_->assign(value);
+ raw_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.rpc.CompleteRpcMessage.raw_body)
}
+#if LANG_CXX11
+inline void CompleteRpcMessage::set_raw_body(::std::string&& value) {
+ set_has_raw_body();
+ raw_body_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.rpc.CompleteRpcMessage.raw_body)
+}
+#endif
inline void CompleteRpcMessage::set_raw_body(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_raw_body();
- if (raw_body_ == &::google::protobuf::internal::kEmptyString) {
- raw_body_ = new ::std::string;
- }
- raw_body_->assign(value);
+ raw_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.rpc.CompleteRpcMessage.raw_body)
}
inline void CompleteRpcMessage::set_raw_body(const void* value, size_t size) {
set_has_raw_body();
- if (raw_body_ == &::google::protobuf::internal::kEmptyString) {
- raw_body_ = new ::std::string;
- }
- raw_body_->assign(reinterpret_cast<const char*>(value), size);
+ raw_body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.rpc.CompleteRpcMessage.raw_body)
}
inline ::std::string* CompleteRpcMessage::mutable_raw_body() {
set_has_raw_body();
- if (raw_body_ == &::google::protobuf::internal::kEmptyString) {
- raw_body_ = new ::std::string;
- }
- return raw_body_;
+ // @@protoc_insertion_point(field_mutable:exec.rpc.CompleteRpcMessage.raw_body)
+ return raw_body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CompleteRpcMessage::release_raw_body() {
- clear_has_raw_body();
- if (raw_body_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.rpc.CompleteRpcMessage.raw_body)
+ if (!has_raw_body()) {
return NULL;
- } else {
- ::std::string* temp = raw_body_;
- raw_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_raw_body();
+ return raw_body_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CompleteRpcMessage::set_allocated_raw_body(::std::string* raw_body) {
- if (raw_body_ != &::google::protobuf::internal::kEmptyString) {
- delete raw_body_;
- }
- if (raw_body) {
+ if (raw_body != NULL) {
set_has_raw_body();
- raw_body_ = raw_body;
} else {
clear_has_raw_body();
- raw_body_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ raw_body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_body);
+ // @@protoc_insertion_point(field_set_allocated:exec.rpc.CompleteRpcMessage.raw_body)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
} // namespace rpc
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::rpc::RpcMode> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::rpc::RpcMode>() {
return ::exec::rpc::RpcMode_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_GeneralRPC_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_GeneralRPC_2eproto
diff --git a/contrib/native/client/src/protobuf/SchemaDef.pb.cc b/contrib/native/client/src/protobuf/SchemaDef.pb.cc
index 40011f8b5..bb07f15ba 100644
--- a/contrib/native/client/src/protobuf/SchemaDef.pb.cc
+++ b/contrib/native/client/src/protobuf/SchemaDef.pb.cc
@@ -1,85 +1,85 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SchemaDef.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "SchemaDef.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
namespace exec {
+} // namespace exec
+namespace protobuf_SchemaDef_2eproto {
+void InitDefaults() {
+}
-namespace {
-
-const ::google::protobuf::EnumDescriptor* ValueMode_descriptor_ = NULL;
-
-} // namespace
-
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
+static const ::google::protobuf::internal::MigrationSchema* schemas = NULL;
+static const ::google::protobuf::Message* const* file_default_instances = NULL;
-void protobuf_AssignDesc_SchemaDef_2eproto() {
- protobuf_AddDesc_SchemaDef_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "SchemaDef.proto");
- GOOGLE_CHECK(file != NULL);
- ValueMode_descriptor_ = file->enum_type(0);
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "SchemaDef.proto", schemas, file_default_instances, TableStruct::offsets,
+ NULL, file_level_enum_descriptors, NULL);
}
-namespace {
-
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_SchemaDef_2eproto);
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
}
-} // namespace
-
-void protobuf_ShutdownFile_SchemaDef_2eproto() {
-}
-
-void protobuf_AddDesc_SchemaDef_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
-
- ::common::protobuf_AddDesc_Types_2eproto();
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\017SchemaDef.proto\022\004exec\032\013Types.proto*0\n\t"
+ "ValueMode\022\020\n\014VALUE_VECTOR\020\000\022\007\n\003RLE\020\001\022\010\n\004"
+ "DICT\020\002B0\n\033org.apache.drill.exec.protoB\017S"
+ "chemaDefProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\017SchemaDef.proto\022\004exec\032\013Types.proto*0\n\t"
- "ValueMode\022\020\n\014VALUE_VECTOR\020\000\022\007\n\003RLE\020\001\022\010\n\004"
- "DICT\020\002B0\n\033org.apache.drill.exec.protoB\017S"
- "chemaDefProtosH\001", 136);
+ descriptor, 136);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"SchemaDef.proto", &protobuf_RegisterTypes);
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_SchemaDef_2eproto);
+ ::protobuf_Types_2eproto::AddDescriptors();
}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_SchemaDef_2eproto {
- StaticDescriptorInitializer_SchemaDef_2eproto() {
- protobuf_AddDesc_SchemaDef_2eproto();
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
}
-} static_descriptor_initializer_SchemaDef_2eproto_;
+} static_descriptor_initializer;
+} // namespace protobuf_SchemaDef_2eproto
+namespace exec {
const ::google::protobuf::EnumDescriptor* ValueMode_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ValueMode_descriptor_;
+ protobuf_SchemaDef_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_SchemaDef_2eproto::file_level_enum_descriptors[0];
}
bool ValueMode_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -91,7 +91,10 @@ bool ValueMode_IsValid(int value) {
// @@protoc_insertion_point(namespace_scope)
-
} // namespace exec
+namespace google {
+namespace protobuf {
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/SchemaDef.pb.h b/contrib/native/client/src/protobuf/SchemaDef.pb.h
index ee018458a..f0dc2065f 100644
--- a/contrib/native/client/src/protobuf/SchemaDef.pb.h
+++ b/contrib/native/client/src/protobuf/SchemaDef.pb.h
@@ -1,38 +1,53 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SchemaDef.proto
-#ifndef PROTOBUF_SchemaDef_2eproto__INCLUDED
-#define PROTOBUF_SchemaDef_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_SchemaDef_2eproto
+#define PROTOBUF_INCLUDED_SchemaDef_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include "Types.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_SchemaDef_2eproto
+
+namespace protobuf_SchemaDef_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[1];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_SchemaDef_2eproto
+namespace exec {
+} // namespace exec
namespace exec {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_SchemaDef_2eproto();
-void protobuf_AssignDesc_SchemaDef_2eproto();
-void protobuf_ShutdownFile_SchemaDef_2eproto();
-
enum ValueMode {
VALUE_VECTOR = 0,
@@ -62,24 +77,30 @@ inline bool ValueMode_Parse(
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::ValueMode> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::ValueMode>() {
return ::exec::ValueMode_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_SchemaDef_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_SchemaDef_2eproto
diff --git a/contrib/native/client/src/protobuf/Types.pb.cc b/contrib/native/client/src/protobuf/Types.pb.cc
index 675bba02d..267646b71 100644
--- a/contrib/native/client/src/protobuf/Types.pb.cc
+++ b/contrib/native/client/src/protobuf/Types.pb.cc
@@ -1,134 +1,150 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Types.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "Types.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
namespace common {
+class MajorTypeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MajorType>
+ _instance;
+} _MajorType_default_instance_;
+} // namespace common
+namespace protobuf_Types_2eproto {
+static void InitDefaultsMajorType() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* MajorType_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- MajorType_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* MinorType_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* DataMode_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_Types_2eproto() {
- protobuf_AddDesc_Types_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "Types.proto");
- GOOGLE_CHECK(file != NULL);
- MajorType_descriptor_ = file->message_type(0);
- static const int MajorType_offsets_[7] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, minor_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, mode_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, precision_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, scale_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, timezone_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, sub_type_),
- };
- MajorType_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MajorType_descriptor_,
- MajorType::default_instance_,
- MajorType_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorType, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MajorType));
- MinorType_descriptor_ = file->enum_type(0);
- DataMode_descriptor_ = file->enum_type(1);
+ {
+ void* ptr = &::common::_MajorType_default_instance_;
+ new (ptr) ::common::MajorType();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::common::MajorType::InitAsDefaultInstance();
}
-namespace {
+::google::protobuf::internal::SCCInfo<0> scc_info_MajorType =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMajorType}, {}};
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_Types_2eproto);
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_MajorType.base);
}
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MajorType_descriptor_, &MajorType::default_instance());
+::google::protobuf::Metadata file_level_metadata[1];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, minor_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, mode_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, width_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, precision_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, scale_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, timezone_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::common::MajorType, sub_type_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ ~0u,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 12, sizeof(::common::MajorType)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::common::_MajorType_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "Types.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
}
-} // namespace
-
-void protobuf_ShutdownFile_Types_2eproto() {
- delete MajorType::default_instance_;
- delete MajorType_reflection_;
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}
-void protobuf_AddDesc_Types_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
- GOOGLE_PROTOBUF_VERIFY_VERSION;
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\013Types.proto\022\006common\"\272\001\n\tMajorType\022%\n\nm"
+ "inor_type\030\001 \001(\0162\021.common.MinorType\022\036\n\004mo"
+ "de\030\002 \001(\0162\020.common.DataMode\022\r\n\005width\030\003 \001("
+ "\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010t"
+ "imeZone\030\006 \001(\005\022#\n\010sub_type\030\007 \003(\0162\021.common"
+ ".MinorType*\253\004\n\tMinorType\022\010\n\004LATE\020\000\022\007\n\003MA"
+ "P\020\001\022\013\n\007TINYINT\020\003\022\014\n\010SMALLINT\020\004\022\007\n\003INT\020\005\022"
+ "\n\n\006BIGINT\020\006\022\014\n\010DECIMAL9\020\007\022\r\n\tDECIMAL18\020\010"
+ "\022\023\n\017DECIMAL28SPARSE\020\t\022\023\n\017DECIMAL38SPARSE"
+ "\020\n\022\t\n\005MONEY\020\013\022\010\n\004DATE\020\014\022\010\n\004TIME\020\r\022\n\n\006TIM"
+ "ETZ\020\016\022\017\n\013TIMESTAMPTZ\020\017\022\r\n\tTIMESTAMP\020\020\022\014\n"
+ "\010INTERVAL\020\021\022\n\n\006FLOAT4\020\022\022\n\n\006FLOAT8\020\023\022\007\n\003B"
+ "IT\020\024\022\r\n\tFIXEDCHAR\020\025\022\017\n\013FIXED16CHAR\020\026\022\017\n\013"
+ "FIXEDBINARY\020\027\022\013\n\007VARCHAR\020\030\022\r\n\tVAR16CHAR\020"
+ "\031\022\r\n\tVARBINARY\020\032\022\t\n\005UINT1\020\035\022\t\n\005UINT2\020\036\022\t"
+ "\n\005UINT4\020\037\022\t\n\005UINT8\020 \022\022\n\016DECIMAL28DENSE\020!"
+ "\022\022\n\016DECIMAL38DENSE\020\"\022\016\n\nDM_UNKNOWN\020%\022\020\n\014"
+ "INTERVALYEAR\020&\022\017\n\013INTERVALDAY\020\'\022\010\n\004LIST\020"
+ "(\022\022\n\016GENERIC_OBJECT\020)\022\t\n\005UNION\020*\022\016\n\nVARD"
+ "ECIMAL\020+*=\n\010DataMode\022\017\n\013DM_OPTIONAL\020\000\022\017\n"
+ "\013DM_REQUIRED\020\001\022\017\n\013DM_REPEATED\020\002B-\n\035org.a"
+ "pache.drill.common.typesB\nTypeProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\013Types.proto\022\006common\"\272\001\n\tMajorType\022%\n\nm"
- "inor_type\030\001 \001(\0162\021.common.MinorType\022\036\n\004mo"
- "de\030\002 \001(\0162\020.common.DataMode\022\r\n\005width\030\003 \001("
- "\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010t"
- "imeZone\030\006 \001(\005\022#\n\010sub_type\030\007 \003(\0162\021.common"
- ".MinorType*\253\004\n\tMinorType\022\010\n\004LATE\020\000\022\007\n\003MA"
- "P\020\001\022\013\n\007TINYINT\020\003\022\014\n\010SMALLINT\020\004\022\007\n\003INT\020\005\022"
- "\n\n\006BIGINT\020\006\022\014\n\010DECIMAL9\020\007\022\r\n\tDECIMAL18\020\010"
- "\022\023\n\017DECIMAL28SPARSE\020\t\022\023\n\017DECIMAL38SPARSE"
- "\020\n\022\t\n\005MONEY\020\013\022\010\n\004DATE\020\014\022\010\n\004TIME\020\r\022\n\n\006TIM"
- "ETZ\020\016\022\017\n\013TIMESTAMPTZ\020\017\022\r\n\tTIMESTAMP\020\020\022\014\n"
- "\010INTERVAL\020\021\022\n\n\006FLOAT4\020\022\022\n\n\006FLOAT8\020\023\022\007\n\003B"
- "IT\020\024\022\r\n\tFIXEDCHAR\020\025\022\017\n\013FIXED16CHAR\020\026\022\017\n\013"
- "FIXEDBINARY\020\027\022\013\n\007VARCHAR\020\030\022\r\n\tVAR16CHAR\020"
- "\031\022\r\n\tVARBINARY\020\032\022\t\n\005UINT1\020\035\022\t\n\005UINT2\020\036\022\t"
- "\n\005UINT4\020\037\022\t\n\005UINT8\020 \022\022\n\016DECIMAL28DENSE\020!"
- "\022\022\n\016DECIMAL38DENSE\020\"\022\016\n\nDM_UNKNOWN\020%\022\020\n\014"
- "INTERVALYEAR\020&\022\017\n\013INTERVALDAY\020\'\022\010\n\004LIST\020"
- "(\022\022\n\016GENERIC_OBJECT\020)\022\t\n\005UNION\020*\022\016\n\nVARD"
- "ECIMAL\020+*=\n\010DataMode\022\017\n\013DM_OPTIONAL\020\000\022\017\n"
- "\013DM_REQUIRED\020\001\022\017\n\013DM_REPEATED\020\002B-\n\035org.a"
- "pache.drill.common.typesB\nTypeProtosH\001", 878);
+ descriptor, 878);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"Types.proto", &protobuf_RegisterTypes);
- MajorType::default_instance_ = new MajorType();
- MajorType::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Types_2eproto);
}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_Types_2eproto {
- StaticDescriptorInitializer_Types_2eproto() {
- protobuf_AddDesc_Types_2eproto();
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
}
-} static_descriptor_initializer_Types_2eproto_;
+} static_descriptor_initializer;
+} // namespace protobuf_Types_2eproto
+namespace common {
const ::google::protobuf::EnumDescriptor* MinorType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MinorType_descriptor_;
+ protobuf_Types_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_Types_2eproto::file_level_enum_descriptors[0];
}
bool MinorType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 3:
@@ -175,11 +191,11 @@ bool MinorType_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* DataMode_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DataMode_descriptor_;
+ protobuf_Types_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_Types_2eproto::file_level_enum_descriptors[1];
}
bool DataMode_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -192,7 +208,9 @@ bool DataMode_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void MajorType::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MajorType::kMinorTypeFieldNumber;
const int MajorType::kModeFieldNumber;
const int MajorType::kWidthFieldNumber;
@@ -200,87 +218,86 @@ const int MajorType::kPrecisionFieldNumber;
const int MajorType::kScaleFieldNumber;
const int MajorType::kTimeZoneFieldNumber;
const int MajorType::kSubTypeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MajorType::MajorType()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_Types_2eproto::scc_info_MajorType.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:common.MajorType)
}
-
-void MajorType::InitAsDefaultInstance() {
-}
-
MajorType::MajorType(const MajorType& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ sub_type_(from.sub_type_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&minor_type_, &from.minor_type_,
+ static_cast<size_t>(reinterpret_cast<char*>(&timezone_) -
+ reinterpret_cast<char*>(&minor_type_)) + sizeof(timezone_));
+ // @@protoc_insertion_point(copy_constructor:common.MajorType)
}
void MajorType::SharedCtor() {
- _cached_size_ = 0;
- minor_type_ = 0;
- mode_ = 0;
- width_ = 0;
- precision_ = 0;
- scale_ = 0;
- timezone_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&minor_type_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&timezone_) -
+ reinterpret_cast<char*>(&minor_type_)) + sizeof(timezone_));
}
MajorType::~MajorType() {
+ // @@protoc_insertion_point(destructor:common.MajorType)
SharedDtor();
}
void MajorType::SharedDtor() {
- if (this != default_instance_) {
- }
}
void MajorType::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* MajorType::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MajorType_descriptor_;
+ ::protobuf_Types_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Types_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const MajorType& MajorType::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_Types_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_Types_2eproto::scc_info_MajorType.base);
+ return *internal_default_instance();
}
-MajorType* MajorType::default_instance_ = NULL;
-
-MajorType* MajorType::New() const {
- return new MajorType;
-}
void MajorType::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- minor_type_ = 0;
- mode_ = 0;
- width_ = 0;
- precision_ = 0;
- scale_ = 0;
- timezone_ = 0;
- }
+// @@protoc_insertion_point(message_clear_start:common.MajorType)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
sub_type_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 63u) {
+ ::memset(&minor_type_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&timezone_) -
+ reinterpret_cast<char*>(&minor_type_)) + sizeof(timezone_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool MajorType::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:common.MajorType)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .common.MinorType minor_type = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -288,20 +305,19 @@ bool MajorType::MergePartialFromCodedStream(
if (::common::MinorType_IsValid(value)) {
set_minor_type(static_cast< ::common::MinorType >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_mode;
break;
}
// optional .common.DataMode mode = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_mode:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -309,84 +325,75 @@ bool MajorType::MergePartialFromCodedStream(
if (::common::DataMode_IsValid(value)) {
set_mode(static_cast< ::common::DataMode >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_width;
break;
}
// optional int32 width = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_width:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_width();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &width_)));
- set_has_width();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_precision;
break;
}
// optional int32 precision = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_precision:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_precision();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &precision_)));
- set_has_precision();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_scale;
break;
}
// optional int32 scale = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_scale:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_scale();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &scale_)));
- set_has_scale();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_timeZone;
break;
}
// optional int32 timeZone = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_timeZone:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ set_has_timezone();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &timezone_)));
- set_has_timezone();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_sub_type;
break;
}
// repeated .common.MinorType sub_type = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_sub_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -394,136 +401,168 @@ bool MajorType::MergePartialFromCodedStream(
if (::common::MinorType_IsValid(value)) {
add_sub_type(static_cast< ::common::MinorType >(value));
} else {
- mutable_unknown_fields()->AddVarint(7, value);
+ mutable_unknown_fields()->AddVarint(
+ 7, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::common::MinorType_IsValid,
+ 7,
+ ::common::MinorType_IsValid,
+ mutable_unknown_fields(),
this->mutable_sub_type())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_sub_type;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:common.MajorType)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:common.MajorType)
+ return false;
#undef DO_
}
void MajorType::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:common.MajorType)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .common.MinorType minor_type = 1;
- if (has_minor_type()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->minor_type(), output);
}
// optional .common.DataMode mode = 2;
- if (has_mode()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->mode(), output);
}
// optional int32 width = 3;
- if (has_width()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->width(), output);
}
// optional int32 precision = 4;
- if (has_precision()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->precision(), output);
}
// optional int32 scale = 5;
- if (has_scale()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->scale(), output);
}
// optional int32 timeZone = 6;
- if (has_timezone()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->timezone(), output);
}
// repeated .common.MinorType sub_type = 7;
- for (int i = 0; i < this->sub_type_size(); i++) {
+ for (int i = 0, n = this->sub_type_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
7, this->sub_type(i), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:common.MajorType)
}
-::google::protobuf::uint8* MajorType::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* MajorType::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:common.MajorType)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .common.MinorType minor_type = 1;
- if (has_minor_type()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->minor_type(), target);
}
// optional .common.DataMode mode = 2;
- if (has_mode()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->mode(), target);
}
// optional int32 width = 3;
- if (has_width()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->width(), target);
}
// optional int32 precision = 4;
- if (has_precision()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->precision(), target);
}
// optional int32 scale = 5;
- if (has_scale()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->scale(), target);
}
// optional int32 timeZone = 6;
- if (has_timezone()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->timezone(), target);
}
// repeated .common.MinorType sub_type = 7;
- for (int i = 0; i < this->sub_type_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 7, this->sub_type(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 7, this->sub_type_, target);
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:common.MajorType)
return target;
}
-int MajorType::ByteSize() const {
- int total_size = 0;
+size_t MajorType::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:common.MajorType)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .common.MinorType sub_type = 7;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->sub_type_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->sub_type(static_cast<int>(i)));
+ }
+ total_size += (1UL * count) + data_size;
+ }
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_has_bits_[0 / 32] & 63u) {
// optional .common.MinorType minor_type = 1;
if (has_minor_type()) {
total_size += 1 +
@@ -565,108 +604,107 @@ int MajorType::ByteSize() const {
}
}
- // repeated .common.MinorType sub_type = 7;
- {
- int data_size = 0;
- for (int i = 0; i < this->sub_type_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->sub_type(i));
- }
- total_size += 1 * this->sub_type_size() + data_size;
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void MajorType::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:common.MajorType)
+ GOOGLE_DCHECK_NE(&from, this);
const MajorType* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MajorType*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const MajorType>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:common.MajorType)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:common.MajorType)
MergeFrom(*source);
}
}
void MajorType::MergeFrom(const MajorType& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:common.MajorType)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
sub_type_.MergeFrom(from.sub_type_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_minor_type()) {
- set_minor_type(from.minor_type());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 63u) {
+ if (cached_has_bits & 0x00000001u) {
+ minor_type_ = from.minor_type_;
}
- if (from.has_mode()) {
- set_mode(from.mode());
+ if (cached_has_bits & 0x00000002u) {
+ mode_ = from.mode_;
}
- if (from.has_width()) {
- set_width(from.width());
+ if (cached_has_bits & 0x00000004u) {
+ width_ = from.width_;
}
- if (from.has_precision()) {
- set_precision(from.precision());
+ if (cached_has_bits & 0x00000008u) {
+ precision_ = from.precision_;
}
- if (from.has_scale()) {
- set_scale(from.scale());
+ if (cached_has_bits & 0x00000010u) {
+ scale_ = from.scale_;
}
- if (from.has_timezone()) {
- set_timezone(from.timezone());
+ if (cached_has_bits & 0x00000020u) {
+ timezone_ = from.timezone_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void MajorType::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:common.MajorType)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MajorType::CopyFrom(const MajorType& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:common.MajorType)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MajorType::IsInitialized() const {
-
return true;
}
void MajorType::Swap(MajorType* other) {
- if (other != this) {
- std::swap(minor_type_, other->minor_type_);
- std::swap(mode_, other->mode_);
- std::swap(width_, other->width_);
- std::swap(precision_, other->precision_);
- std::swap(scale_, other->scale_);
- std::swap(timezone_, other->timezone_);
- sub_type_.Swap(&other->sub_type_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MajorType::InternalSwap(MajorType* other) {
+ using std::swap;
+ sub_type_.InternalSwap(&other->sub_type_);
+ swap(minor_type_, other->minor_type_);
+ swap(mode_, other->mode_);
+ swap(width_, other->width_);
+ swap(precision_, other->precision_);
+ swap(scale_, other->scale_);
+ swap(timezone_, other->timezone_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata MajorType::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MajorType_descriptor_;
- metadata.reflection = MajorType_reflection_;
- return metadata;
+ protobuf_Types_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_Types_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace common
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::common::MajorType* Arena::CreateMaybeMessage< ::common::MajorType >(Arena* arena) {
+ return Arena::CreateInternal< ::common::MajorType >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/User.pb.cc b/contrib/native/client/src/protobuf/User.pb.cc
index a0e2acd99..f15c7e5f8 100644
--- a/contrib/native/client/src/protobuf/User.pb.cc
+++ b/contrib/native/client/src/protobuf/User.pb.cc
@@ -1,1233 +1,1565 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: User.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "User.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_BitControl_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_BitControl_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_PlanFragment;
+} // namespace protobuf_BitControl_2eproto
+namespace protobuf_UserBitShared_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryId;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UserCredentials;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DrillPBError;
+} // namespace protobuf_UserBitShared_2eproto
+namespace protobuf_User_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CatalogMetadata;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ColumnMetadata;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ConvertSupport;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LikeFilter;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PreparedStatementHandle;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Property;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResultColumnMetadata;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RpcEndpointInfos;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SchemaMetadata;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TableMetadata;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ServerMeta;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_UserProperties;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_PreparedStatement;
+} // namespace protobuf_User_2eproto
namespace exec {
namespace user {
+class PropertyDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Property>
+ _instance;
+} _Property_default_instance_;
+class UserPropertiesDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UserProperties>
+ _instance;
+} _UserProperties_default_instance_;
+class RpcEndpointInfosDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RpcEndpointInfos>
+ _instance;
+} _RpcEndpointInfos_default_instance_;
+class UserToBitHandshakeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UserToBitHandshake>
+ _instance;
+} _UserToBitHandshake_default_instance_;
+class RequestResultsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RequestResults>
+ _instance;
+} _RequestResults_default_instance_;
+class GetQueryPlanFragmentsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetQueryPlanFragments>
+ _instance;
+} _GetQueryPlanFragments_default_instance_;
+class QueryPlanFragmentsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryPlanFragments>
+ _instance;
+} _QueryPlanFragments_default_instance_;
+class BitToUserHandshakeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BitToUserHandshake>
+ _instance;
+} _BitToUserHandshake_default_instance_;
+class LikeFilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<LikeFilter>
+ _instance;
+} _LikeFilter_default_instance_;
+class GetCatalogsReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetCatalogsReq>
+ _instance;
+} _GetCatalogsReq_default_instance_;
+class CatalogMetadataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CatalogMetadata>
+ _instance;
+} _CatalogMetadata_default_instance_;
+class GetCatalogsRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetCatalogsResp>
+ _instance;
+} _GetCatalogsResp_default_instance_;
+class GetSchemasReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetSchemasReq>
+ _instance;
+} _GetSchemasReq_default_instance_;
+class SchemaMetadataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<SchemaMetadata>
+ _instance;
+} _SchemaMetadata_default_instance_;
+class GetSchemasRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetSchemasResp>
+ _instance;
+} _GetSchemasResp_default_instance_;
+class GetTablesReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetTablesReq>
+ _instance;
+} _GetTablesReq_default_instance_;
+class TableMetadataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TableMetadata>
+ _instance;
+} _TableMetadata_default_instance_;
+class GetTablesRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetTablesResp>
+ _instance;
+} _GetTablesResp_default_instance_;
+class GetColumnsReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetColumnsReq>
+ _instance;
+} _GetColumnsReq_default_instance_;
+class ColumnMetadataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ColumnMetadata>
+ _instance;
+} _ColumnMetadata_default_instance_;
+class GetColumnsRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetColumnsResp>
+ _instance;
+} _GetColumnsResp_default_instance_;
+class CreatePreparedStatementReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CreatePreparedStatementReq>
+ _instance;
+} _CreatePreparedStatementReq_default_instance_;
+class ResultColumnMetadataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ResultColumnMetadata>
+ _instance;
+} _ResultColumnMetadata_default_instance_;
+class PreparedStatementHandleDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<PreparedStatementHandle>
+ _instance;
+} _PreparedStatementHandle_default_instance_;
+class PreparedStatementDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<PreparedStatement>
+ _instance;
+} _PreparedStatement_default_instance_;
+class CreatePreparedStatementRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CreatePreparedStatementResp>
+ _instance;
+} _CreatePreparedStatementResp_default_instance_;
+class GetServerMetaReqDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetServerMetaReq>
+ _instance;
+} _GetServerMetaReq_default_instance_;
+class ConvertSupportDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ConvertSupport>
+ _instance;
+} _ConvertSupport_default_instance_;
+class GetServerMetaRespDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetServerMetaResp>
+ _instance;
+} _GetServerMetaResp_default_instance_;
+class ServerMetaDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ServerMeta>
+ _instance;
+} _ServerMeta_default_instance_;
+class RunQueryDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RunQuery>
+ _instance;
+} _RunQuery_default_instance_;
+} // namespace user
+} // namespace exec
+namespace protobuf_User_2eproto {
+static void InitDefaultsProperty() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* Property_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Property_reflection_ = NULL;
-const ::google::protobuf::Descriptor* UserProperties_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- UserProperties_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RpcEndpointInfos_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RpcEndpointInfos_reflection_ = NULL;
-const ::google::protobuf::Descriptor* UserToBitHandshake_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- UserToBitHandshake_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RequestResults_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RequestResults_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetQueryPlanFragments_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetQueryPlanFragments_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryPlanFragments_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryPlanFragments_reflection_ = NULL;
-const ::google::protobuf::Descriptor* BitToUserHandshake_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- BitToUserHandshake_reflection_ = NULL;
-const ::google::protobuf::Descriptor* LikeFilter_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- LikeFilter_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetCatalogsReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetCatalogsReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* CatalogMetadata_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- CatalogMetadata_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetCatalogsResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetCatalogsResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetSchemasReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetSchemasReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* SchemaMetadata_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- SchemaMetadata_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetSchemasResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetSchemasResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetTablesReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetTablesReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* TableMetadata_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- TableMetadata_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetTablesResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetTablesResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetColumnsReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetColumnsReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ColumnMetadata_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ColumnMetadata_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetColumnsResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetColumnsResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* CreatePreparedStatementReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- CreatePreparedStatementReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ResultColumnMetadata_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ResultColumnMetadata_reflection_ = NULL;
-const ::google::protobuf::Descriptor* PreparedStatementHandle_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- PreparedStatementHandle_reflection_ = NULL;
-const ::google::protobuf::Descriptor* PreparedStatement_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- PreparedStatement_reflection_ = NULL;
-const ::google::protobuf::Descriptor* CreatePreparedStatementResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- CreatePreparedStatementResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetServerMetaReq_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetServerMetaReq_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ConvertSupport_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ConvertSupport_reflection_ = NULL;
-const ::google::protobuf::Descriptor* GetServerMetaResp_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- GetServerMetaResp_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ServerMeta_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ServerMeta_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RunQuery_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RunQuery_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* RpcType_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* SaslSupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* QueryResultsMode_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* HandshakeStatus_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* RequestStatus_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* ColumnSearchability_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* ColumnUpdatability_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* CollateSupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* CorrelationNamesSupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* DateTimeLiteralsSupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* GroupBySupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* IdentifierCasing_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* NullCollation_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* OrderBySupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* OuterJoinSupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* SubQuerySupport_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* UnionSupport_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_User_2eproto() {
- protobuf_AddDesc_User_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "User.proto");
- GOOGLE_CHECK(file != NULL);
- Property_descriptor_ = file->message_type(0);
- static const int Property_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Property, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Property, value_),
- };
- Property_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Property_descriptor_,
- Property::default_instance_,
- Property_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Property, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Property, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Property));
- UserProperties_descriptor_ = file->message_type(1);
- static const int UserProperties_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserProperties, properties_),
- };
- UserProperties_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- UserProperties_descriptor_,
- UserProperties::default_instance_,
- UserProperties_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserProperties, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserProperties, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(UserProperties));
- RpcEndpointInfos_descriptor_ = file->message_type(2);
- static const int RpcEndpointInfos_offsets_[8] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, majorversion_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, minorversion_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, patchversion_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, application_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, buildnumber_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, versionqualifier_),
- };
- RpcEndpointInfos_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RpcEndpointInfos_descriptor_,
- RpcEndpointInfos::default_instance_,
- RpcEndpointInfos_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RpcEndpointInfos, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RpcEndpointInfos));
- UserToBitHandshake_descriptor_ = file->message_type(3);
- static const int UserToBitHandshake_offsets_[9] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, channel_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, support_listening_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, rpc_version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, credentials_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, properties_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, support_complex_types_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, support_timeout_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, client_infos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, sasl_support_),
- };
- UserToBitHandshake_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- UserToBitHandshake_descriptor_,
- UserToBitHandshake::default_instance_,
- UserToBitHandshake_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserToBitHandshake, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(UserToBitHandshake));
- RequestResults_descriptor_ = file->message_type(4);
- static const int RequestResults_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestResults, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestResults, maximum_responses_),
- };
- RequestResults_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RequestResults_descriptor_,
- RequestResults::default_instance_,
- RequestResults_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestResults, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestResults, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RequestResults));
- GetQueryPlanFragments_descriptor_ = file->message_type(5);
- static const int GetQueryPlanFragments_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetQueryPlanFragments, query_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetQueryPlanFragments, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetQueryPlanFragments, split_plan_),
- };
- GetQueryPlanFragments_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetQueryPlanFragments_descriptor_,
- GetQueryPlanFragments::default_instance_,
- GetQueryPlanFragments_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetQueryPlanFragments, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetQueryPlanFragments, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetQueryPlanFragments));
- QueryPlanFragments_descriptor_ = file->message_type(6);
- static const int QueryPlanFragments_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, fragments_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, error_),
- };
- QueryPlanFragments_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryPlanFragments_descriptor_,
- QueryPlanFragments::default_instance_,
- QueryPlanFragments_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryPlanFragments, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryPlanFragments));
- BitToUserHandshake_descriptor_ = file->message_type(7);
- static const int BitToUserHandshake_offsets_[9] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, rpc_version_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, errorid_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, errormessage_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, server_infos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, authenticationmechanisms_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, supported_methods_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, encrypted_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, maxwrappedsize_),
- };
- BitToUserHandshake_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- BitToUserHandshake_descriptor_,
- BitToUserHandshake::default_instance_,
- BitToUserHandshake_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BitToUserHandshake, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(BitToUserHandshake));
- LikeFilter_descriptor_ = file->message_type(8);
- static const int LikeFilter_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LikeFilter, pattern_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LikeFilter, escape_),
- };
- LikeFilter_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- LikeFilter_descriptor_,
- LikeFilter::default_instance_,
- LikeFilter_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LikeFilter, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LikeFilter, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(LikeFilter));
- GetCatalogsReq_descriptor_ = file->message_type(9);
- static const int GetCatalogsReq_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsReq, catalog_name_filter_),
- };
- GetCatalogsReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetCatalogsReq_descriptor_,
- GetCatalogsReq::default_instance_,
- GetCatalogsReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetCatalogsReq));
- CatalogMetadata_descriptor_ = file->message_type(10);
- static const int CatalogMetadata_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CatalogMetadata, catalog_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CatalogMetadata, description_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CatalogMetadata, connect_),
- };
- CatalogMetadata_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- CatalogMetadata_descriptor_,
- CatalogMetadata::default_instance_,
- CatalogMetadata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CatalogMetadata, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CatalogMetadata, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(CatalogMetadata));
- GetCatalogsResp_descriptor_ = file->message_type(11);
- static const int GetCatalogsResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsResp, catalogs_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsResp, error_),
- };
- GetCatalogsResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetCatalogsResp_descriptor_,
- GetCatalogsResp::default_instance_,
- GetCatalogsResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetCatalogsResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetCatalogsResp));
- GetSchemasReq_descriptor_ = file->message_type(12);
- static const int GetSchemasReq_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasReq, catalog_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasReq, schema_name_filter_),
- };
- GetSchemasReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetSchemasReq_descriptor_,
- GetSchemasReq::default_instance_,
- GetSchemasReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetSchemasReq));
- SchemaMetadata_descriptor_ = file->message_type(13);
- static const int SchemaMetadata_offsets_[5] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, catalog_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, schema_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, owner_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, mutable__),
- };
- SchemaMetadata_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- SchemaMetadata_descriptor_,
- SchemaMetadata::default_instance_,
- SchemaMetadata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SchemaMetadata, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(SchemaMetadata));
- GetSchemasResp_descriptor_ = file->message_type(14);
- static const int GetSchemasResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasResp, schemas_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasResp, error_),
- };
- GetSchemasResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetSchemasResp_descriptor_,
- GetSchemasResp::default_instance_,
- GetSchemasResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetSchemasResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetSchemasResp));
- GetTablesReq_descriptor_ = file->message_type(15);
- static const int GetTablesReq_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, catalog_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, schema_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, table_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, table_type_filter_),
- };
- GetTablesReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetTablesReq_descriptor_,
- GetTablesReq::default_instance_,
- GetTablesReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetTablesReq));
- TableMetadata_descriptor_ = file->message_type(16);
- static const int TableMetadata_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, catalog_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, schema_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, table_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, type_),
- };
- TableMetadata_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- TableMetadata_descriptor_,
- TableMetadata::default_instance_,
- TableMetadata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableMetadata, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(TableMetadata));
- GetTablesResp_descriptor_ = file->message_type(17);
- static const int GetTablesResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesResp, tables_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesResp, error_),
- };
- GetTablesResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetTablesResp_descriptor_,
- GetTablesResp::default_instance_,
- GetTablesResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetTablesResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetTablesResp));
- GetColumnsReq_descriptor_ = file->message_type(18);
- static const int GetColumnsReq_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, catalog_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, schema_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, table_name_filter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, column_name_filter_),
- };
- GetColumnsReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetColumnsReq_descriptor_,
- GetColumnsReq::default_instance_,
- GetColumnsReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetColumnsReq));
- ColumnMetadata_descriptor_ = file->message_type(19);
- static const int ColumnMetadata_offsets_[17] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, catalog_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, schema_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, table_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, column_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, ordinal_position_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, default_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, is_nullable_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, data_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, char_max_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, char_octet_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, numeric_precision_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, numeric_precision_radix_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, numeric_scale_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, date_time_precision_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, interval_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, interval_precision_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, column_size_),
- };
- ColumnMetadata_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ColumnMetadata_descriptor_,
- ColumnMetadata::default_instance_,
- ColumnMetadata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ColumnMetadata, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ColumnMetadata));
- GetColumnsResp_descriptor_ = file->message_type(20);
- static const int GetColumnsResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsResp, columns_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsResp, error_),
- };
- GetColumnsResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetColumnsResp_descriptor_,
- GetColumnsResp::default_instance_,
- GetColumnsResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetColumnsResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetColumnsResp));
- CreatePreparedStatementReq_descriptor_ = file->message_type(21);
- static const int CreatePreparedStatementReq_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementReq, sql_query_),
- };
- CreatePreparedStatementReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- CreatePreparedStatementReq_descriptor_,
- CreatePreparedStatementReq::default_instance_,
- CreatePreparedStatementReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(CreatePreparedStatementReq));
- ResultColumnMetadata_descriptor_ = file->message_type(22);
- static const int ResultColumnMetadata_offsets_[19] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, catalog_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, schema_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, table_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, column_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, label_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, data_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, is_nullable_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, precision_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, scale_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, signed__),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, display_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, is_aliased_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, searchability_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, updatability_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, auto_increment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, case_sensitivity_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, sortable_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, class_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, is_currency_),
- };
- ResultColumnMetadata_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ResultColumnMetadata_descriptor_,
- ResultColumnMetadata::default_instance_,
- ResultColumnMetadata_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResultColumnMetadata, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ResultColumnMetadata));
- PreparedStatementHandle_descriptor_ = file->message_type(23);
- static const int PreparedStatementHandle_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatementHandle, server_info_),
- };
- PreparedStatementHandle_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- PreparedStatementHandle_descriptor_,
- PreparedStatementHandle::default_instance_,
- PreparedStatementHandle_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatementHandle, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatementHandle, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(PreparedStatementHandle));
- PreparedStatement_descriptor_ = file->message_type(24);
- static const int PreparedStatement_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatement, columns_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatement, server_handle_),
- };
- PreparedStatement_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- PreparedStatement_descriptor_,
- PreparedStatement::default_instance_,
- PreparedStatement_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatement, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PreparedStatement, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(PreparedStatement));
- CreatePreparedStatementResp_descriptor_ = file->message_type(25);
- static const int CreatePreparedStatementResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementResp, prepared_statement_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementResp, error_),
- };
- CreatePreparedStatementResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- CreatePreparedStatementResp_descriptor_,
- CreatePreparedStatementResp::default_instance_,
- CreatePreparedStatementResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreatePreparedStatementResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(CreatePreparedStatementResp));
- GetServerMetaReq_descriptor_ = file->message_type(26);
- static const int GetServerMetaReq_offsets_[1] = {
- };
- GetServerMetaReq_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetServerMetaReq_descriptor_,
- GetServerMetaReq::default_instance_,
- GetServerMetaReq_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaReq, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaReq, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetServerMetaReq));
- ConvertSupport_descriptor_ = file->message_type(27);
- static const int ConvertSupport_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvertSupport, from_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvertSupport, to_),
- };
- ConvertSupport_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ConvertSupport_descriptor_,
- ConvertSupport::default_instance_,
- ConvertSupport_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvertSupport, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvertSupport, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ConvertSupport));
- GetServerMetaResp_descriptor_ = file->message_type(28);
- static const int GetServerMetaResp_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaResp, status_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaResp, server_meta_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaResp, error_),
- };
- GetServerMetaResp_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- GetServerMetaResp_descriptor_,
- GetServerMetaResp::default_instance_,
- GetServerMetaResp_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaResp, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetServerMetaResp, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(GetServerMetaResp));
- ServerMeta_descriptor_ = file->message_type(29);
- static const int ServerMeta_offsets_[50] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, all_tables_selectable_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, blob_included_in_max_row_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, catalog_at_start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, catalog_separator_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, catalog_term_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, collate_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, column_aliasing_supported_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, convert_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, correlation_names_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, date_time_functions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, date_time_literals_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, group_by_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, identifier_casing_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, identifier_quote_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, like_escape_clause_supported_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_binary_literal_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_catalog_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_char_literal_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_column_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_columns_in_group_by_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_columns_in_order_by_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_columns_in_select_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_cursor_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_logical_lob_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_row_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_schema_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_statement_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_statements_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_table_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_tables_in_select_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, max_user_name_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, null_collation_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, null_plus_non_null_equals_null_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, numeric_functions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, order_by_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, outer_join_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, quoted_identifier_casing_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, read_only_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, schema_term_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, search_escape_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, select_for_update_supported_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, special_characters_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, sql_keywords_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, string_functions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, subquery_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, system_functions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, table_term_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, transaction_supported_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, union_support_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, current_schema_),
- };
- ServerMeta_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ServerMeta_descriptor_,
- ServerMeta::default_instance_,
- ServerMeta_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMeta, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ServerMeta));
- RunQuery_descriptor_ = file->message_type(30);
- static const int RunQuery_offsets_[5] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, results_mode_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, plan_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, fragments_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, prepared_statement_handle_),
- };
- RunQuery_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RunQuery_descriptor_,
- RunQuery::default_instance_,
- RunQuery_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RunQuery, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RunQuery));
- RpcType_descriptor_ = file->enum_type(0);
- SaslSupport_descriptor_ = file->enum_type(1);
- QueryResultsMode_descriptor_ = file->enum_type(2);
- HandshakeStatus_descriptor_ = file->enum_type(3);
- RequestStatus_descriptor_ = file->enum_type(4);
- ColumnSearchability_descriptor_ = file->enum_type(5);
- ColumnUpdatability_descriptor_ = file->enum_type(6);
- CollateSupport_descriptor_ = file->enum_type(7);
- CorrelationNamesSupport_descriptor_ = file->enum_type(8);
- DateTimeLiteralsSupport_descriptor_ = file->enum_type(9);
- GroupBySupport_descriptor_ = file->enum_type(10);
- IdentifierCasing_descriptor_ = file->enum_type(11);
- NullCollation_descriptor_ = file->enum_type(12);
- OrderBySupport_descriptor_ = file->enum_type(13);
- OuterJoinSupport_descriptor_ = file->enum_type(14);
- SubQuerySupport_descriptor_ = file->enum_type(15);
- UnionSupport_descriptor_ = file->enum_type(16);
-}
-
-namespace {
-
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_User_2eproto);
+ {
+ void* ptr = &::exec::user::_Property_default_instance_;
+ new (ptr) ::exec::user::Property();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::Property::InitAsDefaultInstance();
}
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Property_descriptor_, &Property::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- UserProperties_descriptor_, &UserProperties::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RpcEndpointInfos_descriptor_, &RpcEndpointInfos::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- UserToBitHandshake_descriptor_, &UserToBitHandshake::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RequestResults_descriptor_, &RequestResults::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetQueryPlanFragments_descriptor_, &GetQueryPlanFragments::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryPlanFragments_descriptor_, &QueryPlanFragments::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- BitToUserHandshake_descriptor_, &BitToUserHandshake::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- LikeFilter_descriptor_, &LikeFilter::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetCatalogsReq_descriptor_, &GetCatalogsReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- CatalogMetadata_descriptor_, &CatalogMetadata::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetCatalogsResp_descriptor_, &GetCatalogsResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetSchemasReq_descriptor_, &GetSchemasReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- SchemaMetadata_descriptor_, &SchemaMetadata::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetSchemasResp_descriptor_, &GetSchemasResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetTablesReq_descriptor_, &GetTablesReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- TableMetadata_descriptor_, &TableMetadata::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetTablesResp_descriptor_, &GetTablesResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetColumnsReq_descriptor_, &GetColumnsReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ColumnMetadata_descriptor_, &ColumnMetadata::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetColumnsResp_descriptor_, &GetColumnsResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- CreatePreparedStatementReq_descriptor_, &CreatePreparedStatementReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ResultColumnMetadata_descriptor_, &ResultColumnMetadata::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- PreparedStatementHandle_descriptor_, &PreparedStatementHandle::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- PreparedStatement_descriptor_, &PreparedStatement::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- CreatePreparedStatementResp_descriptor_, &CreatePreparedStatementResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetServerMetaReq_descriptor_, &GetServerMetaReq::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ConvertSupport_descriptor_, &ConvertSupport::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- GetServerMetaResp_descriptor_, &GetServerMetaResp::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ServerMeta_descriptor_, &ServerMeta::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RunQuery_descriptor_, &RunQuery::default_instance());
-}
-
-} // namespace
-
-void protobuf_ShutdownFile_User_2eproto() {
- delete Property::default_instance_;
- delete Property_reflection_;
- delete UserProperties::default_instance_;
- delete UserProperties_reflection_;
- delete RpcEndpointInfos::default_instance_;
- delete RpcEndpointInfos_reflection_;
- delete UserToBitHandshake::default_instance_;
- delete UserToBitHandshake_reflection_;
- delete RequestResults::default_instance_;
- delete RequestResults_reflection_;
- delete GetQueryPlanFragments::default_instance_;
- delete GetQueryPlanFragments_reflection_;
- delete QueryPlanFragments::default_instance_;
- delete QueryPlanFragments_reflection_;
- delete BitToUserHandshake::default_instance_;
- delete BitToUserHandshake_reflection_;
- delete LikeFilter::default_instance_;
- delete LikeFilter_reflection_;
- delete GetCatalogsReq::default_instance_;
- delete GetCatalogsReq_reflection_;
- delete CatalogMetadata::default_instance_;
- delete CatalogMetadata_reflection_;
- delete GetCatalogsResp::default_instance_;
- delete GetCatalogsResp_reflection_;
- delete GetSchemasReq::default_instance_;
- delete GetSchemasReq_reflection_;
- delete SchemaMetadata::default_instance_;
- delete SchemaMetadata_reflection_;
- delete GetSchemasResp::default_instance_;
- delete GetSchemasResp_reflection_;
- delete GetTablesReq::default_instance_;
- delete GetTablesReq_reflection_;
- delete TableMetadata::default_instance_;
- delete TableMetadata_reflection_;
- delete GetTablesResp::default_instance_;
- delete GetTablesResp_reflection_;
- delete GetColumnsReq::default_instance_;
- delete GetColumnsReq_reflection_;
- delete ColumnMetadata::default_instance_;
- delete ColumnMetadata_reflection_;
- delete GetColumnsResp::default_instance_;
- delete GetColumnsResp_reflection_;
- delete CreatePreparedStatementReq::default_instance_;
- delete CreatePreparedStatementReq_reflection_;
- delete ResultColumnMetadata::default_instance_;
- delete ResultColumnMetadata_reflection_;
- delete PreparedStatementHandle::default_instance_;
- delete PreparedStatementHandle_reflection_;
- delete PreparedStatement::default_instance_;
- delete PreparedStatement_reflection_;
- delete CreatePreparedStatementResp::default_instance_;
- delete CreatePreparedStatementResp_reflection_;
- delete GetServerMetaReq::default_instance_;
- delete GetServerMetaReq_reflection_;
- delete ConvertSupport::default_instance_;
- delete ConvertSupport_reflection_;
- delete GetServerMetaResp::default_instance_;
- delete GetServerMetaResp_reflection_;
- delete ServerMeta::default_instance_;
- delete ServerMeta_reflection_;
- delete RunQuery::default_instance_;
- delete RunQuery_reflection_;
-}
-
-void protobuf_AddDesc_User_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+::google::protobuf::internal::SCCInfo<0> scc_info_Property =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProperty}, {}};
+
+static void InitDefaultsUserProperties() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_UserProperties_default_instance_;
+ new (ptr) ::exec::user::UserProperties();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::UserProperties::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_UserProperties =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUserProperties}, {
+ &protobuf_User_2eproto::scc_info_Property.base,}};
+
+static void InitDefaultsRpcEndpointInfos() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::exec::protobuf_AddDesc_SchemaDef_2eproto();
- ::common::protobuf_AddDesc_Types_2eproto();
- ::exec::shared::protobuf_AddDesc_UserBitShared_2eproto();
- ::exec::bit::data::protobuf_AddDesc_BitData_2eproto();
- ::exec::bit::control::protobuf_AddDesc_BitControl_2eproto();
- ::exec::bit::protobuf_AddDesc_ExecutionProtos_2eproto();
+ {
+ void* ptr = &::exec::user::_RpcEndpointInfos_default_instance_;
+ new (ptr) ::exec::user::RpcEndpointInfos();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::RpcEndpointInfos::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_RpcEndpointInfos =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRpcEndpointInfos}, {}};
+
+static void InitDefaultsUserToBitHandshake() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_UserToBitHandshake_default_instance_;
+ new (ptr) ::exec::user::UserToBitHandshake();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::UserToBitHandshake::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<3> scc_info_UserToBitHandshake =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsUserToBitHandshake}, {
+ &protobuf_UserBitShared_2eproto::scc_info_UserCredentials.base,
+ &protobuf_User_2eproto::scc_info_UserProperties.base,
+ &protobuf_User_2eproto::scc_info_RpcEndpointInfos.base,}};
+
+static void InitDefaultsRequestResults() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_RequestResults_default_instance_;
+ new (ptr) ::exec::user::RequestResults();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::RequestResults::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_RequestResults =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRequestResults}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,}};
+
+static void InitDefaultsGetQueryPlanFragments() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetQueryPlanFragments_default_instance_;
+ new (ptr) ::exec::user::GetQueryPlanFragments();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetQueryPlanFragments::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_GetQueryPlanFragments =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetQueryPlanFragments}, {}};
+
+static void InitDefaultsQueryPlanFragments() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_QueryPlanFragments_default_instance_;
+ new (ptr) ::exec::user::QueryPlanFragments();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::QueryPlanFragments::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<3> scc_info_QueryPlanFragments =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsQueryPlanFragments}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,
+ &protobuf_BitControl_2eproto::scc_info_PlanFragment.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsBitToUserHandshake() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_BitToUserHandshake_default_instance_;
+ new (ptr) ::exec::user::BitToUserHandshake();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::BitToUserHandshake::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_BitToUserHandshake =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBitToUserHandshake}, {
+ &protobuf_User_2eproto::scc_info_RpcEndpointInfos.base,}};
+
+static void InitDefaultsLikeFilter() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_LikeFilter_default_instance_;
+ new (ptr) ::exec::user::LikeFilter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::LikeFilter::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_LikeFilter =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLikeFilter}, {}};
+
+static void InitDefaultsGetCatalogsReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetCatalogsReq_default_instance_;
+ new (ptr) ::exec::user::GetCatalogsReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetCatalogsReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_GetCatalogsReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetCatalogsReq}, {
+ &protobuf_User_2eproto::scc_info_LikeFilter.base,}};
+
+static void InitDefaultsCatalogMetadata() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_CatalogMetadata_default_instance_;
+ new (ptr) ::exec::user::CatalogMetadata();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::CatalogMetadata::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_CatalogMetadata =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatalogMetadata}, {}};
+
+static void InitDefaultsGetCatalogsResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetCatalogsResp_default_instance_;
+ new (ptr) ::exec::user::GetCatalogsResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetCatalogsResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_GetCatalogsResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetCatalogsResp}, {
+ &protobuf_User_2eproto::scc_info_CatalogMetadata.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsGetSchemasReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetSchemasReq_default_instance_;
+ new (ptr) ::exec::user::GetSchemasReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetSchemasReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_GetSchemasReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSchemasReq}, {
+ &protobuf_User_2eproto::scc_info_LikeFilter.base,}};
+
+static void InitDefaultsSchemaMetadata() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_SchemaMetadata_default_instance_;
+ new (ptr) ::exec::user::SchemaMetadata();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::SchemaMetadata::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_SchemaMetadata =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSchemaMetadata}, {}};
+
+static void InitDefaultsGetSchemasResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetSchemasResp_default_instance_;
+ new (ptr) ::exec::user::GetSchemasResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetSchemasResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_GetSchemasResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetSchemasResp}, {
+ &protobuf_User_2eproto::scc_info_SchemaMetadata.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsGetTablesReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetTablesReq_default_instance_;
+ new (ptr) ::exec::user::GetTablesReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetTablesReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_GetTablesReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetTablesReq}, {
+ &protobuf_User_2eproto::scc_info_LikeFilter.base,}};
+
+static void InitDefaultsTableMetadata() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_TableMetadata_default_instance_;
+ new (ptr) ::exec::user::TableMetadata();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::TableMetadata::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_TableMetadata =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTableMetadata}, {}};
+
+static void InitDefaultsGetTablesResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetTablesResp_default_instance_;
+ new (ptr) ::exec::user::GetTablesResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetTablesResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_GetTablesResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetTablesResp}, {
+ &protobuf_User_2eproto::scc_info_TableMetadata.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsGetColumnsReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetColumnsReq_default_instance_;
+ new (ptr) ::exec::user::GetColumnsReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetColumnsReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_GetColumnsReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetColumnsReq}, {
+ &protobuf_User_2eproto::scc_info_LikeFilter.base,}};
+
+static void InitDefaultsColumnMetadata() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_ColumnMetadata_default_instance_;
+ new (ptr) ::exec::user::ColumnMetadata();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::ColumnMetadata::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_ColumnMetadata =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsColumnMetadata}, {}};
+
+static void InitDefaultsGetColumnsResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetColumnsResp_default_instance_;
+ new (ptr) ::exec::user::GetColumnsResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetColumnsResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_GetColumnsResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetColumnsResp}, {
+ &protobuf_User_2eproto::scc_info_ColumnMetadata.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsCreatePreparedStatementReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_CreatePreparedStatementReq_default_instance_;
+ new (ptr) ::exec::user::CreatePreparedStatementReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::CreatePreparedStatementReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_CreatePreparedStatementReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreatePreparedStatementReq}, {}};
+
+static void InitDefaultsResultColumnMetadata() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_ResultColumnMetadata_default_instance_;
+ new (ptr) ::exec::user::ResultColumnMetadata();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::ResultColumnMetadata::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_ResultColumnMetadata =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResultColumnMetadata}, {}};
+
+static void InitDefaultsPreparedStatementHandle() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_PreparedStatementHandle_default_instance_;
+ new (ptr) ::exec::user::PreparedStatementHandle();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::PreparedStatementHandle::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_PreparedStatementHandle =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPreparedStatementHandle}, {}};
+
+static void InitDefaultsPreparedStatement() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_PreparedStatement_default_instance_;
+ new (ptr) ::exec::user::PreparedStatement();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::PreparedStatement::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_PreparedStatement =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPreparedStatement}, {
+ &protobuf_User_2eproto::scc_info_ResultColumnMetadata.base,
+ &protobuf_User_2eproto::scc_info_PreparedStatementHandle.base,}};
+
+static void InitDefaultsCreatePreparedStatementResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_CreatePreparedStatementResp_default_instance_;
+ new (ptr) ::exec::user::CreatePreparedStatementResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::CreatePreparedStatementResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_CreatePreparedStatementResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreatePreparedStatementResp}, {
+ &protobuf_User_2eproto::scc_info_PreparedStatement.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsGetServerMetaReq() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetServerMetaReq_default_instance_;
+ new (ptr) ::exec::user::GetServerMetaReq();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetServerMetaReq::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_GetServerMetaReq =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetServerMetaReq}, {}};
+
+static void InitDefaultsConvertSupport() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_ConvertSupport_default_instance_;
+ new (ptr) ::exec::user::ConvertSupport();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::ConvertSupport::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_ConvertSupport =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsConvertSupport}, {}};
+
+static void InitDefaultsGetServerMetaResp() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_GetServerMetaResp_default_instance_;
+ new (ptr) ::exec::user::GetServerMetaResp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::GetServerMetaResp::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_GetServerMetaResp =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetServerMetaResp}, {
+ &protobuf_User_2eproto::scc_info_ServerMeta.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsServerMeta() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_ServerMeta_default_instance_;
+ new (ptr) ::exec::user::ServerMeta();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::ServerMeta::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_ServerMeta =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsServerMeta}, {
+ &protobuf_User_2eproto::scc_info_ConvertSupport.base,}};
+
+static void InitDefaultsRunQuery() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::user::_RunQuery_default_instance_;
+ new (ptr) ::exec::user::RunQuery();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::user::RunQuery::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_RunQuery =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsRunQuery}, {
+ &protobuf_BitControl_2eproto::scc_info_PlanFragment.base,
+ &protobuf_User_2eproto::scc_info_PreparedStatementHandle.base,}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_Property.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_UserProperties.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RpcEndpointInfos.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_UserToBitHandshake.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RequestResults.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetQueryPlanFragments.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryPlanFragments.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_BitToUserHandshake.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_LikeFilter.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetCatalogsReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_CatalogMetadata.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetCatalogsResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetSchemasReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_SchemaMetadata.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetSchemasResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetTablesReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_TableMetadata.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetTablesResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetColumnsReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ColumnMetadata.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetColumnsResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_CreatePreparedStatementReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ResultColumnMetadata.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_PreparedStatementHandle.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_PreparedStatement.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_CreatePreparedStatementResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetServerMetaReq.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ConvertSupport.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_GetServerMetaResp.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ServerMeta.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RunQuery.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[31];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[17];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::Property, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::Property, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::Property, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::Property, value_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserProperties, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserProperties, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserProperties, properties_),
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, majorversion_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, minorversion_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, patchversion_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, application_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, buildnumber_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RpcEndpointInfos, versionqualifier_),
+ 0,
+ 1,
+ 4,
+ 5,
+ 6,
+ 2,
+ 7,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, channel_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, support_listening_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, rpc_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, credentials_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, properties_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, support_complex_types_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, support_timeout_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, client_infos_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::UserToBitHandshake, sasl_support_),
+ 8,
+ 4,
+ 3,
+ 0,
+ 1,
+ 5,
+ 6,
+ 2,
+ 7,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RequestResults, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RequestResults, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RequestResults, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RequestResults, maximum_responses_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetQueryPlanFragments, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetQueryPlanFragments, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetQueryPlanFragments, query_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetQueryPlanFragments, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetQueryPlanFragments, split_plan_),
+ 0,
+ 2,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, fragments_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::QueryPlanFragments, error_),
+ 2,
+ 0,
+ ~0u,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, rpc_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, errorid_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, errormessage_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, server_infos_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, authenticationmechanisms_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, supported_methods_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, encrypted_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::BitToUserHandshake, maxwrappedsize_),
+ 3,
+ 6,
+ 0,
+ 1,
+ 2,
+ ~0u,
+ ~0u,
+ 4,
+ 5,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::LikeFilter, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::LikeFilter, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::LikeFilter, pattern_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::LikeFilter, escape_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsReq, catalog_name_filter_),
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CatalogMetadata, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CatalogMetadata, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CatalogMetadata, catalog_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CatalogMetadata, description_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CatalogMetadata, connect_),
+ 0,
+ 1,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsResp, catalogs_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetCatalogsResp, error_),
+ 1,
+ ~0u,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasReq, catalog_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasReq, schema_name_filter_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, catalog_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, schema_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, owner_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::SchemaMetadata, mutable__),
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasResp, schemas_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetSchemasResp, error_),
+ 1,
+ ~0u,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, catalog_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, schema_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, table_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesReq, table_type_filter_),
+ 0,
+ 1,
+ 2,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, catalog_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, schema_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, table_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::TableMetadata, type_),
+ 0,
+ 1,
+ 2,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesResp, tables_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetTablesResp, error_),
+ 1,
+ ~0u,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, catalog_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, schema_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, table_name_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsReq, column_name_filter_),
+ 0,
+ 1,
+ 2,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, catalog_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, schema_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, table_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, column_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, ordinal_position_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, default_value_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, is_nullable_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, data_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, char_max_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, char_octet_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, numeric_precision_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, numeric_precision_radix_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, numeric_scale_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, date_time_precision_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, interval_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, interval_precision_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ColumnMetadata, column_size_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 7,
+ 4,
+ 8,
+ 5,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 6,
+ 15,
+ 16,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsResp, columns_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetColumnsResp, error_),
+ 1,
+ ~0u,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementReq, sql_query_),
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, catalog_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, schema_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, table_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, column_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, label_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, data_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, is_nullable_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, precision_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, scale_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, signed__),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, display_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, is_aliased_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, searchability_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, updatability_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, auto_increment_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, case_sensitivity_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, sortable_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, class_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ResultColumnMetadata, is_currency_),
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 10,
+ 7,
+ 8,
+ 11,
+ 9,
+ 12,
+ 14,
+ 15,
+ 13,
+ 16,
+ 17,
+ 6,
+ 18,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatementHandle, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatementHandle, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatementHandle, server_info_),
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatement, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatement, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatement, columns_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::PreparedStatement, server_handle_),
+ ~0u,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementResp, prepared_statement_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::CreatePreparedStatementResp, error_),
+ 2,
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaReq, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaReq, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ConvertSupport, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ConvertSupport, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ConvertSupport, from_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ConvertSupport, to_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaResp, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaResp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaResp, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaResp, server_meta_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::GetServerMetaResp, error_),
+ 2,
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, all_tables_selectable_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, blob_included_in_max_row_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, catalog_at_start_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, catalog_separator_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, catalog_term_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, collate_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, column_aliasing_supported_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, convert_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, correlation_names_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, date_time_functions_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, date_time_literals_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, group_by_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, identifier_casing_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, identifier_quote_string_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, like_escape_clause_supported_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_binary_literal_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_catalog_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_char_literal_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_column_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_columns_in_group_by_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_columns_in_order_by_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_columns_in_select_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_cursor_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_logical_lob_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_row_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_schema_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_statement_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_statements_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_table_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_tables_in_select_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, max_user_name_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, null_collation_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, null_plus_non_null_equals_null_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, numeric_functions_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, order_by_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, outer_join_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, quoted_identifier_casing_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, read_only_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, schema_term_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, search_escape_string_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, select_for_update_supported_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, special_characters_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, sql_keywords_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, string_functions_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, subquery_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, system_functions_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, table_term_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, transaction_supported_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, union_support_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::ServerMeta, current_schema_),
+ 8,
+ 9,
+ 10,
+ 0,
+ 1,
+ ~0u,
+ 11,
+ ~0u,
+ 36,
+ ~0u,
+ ~0u,
+ 37,
+ 12,
+ 2,
+ 29,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 33,
+ 30,
+ ~0u,
+ ~0u,
+ ~0u,
+ 34,
+ 31,
+ 3,
+ 4,
+ 32,
+ 5,
+ ~0u,
+ ~0u,
+ ~0u,
+ ~0u,
+ 6,
+ 35,
+ ~0u,
+ 7,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, results_mode_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, plan_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, fragments_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::user::RunQuery, prepared_statement_handle_),
+ 2,
+ 3,
+ 0,
+ ~0u,
+ 1,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 7, sizeof(::exec::user::Property)},
+ { 9, 15, sizeof(::exec::user::UserProperties)},
+ { 16, 29, sizeof(::exec::user::RpcEndpointInfos)},
+ { 37, 51, sizeof(::exec::user::UserToBitHandshake)},
+ { 60, 67, sizeof(::exec::user::RequestResults)},
+ { 69, 77, sizeof(::exec::user::GetQueryPlanFragments)},
+ { 80, 89, sizeof(::exec::user::QueryPlanFragments)},
+ { 93, 107, sizeof(::exec::user::BitToUserHandshake)},
+ { 116, 123, sizeof(::exec::user::LikeFilter)},
+ { 125, 131, sizeof(::exec::user::GetCatalogsReq)},
+ { 132, 140, sizeof(::exec::user::CatalogMetadata)},
+ { 143, 151, sizeof(::exec::user::GetCatalogsResp)},
+ { 154, 161, sizeof(::exec::user::GetSchemasReq)},
+ { 163, 173, sizeof(::exec::user::SchemaMetadata)},
+ { 178, 186, sizeof(::exec::user::GetSchemasResp)},
+ { 189, 198, sizeof(::exec::user::GetTablesReq)},
+ { 202, 211, sizeof(::exec::user::TableMetadata)},
+ { 215, 223, sizeof(::exec::user::GetTablesResp)},
+ { 226, 235, sizeof(::exec::user::GetColumnsReq)},
+ { 239, 261, sizeof(::exec::user::ColumnMetadata)},
+ { 278, 286, sizeof(::exec::user::GetColumnsResp)},
+ { 289, 295, sizeof(::exec::user::CreatePreparedStatementReq)},
+ { 296, 320, sizeof(::exec::user::ResultColumnMetadata)},
+ { 339, 345, sizeof(::exec::user::PreparedStatementHandle)},
+ { 346, 353, sizeof(::exec::user::PreparedStatement)},
+ { 355, 363, sizeof(::exec::user::CreatePreparedStatementResp)},
+ { 366, 371, sizeof(::exec::user::GetServerMetaReq)},
+ { 371, 378, sizeof(::exec::user::ConvertSupport)},
+ { 380, 388, sizeof(::exec::user::GetServerMetaResp)},
+ { 391, 446, sizeof(::exec::user::ServerMeta)},
+ { 496, 506, sizeof(::exec::user::RunQuery)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_Property_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_UserProperties_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_RpcEndpointInfos_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_UserToBitHandshake_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_RequestResults_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetQueryPlanFragments_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_QueryPlanFragments_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_BitToUserHandshake_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_LikeFilter_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetCatalogsReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_CatalogMetadata_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetCatalogsResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetSchemasReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_SchemaMetadata_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetSchemasResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetTablesReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_TableMetadata_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetTablesResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetColumnsReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_ColumnMetadata_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetColumnsResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_CreatePreparedStatementReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_ResultColumnMetadata_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_PreparedStatementHandle_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_PreparedStatement_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_CreatePreparedStatementResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetServerMetaReq_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_ConvertSupport_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_GetServerMetaResp_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_ServerMeta_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::user::_RunQuery_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "User.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 31);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\nUser.proto\022\texec.user\032\017SchemaDef.proto"
+ "\032\013Types.proto\032\023UserBitShared.proto\032\rBitD"
+ "ata.proto\032\020BitControl.proto\032\025ExecutionPr"
+ "otos.proto\"&\n\010Property\022\013\n\003key\030\001 \002(\t\022\r\n\005v"
+ "alue\030\002 \002(\t\"9\n\016UserProperties\022\'\n\nproperti"
+ "es\030\001 \003(\0132\023.exec.user.Property\"\267\001\n\020RpcEnd"
+ "pointInfos\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001("
+ "\t\022\024\n\014majorVersion\030\003 \001(\r\022\024\n\014minorVersion\030"
+ "\004 \001(\r\022\024\n\014patchVersion\030\005 \001(\r\022\023\n\013applicati"
+ "on\030\006 \001(\t\022\023\n\013buildNumber\030\007 \001(\r\022\030\n\020version"
+ "Qualifier\030\010 \001(\t\"\375\002\n\022UserToBitHandshake\022."
+ "\n\007channel\030\001 \001(\0162\027.exec.shared.RpcChannel"
+ ":\004USER\022\031\n\021support_listening\030\002 \001(\010\022\023\n\013rpc"
+ "_version\030\003 \001(\005\0221\n\013credentials\030\004 \001(\0132\034.ex"
+ "ec.shared.UserCredentials\022-\n\nproperties\030"
+ "\005 \001(\0132\031.exec.user.UserProperties\022$\n\025supp"
+ "ort_complex_types\030\006 \001(\010:\005false\022\036\n\017suppor"
+ "t_timeout\030\007 \001(\010:\005false\0221\n\014client_infos\030\010"
+ " \001(\0132\033.exec.user.RpcEndpointInfos\022,\n\014sas"
+ "l_support\030\t \001(\0162\026.exec.user.SaslSupport\""
+ "S\n\016RequestResults\022&\n\010query_id\030\001 \001(\0132\024.ex"
+ "ec.shared.QueryId\022\031\n\021maximum_responses\030\002"
+ " \001(\005\"g\n\025GetQueryPlanFragments\022\r\n\005query\030\001"
+ " \002(\t\022$\n\004type\030\002 \001(\0162\026.exec.shared.QueryTy"
+ "pe\022\031\n\nsplit_plan\030\003 \001(\010:\005false\"\316\001\n\022QueryP"
+ "lanFragments\0223\n\006status\030\001 \002(\0162#.exec.shar"
+ "ed.QueryResult.QueryState\022&\n\010query_id\030\002 "
+ "\001(\0132\024.exec.shared.QueryId\0221\n\tfragments\030\003"
+ " \003(\0132\036.exec.bit.control.PlanFragment\022(\n\005"
+ "error\030\004 \001(\0132\031.exec.shared.DrillPBError\"\253"
+ "\002\n\022BitToUserHandshake\022\023\n\013rpc_version\030\002 \001"
+ "(\005\022*\n\006status\030\003 \001(\0162\032.exec.user.Handshake"
+ "Status\022\017\n\007errorId\030\004 \001(\t\022\024\n\014errorMessage\030"
+ "\005 \001(\t\0221\n\014server_infos\030\006 \001(\0132\033.exec.user."
+ "RpcEndpointInfos\022 \n\030authenticationMechan"
+ "isms\030\007 \003(\t\022-\n\021supported_methods\030\010 \003(\0162\022."
+ "exec.user.RpcType\022\021\n\tencrypted\030\t \001(\010\022\026\n\016"
+ "maxWrappedSize\030\n \001(\005\"-\n\nLikeFilter\022\017\n\007pa"
+ "ttern\030\001 \001(\t\022\016\n\006escape\030\002 \001(\t\"D\n\016GetCatalo"
+ "gsReq\0222\n\023catalog_name_filter\030\001 \001(\0132\025.exe"
+ "c.user.LikeFilter\"M\n\017CatalogMetadata\022\024\n\014"
+ "catalog_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022"
+ "\017\n\007connect\030\003 \001(\t\"\223\001\n\017GetCatalogsResp\022(\n\006"
+ "status\030\001 \001(\0162\030.exec.user.RequestStatus\022,"
+ "\n\010catalogs\030\002 \003(\0132\032.exec.user.CatalogMeta"
+ "data\022(\n\005error\030\003 \001(\0132\031.exec.shared.DrillP"
+ "BError\"v\n\rGetSchemasReq\0222\n\023catalog_name_"
+ "filter\030\001 \001(\0132\025.exec.user.LikeFilter\0221\n\022s"
+ "chema_name_filter\030\002 \001(\0132\025.exec.user.Like"
+ "Filter\"i\n\016SchemaMetadata\022\024\n\014catalog_name"
+ "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\r\n\005owner\030\003 \001"
+ "(\t\022\014\n\004type\030\004 \001(\t\022\017\n\007mutable\030\005 \001(\t\"\220\001\n\016Ge"
+ "tSchemasResp\022(\n\006status\030\001 \001(\0162\030.exec.user"
+ ".RequestStatus\022*\n\007schemas\030\002 \003(\0132\031.exec.u"
+ "ser.SchemaMetadata\022(\n\005error\030\003 \001(\0132\031.exec"
+ ".shared.DrillPBError\"\302\001\n\014GetTablesReq\0222\n"
+ "\023catalog_name_filter\030\001 \001(\0132\025.exec.user.L"
+ "ikeFilter\0221\n\022schema_name_filter\030\002 \001(\0132\025."
+ "exec.user.LikeFilter\0220\n\021table_name_filte"
+ "r\030\003 \001(\0132\025.exec.user.LikeFilter\022\031\n\021table_"
+ "type_filter\030\004 \003(\t\"\\\n\rTableMetadata\022\024\n\014ca"
+ "talog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n"
+ "\ntable_name\030\003 \001(\t\022\014\n\004type\030\004 \001(\t\"\215\001\n\rGetT"
+ "ablesResp\022(\n\006status\030\001 \001(\0162\030.exec.user.Re"
+ "questStatus\022(\n\006tables\030\002 \003(\0132\030.exec.user."
+ "TableMetadata\022(\n\005error\030\003 \001(\0132\031.exec.shar"
+ "ed.DrillPBError\"\333\001\n\rGetColumnsReq\0222\n\023cat"
+ "alog_name_filter\030\001 \001(\0132\025.exec.user.LikeF"
+ "ilter\0221\n\022schema_name_filter\030\002 \001(\0132\025.exec"
+ ".user.LikeFilter\0220\n\021table_name_filter\030\003 "
+ "\001(\0132\025.exec.user.LikeFilter\0221\n\022column_nam"
+ "e_filter\030\004 \001(\0132\025.exec.user.LikeFilter\"\251\003"
+ "\n\016ColumnMetadata\022\024\n\014catalog_name\030\001 \001(\t\022\023"
+ "\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022"
+ "\023\n\013column_name\030\004 \001(\t\022\030\n\020ordinal_position"
+ "\030\005 \001(\005\022\025\n\rdefault_value\030\006 \001(\t\022\023\n\013is_null"
+ "able\030\007 \001(\010\022\021\n\tdata_type\030\010 \001(\t\022\027\n\017char_ma"
+ "x_length\030\t \001(\005\022\031\n\021char_octet_length\030\n \001("
+ "\005\022\031\n\021numeric_precision\030\013 \001(\005\022\037\n\027numeric_"
+ "precision_radix\030\014 \001(\005\022\025\n\rnumeric_scale\030\r"
+ " \001(\005\022\033\n\023date_time_precision\030\016 \001(\005\022\025\n\rint"
+ "erval_type\030\017 \001(\t\022\032\n\022interval_precision\030\020"
+ " \001(\005\022\023\n\013column_size\030\021 \001(\005\"\220\001\n\016GetColumns"
+ "Resp\022(\n\006status\030\001 \001(\0162\030.exec.user.Request"
+ "Status\022*\n\007columns\030\002 \003(\0132\031.exec.user.Colu"
+ "mnMetadata\022(\n\005error\030\003 \001(\0132\031.exec.shared."
+ "DrillPBError\"/\n\032CreatePreparedStatementR"
+ "eq\022\021\n\tsql_query\030\001 \001(\t\"\326\003\n\024ResultColumnMe"
+ "tadata\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
+ "ame\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013column_"
+ "name\030\004 \001(\t\022\r\n\005label\030\005 \001(\t\022\021\n\tdata_type\030\006"
+ " \001(\t\022\023\n\013is_nullable\030\007 \001(\010\022\021\n\tprecision\030\010"
+ " \001(\005\022\r\n\005scale\030\t \001(\005\022\016\n\006signed\030\n \001(\010\022\024\n\014d"
+ "isplay_size\030\013 \001(\005\022\022\n\nis_aliased\030\014 \001(\010\0225\n"
+ "\rsearchability\030\r \001(\0162\036.exec.user.ColumnS"
+ "earchability\0223\n\014updatability\030\016 \001(\0162\035.exe"
+ "c.user.ColumnUpdatability\022\026\n\016auto_increm"
+ "ent\030\017 \001(\010\022\030\n\020case_sensitivity\030\020 \001(\010\022\020\n\010s"
+ "ortable\030\021 \001(\010\022\022\n\nclass_name\030\022 \001(\t\022\023\n\013is_"
+ "currency\030\024 \001(\010\".\n\027PreparedStatementHandl"
+ "e\022\023\n\013server_info\030\001 \001(\014\"\200\001\n\021PreparedState"
+ "ment\0220\n\007columns\030\001 \003(\0132\037.exec.user.Result"
+ "ColumnMetadata\0229\n\rserver_handle\030\002 \001(\0132\"."
+ "exec.user.PreparedStatementHandle\"\253\001\n\033Cr"
+ "eatePreparedStatementResp\022(\n\006status\030\001 \001("
+ "\0162\030.exec.user.RequestStatus\0228\n\022prepared_"
+ "statement\030\002 \001(\0132\034.exec.user.PreparedStat"
+ "ement\022(\n\005error\030\003 \001(\0132\031.exec.shared.Drill"
+ "PBError\"\022\n\020GetServerMetaReq\"P\n\016ConvertSu"
+ "pport\022\037\n\004from\030\001 \002(\0162\021.common.MinorType\022\035"
+ "\n\002to\030\002 \002(\0162\021.common.MinorType\"\223\001\n\021GetSer"
+ "verMetaResp\022(\n\006status\030\001 \001(\0162\030.exec.user."
+ "RequestStatus\022*\n\013server_meta\030\002 \001(\0132\025.exe"
+ "c.user.ServerMeta\022(\n\005error\030\003 \001(\0132\031.exec."
+ "shared.DrillPBError\"\227\016\n\nServerMeta\022\035\n\025al"
+ "l_tables_selectable\030\001 \001(\010\022%\n\035blob_includ"
+ "ed_in_max_row_size\030\002 \001(\010\022\030\n\020catalog_at_s"
+ "tart\030\003 \001(\010\022\031\n\021catalog_separator\030\004 \001(\t\022\024\n"
+ "\014catalog_term\030\005 \001(\t\0222\n\017collate_support\030\006"
+ " \003(\0162\031.exec.user.CollateSupport\022!\n\031colum"
+ "n_aliasing_supported\030\007 \001(\010\0222\n\017convert_su"
+ "pport\030\010 \003(\0132\031.exec.user.ConvertSupport\022E"
+ "\n\031correlation_names_support\030\t \001(\0162\".exec"
+ ".user.CorrelationNamesSupport\022\033\n\023date_ti"
+ "me_functions\030\n \003(\t\022F\n\032date_time_literals"
+ "_support\030\013 \003(\0162\".exec.user.DateTimeLiter"
+ "alsSupport\0223\n\020group_by_support\030\014 \001(\0162\031.e"
+ "xec.user.GroupBySupport\0226\n\021identifier_ca"
+ "sing\030\r \001(\0162\033.exec.user.IdentifierCasing\022"
+ "\037\n\027identifier_quote_string\030\016 \001(\t\022$\n\034like"
+ "_escape_clause_supported\030\017 \001(\010\022!\n\031max_bi"
+ "nary_literal_length\030\020 \001(\r\022\037\n\027max_catalog"
+ "_name_length\030\021 \001(\r\022\037\n\027max_char_literal_l"
+ "ength\030\022 \001(\r\022\036\n\026max_column_name_length\030\023 "
+ "\001(\r\022\037\n\027max_columns_in_group_by\030\024 \001(\r\022\037\n\027"
+ "max_columns_in_order_by\030\025 \001(\r\022\035\n\025max_col"
+ "umns_in_select\030\026 \001(\r\022\036\n\026max_cursor_name_"
+ "length\030\027 \001(\r\022\034\n\024max_logical_lob_size\030\030 \001"
+ "(\r\022\024\n\014max_row_size\030\031 \001(\r\022\036\n\026max_schema_n"
+ "ame_length\030\032 \001(\r\022\034\n\024max_statement_length"
+ "\030\033 \001(\r\022\026\n\016max_statements\030\034 \001(\r\022\035\n\025max_ta"
+ "ble_name_length\030\035 \001(\r\022\034\n\024max_tables_in_s"
+ "elect\030\036 \001(\r\022\034\n\024max_user_name_length\030\037 \001("
+ "\r\0220\n\016null_collation\030 \001(\0162\030.exec.user.Nu"
+ "llCollation\022&\n\036null_plus_non_null_equals"
+ "_null\030! \001(\010\022\031\n\021numeric_functions\030\" \003(\t\0223"
+ "\n\020order_by_support\030# \003(\0162\031.exec.user.Ord"
+ "erBySupport\0227\n\022outer_join_support\030$ \003(\0162"
+ "\033.exec.user.OuterJoinSupport\022=\n\030quoted_i"
+ "dentifier_casing\030% \001(\0162\033.exec.user.Ident"
+ "ifierCasing\022\021\n\tread_only\030& \001(\010\022\023\n\013schema"
+ "_term\030\' \001(\t\022\034\n\024search_escape_string\030( \001("
+ "\t\022#\n\033select_for_update_supported\030) \001(\010\022\032"
+ "\n\022special_characters\030* \001(\t\022\024\n\014sql_keywor"
+ "ds\030+ \003(\t\022\030\n\020string_functions\030, \003(\t\0224\n\020su"
+ "bquery_support\030- \003(\0162\032.exec.user.SubQuer"
+ "ySupport\022\030\n\020system_functions\030. \003(\t\022\022\n\nta"
+ "ble_term\030/ \001(\t\022\035\n\025transaction_supported\030"
+ "0 \001(\010\022.\n\runion_support\0301 \003(\0162\027.exec.user"
+ ".UnionSupport\022\026\n\016current_schema\0302 \001(\t\"\353\001"
+ "\n\010RunQuery\0221\n\014results_mode\030\001 \001(\0162\033.exec."
+ "user.QueryResultsMode\022$\n\004type\030\002 \001(\0162\026.ex"
+ "ec.shared.QueryType\022\014\n\004plan\030\003 \001(\t\0221\n\tfra"
+ "gments\030\004 \003(\0132\036.exec.bit.control.PlanFrag"
+ "ment\022E\n\031prepared_statement_handle\030\005 \001(\0132"
+ "\".exec.user.PreparedStatementHandle*\320\003\n\007"
+ "RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013\n\007GOODB"
+ "YE\020\002\022\r\n\tRUN_QUERY\020\003\022\020\n\014CANCEL_QUERY\020\004\022\023\n"
+ "\017REQUEST_RESULTS\020\005\022\027\n\023RESUME_PAUSED_QUER"
+ "Y\020\013\022\034\n\030GET_QUERY_PLAN_FRAGMENTS\020\014\022\020\n\014GET"
+ "_CATALOGS\020\016\022\017\n\013GET_SCHEMAS\020\017\022\016\n\nGET_TABL"
+ "ES\020\020\022\017\n\013GET_COLUMNS\020\021\022\035\n\031CREATE_PREPARED"
+ "_STATEMENT\020\026\022\023\n\017GET_SERVER_META\020\010\022\016\n\nQUE"
+ "RY_DATA\020\006\022\020\n\014QUERY_HANDLE\020\007\022\030\n\024QUERY_PLA"
+ "N_FRAGMENTS\020\r\022\014\n\010CATALOGS\020\022\022\013\n\007SCHEMAS\020\023"
+ "\022\n\n\006TABLES\020\024\022\013\n\007COLUMNS\020\025\022\026\n\022PREPARED_ST"
+ "ATEMENT\020\027\022\017\n\013SERVER_META\020\t\022\020\n\014QUERY_RESU"
+ "LT\020\n\022\020\n\014SASL_MESSAGE\020\030*H\n\013SaslSupport\022\030\n"
+ "\024UNKNOWN_SASL_SUPPORT\020\000\022\r\n\tSASL_AUTH\020\001\022\020"
+ "\n\014SASL_PRIVACY\020\002*#\n\020QueryResultsMode\022\017\n\013"
+ "STREAM_FULL\020\001*q\n\017HandshakeStatus\022\013\n\007SUCC"
+ "ESS\020\001\022\030\n\024RPC_VERSION_MISMATCH\020\002\022\017\n\013AUTH_"
+ "FAILED\020\003\022\023\n\017UNKNOWN_FAILURE\020\004\022\021\n\rAUTH_RE"
+ "QUIRED\020\005*D\n\rRequestStatus\022\022\n\016UNKNOWN_STA"
+ "TUS\020\000\022\006\n\002OK\020\001\022\n\n\006FAILED\020\002\022\013\n\007TIMEOUT\020\003*Y"
+ "\n\023ColumnSearchability\022\031\n\025UNKNOWN_SEARCHA"
+ "BILITY\020\000\022\010\n\004NONE\020\001\022\010\n\004CHAR\020\002\022\n\n\006NUMBER\020\003"
+ "\022\007\n\003ALL\020\004*K\n\022ColumnUpdatability\022\030\n\024UNKNO"
+ "WN_UPDATABILITY\020\000\022\r\n\tREAD_ONLY\020\001\022\014\n\010WRIT"
+ "ABLE\020\002*1\n\016CollateSupport\022\016\n\nCS_UNKNOWN\020\000"
+ "\022\017\n\013CS_GROUP_BY\020\001*J\n\027CorrelationNamesSup"
+ "port\022\013\n\007CN_NONE\020\001\022\026\n\022CN_DIFFERENT_NAMES\020"
+ "\002\022\n\n\006CN_ANY\020\003*\271\003\n\027DateTimeLiteralsSuppor"
+ "t\022\016\n\nDL_UNKNOWN\020\000\022\013\n\007DL_DATE\020\001\022\013\n\007DL_TIM"
+ "E\020\002\022\020\n\014DL_TIMESTAMP\020\003\022\024\n\020DL_INTERVAL_YEA"
+ "R\020\004\022\025\n\021DL_INTERVAL_MONTH\020\005\022\023\n\017DL_INTERVA"
+ "L_DAY\020\006\022\024\n\020DL_INTERVAL_HOUR\020\007\022\026\n\022DL_INTE"
+ "RVAL_MINUTE\020\010\022\026\n\022DL_INTERVAL_SECOND\020\t\022\035\n"
+ "\031DL_INTERVAL_YEAR_TO_MONTH\020\n\022\033\n\027DL_INTER"
+ "VAL_DAY_TO_HOUR\020\013\022\035\n\031DL_INTERVAL_DAY_TO_"
+ "MINUTE\020\014\022\035\n\031DL_INTERVAL_DAY_TO_SECOND\020\r\022"
+ "\036\n\032DL_INTERVAL_HOUR_TO_MINUTE\020\016\022\036\n\032DL_IN"
+ "TERVAL_HOUR_TO_SECOND\020\017\022 \n\034DL_INTERVAL_M"
+ "INUTE_TO_SECOND\020\020*Y\n\016GroupBySupport\022\013\n\007G"
+ "B_NONE\020\001\022\022\n\016GB_SELECT_ONLY\020\002\022\024\n\020GB_BEYON"
+ "D_SELECT\020\003\022\020\n\014GB_UNRELATED\020\004*x\n\020Identifi"
+ "erCasing\022\016\n\nIC_UNKNOWN\020\000\022\023\n\017IC_STORES_LO"
+ "WER\020\001\022\023\n\017IC_STORES_MIXED\020\002\022\023\n\017IC_STORES_"
+ "UPPER\020\003\022\025\n\021IC_SUPPORTS_MIXED\020\004*X\n\rNullCo"
+ "llation\022\016\n\nNC_UNKNOWN\020\000\022\017\n\013NC_AT_START\020\001"
+ "\022\r\n\tNC_AT_END\020\002\022\013\n\007NC_HIGH\020\003\022\n\n\006NC_LOW\020\004"
+ "*E\n\016OrderBySupport\022\016\n\nOB_UNKNOWN\020\000\022\020\n\014OB"
+ "_UNRELATED\020\001\022\021\n\rOB_EXPRESSION\020\002*\226\001\n\020Oute"
+ "rJoinSupport\022\016\n\nOJ_UNKNOWN\020\000\022\013\n\007OJ_LEFT\020"
+ "\001\022\014\n\010OJ_RIGHT\020\002\022\013\n\007OJ_FULL\020\003\022\r\n\tOJ_NESTE"
+ "D\020\004\022\022\n\016OJ_NOT_ORDERED\020\005\022\014\n\010OJ_INNER\020\006\022\031\n"
+ "\025OJ_ALL_COMPARISON_OPS\020\007*\204\001\n\017SubQuerySup"
+ "port\022\016\n\nSQ_UNKNOWN\020\000\022\021\n\rSQ_CORRELATED\020\001\022"
+ "\024\n\020SQ_IN_COMPARISON\020\002\022\020\n\014SQ_IN_EXISTS\020\003\022"
+ "\020\n\014SQ_IN_INSERT\020\004\022\024\n\020SQ_IN_QUANTIFIED\020\005*"
+ ";\n\014UnionSupport\022\r\n\tU_UNKNOWN\020\000\022\013\n\007U_UNIO"
+ "N\020\001\022\017\n\013U_UNION_ALL\020\002B+\n\033org.apache.drill"
+ ".exec.protoB\nUserProtosH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\nUser.proto\022\texec.user\032\017SchemaDef.proto"
- "\032\013Types.proto\032\023UserBitShared.proto\032\rBitD"
- "ata.proto\032\020BitControl.proto\032\025ExecutionPr"
- "otos.proto\"&\n\010Property\022\013\n\003key\030\001 \002(\t\022\r\n\005v"
- "alue\030\002 \002(\t\"9\n\016UserProperties\022\'\n\nproperti"
- "es\030\001 \003(\0132\023.exec.user.Property\"\267\001\n\020RpcEnd"
- "pointInfos\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001("
- "\t\022\024\n\014majorVersion\030\003 \001(\r\022\024\n\014minorVersion\030"
- "\004 \001(\r\022\024\n\014patchVersion\030\005 \001(\r\022\023\n\013applicati"
- "on\030\006 \001(\t\022\023\n\013buildNumber\030\007 \001(\r\022\030\n\020version"
- "Qualifier\030\010 \001(\t\"\375\002\n\022UserToBitHandshake\022."
- "\n\007channel\030\001 \001(\0162\027.exec.shared.RpcChannel"
- ":\004USER\022\031\n\021support_listening\030\002 \001(\010\022\023\n\013rpc"
- "_version\030\003 \001(\005\0221\n\013credentials\030\004 \001(\0132\034.ex"
- "ec.shared.UserCredentials\022-\n\nproperties\030"
- "\005 \001(\0132\031.exec.user.UserProperties\022$\n\025supp"
- "ort_complex_types\030\006 \001(\010:\005false\022\036\n\017suppor"
- "t_timeout\030\007 \001(\010:\005false\0221\n\014client_infos\030\010"
- " \001(\0132\033.exec.user.RpcEndpointInfos\022,\n\014sas"
- "l_support\030\t \001(\0162\026.exec.user.SaslSupport\""
- "S\n\016RequestResults\022&\n\010query_id\030\001 \001(\0132\024.ex"
- "ec.shared.QueryId\022\031\n\021maximum_responses\030\002"
- " \001(\005\"g\n\025GetQueryPlanFragments\022\r\n\005query\030\001"
- " \002(\t\022$\n\004type\030\002 \001(\0162\026.exec.shared.QueryTy"
- "pe\022\031\n\nsplit_plan\030\003 \001(\010:\005false\"\316\001\n\022QueryP"
- "lanFragments\0223\n\006status\030\001 \002(\0162#.exec.shar"
- "ed.QueryResult.QueryState\022&\n\010query_id\030\002 "
- "\001(\0132\024.exec.shared.QueryId\0221\n\tfragments\030\003"
- " \003(\0132\036.exec.bit.control.PlanFragment\022(\n\005"
- "error\030\004 \001(\0132\031.exec.shared.DrillPBError\"\253"
- "\002\n\022BitToUserHandshake\022\023\n\013rpc_version\030\002 \001"
- "(\005\022*\n\006status\030\003 \001(\0162\032.exec.user.Handshake"
- "Status\022\017\n\007errorId\030\004 \001(\t\022\024\n\014errorMessage\030"
- "\005 \001(\t\0221\n\014server_infos\030\006 \001(\0132\033.exec.user."
- "RpcEndpointInfos\022 \n\030authenticationMechan"
- "isms\030\007 \003(\t\022-\n\021supported_methods\030\010 \003(\0162\022."
- "exec.user.RpcType\022\021\n\tencrypted\030\t \001(\010\022\026\n\016"
- "maxWrappedSize\030\n \001(\005\"-\n\nLikeFilter\022\017\n\007pa"
- "ttern\030\001 \001(\t\022\016\n\006escape\030\002 \001(\t\"D\n\016GetCatalo"
- "gsReq\0222\n\023catalog_name_filter\030\001 \001(\0132\025.exe"
- "c.user.LikeFilter\"M\n\017CatalogMetadata\022\024\n\014"
- "catalog_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022"
- "\017\n\007connect\030\003 \001(\t\"\223\001\n\017GetCatalogsResp\022(\n\006"
- "status\030\001 \001(\0162\030.exec.user.RequestStatus\022,"
- "\n\010catalogs\030\002 \003(\0132\032.exec.user.CatalogMeta"
- "data\022(\n\005error\030\003 \001(\0132\031.exec.shared.DrillP"
- "BError\"v\n\rGetSchemasReq\0222\n\023catalog_name_"
- "filter\030\001 \001(\0132\025.exec.user.LikeFilter\0221\n\022s"
- "chema_name_filter\030\002 \001(\0132\025.exec.user.Like"
- "Filter\"i\n\016SchemaMetadata\022\024\n\014catalog_name"
- "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\r\n\005owner\030\003 \001"
- "(\t\022\014\n\004type\030\004 \001(\t\022\017\n\007mutable\030\005 \001(\t\"\220\001\n\016Ge"
- "tSchemasResp\022(\n\006status\030\001 \001(\0162\030.exec.user"
- ".RequestStatus\022*\n\007schemas\030\002 \003(\0132\031.exec.u"
- "ser.SchemaMetadata\022(\n\005error\030\003 \001(\0132\031.exec"
- ".shared.DrillPBError\"\302\001\n\014GetTablesReq\0222\n"
- "\023catalog_name_filter\030\001 \001(\0132\025.exec.user.L"
- "ikeFilter\0221\n\022schema_name_filter\030\002 \001(\0132\025."
- "exec.user.LikeFilter\0220\n\021table_name_filte"
- "r\030\003 \001(\0132\025.exec.user.LikeFilter\022\031\n\021table_"
- "type_filter\030\004 \003(\t\"\\\n\rTableMetadata\022\024\n\014ca"
- "talog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n"
- "\ntable_name\030\003 \001(\t\022\014\n\004type\030\004 \001(\t\"\215\001\n\rGetT"
- "ablesResp\022(\n\006status\030\001 \001(\0162\030.exec.user.Re"
- "questStatus\022(\n\006tables\030\002 \003(\0132\030.exec.user."
- "TableMetadata\022(\n\005error\030\003 \001(\0132\031.exec.shar"
- "ed.DrillPBError\"\333\001\n\rGetColumnsReq\0222\n\023cat"
- "alog_name_filter\030\001 \001(\0132\025.exec.user.LikeF"
- "ilter\0221\n\022schema_name_filter\030\002 \001(\0132\025.exec"
- ".user.LikeFilter\0220\n\021table_name_filter\030\003 "
- "\001(\0132\025.exec.user.LikeFilter\0221\n\022column_nam"
- "e_filter\030\004 \001(\0132\025.exec.user.LikeFilter\"\251\003"
- "\n\016ColumnMetadata\022\024\n\014catalog_name\030\001 \001(\t\022\023"
- "\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022"
- "\023\n\013column_name\030\004 \001(\t\022\030\n\020ordinal_position"
- "\030\005 \001(\005\022\025\n\rdefault_value\030\006 \001(\t\022\023\n\013is_null"
- "able\030\007 \001(\010\022\021\n\tdata_type\030\010 \001(\t\022\027\n\017char_ma"
- "x_length\030\t \001(\005\022\031\n\021char_octet_length\030\n \001("
- "\005\022\031\n\021numeric_precision\030\013 \001(\005\022\037\n\027numeric_"
- "precision_radix\030\014 \001(\005\022\025\n\rnumeric_scale\030\r"
- " \001(\005\022\033\n\023date_time_precision\030\016 \001(\005\022\025\n\rint"
- "erval_type\030\017 \001(\t\022\032\n\022interval_precision\030\020"
- " \001(\005\022\023\n\013column_size\030\021 \001(\005\"\220\001\n\016GetColumns"
- "Resp\022(\n\006status\030\001 \001(\0162\030.exec.user.Request"
- "Status\022*\n\007columns\030\002 \003(\0132\031.exec.user.Colu"
- "mnMetadata\022(\n\005error\030\003 \001(\0132\031.exec.shared."
- "DrillPBError\"/\n\032CreatePreparedStatementR"
- "eq\022\021\n\tsql_query\030\001 \001(\t\"\326\003\n\024ResultColumnMe"
- "tadata\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
- "ame\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013column_"
- "name\030\004 \001(\t\022\r\n\005label\030\005 \001(\t\022\021\n\tdata_type\030\006"
- " \001(\t\022\023\n\013is_nullable\030\007 \001(\010\022\021\n\tprecision\030\010"
- " \001(\005\022\r\n\005scale\030\t \001(\005\022\016\n\006signed\030\n \001(\010\022\024\n\014d"
- "isplay_size\030\013 \001(\005\022\022\n\nis_aliased\030\014 \001(\010\0225\n"
- "\rsearchability\030\r \001(\0162\036.exec.user.ColumnS"
- "earchability\0223\n\014updatability\030\016 \001(\0162\035.exe"
- "c.user.ColumnUpdatability\022\026\n\016auto_increm"
- "ent\030\017 \001(\010\022\030\n\020case_sensitivity\030\020 \001(\010\022\020\n\010s"
- "ortable\030\021 \001(\010\022\022\n\nclass_name\030\022 \001(\t\022\023\n\013is_"
- "currency\030\024 \001(\010\".\n\027PreparedStatementHandl"
- "e\022\023\n\013server_info\030\001 \001(\014\"\200\001\n\021PreparedState"
- "ment\0220\n\007columns\030\001 \003(\0132\037.exec.user.Result"
- "ColumnMetadata\0229\n\rserver_handle\030\002 \001(\0132\"."
- "exec.user.PreparedStatementHandle\"\253\001\n\033Cr"
- "eatePreparedStatementResp\022(\n\006status\030\001 \001("
- "\0162\030.exec.user.RequestStatus\0228\n\022prepared_"
- "statement\030\002 \001(\0132\034.exec.user.PreparedStat"
- "ement\022(\n\005error\030\003 \001(\0132\031.exec.shared.Drill"
- "PBError\"\022\n\020GetServerMetaReq\"P\n\016ConvertSu"
- "pport\022\037\n\004from\030\001 \002(\0162\021.common.MinorType\022\035"
- "\n\002to\030\002 \002(\0162\021.common.MinorType\"\223\001\n\021GetSer"
- "verMetaResp\022(\n\006status\030\001 \001(\0162\030.exec.user."
- "RequestStatus\022*\n\013server_meta\030\002 \001(\0132\025.exe"
- "c.user.ServerMeta\022(\n\005error\030\003 \001(\0132\031.exec."
- "shared.DrillPBError\"\227\016\n\nServerMeta\022\035\n\025al"
- "l_tables_selectable\030\001 \001(\010\022%\n\035blob_includ"
- "ed_in_max_row_size\030\002 \001(\010\022\030\n\020catalog_at_s"
- "tart\030\003 \001(\010\022\031\n\021catalog_separator\030\004 \001(\t\022\024\n"
- "\014catalog_term\030\005 \001(\t\0222\n\017collate_support\030\006"
- " \003(\0162\031.exec.user.CollateSupport\022!\n\031colum"
- "n_aliasing_supported\030\007 \001(\010\0222\n\017convert_su"
- "pport\030\010 \003(\0132\031.exec.user.ConvertSupport\022E"
- "\n\031correlation_names_support\030\t \001(\0162\".exec"
- ".user.CorrelationNamesSupport\022\033\n\023date_ti"
- "me_functions\030\n \003(\t\022F\n\032date_time_literals"
- "_support\030\013 \003(\0162\".exec.user.DateTimeLiter"
- "alsSupport\0223\n\020group_by_support\030\014 \001(\0162\031.e"
- "xec.user.GroupBySupport\0226\n\021identifier_ca"
- "sing\030\r \001(\0162\033.exec.user.IdentifierCasing\022"
- "\037\n\027identifier_quote_string\030\016 \001(\t\022$\n\034like"
- "_escape_clause_supported\030\017 \001(\010\022!\n\031max_bi"
- "nary_literal_length\030\020 \001(\r\022\037\n\027max_catalog"
- "_name_length\030\021 \001(\r\022\037\n\027max_char_literal_l"
- "ength\030\022 \001(\r\022\036\n\026max_column_name_length\030\023 "
- "\001(\r\022\037\n\027max_columns_in_group_by\030\024 \001(\r\022\037\n\027"
- "max_columns_in_order_by\030\025 \001(\r\022\035\n\025max_col"
- "umns_in_select\030\026 \001(\r\022\036\n\026max_cursor_name_"
- "length\030\027 \001(\r\022\034\n\024max_logical_lob_size\030\030 \001"
- "(\r\022\024\n\014max_row_size\030\031 \001(\r\022\036\n\026max_schema_n"
- "ame_length\030\032 \001(\r\022\034\n\024max_statement_length"
- "\030\033 \001(\r\022\026\n\016max_statements\030\034 \001(\r\022\035\n\025max_ta"
- "ble_name_length\030\035 \001(\r\022\034\n\024max_tables_in_s"
- "elect\030\036 \001(\r\022\034\n\024max_user_name_length\030\037 \001("
- "\r\0220\n\016null_collation\030 \001(\0162\030.exec.user.Nu"
- "llCollation\022&\n\036null_plus_non_null_equals"
- "_null\030! \001(\010\022\031\n\021numeric_functions\030\" \003(\t\0223"
- "\n\020order_by_support\030# \003(\0162\031.exec.user.Ord"
- "erBySupport\0227\n\022outer_join_support\030$ \003(\0162"
- "\033.exec.user.OuterJoinSupport\022=\n\030quoted_i"
- "dentifier_casing\030% \001(\0162\033.exec.user.Ident"
- "ifierCasing\022\021\n\tread_only\030& \001(\010\022\023\n\013schema"
- "_term\030\' \001(\t\022\034\n\024search_escape_string\030( \001("
- "\t\022#\n\033select_for_update_supported\030) \001(\010\022\032"
- "\n\022special_characters\030* \001(\t\022\024\n\014sql_keywor"
- "ds\030+ \003(\t\022\030\n\020string_functions\030, \003(\t\0224\n\020su"
- "bquery_support\030- \003(\0162\032.exec.user.SubQuer"
- "ySupport\022\030\n\020system_functions\030. \003(\t\022\022\n\nta"
- "ble_term\030/ \001(\t\022\035\n\025transaction_supported\030"
- "0 \001(\010\022.\n\runion_support\0301 \003(\0162\027.exec.user"
- ".UnionSupport\022\026\n\016current_schema\0302 \001(\t\"\353\001"
- "\n\010RunQuery\0221\n\014results_mode\030\001 \001(\0162\033.exec."
- "user.QueryResultsMode\022$\n\004type\030\002 \001(\0162\026.ex"
- "ec.shared.QueryType\022\014\n\004plan\030\003 \001(\t\0221\n\tfra"
- "gments\030\004 \003(\0132\036.exec.bit.control.PlanFrag"
- "ment\022E\n\031prepared_statement_handle\030\005 \001(\0132"
- "\".exec.user.PreparedStatementHandle*\320\003\n\007"
- "RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013\n\007GOODB"
- "YE\020\002\022\r\n\tRUN_QUERY\020\003\022\020\n\014CANCEL_QUERY\020\004\022\023\n"
- "\017REQUEST_RESULTS\020\005\022\027\n\023RESUME_PAUSED_QUER"
- "Y\020\013\022\034\n\030GET_QUERY_PLAN_FRAGMENTS\020\014\022\020\n\014GET"
- "_CATALOGS\020\016\022\017\n\013GET_SCHEMAS\020\017\022\016\n\nGET_TABL"
- "ES\020\020\022\017\n\013GET_COLUMNS\020\021\022\035\n\031CREATE_PREPARED"
- "_STATEMENT\020\026\022\023\n\017GET_SERVER_META\020\010\022\016\n\nQUE"
- "RY_DATA\020\006\022\020\n\014QUERY_HANDLE\020\007\022\030\n\024QUERY_PLA"
- "N_FRAGMENTS\020\r\022\014\n\010CATALOGS\020\022\022\013\n\007SCHEMAS\020\023"
- "\022\n\n\006TABLES\020\024\022\013\n\007COLUMNS\020\025\022\026\n\022PREPARED_ST"
- "ATEMENT\020\027\022\017\n\013SERVER_META\020\t\022\020\n\014QUERY_RESU"
- "LT\020\n\022\020\n\014SASL_MESSAGE\020\030*H\n\013SaslSupport\022\030\n"
- "\024UNKNOWN_SASL_SUPPORT\020\000\022\r\n\tSASL_AUTH\020\001\022\020"
- "\n\014SASL_PRIVACY\020\002*#\n\020QueryResultsMode\022\017\n\013"
- "STREAM_FULL\020\001*q\n\017HandshakeStatus\022\013\n\007SUCC"
- "ESS\020\001\022\030\n\024RPC_VERSION_MISMATCH\020\002\022\017\n\013AUTH_"
- "FAILED\020\003\022\023\n\017UNKNOWN_FAILURE\020\004\022\021\n\rAUTH_RE"
- "QUIRED\020\005*D\n\rRequestStatus\022\022\n\016UNKNOWN_STA"
- "TUS\020\000\022\006\n\002OK\020\001\022\n\n\006FAILED\020\002\022\013\n\007TIMEOUT\020\003*Y"
- "\n\023ColumnSearchability\022\031\n\025UNKNOWN_SEARCHA"
- "BILITY\020\000\022\010\n\004NONE\020\001\022\010\n\004CHAR\020\002\022\n\n\006NUMBER\020\003"
- "\022\007\n\003ALL\020\004*K\n\022ColumnUpdatability\022\030\n\024UNKNO"
- "WN_UPDATABILITY\020\000\022\r\n\tREAD_ONLY\020\001\022\014\n\010WRIT"
- "ABLE\020\002*1\n\016CollateSupport\022\016\n\nCS_UNKNOWN\020\000"
- "\022\017\n\013CS_GROUP_BY\020\001*J\n\027CorrelationNamesSup"
- "port\022\013\n\007CN_NONE\020\001\022\026\n\022CN_DIFFERENT_NAMES\020"
- "\002\022\n\n\006CN_ANY\020\003*\271\003\n\027DateTimeLiteralsSuppor"
- "t\022\016\n\nDL_UNKNOWN\020\000\022\013\n\007DL_DATE\020\001\022\013\n\007DL_TIM"
- "E\020\002\022\020\n\014DL_TIMESTAMP\020\003\022\024\n\020DL_INTERVAL_YEA"
- "R\020\004\022\025\n\021DL_INTERVAL_MONTH\020\005\022\023\n\017DL_INTERVA"
- "L_DAY\020\006\022\024\n\020DL_INTERVAL_HOUR\020\007\022\026\n\022DL_INTE"
- "RVAL_MINUTE\020\010\022\026\n\022DL_INTERVAL_SECOND\020\t\022\035\n"
- "\031DL_INTERVAL_YEAR_TO_MONTH\020\n\022\033\n\027DL_INTER"
- "VAL_DAY_TO_HOUR\020\013\022\035\n\031DL_INTERVAL_DAY_TO_"
- "MINUTE\020\014\022\035\n\031DL_INTERVAL_DAY_TO_SECOND\020\r\022"
- "\036\n\032DL_INTERVAL_HOUR_TO_MINUTE\020\016\022\036\n\032DL_IN"
- "TERVAL_HOUR_TO_SECOND\020\017\022 \n\034DL_INTERVAL_M"
- "INUTE_TO_SECOND\020\020*Y\n\016GroupBySupport\022\013\n\007G"
- "B_NONE\020\001\022\022\n\016GB_SELECT_ONLY\020\002\022\024\n\020GB_BEYON"
- "D_SELECT\020\003\022\020\n\014GB_UNRELATED\020\004*x\n\020Identifi"
- "erCasing\022\016\n\nIC_UNKNOWN\020\000\022\023\n\017IC_STORES_LO"
- "WER\020\001\022\023\n\017IC_STORES_MIXED\020\002\022\023\n\017IC_STORES_"
- "UPPER\020\003\022\025\n\021IC_SUPPORTS_MIXED\020\004*X\n\rNullCo"
- "llation\022\016\n\nNC_UNKNOWN\020\000\022\017\n\013NC_AT_START\020\001"
- "\022\r\n\tNC_AT_END\020\002\022\013\n\007NC_HIGH\020\003\022\n\n\006NC_LOW\020\004"
- "*E\n\016OrderBySupport\022\016\n\nOB_UNKNOWN\020\000\022\020\n\014OB"
- "_UNRELATED\020\001\022\021\n\rOB_EXPRESSION\020\002*\226\001\n\020Oute"
- "rJoinSupport\022\016\n\nOJ_UNKNOWN\020\000\022\013\n\007OJ_LEFT\020"
- "\001\022\014\n\010OJ_RIGHT\020\002\022\013\n\007OJ_FULL\020\003\022\r\n\tOJ_NESTE"
- "D\020\004\022\022\n\016OJ_NOT_ORDERED\020\005\022\014\n\010OJ_INNER\020\006\022\031\n"
- "\025OJ_ALL_COMPARISON_OPS\020\007*\204\001\n\017SubQuerySup"
- "port\022\016\n\nSQ_UNKNOWN\020\000\022\021\n\rSQ_CORRELATED\020\001\022"
- "\024\n\020SQ_IN_COMPARISON\020\002\022\020\n\014SQ_IN_EXISTS\020\003\022"
- "\020\n\014SQ_IN_INSERT\020\004\022\024\n\020SQ_IN_QUANTIFIED\020\005*"
- ";\n\014UnionSupport\022\r\n\tU_UNKNOWN\020\000\022\013\n\007U_UNIO"
- "N\020\001\022\017\n\013U_UNION_ALL\020\002B+\n\033org.apache.drill"
- ".exec.protoB\nUserProtosH\001", 8905);
+ descriptor, 8905);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"User.proto", &protobuf_RegisterTypes);
- Property::default_instance_ = new Property();
- UserProperties::default_instance_ = new UserProperties();
- RpcEndpointInfos::default_instance_ = new RpcEndpointInfos();
- UserToBitHandshake::default_instance_ = new UserToBitHandshake();
- RequestResults::default_instance_ = new RequestResults();
- GetQueryPlanFragments::default_instance_ = new GetQueryPlanFragments();
- QueryPlanFragments::default_instance_ = new QueryPlanFragments();
- BitToUserHandshake::default_instance_ = new BitToUserHandshake();
- LikeFilter::default_instance_ = new LikeFilter();
- GetCatalogsReq::default_instance_ = new GetCatalogsReq();
- CatalogMetadata::default_instance_ = new CatalogMetadata();
- GetCatalogsResp::default_instance_ = new GetCatalogsResp();
- GetSchemasReq::default_instance_ = new GetSchemasReq();
- SchemaMetadata::default_instance_ = new SchemaMetadata();
- GetSchemasResp::default_instance_ = new GetSchemasResp();
- GetTablesReq::default_instance_ = new GetTablesReq();
- TableMetadata::default_instance_ = new TableMetadata();
- GetTablesResp::default_instance_ = new GetTablesResp();
- GetColumnsReq::default_instance_ = new GetColumnsReq();
- ColumnMetadata::default_instance_ = new ColumnMetadata();
- GetColumnsResp::default_instance_ = new GetColumnsResp();
- CreatePreparedStatementReq::default_instance_ = new CreatePreparedStatementReq();
- ResultColumnMetadata::default_instance_ = new ResultColumnMetadata();
- PreparedStatementHandle::default_instance_ = new PreparedStatementHandle();
- PreparedStatement::default_instance_ = new PreparedStatement();
- CreatePreparedStatementResp::default_instance_ = new CreatePreparedStatementResp();
- GetServerMetaReq::default_instance_ = new GetServerMetaReq();
- ConvertSupport::default_instance_ = new ConvertSupport();
- GetServerMetaResp::default_instance_ = new GetServerMetaResp();
- ServerMeta::default_instance_ = new ServerMeta();
- RunQuery::default_instance_ = new RunQuery();
- Property::default_instance_->InitAsDefaultInstance();
- UserProperties::default_instance_->InitAsDefaultInstance();
- RpcEndpointInfos::default_instance_->InitAsDefaultInstance();
- UserToBitHandshake::default_instance_->InitAsDefaultInstance();
- RequestResults::default_instance_->InitAsDefaultInstance();
- GetQueryPlanFragments::default_instance_->InitAsDefaultInstance();
- QueryPlanFragments::default_instance_->InitAsDefaultInstance();
- BitToUserHandshake::default_instance_->InitAsDefaultInstance();
- LikeFilter::default_instance_->InitAsDefaultInstance();
- GetCatalogsReq::default_instance_->InitAsDefaultInstance();
- CatalogMetadata::default_instance_->InitAsDefaultInstance();
- GetCatalogsResp::default_instance_->InitAsDefaultInstance();
- GetSchemasReq::default_instance_->InitAsDefaultInstance();
- SchemaMetadata::default_instance_->InitAsDefaultInstance();
- GetSchemasResp::default_instance_->InitAsDefaultInstance();
- GetTablesReq::default_instance_->InitAsDefaultInstance();
- TableMetadata::default_instance_->InitAsDefaultInstance();
- GetTablesResp::default_instance_->InitAsDefaultInstance();
- GetColumnsReq::default_instance_->InitAsDefaultInstance();
- ColumnMetadata::default_instance_->InitAsDefaultInstance();
- GetColumnsResp::default_instance_->InitAsDefaultInstance();
- CreatePreparedStatementReq::default_instance_->InitAsDefaultInstance();
- ResultColumnMetadata::default_instance_->InitAsDefaultInstance();
- PreparedStatementHandle::default_instance_->InitAsDefaultInstance();
- PreparedStatement::default_instance_->InitAsDefaultInstance();
- CreatePreparedStatementResp::default_instance_->InitAsDefaultInstance();
- GetServerMetaReq::default_instance_->InitAsDefaultInstance();
- ConvertSupport::default_instance_->InitAsDefaultInstance();
- GetServerMetaResp::default_instance_->InitAsDefaultInstance();
- ServerMeta::default_instance_->InitAsDefaultInstance();
- RunQuery::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_User_2eproto);
-}
-
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_User_2eproto {
- StaticDescriptorInitializer_User_2eproto() {
- protobuf_AddDesc_User_2eproto();
- }
-} static_descriptor_initializer_User_2eproto_;
+ ::protobuf_SchemaDef_2eproto::AddDescriptors();
+ ::protobuf_Types_2eproto::AddDescriptors();
+ ::protobuf_UserBitShared_2eproto::AddDescriptors();
+ ::protobuf_BitData_2eproto::AddDescriptors();
+ ::protobuf_BitControl_2eproto::AddDescriptors();
+ ::protobuf_ExecutionProtos_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_User_2eproto
+namespace exec {
+namespace user {
const ::google::protobuf::EnumDescriptor* RpcType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcType_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[0];
}
bool RpcType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1260,11 +1592,11 @@ bool RpcType_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* SaslSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SaslSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[1];
}
bool SaslSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1275,11 +1607,11 @@ bool SaslSupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* QueryResultsMode_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryResultsMode_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[2];
}
bool QueryResultsMode_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 1:
return true;
default:
@@ -1288,11 +1620,11 @@ bool QueryResultsMode_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* HandshakeStatus_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return HandshakeStatus_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[3];
}
bool HandshakeStatus_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 1:
case 2:
case 3:
@@ -1305,11 +1637,11 @@ bool HandshakeStatus_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* RequestStatus_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RequestStatus_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[4];
}
bool RequestStatus_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1321,11 +1653,11 @@ bool RequestStatus_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* ColumnSearchability_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ColumnSearchability_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[5];
}
bool ColumnSearchability_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1338,11 +1670,11 @@ bool ColumnSearchability_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* ColumnUpdatability_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ColumnUpdatability_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[6];
}
bool ColumnUpdatability_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1353,11 +1685,11 @@ bool ColumnUpdatability_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* CollateSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CollateSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[7];
}
bool CollateSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
return true;
@@ -1367,11 +1699,11 @@ bool CollateSupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* CorrelationNamesSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CorrelationNamesSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[8];
}
bool CorrelationNamesSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 1:
case 2:
case 3:
@@ -1382,11 +1714,11 @@ bool CorrelationNamesSupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* DateTimeLiteralsSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DateTimeLiteralsSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[9];
}
bool DateTimeLiteralsSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1411,11 +1743,11 @@ bool DateTimeLiteralsSupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* GroupBySupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GroupBySupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[10];
}
bool GroupBySupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 1:
case 2:
case 3:
@@ -1427,11 +1759,11 @@ bool GroupBySupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* IdentifierCasing_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return IdentifierCasing_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[11];
}
bool IdentifierCasing_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1444,11 +1776,11 @@ bool IdentifierCasing_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* NullCollation_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return NullCollation_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[12];
}
bool NullCollation_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1461,11 +1793,11 @@ bool NullCollation_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* OrderBySupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return OrderBySupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[13];
}
bool OrderBySupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1476,11 +1808,11 @@ bool OrderBySupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* OuterJoinSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return OuterJoinSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[14];
}
bool OuterJoinSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1496,11 +1828,11 @@ bool OuterJoinSupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* SubQuerySupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SubQuerySupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[15];
}
bool SubQuerySupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1514,11 +1846,11 @@ bool SubQuerySupport_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* UnionSupport_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return UnionSupport_descriptor_;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_User_2eproto::file_level_enum_descriptors[16];
}
bool UnionSupport_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -1531,257 +1863,310 @@ bool UnionSupport_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void Property::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Property::kKeyFieldNumber;
const int Property::kValueFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Property::Property()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_Property.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.Property)
}
-
-void Property::InitAsDefaultInstance() {
-}
-
Property::Property(const Property& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_key()) {
+ key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
+ }
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_value()) {
+ value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.Property)
}
void Property::SharedCtor() {
- _cached_size_ = 0;
- key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
Property::~Property() {
+ // @@protoc_insertion_point(destructor:exec.user.Property)
SharedDtor();
}
void Property::SharedDtor() {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- delete key_;
- }
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- delete value_;
- }
- if (this != default_instance_) {
- }
+ key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Property::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Property::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Property_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Property& Property::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_Property.base);
+ return *internal_default_instance();
}
-Property* Property::default_instance_ = NULL;
-
-Property* Property::New() const {
- return new Property;
-}
void Property::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_key()) {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- key_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.Property)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ key_.ClearNonDefaultToEmptyNoArena();
}
- if (has_value()) {
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- value_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ value_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Property::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.Property)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string key = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_key()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->key().data(), this->key().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->key().data(), static_cast<int>(this->key().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.Property.key");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_value;
break;
}
// required string value = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_value:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_value()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->value().data(), this->value().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.Property.value");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.Property)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.Property)
+ return false;
#undef DO_
}
void Property::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.Property)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required string key = 1;
- if (has_key()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->key().data(), this->key().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->key().data(), static_cast<int>(this->key().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.Property.key");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->key(), output);
}
// required string value = 2;
- if (has_value()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->value().data(), this->value().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.Property.value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->value(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.Property)
}
-::google::protobuf::uint8* Property::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Property::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.Property)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required string key = 1;
- if (has_key()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->key().data(), this->key().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->key().data(), static_cast<int>(this->key().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.Property.key");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->key(), target);
}
// required string value = 2;
- if (has_value()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->value().data(), this->value().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.Property.value");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->value(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.Property)
return target;
}
-int Property::ByteSize() const {
- int total_size = 0;
+size_t Property::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:exec.user.Property)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (has_key()) {
// required string key = 1;
- if (has_key()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->key());
- }
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->key());
+ }
+ if (has_value()) {
// required string value = 2;
- if (has_value()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->value());
- }
-
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->value());
}
- if (!unknown_fields().empty()) {
+
+ return total_size;
+}
+size_t Property::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.Property)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
+ // required string key = 1;
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->key());
+
+ // required string value = 2;
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->value());
+
+ } else {
+ total_size += RequiredFieldsByteSizeFallback();
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Property::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.Property)
+ GOOGLE_DCHECK_NE(&from, this);
const Property* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Property*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Property>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.Property)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.Property)
MergeFrom(*source);
}
}
void Property::MergeFrom(const Property& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_key()) {
- set_key(from.key());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.Property)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_key();
+ key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
}
- if (from.has_value()) {
- set_value(from.value());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_value();
+ value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Property::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.Property)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Property::CopyFrom(const Property& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.Property)
if (&from == this) return;
Clear();
MergeFrom(from);
@@ -1789,238 +2174,267 @@ void Property::CopyFrom(const Property& from) {
bool Property::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
-
return true;
}
void Property::Swap(Property* other) {
- if (other != this) {
- std::swap(key_, other->key_);
- std::swap(value_, other->value_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Property::InternalSwap(Property* other) {
+ using std::swap;
+ key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Property::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Property_descriptor_;
- metadata.reflection = Property_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void UserProperties::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int UserProperties::kPropertiesFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
UserProperties::UserProperties()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_UserProperties.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.UserProperties)
}
-
-void UserProperties::InitAsDefaultInstance() {
-}
-
UserProperties::UserProperties(const UserProperties& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ properties_(from.properties_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:exec.user.UserProperties)
}
void UserProperties::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
UserProperties::~UserProperties() {
+ // @@protoc_insertion_point(destructor:exec.user.UserProperties)
SharedDtor();
}
void UserProperties::SharedDtor() {
- if (this != default_instance_) {
- }
}
void UserProperties::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* UserProperties::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return UserProperties_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const UserProperties& UserProperties::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_UserProperties.base);
+ return *internal_default_instance();
}
-UserProperties* UserProperties::default_instance_ = NULL;
-
-UserProperties* UserProperties::New() const {
- return new UserProperties;
-}
void UserProperties::Clear() {
+// @@protoc_insertion_point(message_clear_start:exec.user.UserProperties)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
properties_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool UserProperties::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.UserProperties)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.user.Property properties = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_properties:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_properties()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_properties;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.UserProperties)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.UserProperties)
+ return false;
#undef DO_
}
void UserProperties::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.UserProperties)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.user.Property properties = 1;
- for (int i = 0; i < this->properties_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->properties_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->properties(i), output);
+ 1,
+ this->properties(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.UserProperties)
}
-::google::protobuf::uint8* UserProperties::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* UserProperties::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.UserProperties)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.user.Property properties = 1;
- for (int i = 0; i < this->properties_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->properties_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->properties(i), target);
+ InternalWriteMessageToArray(
+ 1, this->properties(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.UserProperties)
return target;
}
-int UserProperties::ByteSize() const {
- int total_size = 0;
-
- // repeated .exec.user.Property properties = 1;
- total_size += 1 * this->properties_size();
- for (int i = 0; i < this->properties_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->properties(i));
- }
+size_t UserProperties::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.UserProperties)
+ size_t total_size = 0;
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.Property properties = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->properties_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->properties(static_cast<int>(i)));
+ }
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void UserProperties::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.UserProperties)
+ GOOGLE_DCHECK_NE(&from, this);
const UserProperties* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const UserProperties*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const UserProperties>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.UserProperties)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.UserProperties)
MergeFrom(*source);
}
}
void UserProperties::MergeFrom(const UserProperties& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.UserProperties)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
properties_.MergeFrom(from.properties_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void UserProperties::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.UserProperties)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void UserProperties::CopyFrom(const UserProperties& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.UserProperties)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool UserProperties::IsInitialized() const {
-
- for (int i = 0; i < properties_size(); i++) {
- if (!this->properties(i).IsInitialized()) return false;
- }
+ if (!::google::protobuf::internal::AllAreInitialized(this->properties())) return false;
return true;
}
void UserProperties::Swap(UserProperties* other) {
- if (other != this) {
- properties_.Swap(&other->properties_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void UserProperties::InternalSwap(UserProperties* other) {
+ using std::swap;
+ CastToBase(&properties_)->InternalSwap(CastToBase(&other->properties_));
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata UserProperties::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = UserProperties_descriptor_;
- metadata.reflection = UserProperties_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RpcEndpointInfos::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RpcEndpointInfos::kNameFieldNumber;
const int RpcEndpointInfos::kVersionFieldNumber;
const int RpcEndpointInfos::kMajorVersionFieldNumber;
@@ -2029,398 +2443,422 @@ const int RpcEndpointInfos::kPatchVersionFieldNumber;
const int RpcEndpointInfos::kApplicationFieldNumber;
const int RpcEndpointInfos::kBuildNumberFieldNumber;
const int RpcEndpointInfos::kVersionQualifierFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RpcEndpointInfos::RpcEndpointInfos()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_RpcEndpointInfos.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.RpcEndpointInfos)
}
-
-void RpcEndpointInfos::InitAsDefaultInstance() {
-}
-
RpcEndpointInfos::RpcEndpointInfos(const RpcEndpointInfos& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_name()) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_version()) {
+ version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
+ }
+ application_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_application()) {
+ application_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.application_);
+ }
+ versionqualifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_versionqualifier()) {
+ versionqualifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.versionqualifier_);
+ }
+ ::memcpy(&majorversion_, &from.majorversion_,
+ static_cast<size_t>(reinterpret_cast<char*>(&buildnumber_) -
+ reinterpret_cast<char*>(&majorversion_)) + sizeof(buildnumber_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.RpcEndpointInfos)
}
void RpcEndpointInfos::SharedCtor() {
- _cached_size_ = 0;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- majorversion_ = 0u;
- minorversion_ = 0u;
- patchversion_ = 0u;
- application_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- buildnumber_ = 0u;
- versionqualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ application_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ versionqualifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&majorversion_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&buildnumber_) -
+ reinterpret_cast<char*>(&majorversion_)) + sizeof(buildnumber_));
}
RpcEndpointInfos::~RpcEndpointInfos() {
+ // @@protoc_insertion_point(destructor:exec.user.RpcEndpointInfos)
SharedDtor();
}
void RpcEndpointInfos::SharedDtor() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- delete version_;
- }
- if (application_ != &::google::protobuf::internal::kEmptyString) {
- delete application_;
- }
- if (versionqualifier_ != &::google::protobuf::internal::kEmptyString) {
- delete versionqualifier_;
- }
- if (this != default_instance_) {
- }
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ application_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ versionqualifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void RpcEndpointInfos::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RpcEndpointInfos::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcEndpointInfos_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RpcEndpointInfos& RpcEndpointInfos::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_RpcEndpointInfos.base);
+ return *internal_default_instance();
}
-RpcEndpointInfos* RpcEndpointInfos::default_instance_ = NULL;
-
-RpcEndpointInfos* RpcEndpointInfos::New() const {
- return new RpcEndpointInfos;
-}
void RpcEndpointInfos::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_name()) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.RpcEndpointInfos)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_version()) {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- version_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ version_.ClearNonDefaultToEmptyNoArena();
}
- majorversion_ = 0u;
- minorversion_ = 0u;
- patchversion_ = 0u;
- if (has_application()) {
- if (application_ != &::google::protobuf::internal::kEmptyString) {
- application_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ application_.ClearNonDefaultToEmptyNoArena();
}
- buildnumber_ = 0u;
- if (has_versionqualifier()) {
- if (versionqualifier_ != &::google::protobuf::internal::kEmptyString) {
- versionqualifier_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ versionqualifier_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 240u) {
+ ::memset(&majorversion_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&buildnumber_) -
+ reinterpret_cast<char*>(&majorversion_)) + sizeof(buildnumber_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RpcEndpointInfos::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.RpcEndpointInfos)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.RpcEndpointInfos.name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_version;
break;
}
// optional string version = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_version:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_version()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.RpcEndpointInfos.version");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_majorVersion;
break;
}
// optional uint32 majorVersion = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_majorVersion:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_majorversion();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &majorversion_)));
- set_has_majorversion();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_minorVersion;
break;
}
// optional uint32 minorVersion = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_minorVersion:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_minorversion();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &minorversion_)));
- set_has_minorversion();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_patchVersion;
break;
}
// optional uint32 patchVersion = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_patchVersion:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_patchversion();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &patchversion_)));
- set_has_patchversion();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_application;
break;
}
// optional string application = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_application:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_application()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->application().data(), this->application().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->application().data(), static_cast<int>(this->application().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.RpcEndpointInfos.application");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_buildNumber;
break;
}
// optional uint32 buildNumber = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_buildNumber:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_buildnumber();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &buildnumber_)));
- set_has_buildnumber();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_versionQualifier;
break;
}
// optional string versionQualifier = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_versionQualifier:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_versionqualifier()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->versionqualifier().data(), this->versionqualifier().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->versionqualifier().data(), static_cast<int>(this->versionqualifier().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.RpcEndpointInfos.versionQualifier");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.RpcEndpointInfos)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.RpcEndpointInfos)
+ return false;
#undef DO_
}
void RpcEndpointInfos::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.RpcEndpointInfos)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string name = 1;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output);
}
// optional string version = 2;
- if (has_version()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.version");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->version(), output);
}
// optional uint32 majorVersion = 3;
- if (has_majorversion()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->majorversion(), output);
}
// optional uint32 minorVersion = 4;
- if (has_minorversion()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->minorversion(), output);
}
// optional uint32 patchVersion = 5;
- if (has_patchversion()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->patchversion(), output);
}
// optional string application = 6;
- if (has_application()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->application().data(), this->application().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->application().data(), static_cast<int>(this->application().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.application");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->application(), output);
}
// optional uint32 buildNumber = 7;
- if (has_buildnumber()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->buildnumber(), output);
}
// optional string versionQualifier = 8;
- if (has_versionqualifier()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->versionqualifier().data(), this->versionqualifier().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->versionqualifier().data(), static_cast<int>(this->versionqualifier().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.versionQualifier");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->versionqualifier(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.RpcEndpointInfos)
}
-::google::protobuf::uint8* RpcEndpointInfos::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RpcEndpointInfos::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.RpcEndpointInfos)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string name = 1;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target);
}
// optional string version = 2;
- if (has_version()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->version().data(), this->version().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->version().data(), static_cast<int>(this->version().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.version");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->version(), target);
}
// optional uint32 majorVersion = 3;
- if (has_majorversion()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->majorversion(), target);
}
// optional uint32 minorVersion = 4;
- if (has_minorversion()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->minorversion(), target);
}
// optional uint32 patchVersion = 5;
- if (has_patchversion()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->patchversion(), target);
}
// optional string application = 6;
- if (has_application()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->application().data(), this->application().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->application().data(), static_cast<int>(this->application().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.application");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->application(), target);
}
// optional uint32 buildNumber = 7;
- if (has_buildnumber()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->buildnumber(), target);
}
// optional string versionQualifier = 8;
- if (has_versionqualifier()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->versionqualifier().data(), this->versionqualifier().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->versionqualifier().data(), static_cast<int>(this->versionqualifier().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RpcEndpointInfos.versionQualifier");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->versionqualifier(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.RpcEndpointInfos)
return target;
}
-int RpcEndpointInfos::ByteSize() const {
- int total_size = 0;
+size_t RpcEndpointInfos::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.RpcEndpointInfos)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string name = 1;
if (has_name()) {
total_size += 1 +
@@ -2435,6 +2873,20 @@ int RpcEndpointInfos::ByteSize() const {
this->version());
}
+ // optional string application = 6;
+ if (has_application()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->application());
+ }
+
+ // optional string versionQualifier = 8;
+ if (has_versionqualifier()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->versionqualifier());
+ }
+
// optional uint32 majorVersion = 3;
if (has_majorversion()) {
total_size += 1 +
@@ -2456,13 +2908,6 @@ int RpcEndpointInfos::ByteSize() const {
this->patchversion());
}
- // optional string application = 6;
- if (has_application()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->application());
- }
-
// optional uint32 buildNumber = 7;
if (has_buildnumber()) {
total_size += 1 +
@@ -2470,113 +2915,129 @@ int RpcEndpointInfos::ByteSize() const {
this->buildnumber());
}
- // optional string versionQualifier = 8;
- if (has_versionqualifier()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->versionqualifier());
- }
-
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RpcEndpointInfos::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.RpcEndpointInfos)
+ GOOGLE_DCHECK_NE(&from, this);
const RpcEndpointInfos* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RpcEndpointInfos*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RpcEndpointInfos>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.RpcEndpointInfos)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.RpcEndpointInfos)
MergeFrom(*source);
}
}
void RpcEndpointInfos::MergeFrom(const RpcEndpointInfos& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_name()) {
- set_name(from.name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.RpcEndpointInfos)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_name();
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
- if (from.has_version()) {
- set_version(from.version());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_version();
+ version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
}
- if (from.has_majorversion()) {
- set_majorversion(from.majorversion());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_application();
+ application_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.application_);
}
- if (from.has_minorversion()) {
- set_minorversion(from.minorversion());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_versionqualifier();
+ versionqualifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.versionqualifier_);
}
- if (from.has_patchversion()) {
- set_patchversion(from.patchversion());
+ if (cached_has_bits & 0x00000010u) {
+ majorversion_ = from.majorversion_;
}
- if (from.has_application()) {
- set_application(from.application());
+ if (cached_has_bits & 0x00000020u) {
+ minorversion_ = from.minorversion_;
}
- if (from.has_buildnumber()) {
- set_buildnumber(from.buildnumber());
+ if (cached_has_bits & 0x00000040u) {
+ patchversion_ = from.patchversion_;
}
- if (from.has_versionqualifier()) {
- set_versionqualifier(from.versionqualifier());
+ if (cached_has_bits & 0x00000080u) {
+ buildnumber_ = from.buildnumber_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RpcEndpointInfos::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.RpcEndpointInfos)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RpcEndpointInfos::CopyFrom(const RpcEndpointInfos& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.RpcEndpointInfos)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RpcEndpointInfos::IsInitialized() const {
-
return true;
}
void RpcEndpointInfos::Swap(RpcEndpointInfos* other) {
- if (other != this) {
- std::swap(name_, other->name_);
- std::swap(version_, other->version_);
- std::swap(majorversion_, other->majorversion_);
- std::swap(minorversion_, other->minorversion_);
- std::swap(patchversion_, other->patchversion_);
- std::swap(application_, other->application_);
- std::swap(buildnumber_, other->buildnumber_);
- std::swap(versionqualifier_, other->versionqualifier_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RpcEndpointInfos::InternalSwap(RpcEndpointInfos* other) {
+ using std::swap;
+ name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ application_.Swap(&other->application_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ versionqualifier_.Swap(&other->versionqualifier_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(majorversion_, other->majorversion_);
+ swap(minorversion_, other->minorversion_);
+ swap(patchversion_, other->patchversion_);
+ swap(buildnumber_, other->buildnumber_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RpcEndpointInfos::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RpcEndpointInfos_descriptor_;
- metadata.reflection = RpcEndpointInfos_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void UserToBitHandshake::InitAsDefaultInstance() {
+ ::exec::user::_UserToBitHandshake_default_instance_._instance.get_mutable()->credentials_ = const_cast< ::exec::shared::UserCredentials*>(
+ ::exec::shared::UserCredentials::internal_default_instance());
+ ::exec::user::_UserToBitHandshake_default_instance_._instance.get_mutable()->properties_ = const_cast< ::exec::user::UserProperties*>(
+ ::exec::user::UserProperties::internal_default_instance());
+ ::exec::user::_UserToBitHandshake_default_instance_._instance.get_mutable()->client_infos_ = const_cast< ::exec::user::RpcEndpointInfos*>(
+ ::exec::user::RpcEndpointInfos::internal_default_instance());
+}
+void UserToBitHandshake::clear_credentials() {
+ if (credentials_ != NULL) credentials_->Clear();
+ clear_has_credentials();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int UserToBitHandshake::kChannelFieldNumber;
const int UserToBitHandshake::kSupportListeningFieldNumber;
const int UserToBitHandshake::kRpcVersionFieldNumber;
@@ -2586,106 +3047,118 @@ const int UserToBitHandshake::kSupportComplexTypesFieldNumber;
const int UserToBitHandshake::kSupportTimeoutFieldNumber;
const int UserToBitHandshake::kClientInfosFieldNumber;
const int UserToBitHandshake::kSaslSupportFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
UserToBitHandshake::UserToBitHandshake()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_UserToBitHandshake.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.UserToBitHandshake)
}
-
-void UserToBitHandshake::InitAsDefaultInstance() {
- credentials_ = const_cast< ::exec::shared::UserCredentials*>(&::exec::shared::UserCredentials::default_instance());
- properties_ = const_cast< ::exec::user::UserProperties*>(&::exec::user::UserProperties::default_instance());
- client_infos_ = const_cast< ::exec::user::RpcEndpointInfos*>(&::exec::user::RpcEndpointInfos::default_instance());
-}
-
UserToBitHandshake::UserToBitHandshake(const UserToBitHandshake& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_credentials()) {
+ credentials_ = new ::exec::shared::UserCredentials(*from.credentials_);
+ } else {
+ credentials_ = NULL;
+ }
+ if (from.has_properties()) {
+ properties_ = new ::exec::user::UserProperties(*from.properties_);
+ } else {
+ properties_ = NULL;
+ }
+ if (from.has_client_infos()) {
+ client_infos_ = new ::exec::user::RpcEndpointInfos(*from.client_infos_);
+ } else {
+ client_infos_ = NULL;
+ }
+ ::memcpy(&rpc_version_, &from.rpc_version_,
+ static_cast<size_t>(reinterpret_cast<char*>(&channel_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(channel_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.UserToBitHandshake)
}
void UserToBitHandshake::SharedCtor() {
- _cached_size_ = 0;
+ ::memset(&credentials_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&sasl_support_) -
+ reinterpret_cast<char*>(&credentials_)) + sizeof(sasl_support_));
channel_ = 2;
- support_listening_ = false;
- rpc_version_ = 0;
- credentials_ = NULL;
- properties_ = NULL;
- support_complex_types_ = false;
- support_timeout_ = false;
- client_infos_ = NULL;
- sasl_support_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
UserToBitHandshake::~UserToBitHandshake() {
+ // @@protoc_insertion_point(destructor:exec.user.UserToBitHandshake)
SharedDtor();
}
void UserToBitHandshake::SharedDtor() {
- if (this != default_instance_) {
- delete credentials_;
- delete properties_;
- delete client_infos_;
- }
+ if (this != internal_default_instance()) delete credentials_;
+ if (this != internal_default_instance()) delete properties_;
+ if (this != internal_default_instance()) delete client_infos_;
}
void UserToBitHandshake::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* UserToBitHandshake::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return UserToBitHandshake_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const UserToBitHandshake& UserToBitHandshake::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_UserToBitHandshake.base);
+ return *internal_default_instance();
}
-UserToBitHandshake* UserToBitHandshake::default_instance_ = NULL;
-
-UserToBitHandshake* UserToBitHandshake::New() const {
- return new UserToBitHandshake;
-}
void UserToBitHandshake::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- channel_ = 2;
- support_listening_ = false;
- rpc_version_ = 0;
- if (has_credentials()) {
- if (credentials_ != NULL) credentials_->::exec::shared::UserCredentials::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.UserToBitHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(credentials_ != NULL);
+ credentials_->Clear();
}
- if (has_properties()) {
- if (properties_ != NULL) properties_->::exec::user::UserProperties::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(properties_ != NULL);
+ properties_->Clear();
}
- support_complex_types_ = false;
- support_timeout_ = false;
- if (has_client_infos()) {
- if (client_infos_ != NULL) client_infos_->::exec::user::RpcEndpointInfos::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(client_infos_ != NULL);
+ client_infos_->Clear();
}
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- sasl_support_ = 0;
+ if (cached_has_bits & 248u) {
+ ::memset(&rpc_version_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&sasl_support_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(sasl_support_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ channel_ = 2;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool UserToBitHandshake::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.UserToBitHandshake)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.RpcChannel channel = 1 [default = USER];
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -2693,126 +3166,111 @@ bool UserToBitHandshake::MergePartialFromCodedStream(
if (::exec::shared::RpcChannel_IsValid(value)) {
set_channel(static_cast< ::exec::shared::RpcChannel >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_support_listening;
break;
}
// optional bool support_listening = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_support_listening:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_support_listening();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &support_listening_)));
- set_has_support_listening();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_rpc_version;
break;
}
// optional int32 rpc_version = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_rpc_version:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_rpc_version();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_version_)));
- set_has_rpc_version();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_credentials;
break;
}
// optional .exec.shared.UserCredentials credentials = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_credentials:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_credentials()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_properties;
break;
}
// optional .exec.user.UserProperties properties = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_properties:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_properties()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_support_complex_types;
break;
}
// optional bool support_complex_types = 6 [default = false];
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_support_complex_types:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ set_has_support_complex_types();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &support_complex_types_)));
- set_has_support_complex_types();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_support_timeout;
break;
}
// optional bool support_timeout = 7 [default = false];
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_support_timeout:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_support_timeout();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &support_timeout_)));
- set_has_support_timeout();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_client_infos;
break;
}
// optional .exec.user.RpcEndpointInfos client_infos = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_client_infos:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_client_infos()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(72)) goto parse_sasl_support;
break;
}
// optional .exec.user.SaslSupport sasl_support = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_sasl_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -2820,164 +3278,197 @@ bool UserToBitHandshake::MergePartialFromCodedStream(
if (::exec::user::SaslSupport_IsValid(value)) {
set_sasl_support(static_cast< ::exec::user::SaslSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(9, value);
+ mutable_unknown_fields()->AddVarint(
+ 9, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.UserToBitHandshake)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.UserToBitHandshake)
+ return false;
#undef DO_
}
void UserToBitHandshake::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.UserToBitHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.RpcChannel channel = 1 [default = USER];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->channel(), output);
}
// optional bool support_listening = 2;
- if (has_support_listening()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->support_listening(), output);
}
// optional int32 rpc_version = 3;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->rpc_version(), output);
}
// optional .exec.shared.UserCredentials credentials = 4;
- if (has_credentials()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->credentials(), output);
+ 4, this->_internal_credentials(), output);
}
// optional .exec.user.UserProperties properties = 5;
- if (has_properties()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->properties(), output);
+ 5, this->_internal_properties(), output);
}
// optional bool support_complex_types = 6 [default = false];
- if (has_support_complex_types()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteBool(6, this->support_complex_types(), output);
}
// optional bool support_timeout = 7 [default = false];
- if (has_support_timeout()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->support_timeout(), output);
}
// optional .exec.user.RpcEndpointInfos client_infos = 8;
- if (has_client_infos()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->client_infos(), output);
+ 8, this->_internal_client_infos(), output);
}
// optional .exec.user.SaslSupport sasl_support = 9;
- if (has_sasl_support()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
9, this->sasl_support(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.UserToBitHandshake)
}
-::google::protobuf::uint8* UserToBitHandshake::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* UserToBitHandshake::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.UserToBitHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.RpcChannel channel = 1 [default = USER];
- if (has_channel()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->channel(), target);
}
// optional bool support_listening = 2;
- if (has_support_listening()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->support_listening(), target);
}
// optional int32 rpc_version = 3;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->rpc_version(), target);
}
// optional .exec.shared.UserCredentials credentials = 4;
- if (has_credentials()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->credentials(), target);
+ InternalWriteMessageToArray(
+ 4, this->_internal_credentials(), deterministic, target);
}
// optional .exec.user.UserProperties properties = 5;
- if (has_properties()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->properties(), target);
+ InternalWriteMessageToArray(
+ 5, this->_internal_properties(), deterministic, target);
}
// optional bool support_complex_types = 6 [default = false];
- if (has_support_complex_types()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->support_complex_types(), target);
}
// optional bool support_timeout = 7 [default = false];
- if (has_support_timeout()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->support_timeout(), target);
}
// optional .exec.user.RpcEndpointInfos client_infos = 8;
- if (has_client_infos()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 8, this->client_infos(), target);
+ InternalWriteMessageToArray(
+ 8, this->_internal_client_infos(), deterministic, target);
}
// optional .exec.user.SaslSupport sasl_support = 9;
- if (has_sasl_support()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9, this->sasl_support(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.UserToBitHandshake)
return target;
}
-int UserToBitHandshake::ByteSize() const {
- int total_size = 0;
+size_t UserToBitHandshake::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.UserToBitHandshake)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
+ // optional .exec.shared.UserCredentials credentials = 4;
+ if (has_credentials()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *credentials_);
+ }
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.shared.RpcChannel channel = 1 [default = USER];
- if (has_channel()) {
+ // optional .exec.user.UserProperties properties = 5;
+ if (has_properties()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->channel());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *properties_);
}
- // optional bool support_listening = 2;
- if (has_support_listening()) {
- total_size += 1 + 1;
+ // optional .exec.user.RpcEndpointInfos client_infos = 8;
+ if (has_client_infos()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *client_infos_);
}
// optional int32 rpc_version = 3;
@@ -2987,18 +3478,9 @@ int UserToBitHandshake::ByteSize() const {
this->rpc_version());
}
- // optional .exec.shared.UserCredentials credentials = 4;
- if (has_credentials()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->credentials());
- }
-
- // optional .exec.user.UserProperties properties = 5;
- if (has_properties()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->properties());
+ // optional bool support_listening = 2;
+ if (has_support_listening()) {
+ total_size += 1 + 1;
}
// optional bool support_complex_types = 6 [default = false];
@@ -3011,15 +3493,6 @@ int UserToBitHandshake::ByteSize() const {
total_size += 1 + 1;
}
- // optional .exec.user.RpcEndpointInfos client_infos = 8;
- if (has_client_infos()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->client_infos());
- }
-
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional .exec.user.SaslSupport sasl_support = 9;
if (has_sasl_support()) {
total_size += 1 +
@@ -3027,282 +3500,323 @@ int UserToBitHandshake::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional .exec.shared.RpcChannel channel = 1 [default = USER];
+ if (has_channel()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->channel());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void UserToBitHandshake::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.UserToBitHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
const UserToBitHandshake* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const UserToBitHandshake*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const UserToBitHandshake>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.UserToBitHandshake)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.UserToBitHandshake)
MergeFrom(*source);
}
}
void UserToBitHandshake::MergeFrom(const UserToBitHandshake& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_channel()) {
- set_channel(from.channel());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.UserToBitHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from.credentials());
}
- if (from.has_support_listening()) {
- set_support_listening(from.support_listening());
+ if (cached_has_bits & 0x00000002u) {
+ mutable_properties()->::exec::user::UserProperties::MergeFrom(from.properties());
}
- if (from.has_rpc_version()) {
- set_rpc_version(from.rpc_version());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_client_infos()->::exec::user::RpcEndpointInfos::MergeFrom(from.client_infos());
}
- if (from.has_credentials()) {
- mutable_credentials()->::exec::shared::UserCredentials::MergeFrom(from.credentials());
+ if (cached_has_bits & 0x00000008u) {
+ rpc_version_ = from.rpc_version_;
}
- if (from.has_properties()) {
- mutable_properties()->::exec::user::UserProperties::MergeFrom(from.properties());
+ if (cached_has_bits & 0x00000010u) {
+ support_listening_ = from.support_listening_;
}
- if (from.has_support_complex_types()) {
- set_support_complex_types(from.support_complex_types());
+ if (cached_has_bits & 0x00000020u) {
+ support_complex_types_ = from.support_complex_types_;
}
- if (from.has_support_timeout()) {
- set_support_timeout(from.support_timeout());
+ if (cached_has_bits & 0x00000040u) {
+ support_timeout_ = from.support_timeout_;
}
- if (from.has_client_infos()) {
- mutable_client_infos()->::exec::user::RpcEndpointInfos::MergeFrom(from.client_infos());
+ if (cached_has_bits & 0x00000080u) {
+ sasl_support_ = from.sasl_support_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_sasl_support()) {
- set_sasl_support(from.sasl_support());
- }
+ if (cached_has_bits & 0x00000100u) {
+ set_channel(from.channel());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void UserToBitHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.UserToBitHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void UserToBitHandshake::CopyFrom(const UserToBitHandshake& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.UserToBitHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool UserToBitHandshake::IsInitialized() const {
-
if (has_properties()) {
- if (!this->properties().IsInitialized()) return false;
+ if (!this->properties_->IsInitialized()) return false;
}
return true;
}
void UserToBitHandshake::Swap(UserToBitHandshake* other) {
- if (other != this) {
- std::swap(channel_, other->channel_);
- std::swap(support_listening_, other->support_listening_);
- std::swap(rpc_version_, other->rpc_version_);
- std::swap(credentials_, other->credentials_);
- std::swap(properties_, other->properties_);
- std::swap(support_complex_types_, other->support_complex_types_);
- std::swap(support_timeout_, other->support_timeout_);
- std::swap(client_infos_, other->client_infos_);
- std::swap(sasl_support_, other->sasl_support_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void UserToBitHandshake::InternalSwap(UserToBitHandshake* other) {
+ using std::swap;
+ swap(credentials_, other->credentials_);
+ swap(properties_, other->properties_);
+ swap(client_infos_, other->client_infos_);
+ swap(rpc_version_, other->rpc_version_);
+ swap(support_listening_, other->support_listening_);
+ swap(support_complex_types_, other->support_complex_types_);
+ swap(support_timeout_, other->support_timeout_);
+ swap(sasl_support_, other->sasl_support_);
+ swap(channel_, other->channel_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata UserToBitHandshake::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = UserToBitHandshake_descriptor_;
- metadata.reflection = UserToBitHandshake_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RequestResults::InitAsDefaultInstance() {
+ ::exec::user::_RequestResults_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+}
+void RequestResults::clear_query_id() {
+ if (query_id_ != NULL) query_id_->Clear();
+ clear_has_query_id();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RequestResults::kQueryIdFieldNumber;
const int RequestResults::kMaximumResponsesFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RequestResults::RequestResults()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_RequestResults.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.RequestResults)
}
-
-void RequestResults::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
-}
-
RequestResults::RequestResults(const RequestResults& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ maximum_responses_ = from.maximum_responses_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.RequestResults)
}
void RequestResults::SharedCtor() {
- _cached_size_ = 0;
- query_id_ = NULL;
- maximum_responses_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&maximum_responses_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(maximum_responses_));
}
RequestResults::~RequestResults() {
+ // @@protoc_insertion_point(destructor:exec.user.RequestResults)
SharedDtor();
}
void RequestResults::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- }
+ if (this != internal_default_instance()) delete query_id_;
}
void RequestResults::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RequestResults::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RequestResults_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RequestResults& RequestResults::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_RequestResults.base);
+ return *internal_default_instance();
}
-RequestResults* RequestResults::default_instance_ = NULL;
-
-RequestResults* RequestResults::New() const {
- return new RequestResults;
-}
void RequestResults::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- }
- maximum_responses_ = 0;
+// @@protoc_insertion_point(message_clear_start:exec.user.RequestResults)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ maximum_responses_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RequestResults::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.RequestResults)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_maximum_responses;
break;
}
// optional int32 maximum_responses = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_maximum_responses:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_maximum_responses();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &maximum_responses_)));
- set_has_maximum_responses();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.RequestResults)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.RequestResults)
+ return false;
#undef DO_
}
void RequestResults::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.RequestResults)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->query_id(), output);
+ 1, this->_internal_query_id(), output);
}
// optional int32 maximum_responses = 2;
- if (has_maximum_responses()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->maximum_responses(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.RequestResults)
}
-::google::protobuf::uint8* RequestResults::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RequestResults::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.RequestResults)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_query_id(), deterministic, target);
}
// optional int32 maximum_responses = 2;
- if (has_maximum_responses()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->maximum_responses(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.RequestResults)
return target;
}
-int RequestResults::ByteSize() const {
- int total_size = 0;
+size_t RequestResults::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.RequestResults)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
}
// optional int32 maximum_responses = 2;
@@ -3313,182 +3827,190 @@ int RequestResults::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RequestResults::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.RequestResults)
+ GOOGLE_DCHECK_NE(&from, this);
const RequestResults* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RequestResults*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RequestResults>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.RequestResults)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.RequestResults)
MergeFrom(*source);
}
}
void RequestResults::MergeFrom(const RequestResults& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_id()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.RequestResults)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_maximum_responses()) {
- set_maximum_responses(from.maximum_responses());
+ if (cached_has_bits & 0x00000002u) {
+ maximum_responses_ = from.maximum_responses_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RequestResults::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.RequestResults)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RequestResults::CopyFrom(const RequestResults& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.RequestResults)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RequestResults::IsInitialized() const {
-
return true;
}
void RequestResults::Swap(RequestResults* other) {
- if (other != this) {
- std::swap(query_id_, other->query_id_);
- std::swap(maximum_responses_, other->maximum_responses_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RequestResults::InternalSwap(RequestResults* other) {
+ using std::swap;
+ swap(query_id_, other->query_id_);
+ swap(maximum_responses_, other->maximum_responses_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RequestResults::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RequestResults_descriptor_;
- metadata.reflection = RequestResults_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetQueryPlanFragments::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetQueryPlanFragments::kQueryFieldNumber;
const int GetQueryPlanFragments::kTypeFieldNumber;
const int GetQueryPlanFragments::kSplitPlanFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetQueryPlanFragments::GetQueryPlanFragments()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetQueryPlanFragments.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetQueryPlanFragments)
}
-
-void GetQueryPlanFragments::InitAsDefaultInstance() {
-}
-
GetQueryPlanFragments::GetQueryPlanFragments(const GetQueryPlanFragments& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_query()) {
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
+ }
+ ::memcpy(&split_plan_, &from.split_plan_,
+ static_cast<size_t>(reinterpret_cast<char*>(&type_) -
+ reinterpret_cast<char*>(&split_plan_)) + sizeof(type_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetQueryPlanFragments)
}
void GetQueryPlanFragments::SharedCtor() {
- _cached_size_ = 0;
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- type_ = 1;
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
split_plan_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ type_ = 1;
}
GetQueryPlanFragments::~GetQueryPlanFragments() {
+ // @@protoc_insertion_point(destructor:exec.user.GetQueryPlanFragments)
SharedDtor();
}
void GetQueryPlanFragments::SharedDtor() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (this != default_instance_) {
- }
+ query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void GetQueryPlanFragments::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetQueryPlanFragments::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetQueryPlanFragments_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetQueryPlanFragments& GetQueryPlanFragments::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetQueryPlanFragments.base);
+ return *internal_default_instance();
}
-GetQueryPlanFragments* GetQueryPlanFragments::default_instance_ = NULL;
-
-GetQueryPlanFragments* GetQueryPlanFragments::New() const {
- return new GetQueryPlanFragments;
-}
void GetQueryPlanFragments::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query()) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
- }
- type_ = 1;
+// @@protoc_insertion_point(message_clear_start:exec.user.GetQueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ query_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 6u) {
split_plan_ = false;
+ type_ = 1;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetQueryPlanFragments::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetQueryPlanFragments)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string query = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_query()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.GetQueryPlanFragments.query");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_type;
break;
}
// optional .exec.shared.QueryType type = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -3496,114 +4018,141 @@ bool GetQueryPlanFragments::MergePartialFromCodedStream(
if (::exec::shared::QueryType_IsValid(value)) {
set_type(static_cast< ::exec::shared::QueryType >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_split_plan;
break;
}
// optional bool split_plan = 3 [default = false];
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_split_plan:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_split_plan();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &split_plan_)));
- set_has_split_plan();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetQueryPlanFragments)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetQueryPlanFragments)
+ return false;
#undef DO_
}
void GetQueryPlanFragments::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetQueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required string query = 1;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.GetQueryPlanFragments.query");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->query(), output);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->type(), output);
}
// optional bool split_plan = 3 [default = false];
- if (has_split_plan()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->split_plan(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetQueryPlanFragments)
}
-::google::protobuf::uint8* GetQueryPlanFragments::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetQueryPlanFragments::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetQueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required string query = 1;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.GetQueryPlanFragments.query");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->query(), target);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->type(), target);
}
// optional bool split_plan = 3 [default = false];
- if (has_split_plan()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->split_plan(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetQueryPlanFragments)
return target;
}
-int GetQueryPlanFragments::ByteSize() const {
- int total_size = 0;
+size_t GetQueryPlanFragments::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetQueryPlanFragments)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // required string query = 1;
- if (has_query()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->query());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // required string query = 1;
+ if (has_query()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->query());
+ }
+ if (_has_bits_[0 / 32] & 6u) {
+ // optional bool split_plan = 3 [default = false];
+ if (has_split_plan()) {
+ total_size += 1 + 1;
}
// optional .exec.shared.QueryType type = 2;
@@ -3612,58 +4161,59 @@ int GetQueryPlanFragments::ByteSize() const {
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
- // optional bool split_plan = 3 [default = false];
- if (has_split_plan()) {
- total_size += 1 + 1;
- }
-
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetQueryPlanFragments::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetQueryPlanFragments)
+ GOOGLE_DCHECK_NE(&from, this);
const GetQueryPlanFragments* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetQueryPlanFragments*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetQueryPlanFragments>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetQueryPlanFragments)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetQueryPlanFragments)
MergeFrom(*source);
}
}
void GetQueryPlanFragments::MergeFrom(const GetQueryPlanFragments& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query()) {
- set_query(from.query());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetQueryPlanFragments)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_query();
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
}
- if (from.has_type()) {
- set_type(from.type());
+ if (cached_has_bits & 0x00000002u) {
+ split_plan_ = from.split_plan_;
}
- if (from.has_split_plan()) {
- set_split_plan(from.split_plan());
+ if (cached_has_bits & 0x00000004u) {
+ type_ = from.type_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetQueryPlanFragments::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetQueryPlanFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetQueryPlanFragments::CopyFrom(const GetQueryPlanFragments& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetQueryPlanFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
@@ -3671,120 +4221,149 @@ void GetQueryPlanFragments::CopyFrom(const GetQueryPlanFragments& from) {
bool GetQueryPlanFragments::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
-
return true;
}
void GetQueryPlanFragments::Swap(GetQueryPlanFragments* other) {
- if (other != this) {
- std::swap(query_, other->query_);
- std::swap(type_, other->type_);
- std::swap(split_plan_, other->split_plan_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetQueryPlanFragments::InternalSwap(GetQueryPlanFragments* other) {
+ using std::swap;
+ query_.Swap(&other->query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(split_plan_, other->split_plan_);
+ swap(type_, other->type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetQueryPlanFragments::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetQueryPlanFragments_descriptor_;
- metadata.reflection = GetQueryPlanFragments_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void QueryPlanFragments::InitAsDefaultInstance() {
+ ::exec::user::_QueryPlanFragments_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+ ::exec::user::_QueryPlanFragments_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void QueryPlanFragments::clear_query_id() {
+ if (query_id_ != NULL) query_id_->Clear();
+ clear_has_query_id();
+}
+void QueryPlanFragments::clear_fragments() {
+ fragments_.Clear();
+}
+void QueryPlanFragments::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryPlanFragments::kStatusFieldNumber;
const int QueryPlanFragments::kQueryIdFieldNumber;
const int QueryPlanFragments::kFragmentsFieldNumber;
const int QueryPlanFragments::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryPlanFragments::QueryPlanFragments()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_QueryPlanFragments.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.QueryPlanFragments)
}
-
-void QueryPlanFragments::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
QueryPlanFragments::QueryPlanFragments(const QueryPlanFragments& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ fragments_(from.fragments_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.QueryPlanFragments)
}
void QueryPlanFragments::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- query_id_ = NULL;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(status_));
}
QueryPlanFragments::~QueryPlanFragments() {
+ // @@protoc_insertion_point(destructor:exec.user.QueryPlanFragments)
SharedDtor();
}
void QueryPlanFragments::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- delete error_;
- }
+ if (this != internal_default_instance()) delete query_id_;
+ if (this != internal_default_instance()) delete error_;
}
void QueryPlanFragments::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryPlanFragments::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryPlanFragments_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryPlanFragments& QueryPlanFragments::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_QueryPlanFragments.base);
+ return *internal_default_instance();
}
-QueryPlanFragments* QueryPlanFragments::default_instance_ = NULL;
-
-QueryPlanFragments* QueryPlanFragments::New() const {
- return new QueryPlanFragments;
-}
void QueryPlanFragments::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.QueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fragments_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
}
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
}
}
- fragments_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryPlanFragments::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.QueryPlanFragments)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .exec.shared.QueryResult.QueryState status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -3792,257 +4371,286 @@ bool QueryPlanFragments::MergePartialFromCodedStream(
if (::exec::shared::QueryResult_QueryState_IsValid(value)) {
set_status(static_cast< ::exec::shared::QueryResult_QueryState >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_query_id;
break;
}
// optional .exec.shared.QueryId query_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_query_id:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_fragments;
break;
}
// repeated .exec.bit.control.PlanFragment fragments = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragments:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_fragments()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_fragments;
- if (input->ExpectTag(34)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.QueryPlanFragments)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.QueryPlanFragments)
+ return false;
#undef DO_
}
void QueryPlanFragments::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.QueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required .exec.shared.QueryResult.QueryState status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// optional .exec.shared.QueryId query_id = 2;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->query_id(), output);
+ 2, this->_internal_query_id(), output);
}
// repeated .exec.bit.control.PlanFragment fragments = 3;
- for (int i = 0; i < this->fragments_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragments_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->fragments(i), output);
+ 3,
+ this->fragments(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.DrillPBError error = 4;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->error(), output);
+ 4, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.QueryPlanFragments)
}
-::google::protobuf::uint8* QueryPlanFragments::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryPlanFragments::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.QueryPlanFragments)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required .exec.shared.QueryResult.QueryState status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// optional .exec.shared.QueryId query_id = 2;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_query_id(), deterministic, target);
}
// repeated .exec.bit.control.PlanFragment fragments = 3;
- for (int i = 0; i < this->fragments_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragments_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->fragments(i), target);
+ InternalWriteMessageToArray(
+ 3, this->fragments(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 4;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->error(), target);
+ InternalWriteMessageToArray(
+ 4, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.QueryPlanFragments)
return target;
}
-int QueryPlanFragments::ByteSize() const {
- int total_size = 0;
+size_t QueryPlanFragments::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.QueryPlanFragments)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // required .exec.shared.QueryResult.QueryState status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // required .exec.shared.QueryResult.QueryState status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ }
+ // repeated .exec.bit.control.PlanFragment fragments = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fragments_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fragments(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.QueryId query_id = 2;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
}
// optional .exec.shared.DrillPBError error = 4;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
}
}
- // repeated .exec.bit.control.PlanFragment fragments = 3;
- total_size += 1 * this->fragments_size();
- for (int i = 0; i < this->fragments_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fragments(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryPlanFragments::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.QueryPlanFragments)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryPlanFragments* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryPlanFragments*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryPlanFragments>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.QueryPlanFragments)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.QueryPlanFragments)
MergeFrom(*source);
}
}
void QueryPlanFragments::MergeFrom(const QueryPlanFragments& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.QueryPlanFragments)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
fragments_.MergeFrom(from.fragments_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_query_id()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_error()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000004u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryPlanFragments::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.QueryPlanFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryPlanFragments::CopyFrom(const QueryPlanFragments& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.QueryPlanFragments)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryPlanFragments::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
-
+ if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
return true;
}
void QueryPlanFragments::Swap(QueryPlanFragments* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- std::swap(query_id_, other->query_id_);
- fragments_.Swap(&other->fragments_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryPlanFragments::InternalSwap(QueryPlanFragments* other) {
+ using std::swap;
+ CastToBase(&fragments_)->InternalSwap(CastToBase(&other->fragments_));
+ swap(query_id_, other->query_id_);
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryPlanFragments::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryPlanFragments_descriptor_;
- metadata.reflection = QueryPlanFragments_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void BitToUserHandshake::InitAsDefaultInstance() {
+ ::exec::user::_BitToUserHandshake_default_instance_._instance.get_mutable()->server_infos_ = const_cast< ::exec::user::RpcEndpointInfos*>(
+ ::exec::user::RpcEndpointInfos::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BitToUserHandshake::kRpcVersionFieldNumber;
const int BitToUserHandshake::kStatusFieldNumber;
const int BitToUserHandshake::kErrorIdFieldNumber;
@@ -4052,126 +4660,134 @@ const int BitToUserHandshake::kAuthenticationMechanismsFieldNumber;
const int BitToUserHandshake::kSupportedMethodsFieldNumber;
const int BitToUserHandshake::kEncryptedFieldNumber;
const int BitToUserHandshake::kMaxWrappedSizeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BitToUserHandshake::BitToUserHandshake()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_BitToUserHandshake.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.BitToUserHandshake)
}
-
-void BitToUserHandshake::InitAsDefaultInstance() {
- server_infos_ = const_cast< ::exec::user::RpcEndpointInfos*>(&::exec::user::RpcEndpointInfos::default_instance());
-}
-
BitToUserHandshake::BitToUserHandshake(const BitToUserHandshake& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ authenticationmechanisms_(from.authenticationmechanisms_),
+ supported_methods_(from.supported_methods_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ errorid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_errorid()) {
+ errorid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errorid_);
+ }
+ errormessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_errormessage()) {
+ errormessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errormessage_);
+ }
+ if (from.has_server_infos()) {
+ server_infos_ = new ::exec::user::RpcEndpointInfos(*from.server_infos_);
+ } else {
+ server_infos_ = NULL;
+ }
+ ::memcpy(&rpc_version_, &from.rpc_version_,
+ static_cast<size_t>(reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(status_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.BitToUserHandshake)
}
void BitToUserHandshake::SharedCtor() {
- _cached_size_ = 0;
- rpc_version_ = 0;
+ errorid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ errormessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&server_infos_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&maxwrappedsize_) -
+ reinterpret_cast<char*>(&server_infos_)) + sizeof(maxwrappedsize_));
status_ = 1;
- errorid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- server_infos_ = NULL;
- encrypted_ = false;
- maxwrappedsize_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
BitToUserHandshake::~BitToUserHandshake() {
+ // @@protoc_insertion_point(destructor:exec.user.BitToUserHandshake)
SharedDtor();
}
void BitToUserHandshake::SharedDtor() {
- if (errorid_ != &::google::protobuf::internal::kEmptyString) {
- delete errorid_;
- }
- if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
- delete errormessage_;
- }
- if (this != default_instance_) {
- delete server_infos_;
- }
+ errorid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ errormessage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete server_infos_;
}
void BitToUserHandshake::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* BitToUserHandshake::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return BitToUserHandshake_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BitToUserHandshake& BitToUserHandshake::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_BitToUserHandshake.base);
+ return *internal_default_instance();
}
-BitToUserHandshake* BitToUserHandshake::default_instance_ = NULL;
-
-BitToUserHandshake* BitToUserHandshake::New() const {
- return new BitToUserHandshake;
-}
void BitToUserHandshake::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- rpc_version_ = 0;
- status_ = 1;
- if (has_errorid()) {
- if (errorid_ != &::google::protobuf::internal::kEmptyString) {
- errorid_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.BitToUserHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ authenticationmechanisms_.Clear();
+ supported_methods_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ errorid_.ClearNonDefaultToEmptyNoArena();
}
- if (has_errormessage()) {
- if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
- errormessage_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ errormessage_.ClearNonDefaultToEmptyNoArena();
}
- if (has_server_infos()) {
- if (server_infos_ != NULL) server_infos_->::exec::user::RpcEndpointInfos::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(server_infos_ != NULL);
+ server_infos_->Clear();
}
- encrypted_ = false;
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- maxwrappedsize_ = 0;
+ if (cached_has_bits & 120u) {
+ ::memset(&rpc_version_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&maxwrappedsize_) -
+ reinterpret_cast<char*>(&rpc_version_)) + sizeof(maxwrappedsize_));
+ status_ = 1;
}
- authenticationmechanisms_.Clear();
- supported_methods_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool BitToUserHandshake::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.BitToUserHandshake)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 rpc_version = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_rpc_version();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &rpc_version_)));
- set_has_rpc_version();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_status;
break;
}
// optional .exec.user.HandshakeStatus status = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_status:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -4179,87 +4795,80 @@ bool BitToUserHandshake::MergePartialFromCodedStream(
if (::exec::user::HandshakeStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::HandshakeStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(3, value);
+ mutable_unknown_fields()->AddVarint(
+ 3, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_errorId;
break;
}
// optional string errorId = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_errorId:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_errorid()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errorid().data(), this->errorid().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errorid().data(), static_cast<int>(this->errorid().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.BitToUserHandshake.errorId");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_errorMessage;
break;
}
// optional string errorMessage = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_errorMessage:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_errormessage()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errormessage().data(), this->errormessage().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errormessage().data(), static_cast<int>(this->errormessage().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.BitToUserHandshake.errorMessage");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_server_infos;
break;
}
// optional .exec.user.RpcEndpointInfos server_infos = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_server_infos:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_server_infos()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(58)) goto parse_authenticationMechanisms;
break;
}
// repeated string authenticationMechanisms = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_authenticationMechanisms:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_authenticationmechanisms()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).data(),
- this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->authenticationmechanisms(this->authenticationmechanisms_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.BitToUserHandshake.authenticationMechanisms");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(58)) goto parse_authenticationMechanisms;
- if (input->ExpectTag(64)) goto parse_supported_methods;
break;
}
// repeated .exec.user.RpcType supported_methods = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_supported_methods:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -4267,228 +4876,257 @@ bool BitToUserHandshake::MergePartialFromCodedStream(
if (::exec::user::RpcType_IsValid(value)) {
add_supported_methods(static_cast< ::exec::user::RpcType >(value));
} else {
- mutable_unknown_fields()->AddVarint(8, value);
+ mutable_unknown_fields()->AddVarint(
+ 8, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::RpcType_IsValid,
+ 8,
+ ::exec::user::RpcType_IsValid,
+ mutable_unknown_fields(),
this->mutable_supported_methods())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_supported_methods;
- if (input->ExpectTag(72)) goto parse_encrypted;
break;
}
// optional bool encrypted = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_encrypted:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_encrypted();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &encrypted_)));
- set_has_encrypted();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(80)) goto parse_maxWrappedSize;
break;
}
// optional int32 maxWrappedSize = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_maxWrappedSize:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
+ set_has_maxwrappedsize();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &maxwrappedsize_)));
- set_has_maxwrappedsize();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.BitToUserHandshake)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.BitToUserHandshake)
+ return false;
#undef DO_
}
void BitToUserHandshake::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.BitToUserHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 2;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->rpc_version(), output);
}
// optional .exec.user.HandshakeStatus status = 3;
- if (has_status()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->status(), output);
}
// optional string errorId = 4;
- if (has_errorid()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errorid().data(), this->errorid().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errorid().data(), static_cast<int>(this->errorid().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.errorId");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->errorid(), output);
}
// optional string errorMessage = 5;
- if (has_errormessage()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errormessage().data(), this->errormessage().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errormessage().data(), static_cast<int>(this->errormessage().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.errorMessage");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->errormessage(), output);
}
// optional .exec.user.RpcEndpointInfos server_infos = 6;
- if (has_server_infos()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->server_infos(), output);
+ 6, this->_internal_server_infos(), output);
}
// repeated string authenticationMechanisms = 7;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.authenticationMechanisms");
::google::protobuf::internal::WireFormatLite::WriteString(
7, this->authenticationmechanisms(i), output);
}
// repeated .exec.user.RpcType supported_methods = 8;
- for (int i = 0; i < this->supported_methods_size(); i++) {
+ for (int i = 0, n = this->supported_methods_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
8, this->supported_methods(i), output);
}
// optional bool encrypted = 9;
- if (has_encrypted()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteBool(9, this->encrypted(), output);
}
// optional int32 maxWrappedSize = 10;
- if (has_maxwrappedsize()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->maxwrappedsize(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.BitToUserHandshake)
}
-::google::protobuf::uint8* BitToUserHandshake::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* BitToUserHandshake::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.BitToUserHandshake)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 rpc_version = 2;
- if (has_rpc_version()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->rpc_version(), target);
}
// optional .exec.user.HandshakeStatus status = 3;
- if (has_status()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->status(), target);
}
// optional string errorId = 4;
- if (has_errorid()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errorid().data(), this->errorid().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errorid().data(), static_cast<int>(this->errorid().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.errorId");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->errorid(), target);
}
// optional string errorMessage = 5;
- if (has_errormessage()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->errormessage().data(), this->errormessage().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->errormessage().data(), static_cast<int>(this->errormessage().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.errorMessage");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->errormessage(), target);
}
// optional .exec.user.RpcEndpointInfos server_infos = 6;
- if (has_server_infos()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 6, this->server_infos(), target);
+ InternalWriteMessageToArray(
+ 6, this->_internal_server_infos(), deterministic, target);
}
// repeated string authenticationMechanisms = 7;
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->authenticationmechanisms(i).data(), this->authenticationmechanisms(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->authenticationmechanisms(i).data(), static_cast<int>(this->authenticationmechanisms(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.BitToUserHandshake.authenticationMechanisms");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(7, this->authenticationmechanisms(i), target);
}
// repeated .exec.user.RpcType supported_methods = 8;
- for (int i = 0; i < this->supported_methods_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 8, this->supported_methods(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 8, this->supported_methods_, target);
// optional bool encrypted = 9;
- if (has_encrypted()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->encrypted(), target);
}
// optional int32 maxWrappedSize = 10;
- if (has_maxwrappedsize()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->maxwrappedsize(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.BitToUserHandshake)
return target;
}
-int BitToUserHandshake::ByteSize() const {
- int total_size = 0;
+size_t BitToUserHandshake::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.BitToUserHandshake)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 rpc_version = 2;
- if (has_rpc_version()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->rpc_version());
- }
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated string authenticationMechanisms = 7;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->authenticationmechanisms_size());
+ for (int i = 0, n = this->authenticationmechanisms_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->authenticationmechanisms(i));
+ }
- // optional .exec.user.HandshakeStatus status = 3;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ // repeated .exec.user.RpcType supported_methods = 8;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->supported_methods_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->supported_methods(static_cast<int>(i)));
}
+ total_size += (1UL * count) + data_size;
+ }
+ if (_has_bits_[0 / 32] & 127u) {
// optional string errorId = 4;
if (has_errorid()) {
total_size += 1 +
@@ -4506,8 +5144,15 @@ int BitToUserHandshake::ByteSize() const {
// optional .exec.user.RpcEndpointInfos server_infos = 6;
if (has_server_infos()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->server_infos());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *server_infos_);
+ }
+
+ // optional int32 rpc_version = 2;
+ if (has_rpc_version()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->rpc_version());
}
// optional bool encrypted = 9;
@@ -4515,8 +5160,6 @@ int BitToUserHandshake::ByteSize() const {
total_size += 1 + 1;
}
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional int32 maxWrappedSize = 10;
if (has_maxwrappedsize()) {
total_size += 1 +
@@ -4524,317 +5167,340 @@ int BitToUserHandshake::ByteSize() const {
this->maxwrappedsize());
}
- }
- // repeated string authenticationMechanisms = 7;
- total_size += 1 * this->authenticationmechanisms_size();
- for (int i = 0; i < this->authenticationmechanisms_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->authenticationmechanisms(i));
- }
-
- // repeated .exec.user.RpcType supported_methods = 8;
- {
- int data_size = 0;
- for (int i = 0; i < this->supported_methods_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->supported_methods(i));
+ // optional .exec.user.HandshakeStatus status = 3;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
}
- total_size += 1 * this->supported_methods_size() + data_size;
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void BitToUserHandshake::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.BitToUserHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
const BitToUserHandshake* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const BitToUserHandshake*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const BitToUserHandshake>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.BitToUserHandshake)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.BitToUserHandshake)
MergeFrom(*source);
}
}
void BitToUserHandshake::MergeFrom(const BitToUserHandshake& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.BitToUserHandshake)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
authenticationmechanisms_.MergeFrom(from.authenticationmechanisms_);
supported_methods_.MergeFrom(from.supported_methods_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_rpc_version()) {
- set_rpc_version(from.rpc_version());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 127u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_errorid();
+ errorid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errorid_);
}
- if (from.has_status()) {
- set_status(from.status());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_errormessage();
+ errormessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errormessage_);
}
- if (from.has_errorid()) {
- set_errorid(from.errorid());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_server_infos()->::exec::user::RpcEndpointInfos::MergeFrom(from.server_infos());
}
- if (from.has_errormessage()) {
- set_errormessage(from.errormessage());
+ if (cached_has_bits & 0x00000008u) {
+ rpc_version_ = from.rpc_version_;
}
- if (from.has_server_infos()) {
- mutable_server_infos()->::exec::user::RpcEndpointInfos::MergeFrom(from.server_infos());
+ if (cached_has_bits & 0x00000010u) {
+ encrypted_ = from.encrypted_;
}
- if (from.has_encrypted()) {
- set_encrypted(from.encrypted());
+ if (cached_has_bits & 0x00000020u) {
+ maxwrappedsize_ = from.maxwrappedsize_;
}
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_maxwrappedsize()) {
- set_maxwrappedsize(from.maxwrappedsize());
+ if (cached_has_bits & 0x00000040u) {
+ status_ = from.status_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BitToUserHandshake::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.BitToUserHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BitToUserHandshake::CopyFrom(const BitToUserHandshake& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.BitToUserHandshake)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BitToUserHandshake::IsInitialized() const {
-
return true;
}
void BitToUserHandshake::Swap(BitToUserHandshake* other) {
- if (other != this) {
- std::swap(rpc_version_, other->rpc_version_);
- std::swap(status_, other->status_);
- std::swap(errorid_, other->errorid_);
- std::swap(errormessage_, other->errormessage_);
- std::swap(server_infos_, other->server_infos_);
- authenticationmechanisms_.Swap(&other->authenticationmechanisms_);
- supported_methods_.Swap(&other->supported_methods_);
- std::swap(encrypted_, other->encrypted_);
- std::swap(maxwrappedsize_, other->maxwrappedsize_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BitToUserHandshake::InternalSwap(BitToUserHandshake* other) {
+ using std::swap;
+ authenticationmechanisms_.InternalSwap(CastToBase(&other->authenticationmechanisms_));
+ supported_methods_.InternalSwap(&other->supported_methods_);
+ errorid_.Swap(&other->errorid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ errormessage_.Swap(&other->errormessage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(server_infos_, other->server_infos_);
+ swap(rpc_version_, other->rpc_version_);
+ swap(encrypted_, other->encrypted_);
+ swap(maxwrappedsize_, other->maxwrappedsize_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata BitToUserHandshake::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = BitToUserHandshake_descriptor_;
- metadata.reflection = BitToUserHandshake_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void LikeFilter::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int LikeFilter::kPatternFieldNumber;
const int LikeFilter::kEscapeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
LikeFilter::LikeFilter()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_LikeFilter.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.LikeFilter)
}
-
-void LikeFilter::InitAsDefaultInstance() {
-}
-
LikeFilter::LikeFilter(const LikeFilter& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_pattern()) {
+ pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_);
+ }
+ escape_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_escape()) {
+ escape_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.escape_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.LikeFilter)
}
void LikeFilter::SharedCtor() {
- _cached_size_ = 0;
- pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- escape_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ pattern_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ escape_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
LikeFilter::~LikeFilter() {
+ // @@protoc_insertion_point(destructor:exec.user.LikeFilter)
SharedDtor();
}
void LikeFilter::SharedDtor() {
- if (pattern_ != &::google::protobuf::internal::kEmptyString) {
- delete pattern_;
- }
- if (escape_ != &::google::protobuf::internal::kEmptyString) {
- delete escape_;
- }
- if (this != default_instance_) {
- }
+ pattern_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ escape_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void LikeFilter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* LikeFilter::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return LikeFilter_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const LikeFilter& LikeFilter::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_LikeFilter.base);
+ return *internal_default_instance();
}
-LikeFilter* LikeFilter::default_instance_ = NULL;
-
-LikeFilter* LikeFilter::New() const {
- return new LikeFilter;
-}
void LikeFilter::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_pattern()) {
- if (pattern_ != &::google::protobuf::internal::kEmptyString) {
- pattern_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.LikeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ pattern_.ClearNonDefaultToEmptyNoArena();
}
- if (has_escape()) {
- if (escape_ != &::google::protobuf::internal::kEmptyString) {
- escape_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ escape_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool LikeFilter::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.LikeFilter)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string pattern = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_pattern()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->pattern().data(), this->pattern().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->pattern().data(), static_cast<int>(this->pattern().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.LikeFilter.pattern");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_escape;
break;
}
// optional string escape = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_escape:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_escape()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->escape().data(), this->escape().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->escape().data(), static_cast<int>(this->escape().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.LikeFilter.escape");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.LikeFilter)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.LikeFilter)
+ return false;
#undef DO_
}
void LikeFilter::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.LikeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string pattern = 1;
- if (has_pattern()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->pattern().data(), this->pattern().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->pattern().data(), static_cast<int>(this->pattern().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.LikeFilter.pattern");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->pattern(), output);
}
// optional string escape = 2;
- if (has_escape()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->escape().data(), this->escape().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->escape().data(), static_cast<int>(this->escape().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.LikeFilter.escape");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->escape(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.LikeFilter)
}
-::google::protobuf::uint8* LikeFilter::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* LikeFilter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.LikeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string pattern = 1;
- if (has_pattern()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->pattern().data(), this->pattern().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->pattern().data(), static_cast<int>(this->pattern().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.LikeFilter.pattern");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->pattern(), target);
}
// optional string escape = 2;
- if (has_escape()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->escape().data(), this->escape().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->escape().data(), static_cast<int>(this->escape().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.LikeFilter.escape");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->escape(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.LikeFilter)
return target;
}
-int LikeFilter::ByteSize() const {
- int total_size = 0;
+size_t LikeFilter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.LikeFilter)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional string pattern = 1;
if (has_pattern()) {
total_size += 1 +
@@ -4850,532 +5516,595 @@ int LikeFilter::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void LikeFilter::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.LikeFilter)
+ GOOGLE_DCHECK_NE(&from, this);
const LikeFilter* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const LikeFilter*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const LikeFilter>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.LikeFilter)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.LikeFilter)
MergeFrom(*source);
}
}
void LikeFilter::MergeFrom(const LikeFilter& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_pattern()) {
- set_pattern(from.pattern());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.LikeFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_pattern();
+ pattern_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pattern_);
}
- if (from.has_escape()) {
- set_escape(from.escape());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_escape();
+ escape_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.escape_);
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void LikeFilter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.LikeFilter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void LikeFilter::CopyFrom(const LikeFilter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.LikeFilter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LikeFilter::IsInitialized() const {
-
return true;
}
void LikeFilter::Swap(LikeFilter* other) {
- if (other != this) {
- std::swap(pattern_, other->pattern_);
- std::swap(escape_, other->escape_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void LikeFilter::InternalSwap(LikeFilter* other) {
+ using std::swap;
+ pattern_.Swap(&other->pattern_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ escape_.Swap(&other->escape_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata LikeFilter::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = LikeFilter_descriptor_;
- metadata.reflection = LikeFilter_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetCatalogsReq::InitAsDefaultInstance() {
+ ::exec::user::_GetCatalogsReq_default_instance_._instance.get_mutable()->catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetCatalogsReq::kCatalogNameFilterFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetCatalogsReq::GetCatalogsReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetCatalogsReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetCatalogsReq)
}
-
-void GetCatalogsReq::InitAsDefaultInstance() {
- catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
-}
-
GetCatalogsReq::GetCatalogsReq(const GetCatalogsReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_catalog_name_filter()) {
+ catalog_name_filter_ = new ::exec::user::LikeFilter(*from.catalog_name_filter_);
+ } else {
+ catalog_name_filter_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetCatalogsReq)
}
void GetCatalogsReq::SharedCtor() {
- _cached_size_ = 0;
catalog_name_filter_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
GetCatalogsReq::~GetCatalogsReq() {
+ // @@protoc_insertion_point(destructor:exec.user.GetCatalogsReq)
SharedDtor();
}
void GetCatalogsReq::SharedDtor() {
- if (this != default_instance_) {
- delete catalog_name_filter_;
- }
+ if (this != internal_default_instance()) delete catalog_name_filter_;
}
void GetCatalogsReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetCatalogsReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetCatalogsReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetCatalogsReq& GetCatalogsReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetCatalogsReq.base);
+ return *internal_default_instance();
}
-GetCatalogsReq* GetCatalogsReq::default_instance_ = NULL;
-
-GetCatalogsReq* GetCatalogsReq::New() const {
- return new GetCatalogsReq;
-}
void GetCatalogsReq::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name_filter()) {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.GetCatalogsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(catalog_name_filter_ != NULL);
+ catalog_name_filter_->Clear();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetCatalogsReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetCatalogsReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_catalog_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetCatalogsReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetCatalogsReq)
+ return false;
#undef DO_
}
void GetCatalogsReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetCatalogsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->catalog_name_filter(), output);
+ 1, this->_internal_catalog_name_filter(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetCatalogsReq)
}
-::google::protobuf::uint8* GetCatalogsReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetCatalogsReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetCatalogsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->catalog_name_filter(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_catalog_name_filter(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetCatalogsReq)
return target;
}
-int GetCatalogsReq::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->catalog_name_filter());
- }
+size_t GetCatalogsReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetCatalogsReq)
+ size_t total_size = 0;
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // optional .exec.user.LikeFilter catalog_name_filter = 1;
+ if (has_catalog_name_filter()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *catalog_name_filter_);
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetCatalogsReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetCatalogsReq)
+ GOOGLE_DCHECK_NE(&from, this);
const GetCatalogsReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetCatalogsReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetCatalogsReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetCatalogsReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetCatalogsReq)
MergeFrom(*source);
}
}
void GetCatalogsReq::MergeFrom(const GetCatalogsReq& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name_filter()) {
- mutable_catalog_name_filter()->::exec::user::LikeFilter::MergeFrom(from.catalog_name_filter());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetCatalogsReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_catalog_name_filter()) {
+ mutable_catalog_name_filter()->::exec::user::LikeFilter::MergeFrom(from.catalog_name_filter());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetCatalogsReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetCatalogsReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetCatalogsReq::CopyFrom(const GetCatalogsReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetCatalogsReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetCatalogsReq::IsInitialized() const {
-
return true;
}
void GetCatalogsReq::Swap(GetCatalogsReq* other) {
- if (other != this) {
- std::swap(catalog_name_filter_, other->catalog_name_filter_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetCatalogsReq::InternalSwap(GetCatalogsReq* other) {
+ using std::swap;
+ swap(catalog_name_filter_, other->catalog_name_filter_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetCatalogsReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetCatalogsReq_descriptor_;
- metadata.reflection = GetCatalogsReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void CatalogMetadata::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CatalogMetadata::kCatalogNameFieldNumber;
const int CatalogMetadata::kDescriptionFieldNumber;
const int CatalogMetadata::kConnectFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CatalogMetadata::CatalogMetadata()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_CatalogMetadata.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.CatalogMetadata)
}
-
-void CatalogMetadata::InitAsDefaultInstance() {
-}
-
CatalogMetadata::CatalogMetadata(const CatalogMetadata& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_name()) {
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
+ }
+ description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_description()) {
+ description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
+ }
+ connect_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_connect()) {
+ connect_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.connect_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.CatalogMetadata)
}
void CatalogMetadata::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- connect_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ connect_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
CatalogMetadata::~CatalogMetadata() {
+ // @@protoc_insertion_point(destructor:exec.user.CatalogMetadata)
SharedDtor();
}
void CatalogMetadata::SharedDtor() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (description_ != &::google::protobuf::internal::kEmptyString) {
- delete description_;
- }
- if (connect_ != &::google::protobuf::internal::kEmptyString) {
- delete connect_;
- }
- if (this != default_instance_) {
- }
+ catalog_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ connect_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void CatalogMetadata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* CatalogMetadata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CatalogMetadata_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const CatalogMetadata& CatalogMetadata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_CatalogMetadata.base);
+ return *internal_default_instance();
}
-CatalogMetadata* CatalogMetadata::default_instance_ = NULL;
-
-CatalogMetadata* CatalogMetadata::New() const {
- return new CatalogMetadata;
-}
void CatalogMetadata::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name()) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.CatalogMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_description()) {
- if (description_ != &::google::protobuf::internal::kEmptyString) {
- description_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ description_.ClearNonDefaultToEmptyNoArena();
}
- if (has_connect()) {
- if (connect_ != &::google::protobuf::internal::kEmptyString) {
- connect_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ connect_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool CatalogMetadata::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.CatalogMetadata)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string catalog_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.CatalogMetadata.catalog_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_description;
break;
}
// optional string description = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_description:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_description()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->description().data(), this->description().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->description().data(), static_cast<int>(this->description().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.CatalogMetadata.description");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_connect;
break;
}
// optional string connect = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_connect:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_connect()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->connect().data(), this->connect().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->connect().data(), static_cast<int>(this->connect().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.CatalogMetadata.connect");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.CatalogMetadata)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.CatalogMetadata)
+ return false;
#undef DO_
}
void CatalogMetadata::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.CatalogMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.catalog_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->catalog_name(), output);
}
// optional string description = 2;
- if (has_description()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->description().data(), this->description().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->description().data(), static_cast<int>(this->description().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.description");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->description(), output);
}
// optional string connect = 3;
- if (has_connect()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->connect().data(), this->connect().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->connect().data(), static_cast<int>(this->connect().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.connect");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->connect(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.CatalogMetadata)
}
-::google::protobuf::uint8* CatalogMetadata::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* CatalogMetadata::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.CatalogMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.catalog_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->catalog_name(), target);
}
// optional string description = 2;
- if (has_description()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->description().data(), this->description().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->description().data(), static_cast<int>(this->description().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.description");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->description(), target);
}
// optional string connect = 3;
- if (has_connect()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->connect().data(), this->connect().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->connect().data(), static_cast<int>(this->connect().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CatalogMetadata.connect");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->connect(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.CatalogMetadata)
return target;
}
-int CatalogMetadata::ByteSize() const {
- int total_size = 0;
+size_t CatalogMetadata::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.CatalogMetadata)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional string catalog_name = 1;
if (has_catalog_name()) {
total_size += 1 +
@@ -5398,165 +6127,188 @@ int CatalogMetadata::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void CatalogMetadata::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.CatalogMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
const CatalogMetadata* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const CatalogMetadata*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const CatalogMetadata>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.CatalogMetadata)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.CatalogMetadata)
MergeFrom(*source);
}
}
void CatalogMetadata::MergeFrom(const CatalogMetadata& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name()) {
- set_catalog_name(from.catalog_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.CatalogMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_name();
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
}
- if (from.has_description()) {
- set_description(from.description());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_description();
+ description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
}
- if (from.has_connect()) {
- set_connect(from.connect());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_connect();
+ connect_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.connect_);
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CatalogMetadata::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.CatalogMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CatalogMetadata::CopyFrom(const CatalogMetadata& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.CatalogMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CatalogMetadata::IsInitialized() const {
-
return true;
}
void CatalogMetadata::Swap(CatalogMetadata* other) {
- if (other != this) {
- std::swap(catalog_name_, other->catalog_name_);
- std::swap(description_, other->description_);
- std::swap(connect_, other->connect_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CatalogMetadata::InternalSwap(CatalogMetadata* other) {
+ using std::swap;
+ catalog_name_.Swap(&other->catalog_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ connect_.Swap(&other->connect_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata CatalogMetadata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = CatalogMetadata_descriptor_;
- metadata.reflection = CatalogMetadata_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetCatalogsResp::InitAsDefaultInstance() {
+ ::exec::user::_GetCatalogsResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void GetCatalogsResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetCatalogsResp::kStatusFieldNumber;
const int GetCatalogsResp::kCatalogsFieldNumber;
const int GetCatalogsResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetCatalogsResp::GetCatalogsResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetCatalogsResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetCatalogsResp)
}
-
-void GetCatalogsResp::InitAsDefaultInstance() {
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
GetCatalogsResp::GetCatalogsResp(const GetCatalogsResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ catalogs_(from.catalogs_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetCatalogsResp)
}
void GetCatalogsResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&error_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&error_)) + sizeof(status_));
}
GetCatalogsResp::~GetCatalogsResp() {
+ // @@protoc_insertion_point(destructor:exec.user.GetCatalogsResp)
SharedDtor();
}
void GetCatalogsResp::SharedDtor() {
- if (this != default_instance_) {
- delete error_;
- }
+ if (this != internal_default_instance()) delete error_;
}
void GetCatalogsResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetCatalogsResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetCatalogsResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetCatalogsResp& GetCatalogsResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetCatalogsResp.base);
+ return *internal_default_instance();
}
-GetCatalogsResp* GetCatalogsResp::default_instance_ = NULL;
-
-GetCatalogsResp* GetCatalogsResp::New() const {
- return new GetCatalogsResp;
-}
void GetCatalogsResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.GetCatalogsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
catalogs_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
+ }
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetCatalogsResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetCatalogsResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -5564,806 +6316,906 @@ bool GetCatalogsResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_catalogs;
break;
}
// repeated .exec.user.CatalogMetadata catalogs = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_catalogs:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_catalogs()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_catalogs;
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetCatalogsResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetCatalogsResp)
+ return false;
#undef DO_
}
void GetCatalogsResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetCatalogsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// repeated .exec.user.CatalogMetadata catalogs = 2;
- for (int i = 0; i < this->catalogs_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->catalogs_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->catalogs(i), output);
+ 2,
+ this->catalogs(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetCatalogsResp)
}
-::google::protobuf::uint8* GetCatalogsResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetCatalogsResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetCatalogsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// repeated .exec.user.CatalogMetadata catalogs = 2;
- for (int i = 0; i < this->catalogs_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->catalogs_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->catalogs(i), target);
+ InternalWriteMessageToArray(
+ 2, this->catalogs(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetCatalogsResp)
return target;
}
-int GetCatalogsResp::ByteSize() const {
- int total_size = 0;
+size_t GetCatalogsResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetCatalogsResp)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.CatalogMetadata catalogs = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->catalogs_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->catalogs(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
}
- }
- // repeated .exec.user.CatalogMetadata catalogs = 2;
- total_size += 1 * this->catalogs_size();
- for (int i = 0; i < this->catalogs_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->catalogs(i));
- }
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetCatalogsResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetCatalogsResp)
+ GOOGLE_DCHECK_NE(&from, this);
const GetCatalogsResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetCatalogsResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetCatalogsResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetCatalogsResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetCatalogsResp)
MergeFrom(*source);
}
}
void GetCatalogsResp::MergeFrom(const GetCatalogsResp& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetCatalogsResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
catalogs_.MergeFrom(from.catalogs_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_error()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000002u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetCatalogsResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetCatalogsResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetCatalogsResp::CopyFrom(const GetCatalogsResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetCatalogsResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetCatalogsResp::IsInitialized() const {
-
return true;
}
void GetCatalogsResp::Swap(GetCatalogsResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- catalogs_.Swap(&other->catalogs_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetCatalogsResp::InternalSwap(GetCatalogsResp* other) {
+ using std::swap;
+ CastToBase(&catalogs_)->InternalSwap(CastToBase(&other->catalogs_));
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetCatalogsResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetCatalogsResp_descriptor_;
- metadata.reflection = GetCatalogsResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetSchemasReq::InitAsDefaultInstance() {
+ ::exec::user::_GetSchemasReq_default_instance_._instance.get_mutable()->catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetSchemasReq_default_instance_._instance.get_mutable()->schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetSchemasReq::kCatalogNameFilterFieldNumber;
const int GetSchemasReq::kSchemaNameFilterFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetSchemasReq::GetSchemasReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetSchemasReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetSchemasReq)
}
-
-void GetSchemasReq::InitAsDefaultInstance() {
- catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
-}
-
GetSchemasReq::GetSchemasReq(const GetSchemasReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_catalog_name_filter()) {
+ catalog_name_filter_ = new ::exec::user::LikeFilter(*from.catalog_name_filter_);
+ } else {
+ catalog_name_filter_ = NULL;
+ }
+ if (from.has_schema_name_filter()) {
+ schema_name_filter_ = new ::exec::user::LikeFilter(*from.schema_name_filter_);
+ } else {
+ schema_name_filter_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetSchemasReq)
}
void GetSchemasReq::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_filter_ = NULL;
- schema_name_filter_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&catalog_name_filter_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&schema_name_filter_) -
+ reinterpret_cast<char*>(&catalog_name_filter_)) + sizeof(schema_name_filter_));
}
GetSchemasReq::~GetSchemasReq() {
+ // @@protoc_insertion_point(destructor:exec.user.GetSchemasReq)
SharedDtor();
}
void GetSchemasReq::SharedDtor() {
- if (this != default_instance_) {
- delete catalog_name_filter_;
- delete schema_name_filter_;
- }
+ if (this != internal_default_instance()) delete catalog_name_filter_;
+ if (this != internal_default_instance()) delete schema_name_filter_;
}
void GetSchemasReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetSchemasReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetSchemasReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetSchemasReq& GetSchemasReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetSchemasReq.base);
+ return *internal_default_instance();
}
-GetSchemasReq* GetSchemasReq::default_instance_ = NULL;
-
-GetSchemasReq* GetSchemasReq::New() const {
- return new GetSchemasReq;
-}
void GetSchemasReq::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name_filter()) {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.GetSchemasReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(catalog_name_filter_ != NULL);
+ catalog_name_filter_->Clear();
}
- if (has_schema_name_filter()) {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(schema_name_filter_ != NULL);
+ schema_name_filter_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetSchemasReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetSchemasReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_catalog_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name_filter;
break;
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_schema_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetSchemasReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetSchemasReq)
+ return false;
#undef DO_
}
void GetSchemasReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetSchemasReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->catalog_name_filter(), output);
+ 1, this->_internal_catalog_name_filter(), output);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->schema_name_filter(), output);
+ 2, this->_internal_schema_name_filter(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetSchemasReq)
}
-::google::protobuf::uint8* GetSchemasReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetSchemasReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetSchemasReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->catalog_name_filter(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_catalog_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->schema_name_filter(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_schema_name_filter(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetSchemasReq)
return target;
}
-int GetSchemasReq::ByteSize() const {
- int total_size = 0;
+size_t GetSchemasReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetSchemasReq)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
if (has_catalog_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->catalog_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *catalog_name_filter_);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
if (has_schema_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->schema_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *schema_name_filter_);
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetSchemasReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetSchemasReq)
+ GOOGLE_DCHECK_NE(&from, this);
const GetSchemasReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetSchemasReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetSchemasReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetSchemasReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetSchemasReq)
MergeFrom(*source);
}
}
void GetSchemasReq::MergeFrom(const GetSchemasReq& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name_filter()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetSchemasReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_catalog_name_filter()->::exec::user::LikeFilter::MergeFrom(from.catalog_name_filter());
}
- if (from.has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_schema_name_filter()->::exec::user::LikeFilter::MergeFrom(from.schema_name_filter());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetSchemasReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetSchemasReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetSchemasReq::CopyFrom(const GetSchemasReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetSchemasReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetSchemasReq::IsInitialized() const {
-
return true;
}
void GetSchemasReq::Swap(GetSchemasReq* other) {
- if (other != this) {
- std::swap(catalog_name_filter_, other->catalog_name_filter_);
- std::swap(schema_name_filter_, other->schema_name_filter_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetSchemasReq::InternalSwap(GetSchemasReq* other) {
+ using std::swap;
+ swap(catalog_name_filter_, other->catalog_name_filter_);
+ swap(schema_name_filter_, other->schema_name_filter_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetSchemasReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetSchemasReq_descriptor_;
- metadata.reflection = GetSchemasReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void SchemaMetadata::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int SchemaMetadata::kCatalogNameFieldNumber;
const int SchemaMetadata::kSchemaNameFieldNumber;
const int SchemaMetadata::kOwnerFieldNumber;
const int SchemaMetadata::kTypeFieldNumber;
const int SchemaMetadata::kMutableFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
SchemaMetadata::SchemaMetadata()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_SchemaMetadata.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.SchemaMetadata)
}
-
-void SchemaMetadata::InitAsDefaultInstance() {
-}
-
SchemaMetadata::SchemaMetadata(const SchemaMetadata& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_name()) {
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
+ }
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_schema_name()) {
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
+ }
+ owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_owner()) {
+ owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_);
+ }
+ type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_type()) {
+ type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
+ }
+ mutable__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_mutable_()) {
+ mutable__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mutable__);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.SchemaMetadata)
}
void SchemaMetadata::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- mutable__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ owner_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ mutable__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
SchemaMetadata::~SchemaMetadata() {
+ // @@protoc_insertion_point(destructor:exec.user.SchemaMetadata)
SharedDtor();
}
void SchemaMetadata::SharedDtor() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (owner_ != &::google::protobuf::internal::kEmptyString) {
- delete owner_;
- }
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- delete type_;
- }
- if (mutable__ != &::google::protobuf::internal::kEmptyString) {
- delete mutable__;
- }
- if (this != default_instance_) {
- }
+ catalog_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ owner_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ mutable__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void SchemaMetadata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* SchemaMetadata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SchemaMetadata_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const SchemaMetadata& SchemaMetadata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_SchemaMetadata.base);
+ return *internal_default_instance();
}
-SchemaMetadata* SchemaMetadata::default_instance_ = NULL;
-
-SchemaMetadata* SchemaMetadata::New() const {
- return new SchemaMetadata;
-}
void SchemaMetadata::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name()) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.SchemaMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_schema_name()) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ schema_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_owner()) {
- if (owner_ != &::google::protobuf::internal::kEmptyString) {
- owner_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ owner_.ClearNonDefaultToEmptyNoArena();
}
- if (has_type()) {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- type_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ type_.ClearNonDefaultToEmptyNoArena();
}
- if (has_mutable_()) {
- if (mutable__ != &::google::protobuf::internal::kEmptyString) {
- mutable__->clear();
- }
+ if (cached_has_bits & 0x00000010u) {
+ mutable__.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool SchemaMetadata::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.SchemaMetadata)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string catalog_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.SchemaMetadata.catalog_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name;
break;
}
// optional string schema_name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_schema_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.SchemaMetadata.schema_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_owner;
break;
}
// optional string owner = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_owner:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_owner()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->owner().data(), this->owner().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->owner().data(), static_cast<int>(this->owner().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.SchemaMetadata.owner");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_type;
break;
}
// optional string type = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_type()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.SchemaMetadata.type");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_mutable;
break;
}
// optional string mutable = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_mutable:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_mutable_()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mutable_().data(), this->mutable_().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mutable_().data(), static_cast<int>(this->mutable_().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.SchemaMetadata.mutable");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.SchemaMetadata)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.SchemaMetadata)
+ return false;
#undef DO_
}
void SchemaMetadata::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.SchemaMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.catalog_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->catalog_name(), output);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.schema_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->schema_name(), output);
}
// optional string owner = 3;
- if (has_owner()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->owner().data(), this->owner().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->owner().data(), static_cast<int>(this->owner().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.owner");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->owner(), output);
}
// optional string type = 4;
- if (has_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.type");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->type(), output);
}
// optional string mutable = 5;
- if (has_mutable_()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mutable_().data(), this->mutable_().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mutable_().data(), static_cast<int>(this->mutable_().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.mutable");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->mutable_(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.SchemaMetadata)
}
-::google::protobuf::uint8* SchemaMetadata::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* SchemaMetadata::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.SchemaMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.catalog_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->catalog_name(), target);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.schema_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->schema_name(), target);
}
// optional string owner = 3;
- if (has_owner()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->owner().data(), this->owner().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->owner().data(), static_cast<int>(this->owner().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.owner");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->owner(), target);
}
// optional string type = 4;
- if (has_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->type(), target);
}
// optional string mutable = 5;
- if (has_mutable_()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mutable_().data(), this->mutable_().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mutable_().data(), static_cast<int>(this->mutable_().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.SchemaMetadata.mutable");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->mutable_(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.SchemaMetadata)
return target;
}
-int SchemaMetadata::ByteSize() const {
- int total_size = 0;
+size_t SchemaMetadata::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.SchemaMetadata)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 31u) {
// optional string catalog_name = 1;
if (has_catalog_name()) {
total_size += 1 +
@@ -6400,173 +7252,200 @@ int SchemaMetadata::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void SchemaMetadata::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.SchemaMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
const SchemaMetadata* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const SchemaMetadata*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const SchemaMetadata>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.SchemaMetadata)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.SchemaMetadata)
MergeFrom(*source);
}
}
void SchemaMetadata::MergeFrom(const SchemaMetadata& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name()) {
- set_catalog_name(from.catalog_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.SchemaMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_name();
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
}
- if (from.has_schema_name()) {
- set_schema_name(from.schema_name());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_schema_name();
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
}
- if (from.has_owner()) {
- set_owner(from.owner());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_owner();
+ owner_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_);
}
- if (from.has_type()) {
- set_type(from.type());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_type();
+ type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
}
- if (from.has_mutable_()) {
- set_mutable_(from.mutable_());
+ if (cached_has_bits & 0x00000010u) {
+ set_has_mutable_();
+ mutable__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mutable__);
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SchemaMetadata::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.SchemaMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SchemaMetadata::CopyFrom(const SchemaMetadata& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.SchemaMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SchemaMetadata::IsInitialized() const {
-
return true;
}
void SchemaMetadata::Swap(SchemaMetadata* other) {
- if (other != this) {
- std::swap(catalog_name_, other->catalog_name_);
- std::swap(schema_name_, other->schema_name_);
- std::swap(owner_, other->owner_);
- std::swap(type_, other->type_);
- std::swap(mutable__, other->mutable__);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void SchemaMetadata::InternalSwap(SchemaMetadata* other) {
+ using std::swap;
+ catalog_name_.Swap(&other->catalog_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ schema_name_.Swap(&other->schema_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ owner_.Swap(&other->owner_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ mutable__.Swap(&other->mutable__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata SchemaMetadata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = SchemaMetadata_descriptor_;
- metadata.reflection = SchemaMetadata_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetSchemasResp::InitAsDefaultInstance() {
+ ::exec::user::_GetSchemasResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void GetSchemasResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetSchemasResp::kStatusFieldNumber;
const int GetSchemasResp::kSchemasFieldNumber;
const int GetSchemasResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetSchemasResp::GetSchemasResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetSchemasResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetSchemasResp)
}
-
-void GetSchemasResp::InitAsDefaultInstance() {
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
GetSchemasResp::GetSchemasResp(const GetSchemasResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ schemas_(from.schemas_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetSchemasResp)
}
void GetSchemasResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&error_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&error_)) + sizeof(status_));
}
GetSchemasResp::~GetSchemasResp() {
+ // @@protoc_insertion_point(destructor:exec.user.GetSchemasResp)
SharedDtor();
}
void GetSchemasResp::SharedDtor() {
- if (this != default_instance_) {
- delete error_;
- }
+ if (this != internal_default_instance()) delete error_;
}
void GetSchemasResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetSchemasResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetSchemasResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetSchemasResp& GetSchemasResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetSchemasResp.base);
+ return *internal_default_instance();
}
-GetSchemasResp* GetSchemasResp::default_instance_ = NULL;
-
-GetSchemasResp* GetSchemasResp::New() const {
- return new GetSchemasResp;
-}
void GetSchemasResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.GetSchemasResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
schemas_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
+ }
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetSchemasResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetSchemasResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -6574,853 +7453,958 @@ bool GetSchemasResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schemas;
break;
}
// repeated .exec.user.SchemaMetadata schemas = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schemas:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_schemas()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schemas;
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetSchemasResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetSchemasResp)
+ return false;
#undef DO_
}
void GetSchemasResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetSchemasResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// repeated .exec.user.SchemaMetadata schemas = 2;
- for (int i = 0; i < this->schemas_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->schemas_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->schemas(i), output);
+ 2,
+ this->schemas(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetSchemasResp)
}
-::google::protobuf::uint8* GetSchemasResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetSchemasResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetSchemasResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// repeated .exec.user.SchemaMetadata schemas = 2;
- for (int i = 0; i < this->schemas_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->schemas_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->schemas(i), target);
+ InternalWriteMessageToArray(
+ 2, this->schemas(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetSchemasResp)
return target;
}
-int GetSchemasResp::ByteSize() const {
- int total_size = 0;
+size_t GetSchemasResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetSchemasResp)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.SchemaMetadata schemas = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->schemas_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->schemas(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
}
- }
- // repeated .exec.user.SchemaMetadata schemas = 2;
- total_size += 1 * this->schemas_size();
- for (int i = 0; i < this->schemas_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->schemas(i));
- }
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetSchemasResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetSchemasResp)
+ GOOGLE_DCHECK_NE(&from, this);
const GetSchemasResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetSchemasResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetSchemasResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetSchemasResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetSchemasResp)
MergeFrom(*source);
}
}
void GetSchemasResp::MergeFrom(const GetSchemasResp& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetSchemasResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
schemas_.MergeFrom(from.schemas_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_error()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000002u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetSchemasResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetSchemasResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetSchemasResp::CopyFrom(const GetSchemasResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetSchemasResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetSchemasResp::IsInitialized() const {
-
return true;
}
void GetSchemasResp::Swap(GetSchemasResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- schemas_.Swap(&other->schemas_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetSchemasResp::InternalSwap(GetSchemasResp* other) {
+ using std::swap;
+ CastToBase(&schemas_)->InternalSwap(CastToBase(&other->schemas_));
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetSchemasResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetSchemasResp_descriptor_;
- metadata.reflection = GetSchemasResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetTablesReq::InitAsDefaultInstance() {
+ ::exec::user::_GetTablesReq_default_instance_._instance.get_mutable()->catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetTablesReq_default_instance_._instance.get_mutable()->schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetTablesReq_default_instance_._instance.get_mutable()->table_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetTablesReq::kCatalogNameFilterFieldNumber;
const int GetTablesReq::kSchemaNameFilterFieldNumber;
const int GetTablesReq::kTableNameFilterFieldNumber;
const int GetTablesReq::kTableTypeFilterFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetTablesReq::GetTablesReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetTablesReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetTablesReq)
}
-
-void GetTablesReq::InitAsDefaultInstance() {
- catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- table_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
-}
-
GetTablesReq::GetTablesReq(const GetTablesReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ table_type_filter_(from.table_type_filter_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_catalog_name_filter()) {
+ catalog_name_filter_ = new ::exec::user::LikeFilter(*from.catalog_name_filter_);
+ } else {
+ catalog_name_filter_ = NULL;
+ }
+ if (from.has_schema_name_filter()) {
+ schema_name_filter_ = new ::exec::user::LikeFilter(*from.schema_name_filter_);
+ } else {
+ schema_name_filter_ = NULL;
+ }
+ if (from.has_table_name_filter()) {
+ table_name_filter_ = new ::exec::user::LikeFilter(*from.table_name_filter_);
+ } else {
+ table_name_filter_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetTablesReq)
}
void GetTablesReq::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_filter_ = NULL;
- schema_name_filter_ = NULL;
- table_name_filter_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&catalog_name_filter_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&table_name_filter_) -
+ reinterpret_cast<char*>(&catalog_name_filter_)) + sizeof(table_name_filter_));
}
GetTablesReq::~GetTablesReq() {
+ // @@protoc_insertion_point(destructor:exec.user.GetTablesReq)
SharedDtor();
}
void GetTablesReq::SharedDtor() {
- if (this != default_instance_) {
- delete catalog_name_filter_;
- delete schema_name_filter_;
- delete table_name_filter_;
- }
+ if (this != internal_default_instance()) delete catalog_name_filter_;
+ if (this != internal_default_instance()) delete schema_name_filter_;
+ if (this != internal_default_instance()) delete table_name_filter_;
}
void GetTablesReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetTablesReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetTablesReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetTablesReq& GetTablesReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetTablesReq.base);
+ return *internal_default_instance();
}
-GetTablesReq* GetTablesReq::default_instance_ = NULL;
-
-GetTablesReq* GetTablesReq::New() const {
- return new GetTablesReq;
-}
void GetTablesReq::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name_filter()) {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.GetTablesReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ table_type_filter_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(catalog_name_filter_ != NULL);
+ catalog_name_filter_->Clear();
}
- if (has_schema_name_filter()) {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(schema_name_filter_ != NULL);
+ schema_name_filter_->Clear();
}
- if (has_table_name_filter()) {
- if (table_name_filter_ != NULL) table_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(table_name_filter_ != NULL);
+ table_name_filter_->Clear();
}
}
- table_type_filter_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetTablesReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetTablesReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_catalog_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name_filter;
break;
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_schema_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_table_name_filter;
break;
}
// optional .exec.user.LikeFilter table_name_filter = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_table_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_table_type_filter;
break;
}
// repeated string table_type_filter = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_type_filter:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_table_type_filter()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->table_type_filter(this->table_type_filter_size() - 1).data(),
- this->table_type_filter(this->table_type_filter_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->table_type_filter(this->table_type_filter_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.GetTablesReq.table_type_filter");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_table_type_filter;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetTablesReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetTablesReq)
+ return false;
#undef DO_
}
void GetTablesReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetTablesReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->catalog_name_filter(), output);
+ 1, this->_internal_catalog_name_filter(), output);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->schema_name_filter(), output);
+ 2, this->_internal_schema_name_filter(), output);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
- if (has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->table_name_filter(), output);
+ 3, this->_internal_table_name_filter(), output);
}
// repeated string table_type_filter = 4;
- for (int i = 0; i < this->table_type_filter_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_type_filter(i).data(), this->table_type_filter(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->table_type_filter_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_type_filter(i).data(), static_cast<int>(this->table_type_filter(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.GetTablesReq.table_type_filter");
::google::protobuf::internal::WireFormatLite::WriteString(
4, this->table_type_filter(i), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetTablesReq)
}
-::google::protobuf::uint8* GetTablesReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetTablesReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetTablesReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->catalog_name_filter(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_catalog_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->schema_name_filter(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_schema_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
- if (has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->table_name_filter(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_table_name_filter(), deterministic, target);
}
// repeated string table_type_filter = 4;
- for (int i = 0; i < this->table_type_filter_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_type_filter(i).data(), this->table_type_filter(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->table_type_filter_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_type_filter(i).data(), static_cast<int>(this->table_type_filter(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.GetTablesReq.table_type_filter");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(4, this->table_type_filter(i), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetTablesReq)
return target;
}
-int GetTablesReq::ByteSize() const {
- int total_size = 0;
+size_t GetTablesReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetTablesReq)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated string table_type_filter = 4;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->table_type_filter_size());
+ for (int i = 0, n = this->table_type_filter_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->table_type_filter(i));
+ }
+
+ if (_has_bits_[0 / 32] & 7u) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
if (has_catalog_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->catalog_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *catalog_name_filter_);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
if (has_schema_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->schema_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *schema_name_filter_);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
if (has_table_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->table_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *table_name_filter_);
}
}
- // repeated string table_type_filter = 4;
- total_size += 1 * this->table_type_filter_size();
- for (int i = 0; i < this->table_type_filter_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->table_type_filter(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetTablesReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetTablesReq)
+ GOOGLE_DCHECK_NE(&from, this);
const GetTablesReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetTablesReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetTablesReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetTablesReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetTablesReq)
MergeFrom(*source);
}
}
void GetTablesReq::MergeFrom(const GetTablesReq& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetTablesReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
table_type_filter_.MergeFrom(from.table_type_filter_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name_filter()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_catalog_name_filter()->::exec::user::LikeFilter::MergeFrom(from.catalog_name_filter());
}
- if (from.has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_schema_name_filter()->::exec::user::LikeFilter::MergeFrom(from.schema_name_filter());
}
- if (from.has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
mutable_table_name_filter()->::exec::user::LikeFilter::MergeFrom(from.table_name_filter());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetTablesReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetTablesReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetTablesReq::CopyFrom(const GetTablesReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetTablesReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetTablesReq::IsInitialized() const {
-
return true;
}
void GetTablesReq::Swap(GetTablesReq* other) {
- if (other != this) {
- std::swap(catalog_name_filter_, other->catalog_name_filter_);
- std::swap(schema_name_filter_, other->schema_name_filter_);
- std::swap(table_name_filter_, other->table_name_filter_);
- table_type_filter_.Swap(&other->table_type_filter_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetTablesReq::InternalSwap(GetTablesReq* other) {
+ using std::swap;
+ table_type_filter_.InternalSwap(CastToBase(&other->table_type_filter_));
+ swap(catalog_name_filter_, other->catalog_name_filter_);
+ swap(schema_name_filter_, other->schema_name_filter_);
+ swap(table_name_filter_, other->table_name_filter_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetTablesReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetTablesReq_descriptor_;
- metadata.reflection = GetTablesReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void TableMetadata::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int TableMetadata::kCatalogNameFieldNumber;
const int TableMetadata::kSchemaNameFieldNumber;
const int TableMetadata::kTableNameFieldNumber;
const int TableMetadata::kTypeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
TableMetadata::TableMetadata()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_TableMetadata.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.TableMetadata)
}
-
-void TableMetadata::InitAsDefaultInstance() {
-}
-
TableMetadata::TableMetadata(const TableMetadata& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_name()) {
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
+ }
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_schema_name()) {
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
+ }
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_table_name()) {
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
+ }
+ type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_type()) {
+ type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.TableMetadata)
}
void TableMetadata::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
TableMetadata::~TableMetadata() {
+ // @@protoc_insertion_point(destructor:exec.user.TableMetadata)
SharedDtor();
}
void TableMetadata::SharedDtor() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- delete type_;
- }
- if (this != default_instance_) {
- }
+ catalog_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TableMetadata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* TableMetadata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return TableMetadata_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const TableMetadata& TableMetadata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_TableMetadata.base);
+ return *internal_default_instance();
}
-TableMetadata* TableMetadata::default_instance_ = NULL;
-
-TableMetadata* TableMetadata::New() const {
- return new TableMetadata;
-}
void TableMetadata::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name()) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.TableMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_schema_name()) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ schema_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_table_name()) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ table_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_type()) {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- type_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ type_.ClearNonDefaultToEmptyNoArena();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool TableMetadata::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.TableMetadata)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string catalog_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.TableMetadata.catalog_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name;
break;
}
// optional string schema_name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_schema_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.TableMetadata.schema_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_table_name;
break;
}
// optional string table_name = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.TableMetadata.table_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_type;
break;
}
// optional string type = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_type()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.TableMetadata.type");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.TableMetadata)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.TableMetadata)
+ return false;
#undef DO_
}
void TableMetadata::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.TableMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.catalog_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->catalog_name(), output);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.schema_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->schema_name(), output);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.table_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->table_name(), output);
}
// optional string type = 4;
- if (has_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.type");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->type(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.TableMetadata)
}
-::google::protobuf::uint8* TableMetadata::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* TableMetadata::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.TableMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.catalog_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->catalog_name(), target);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.schema_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->schema_name(), target);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.table_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->table_name(), target);
}
// optional string type = 4;
- if (has_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->type().data(), this->type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->type().data(), static_cast<int>(this->type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.TableMetadata.type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->type(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.TableMetadata)
return target;
}
-int TableMetadata::ByteSize() const {
- int total_size = 0;
+size_t TableMetadata::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.TableMetadata)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional string catalog_name = 1;
if (has_catalog_name()) {
total_size += 1 +
@@ -7450,169 +8434,194 @@ int TableMetadata::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void TableMetadata::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.TableMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
const TableMetadata* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const TableMetadata*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const TableMetadata>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.TableMetadata)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.TableMetadata)
MergeFrom(*source);
}
}
void TableMetadata::MergeFrom(const TableMetadata& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name()) {
- set_catalog_name(from.catalog_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.TableMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_name();
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
}
- if (from.has_schema_name()) {
- set_schema_name(from.schema_name());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_schema_name();
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
}
- if (from.has_table_name()) {
- set_table_name(from.table_name());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_table_name();
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
}
- if (from.has_type()) {
- set_type(from.type());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_type();
+ type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableMetadata::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.TableMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableMetadata::CopyFrom(const TableMetadata& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.TableMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableMetadata::IsInitialized() const {
-
return true;
}
void TableMetadata::Swap(TableMetadata* other) {
- if (other != this) {
- std::swap(catalog_name_, other->catalog_name_);
- std::swap(schema_name_, other->schema_name_);
- std::swap(table_name_, other->table_name_);
- std::swap(type_, other->type_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TableMetadata::InternalSwap(TableMetadata* other) {
+ using std::swap;
+ catalog_name_.Swap(&other->catalog_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ schema_name_.Swap(&other->schema_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata TableMetadata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = TableMetadata_descriptor_;
- metadata.reflection = TableMetadata_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetTablesResp::InitAsDefaultInstance() {
+ ::exec::user::_GetTablesResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void GetTablesResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetTablesResp::kStatusFieldNumber;
const int GetTablesResp::kTablesFieldNumber;
const int GetTablesResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetTablesResp::GetTablesResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetTablesResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetTablesResp)
}
-
-void GetTablesResp::InitAsDefaultInstance() {
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
GetTablesResp::GetTablesResp(const GetTablesResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ tables_(from.tables_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetTablesResp)
}
void GetTablesResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&error_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&error_)) + sizeof(status_));
}
GetTablesResp::~GetTablesResp() {
+ // @@protoc_insertion_point(destructor:exec.user.GetTablesResp)
SharedDtor();
}
void GetTablesResp::SharedDtor() {
- if (this != default_instance_) {
- delete error_;
- }
+ if (this != internal_default_instance()) delete error_;
}
void GetTablesResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetTablesResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetTablesResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetTablesResp& GetTablesResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetTablesResp.base);
+ return *internal_default_instance();
}
-GetTablesResp* GetTablesResp::default_instance_ = NULL;
-
-GetTablesResp* GetTablesResp::New() const {
- return new GetTablesResp;
-}
void GetTablesResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.GetTablesResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
tables_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
+ }
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetTablesResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetTablesResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -7620,566 +8629,644 @@ bool GetTablesResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_tables;
break;
}
// repeated .exec.user.TableMetadata tables = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_tables:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_tables()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_tables;
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetTablesResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetTablesResp)
+ return false;
#undef DO_
}
void GetTablesResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetTablesResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// repeated .exec.user.TableMetadata tables = 2;
- for (int i = 0; i < this->tables_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->tables_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->tables(i), output);
+ 2,
+ this->tables(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetTablesResp)
}
-::google::protobuf::uint8* GetTablesResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetTablesResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetTablesResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// repeated .exec.user.TableMetadata tables = 2;
- for (int i = 0; i < this->tables_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->tables_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->tables(i), target);
+ InternalWriteMessageToArray(
+ 2, this->tables(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetTablesResp)
return target;
}
-int GetTablesResp::ByteSize() const {
- int total_size = 0;
+size_t GetTablesResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetTablesResp)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.TableMetadata tables = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->tables_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->tables(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
}
- }
- // repeated .exec.user.TableMetadata tables = 2;
- total_size += 1 * this->tables_size();
- for (int i = 0; i < this->tables_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->tables(i));
- }
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetTablesResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetTablesResp)
+ GOOGLE_DCHECK_NE(&from, this);
const GetTablesResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetTablesResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetTablesResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetTablesResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetTablesResp)
MergeFrom(*source);
}
}
void GetTablesResp::MergeFrom(const GetTablesResp& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetTablesResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
tables_.MergeFrom(from.tables_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_error()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000002u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetTablesResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetTablesResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetTablesResp::CopyFrom(const GetTablesResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetTablesResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetTablesResp::IsInitialized() const {
-
return true;
}
void GetTablesResp::Swap(GetTablesResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- tables_.Swap(&other->tables_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetTablesResp::InternalSwap(GetTablesResp* other) {
+ using std::swap;
+ CastToBase(&tables_)->InternalSwap(CastToBase(&other->tables_));
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetTablesResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetTablesResp_descriptor_;
- metadata.reflection = GetTablesResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetColumnsReq::InitAsDefaultInstance() {
+ ::exec::user::_GetColumnsReq_default_instance_._instance.get_mutable()->catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetColumnsReq_default_instance_._instance.get_mutable()->schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetColumnsReq_default_instance_._instance.get_mutable()->table_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+ ::exec::user::_GetColumnsReq_default_instance_._instance.get_mutable()->column_name_filter_ = const_cast< ::exec::user::LikeFilter*>(
+ ::exec::user::LikeFilter::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetColumnsReq::kCatalogNameFilterFieldNumber;
const int GetColumnsReq::kSchemaNameFilterFieldNumber;
const int GetColumnsReq::kTableNameFilterFieldNumber;
const int GetColumnsReq::kColumnNameFilterFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetColumnsReq::GetColumnsReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetColumnsReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetColumnsReq)
}
-
-void GetColumnsReq::InitAsDefaultInstance() {
- catalog_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- schema_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- table_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
- column_name_filter_ = const_cast< ::exec::user::LikeFilter*>(&::exec::user::LikeFilter::default_instance());
-}
-
GetColumnsReq::GetColumnsReq(const GetColumnsReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_catalog_name_filter()) {
+ catalog_name_filter_ = new ::exec::user::LikeFilter(*from.catalog_name_filter_);
+ } else {
+ catalog_name_filter_ = NULL;
+ }
+ if (from.has_schema_name_filter()) {
+ schema_name_filter_ = new ::exec::user::LikeFilter(*from.schema_name_filter_);
+ } else {
+ schema_name_filter_ = NULL;
+ }
+ if (from.has_table_name_filter()) {
+ table_name_filter_ = new ::exec::user::LikeFilter(*from.table_name_filter_);
+ } else {
+ table_name_filter_ = NULL;
+ }
+ if (from.has_column_name_filter()) {
+ column_name_filter_ = new ::exec::user::LikeFilter(*from.column_name_filter_);
+ } else {
+ column_name_filter_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetColumnsReq)
}
void GetColumnsReq::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_filter_ = NULL;
- schema_name_filter_ = NULL;
- table_name_filter_ = NULL;
- column_name_filter_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&catalog_name_filter_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&column_name_filter_) -
+ reinterpret_cast<char*>(&catalog_name_filter_)) + sizeof(column_name_filter_));
}
GetColumnsReq::~GetColumnsReq() {
+ // @@protoc_insertion_point(destructor:exec.user.GetColumnsReq)
SharedDtor();
}
void GetColumnsReq::SharedDtor() {
- if (this != default_instance_) {
- delete catalog_name_filter_;
- delete schema_name_filter_;
- delete table_name_filter_;
- delete column_name_filter_;
- }
+ if (this != internal_default_instance()) delete catalog_name_filter_;
+ if (this != internal_default_instance()) delete schema_name_filter_;
+ if (this != internal_default_instance()) delete table_name_filter_;
+ if (this != internal_default_instance()) delete column_name_filter_;
}
void GetColumnsReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetColumnsReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetColumnsReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetColumnsReq& GetColumnsReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetColumnsReq.base);
+ return *internal_default_instance();
}
-GetColumnsReq* GetColumnsReq::default_instance_ = NULL;
-
-GetColumnsReq* GetColumnsReq::New() const {
- return new GetColumnsReq;
-}
void GetColumnsReq::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name_filter()) {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.GetColumnsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(catalog_name_filter_ != NULL);
+ catalog_name_filter_->Clear();
}
- if (has_schema_name_filter()) {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(schema_name_filter_ != NULL);
+ schema_name_filter_->Clear();
}
- if (has_table_name_filter()) {
- if (table_name_filter_ != NULL) table_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(table_name_filter_ != NULL);
+ table_name_filter_->Clear();
}
- if (has_column_name_filter()) {
- if (column_name_filter_ != NULL) column_name_filter_->::exec::user::LikeFilter::Clear();
+ if (cached_has_bits & 0x00000008u) {
+ GOOGLE_DCHECK(column_name_filter_ != NULL);
+ column_name_filter_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetColumnsReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetColumnsReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_catalog_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name_filter;
break;
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_schema_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_table_name_filter;
break;
}
// optional .exec.user.LikeFilter table_name_filter = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_table_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_column_name_filter;
break;
}
// optional .exec.user.LikeFilter column_name_filter = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_column_name_filter:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_column_name_filter()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetColumnsReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetColumnsReq)
+ return false;
#undef DO_
}
void GetColumnsReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetColumnsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->catalog_name_filter(), output);
+ 1, this->_internal_catalog_name_filter(), output);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->schema_name_filter(), output);
+ 2, this->_internal_schema_name_filter(), output);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
- if (has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->table_name_filter(), output);
+ 3, this->_internal_table_name_filter(), output);
}
// optional .exec.user.LikeFilter column_name_filter = 4;
- if (has_column_name_filter()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->column_name_filter(), output);
+ 4, this->_internal_column_name_filter(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetColumnsReq)
}
-::google::protobuf::uint8* GetColumnsReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetColumnsReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetColumnsReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- if (has_catalog_name_filter()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->catalog_name_filter(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_catalog_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
- if (has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->schema_name_filter(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_schema_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
- if (has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->table_name_filter(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_table_name_filter(), deterministic, target);
}
// optional .exec.user.LikeFilter column_name_filter = 4;
- if (has_column_name_filter()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->column_name_filter(), target);
+ InternalWriteMessageToArray(
+ 4, this->_internal_column_name_filter(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetColumnsReq)
return target;
}
-int GetColumnsReq::ByteSize() const {
- int total_size = 0;
+size_t GetColumnsReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetColumnsReq)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional .exec.user.LikeFilter catalog_name_filter = 1;
if (has_catalog_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->catalog_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *catalog_name_filter_);
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
if (has_schema_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->schema_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *schema_name_filter_);
}
// optional .exec.user.LikeFilter table_name_filter = 3;
if (has_table_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->table_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *table_name_filter_);
}
// optional .exec.user.LikeFilter column_name_filter = 4;
if (has_column_name_filter()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->column_name_filter());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *column_name_filter_);
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetColumnsReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetColumnsReq)
+ GOOGLE_DCHECK_NE(&from, this);
const GetColumnsReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetColumnsReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetColumnsReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetColumnsReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetColumnsReq)
MergeFrom(*source);
}
}
void GetColumnsReq::MergeFrom(const GetColumnsReq& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name_filter()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetColumnsReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_catalog_name_filter()->::exec::user::LikeFilter::MergeFrom(from.catalog_name_filter());
}
- if (from.has_schema_name_filter()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_schema_name_filter()->::exec::user::LikeFilter::MergeFrom(from.schema_name_filter());
}
- if (from.has_table_name_filter()) {
+ if (cached_has_bits & 0x00000004u) {
mutable_table_name_filter()->::exec::user::LikeFilter::MergeFrom(from.table_name_filter());
}
- if (from.has_column_name_filter()) {
+ if (cached_has_bits & 0x00000008u) {
mutable_column_name_filter()->::exec::user::LikeFilter::MergeFrom(from.column_name_filter());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetColumnsReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetColumnsReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetColumnsReq::CopyFrom(const GetColumnsReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetColumnsReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetColumnsReq::IsInitialized() const {
-
return true;
}
void GetColumnsReq::Swap(GetColumnsReq* other) {
- if (other != this) {
- std::swap(catalog_name_filter_, other->catalog_name_filter_);
- std::swap(schema_name_filter_, other->schema_name_filter_);
- std::swap(table_name_filter_, other->table_name_filter_);
- std::swap(column_name_filter_, other->column_name_filter_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetColumnsReq::InternalSwap(GetColumnsReq* other) {
+ using std::swap;
+ swap(catalog_name_filter_, other->catalog_name_filter_);
+ swap(schema_name_filter_, other->schema_name_filter_);
+ swap(table_name_filter_, other->table_name_filter_);
+ swap(column_name_filter_, other->column_name_filter_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetColumnsReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetColumnsReq_descriptor_;
- metadata.reflection = GetColumnsReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ColumnMetadata::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ColumnMetadata::kCatalogNameFieldNumber;
const int ColumnMetadata::kSchemaNameFieldNumber;
const int ColumnMetadata::kTableNameFieldNumber;
@@ -8197,705 +9284,706 @@ const int ColumnMetadata::kDateTimePrecisionFieldNumber;
const int ColumnMetadata::kIntervalTypeFieldNumber;
const int ColumnMetadata::kIntervalPrecisionFieldNumber;
const int ColumnMetadata::kColumnSizeFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ColumnMetadata::ColumnMetadata()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_ColumnMetadata.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.ColumnMetadata)
}
-
-void ColumnMetadata::InitAsDefaultInstance() {
-}
-
ColumnMetadata::ColumnMetadata(const ColumnMetadata& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_name()) {
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
+ }
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_schema_name()) {
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
+ }
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_table_name()) {
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
+ }
+ column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_column_name()) {
+ column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
+ }
+ default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_default_value()) {
+ default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
+ }
+ data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_data_type()) {
+ data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
+ }
+ interval_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_interval_type()) {
+ interval_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.interval_type_);
+ }
+ ::memcpy(&ordinal_position_, &from.ordinal_position_,
+ static_cast<size_t>(reinterpret_cast<char*>(&column_size_) -
+ reinterpret_cast<char*>(&ordinal_position_)) + sizeof(column_size_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.ColumnMetadata)
}
void ColumnMetadata::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ordinal_position_ = 0;
- default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- is_nullable_ = false;
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- char_max_length_ = 0;
- char_octet_length_ = 0;
- numeric_precision_ = 0;
- numeric_precision_radix_ = 0;
- numeric_scale_ = 0;
- date_time_precision_ = 0;
- interval_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- interval_precision_ = 0;
- column_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ interval_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&ordinal_position_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&column_size_) -
+ reinterpret_cast<char*>(&ordinal_position_)) + sizeof(column_size_));
}
ColumnMetadata::~ColumnMetadata() {
+ // @@protoc_insertion_point(destructor:exec.user.ColumnMetadata)
SharedDtor();
}
void ColumnMetadata::SharedDtor() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- delete column_name_;
- }
- if (default_value_ != &::google::protobuf::internal::kEmptyString) {
- delete default_value_;
- }
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- delete data_type_;
- }
- if (interval_type_ != &::google::protobuf::internal::kEmptyString) {
- delete interval_type_;
- }
- if (this != default_instance_) {
- }
+ catalog_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ column_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ interval_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ColumnMetadata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ColumnMetadata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ColumnMetadata_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ColumnMetadata& ColumnMetadata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_ColumnMetadata.base);
+ return *internal_default_instance();
}
-ColumnMetadata* ColumnMetadata::default_instance_ = NULL;
-
-ColumnMetadata* ColumnMetadata::New() const {
- return new ColumnMetadata;
-}
void ColumnMetadata::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name()) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.ColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 127u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_schema_name()) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ schema_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_table_name()) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ table_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_column_name()) {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- column_name_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ column_name_.ClearNonDefaultToEmptyNoArena();
}
- ordinal_position_ = 0;
- if (has_default_value()) {
- if (default_value_ != &::google::protobuf::internal::kEmptyString) {
- default_value_->clear();
- }
+ if (cached_has_bits & 0x00000010u) {
+ default_value_.ClearNonDefaultToEmptyNoArena();
}
- is_nullable_ = false;
- if (has_data_type()) {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- data_type_->clear();
- }
+ if (cached_has_bits & 0x00000020u) {
+ data_type_.ClearNonDefaultToEmptyNoArena();
}
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- char_max_length_ = 0;
- char_octet_length_ = 0;
- numeric_precision_ = 0;
- numeric_precision_radix_ = 0;
- numeric_scale_ = 0;
- date_time_precision_ = 0;
- if (has_interval_type()) {
- if (interval_type_ != &::google::protobuf::internal::kEmptyString) {
- interval_type_->clear();
- }
+ if (cached_has_bits & 0x00000040u) {
+ interval_type_.ClearNonDefaultToEmptyNoArena();
}
- interval_precision_ = 0;
}
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- column_size_ = 0;
+ ordinal_position_ = 0;
+ if (cached_has_bits & 65280u) {
+ ::memset(&is_nullable_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&interval_precision_) -
+ reinterpret_cast<char*>(&is_nullable_)) + sizeof(interval_precision_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ column_size_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ColumnMetadata::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.ColumnMetadata)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string catalog_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.catalog_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name;
break;
}
// optional string schema_name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_schema_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.schema_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_table_name;
break;
}
// optional string table_name = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.table_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_column_name;
break;
}
// optional string column_name = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_column_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_column_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.column_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_ordinal_position;
break;
}
// optional int32 ordinal_position = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_ordinal_position:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_ordinal_position();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ordinal_position_)));
- set_has_ordinal_position();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_default_value;
break;
}
// optional string default_value = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_default_value:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_default_value()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_value().data(), this->default_value().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_value().data(), static_cast<int>(this->default_value().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.default_value");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_is_nullable;
break;
}
// optional bool is_nullable = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_nullable:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_is_nullable();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_nullable_)));
- set_has_is_nullable();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_data_type;
break;
}
// optional string data_type = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_data_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_data_type()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.data_type");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(72)) goto parse_char_max_length;
break;
}
// optional int32 char_max_length = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_char_max_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_char_max_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &char_max_length_)));
- set_has_char_max_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(80)) goto parse_char_octet_length;
break;
}
// optional int32 char_octet_length = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_char_octet_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
+ set_has_char_octet_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &char_octet_length_)));
- set_has_char_octet_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(88)) goto parse_numeric_precision;
break;
}
// optional int32 numeric_precision = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_numeric_precision:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
+ set_has_numeric_precision();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &numeric_precision_)));
- set_has_numeric_precision();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(96)) goto parse_numeric_precision_radix;
break;
}
// optional int32 numeric_precision_radix = 12;
case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_numeric_precision_radix:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
+ set_has_numeric_precision_radix();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &numeric_precision_radix_)));
- set_has_numeric_precision_radix();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(104)) goto parse_numeric_scale;
break;
}
// optional int32 numeric_scale = 13;
case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_numeric_scale:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
+ set_has_numeric_scale();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &numeric_scale_)));
- set_has_numeric_scale();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(112)) goto parse_date_time_precision;
break;
}
// optional int32 date_time_precision = 14;
case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_date_time_precision:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
+ set_has_date_time_precision();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &date_time_precision_)));
- set_has_date_time_precision();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(122)) goto parse_interval_type;
break;
}
// optional string interval_type = 15;
case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_interval_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_interval_type()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->interval_type().data(), this->interval_type().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->interval_type().data(), static_cast<int>(this->interval_type().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ColumnMetadata.interval_type");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(128)) goto parse_interval_precision;
break;
}
// optional int32 interval_precision = 16;
case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_interval_precision:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
+ set_has_interval_precision();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &interval_precision_)));
- set_has_interval_precision();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(136)) goto parse_column_size;
break;
}
// optional int32 column_size = 17;
case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_column_size:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
+ set_has_column_size();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &column_size_)));
- set_has_column_size();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.ColumnMetadata)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.ColumnMetadata)
+ return false;
#undef DO_
}
void ColumnMetadata::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.ColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.catalog_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->catalog_name(), output);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.schema_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->schema_name(), output);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.table_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->table_name(), output);
}
// optional string column_name = 4;
- if (has_column_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.column_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->column_name(), output);
}
// optional int32 ordinal_position = 5;
- if (has_ordinal_position()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->ordinal_position(), output);
}
// optional string default_value = 6;
- if (has_default_value()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_value().data(), this->default_value().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_value().data(), static_cast<int>(this->default_value().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.default_value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->default_value(), output);
}
// optional bool is_nullable = 7;
- if (has_is_nullable()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_nullable(), output);
}
// optional string data_type = 8;
- if (has_data_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.data_type");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->data_type(), output);
}
// optional int32 char_max_length = 9;
- if (has_char_max_length()) {
+ if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->char_max_length(), output);
}
// optional int32 char_octet_length = 10;
- if (has_char_octet_length()) {
+ if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->char_octet_length(), output);
}
// optional int32 numeric_precision = 11;
- if (has_numeric_precision()) {
+ if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->numeric_precision(), output);
}
// optional int32 numeric_precision_radix = 12;
- if (has_numeric_precision_radix()) {
+ if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->numeric_precision_radix(), output);
}
// optional int32 numeric_scale = 13;
- if (has_numeric_scale()) {
+ if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->numeric_scale(), output);
}
// optional int32 date_time_precision = 14;
- if (has_date_time_precision()) {
+ if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->date_time_precision(), output);
}
// optional string interval_type = 15;
- if (has_interval_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->interval_type().data(), this->interval_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->interval_type().data(), static_cast<int>(this->interval_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.interval_type");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15, this->interval_type(), output);
}
// optional int32 interval_precision = 16;
- if (has_interval_precision()) {
+ if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->interval_precision(), output);
}
// optional int32 column_size = 17;
- if (has_column_size()) {
+ if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->column_size(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.ColumnMetadata)
}
-::google::protobuf::uint8* ColumnMetadata::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ColumnMetadata::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.ColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.catalog_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->catalog_name(), target);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.schema_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->schema_name(), target);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.table_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->table_name(), target);
}
// optional string column_name = 4;
- if (has_column_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.column_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->column_name(), target);
}
// optional int32 ordinal_position = 5;
- if (has_ordinal_position()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->ordinal_position(), target);
}
// optional string default_value = 6;
- if (has_default_value()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->default_value().data(), this->default_value().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->default_value().data(), static_cast<int>(this->default_value().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.default_value");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->default_value(), target);
}
// optional bool is_nullable = 7;
- if (has_is_nullable()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_nullable(), target);
}
// optional string data_type = 8;
- if (has_data_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.data_type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->data_type(), target);
}
// optional int32 char_max_length = 9;
- if (has_char_max_length()) {
+ if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->char_max_length(), target);
}
// optional int32 char_octet_length = 10;
- if (has_char_octet_length()) {
+ if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->char_octet_length(), target);
}
// optional int32 numeric_precision = 11;
- if (has_numeric_precision()) {
+ if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->numeric_precision(), target);
}
// optional int32 numeric_precision_radix = 12;
- if (has_numeric_precision_radix()) {
+ if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->numeric_precision_radix(), target);
}
// optional int32 numeric_scale = 13;
- if (has_numeric_scale()) {
+ if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->numeric_scale(), target);
}
// optional int32 date_time_precision = 14;
- if (has_date_time_precision()) {
+ if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->date_time_precision(), target);
}
// optional string interval_type = 15;
- if (has_interval_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->interval_type().data(), this->interval_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->interval_type().data(), static_cast<int>(this->interval_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ColumnMetadata.interval_type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15, this->interval_type(), target);
}
// optional int32 interval_precision = 16;
- if (has_interval_precision()) {
+ if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->interval_precision(), target);
}
// optional int32 column_size = 17;
- if (has_column_size()) {
+ if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->column_size(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.ColumnMetadata)
return target;
}
-int ColumnMetadata::ByteSize() const {
- int total_size = 0;
+size_t ColumnMetadata::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.ColumnMetadata)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string catalog_name = 1;
if (has_catalog_name()) {
total_size += 1 +
@@ -8924,13 +10012,6 @@ int ColumnMetadata::ByteSize() const {
this->column_name());
}
- // optional int32 ordinal_position = 5;
- if (has_ordinal_position()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->ordinal_position());
- }
-
// optional string default_value = 6;
if (has_default_value()) {
total_size += 1 +
@@ -8938,11 +10019,6 @@ int ColumnMetadata::ByteSize() const {
this->default_value());
}
- // optional bool is_nullable = 7;
- if (has_is_nullable()) {
- total_size += 1 + 1;
- }
-
// optional string data_type = 8;
if (has_data_type()) {
total_size += 1 +
@@ -8950,8 +10026,27 @@ int ColumnMetadata::ByteSize() const {
this->data_type());
}
+ // optional string interval_type = 15;
+ if (has_interval_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->interval_type());
+ }
+
+ // optional int32 ordinal_position = 5;
+ if (has_ordinal_position()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->ordinal_position());
+ }
+
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
+ if (_has_bits_[8 / 32] & 65280u) {
+ // optional bool is_nullable = 7;
+ if (has_is_nullable()) {
+ total_size += 1 + 1;
+ }
+
// optional int32 char_max_length = 9;
if (has_char_max_length()) {
total_size += 1 +
@@ -8994,13 +10089,6 @@ int ColumnMetadata::ByteSize() const {
this->date_time_precision());
}
- // optional string interval_type = 15;
- if (has_interval_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->interval_type());
- }
-
// optional int32 interval_precision = 16;
if (has_interval_precision()) {
total_size += 2 +
@@ -9009,234 +10097,263 @@ int ColumnMetadata::ByteSize() const {
}
}
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- // optional int32 column_size = 17;
- if (has_column_size()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->column_size());
- }
-
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional int32 column_size = 17;
+ if (has_column_size()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->column_size());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ColumnMetadata::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.ColumnMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
const ColumnMetadata* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ColumnMetadata*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ColumnMetadata>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.ColumnMetadata)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.ColumnMetadata)
MergeFrom(*source);
}
}
void ColumnMetadata::MergeFrom(const ColumnMetadata& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name()) {
- set_catalog_name(from.catalog_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.ColumnMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_name();
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
}
- if (from.has_schema_name()) {
- set_schema_name(from.schema_name());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_schema_name();
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
}
- if (from.has_table_name()) {
- set_table_name(from.table_name());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_table_name();
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
}
- if (from.has_column_name()) {
- set_column_name(from.column_name());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_column_name();
+ column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
}
- if (from.has_ordinal_position()) {
- set_ordinal_position(from.ordinal_position());
+ if (cached_has_bits & 0x00000010u) {
+ set_has_default_value();
+ default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_);
}
- if (from.has_default_value()) {
- set_default_value(from.default_value());
+ if (cached_has_bits & 0x00000020u) {
+ set_has_data_type();
+ data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
}
- if (from.has_is_nullable()) {
- set_is_nullable(from.is_nullable());
+ if (cached_has_bits & 0x00000040u) {
+ set_has_interval_type();
+ interval_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.interval_type_);
}
- if (from.has_data_type()) {
- set_data_type(from.data_type());
+ if (cached_has_bits & 0x00000080u) {
+ ordinal_position_ = from.ordinal_position_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_char_max_length()) {
- set_char_max_length(from.char_max_length());
+ if (cached_has_bits & 65280u) {
+ if (cached_has_bits & 0x00000100u) {
+ is_nullable_ = from.is_nullable_;
}
- if (from.has_char_octet_length()) {
- set_char_octet_length(from.char_octet_length());
+ if (cached_has_bits & 0x00000200u) {
+ char_max_length_ = from.char_max_length_;
}
- if (from.has_numeric_precision()) {
- set_numeric_precision(from.numeric_precision());
+ if (cached_has_bits & 0x00000400u) {
+ char_octet_length_ = from.char_octet_length_;
}
- if (from.has_numeric_precision_radix()) {
- set_numeric_precision_radix(from.numeric_precision_radix());
+ if (cached_has_bits & 0x00000800u) {
+ numeric_precision_ = from.numeric_precision_;
}
- if (from.has_numeric_scale()) {
- set_numeric_scale(from.numeric_scale());
+ if (cached_has_bits & 0x00001000u) {
+ numeric_precision_radix_ = from.numeric_precision_radix_;
}
- if (from.has_date_time_precision()) {
- set_date_time_precision(from.date_time_precision());
+ if (cached_has_bits & 0x00002000u) {
+ numeric_scale_ = from.numeric_scale_;
}
- if (from.has_interval_type()) {
- set_interval_type(from.interval_type());
+ if (cached_has_bits & 0x00004000u) {
+ date_time_precision_ = from.date_time_precision_;
}
- if (from.has_interval_precision()) {
- set_interval_precision(from.interval_precision());
+ if (cached_has_bits & 0x00008000u) {
+ interval_precision_ = from.interval_precision_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_column_size()) {
- set_column_size(from.column_size());
- }
+ if (cached_has_bits & 0x00010000u) {
+ set_column_size(from.column_size());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ColumnMetadata::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.ColumnMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ColumnMetadata::CopyFrom(const ColumnMetadata& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.ColumnMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ColumnMetadata::IsInitialized() const {
-
return true;
}
void ColumnMetadata::Swap(ColumnMetadata* other) {
- if (other != this) {
- std::swap(catalog_name_, other->catalog_name_);
- std::swap(schema_name_, other->schema_name_);
- std::swap(table_name_, other->table_name_);
- std::swap(column_name_, other->column_name_);
- std::swap(ordinal_position_, other->ordinal_position_);
- std::swap(default_value_, other->default_value_);
- std::swap(is_nullable_, other->is_nullable_);
- std::swap(data_type_, other->data_type_);
- std::swap(char_max_length_, other->char_max_length_);
- std::swap(char_octet_length_, other->char_octet_length_);
- std::swap(numeric_precision_, other->numeric_precision_);
- std::swap(numeric_precision_radix_, other->numeric_precision_radix_);
- std::swap(numeric_scale_, other->numeric_scale_);
- std::swap(date_time_precision_, other->date_time_precision_);
- std::swap(interval_type_, other->interval_type_);
- std::swap(interval_precision_, other->interval_precision_);
- std::swap(column_size_, other->column_size_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ColumnMetadata::InternalSwap(ColumnMetadata* other) {
+ using std::swap;
+ catalog_name_.Swap(&other->catalog_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ schema_name_.Swap(&other->schema_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ column_name_.Swap(&other->column_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ default_value_.Swap(&other->default_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ interval_type_.Swap(&other->interval_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(ordinal_position_, other->ordinal_position_);
+ swap(is_nullable_, other->is_nullable_);
+ swap(char_max_length_, other->char_max_length_);
+ swap(char_octet_length_, other->char_octet_length_);
+ swap(numeric_precision_, other->numeric_precision_);
+ swap(numeric_precision_radix_, other->numeric_precision_radix_);
+ swap(numeric_scale_, other->numeric_scale_);
+ swap(date_time_precision_, other->date_time_precision_);
+ swap(interval_precision_, other->interval_precision_);
+ swap(column_size_, other->column_size_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ColumnMetadata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ColumnMetadata_descriptor_;
- metadata.reflection = ColumnMetadata_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetColumnsResp::InitAsDefaultInstance() {
+ ::exec::user::_GetColumnsResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void GetColumnsResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetColumnsResp::kStatusFieldNumber;
const int GetColumnsResp::kColumnsFieldNumber;
const int GetColumnsResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetColumnsResp::GetColumnsResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetColumnsResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetColumnsResp)
}
-
-void GetColumnsResp::InitAsDefaultInstance() {
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
GetColumnsResp::GetColumnsResp(const GetColumnsResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ columns_(from.columns_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetColumnsResp)
}
void GetColumnsResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&error_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&error_)) + sizeof(status_));
}
GetColumnsResp::~GetColumnsResp() {
+ // @@protoc_insertion_point(destructor:exec.user.GetColumnsResp)
SharedDtor();
}
void GetColumnsResp::SharedDtor() {
- if (this != default_instance_) {
- delete error_;
- }
+ if (this != internal_default_instance()) delete error_;
}
void GetColumnsResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetColumnsResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetColumnsResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetColumnsResp& GetColumnsResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetColumnsResp.base);
+ return *internal_default_instance();
}
-GetColumnsResp* GetColumnsResp::default_instance_ = NULL;
-
-GetColumnsResp* GetColumnsResp::New() const {
- return new GetColumnsResp;
-}
void GetColumnsResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.GetColumnsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
columns_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
+ }
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetColumnsResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetColumnsResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -9244,443 +10361,498 @@ bool GetColumnsResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_columns;
break;
}
// repeated .exec.user.ColumnMetadata columns = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_columns:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_columns()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_columns;
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetColumnsResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetColumnsResp)
+ return false;
#undef DO_
}
void GetColumnsResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetColumnsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// repeated .exec.user.ColumnMetadata columns = 2;
- for (int i = 0; i < this->columns_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->columns(i), output);
+ 2,
+ this->columns(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetColumnsResp)
}
-::google::protobuf::uint8* GetColumnsResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetColumnsResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetColumnsResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// repeated .exec.user.ColumnMetadata columns = 2;
- for (int i = 0; i < this->columns_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->columns(i), target);
+ InternalWriteMessageToArray(
+ 2, this->columns(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetColumnsResp)
return target;
}
-int GetColumnsResp::ByteSize() const {
- int total_size = 0;
+size_t GetColumnsResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetColumnsResp)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.ColumnMetadata columns = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->columns_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->columns(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
}
- }
- // repeated .exec.user.ColumnMetadata columns = 2;
- total_size += 1 * this->columns_size();
- for (int i = 0; i < this->columns_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->columns(i));
- }
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetColumnsResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetColumnsResp)
+ GOOGLE_DCHECK_NE(&from, this);
const GetColumnsResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetColumnsResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetColumnsResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetColumnsResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetColumnsResp)
MergeFrom(*source);
}
}
void GetColumnsResp::MergeFrom(const GetColumnsResp& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetColumnsResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
columns_.MergeFrom(from.columns_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_error()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000002u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetColumnsResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetColumnsResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetColumnsResp::CopyFrom(const GetColumnsResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetColumnsResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetColumnsResp::IsInitialized() const {
-
return true;
}
void GetColumnsResp::Swap(GetColumnsResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- columns_.Swap(&other->columns_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetColumnsResp::InternalSwap(GetColumnsResp* other) {
+ using std::swap;
+ CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_));
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetColumnsResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetColumnsResp_descriptor_;
- metadata.reflection = GetColumnsResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void CreatePreparedStatementReq::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CreatePreparedStatementReq::kSqlQueryFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CreatePreparedStatementReq::CreatePreparedStatementReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_CreatePreparedStatementReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.CreatePreparedStatementReq)
}
-
-void CreatePreparedStatementReq::InitAsDefaultInstance() {
-}
-
CreatePreparedStatementReq::CreatePreparedStatementReq(const CreatePreparedStatementReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ sql_query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_sql_query()) {
+ sql_query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sql_query_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.CreatePreparedStatementReq)
}
void CreatePreparedStatementReq::SharedCtor() {
- _cached_size_ = 0;
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ sql_query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
CreatePreparedStatementReq::~CreatePreparedStatementReq() {
+ // @@protoc_insertion_point(destructor:exec.user.CreatePreparedStatementReq)
SharedDtor();
}
void CreatePreparedStatementReq::SharedDtor() {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- delete sql_query_;
- }
- if (this != default_instance_) {
- }
+ sql_query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void CreatePreparedStatementReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* CreatePreparedStatementReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CreatePreparedStatementReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const CreatePreparedStatementReq& CreatePreparedStatementReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_CreatePreparedStatementReq.base);
+ return *internal_default_instance();
}
-CreatePreparedStatementReq* CreatePreparedStatementReq::default_instance_ = NULL;
-
-CreatePreparedStatementReq* CreatePreparedStatementReq::New() const {
- return new CreatePreparedStatementReq;
-}
void CreatePreparedStatementReq::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_sql_query()) {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- sql_query_->clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.CreatePreparedStatementReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ sql_query_.ClearNonDefaultToEmptyNoArena();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool CreatePreparedStatementReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.CreatePreparedStatementReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string sql_query = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_sql_query()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.CreatePreparedStatementReq.sql_query");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.CreatePreparedStatementReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.CreatePreparedStatementReq)
+ return false;
#undef DO_
}
void CreatePreparedStatementReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.CreatePreparedStatementReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string sql_query = 1;
- if (has_sql_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CreatePreparedStatementReq.sql_query");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->sql_query(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.CreatePreparedStatementReq)
}
-::google::protobuf::uint8* CreatePreparedStatementReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* CreatePreparedStatementReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.CreatePreparedStatementReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string sql_query = 1;
- if (has_sql_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_query().data(), this->sql_query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_query().data(), static_cast<int>(this->sql_query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.CreatePreparedStatementReq.sql_query");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->sql_query(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.CreatePreparedStatementReq)
return target;
}
-int CreatePreparedStatementReq::ByteSize() const {
- int total_size = 0;
+size_t CreatePreparedStatementReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.CreatePreparedStatementReq)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional string sql_query = 1;
- if (has_sql_query()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->sql_query());
- }
-
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ // optional string sql_query = 1;
+ if (has_sql_query()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->sql_query());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void CreatePreparedStatementReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.CreatePreparedStatementReq)
+ GOOGLE_DCHECK_NE(&from, this);
const CreatePreparedStatementReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const CreatePreparedStatementReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const CreatePreparedStatementReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.CreatePreparedStatementReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.CreatePreparedStatementReq)
MergeFrom(*source);
}
}
void CreatePreparedStatementReq::MergeFrom(const CreatePreparedStatementReq& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_sql_query()) {
- set_sql_query(from.sql_query());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.CreatePreparedStatementReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_sql_query()) {
+ set_has_sql_query();
+ sql_query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sql_query_);
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CreatePreparedStatementReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.CreatePreparedStatementReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CreatePreparedStatementReq::CopyFrom(const CreatePreparedStatementReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.CreatePreparedStatementReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CreatePreparedStatementReq::IsInitialized() const {
-
return true;
}
void CreatePreparedStatementReq::Swap(CreatePreparedStatementReq* other) {
- if (other != this) {
- std::swap(sql_query_, other->sql_query_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CreatePreparedStatementReq::InternalSwap(CreatePreparedStatementReq* other) {
+ using std::swap;
+ sql_query_.Swap(&other->sql_query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata CreatePreparedStatementReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = CreatePreparedStatementReq_descriptor_;
- metadata.reflection = CreatePreparedStatementReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ResultColumnMetadata::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ResultColumnMetadata::kCatalogNameFieldNumber;
const int ResultColumnMetadata::kSchemaNameFieldNumber;
const int ResultColumnMetadata::kTableNameFieldNumber;
@@ -9700,363 +10872,335 @@ const int ResultColumnMetadata::kCaseSensitivityFieldNumber;
const int ResultColumnMetadata::kSortableFieldNumber;
const int ResultColumnMetadata::kClassNameFieldNumber;
const int ResultColumnMetadata::kIsCurrencyFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ResultColumnMetadata::ResultColumnMetadata()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_ResultColumnMetadata.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.ResultColumnMetadata)
}
-
-void ResultColumnMetadata::InitAsDefaultInstance() {
-}
-
ResultColumnMetadata::ResultColumnMetadata(const ResultColumnMetadata& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_name()) {
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
+ }
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_schema_name()) {
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
+ }
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_table_name()) {
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
+ }
+ column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_column_name()) {
+ column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
+ }
+ label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_label()) {
+ label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_);
+ }
+ data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_data_type()) {
+ data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
+ }
+ class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_class_name()) {
+ class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
+ }
+ ::memcpy(&precision_, &from.precision_,
+ static_cast<size_t>(reinterpret_cast<char*>(&is_currency_) -
+ reinterpret_cast<char*>(&precision_)) + sizeof(is_currency_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.ResultColumnMetadata)
}
void ResultColumnMetadata::SharedCtor() {
- _cached_size_ = 0;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- is_nullable_ = false;
- precision_ = 0;
- scale_ = 0;
- signed__ = false;
- display_size_ = 0;
- is_aliased_ = false;
- searchability_ = 0;
- updatability_ = 0;
- auto_increment_ = false;
- case_sensitivity_ = false;
- sortable_ = false;
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- is_currency_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ catalog_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&precision_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_currency_) -
+ reinterpret_cast<char*>(&precision_)) + sizeof(is_currency_));
}
ResultColumnMetadata::~ResultColumnMetadata() {
+ // @@protoc_insertion_point(destructor:exec.user.ResultColumnMetadata)
SharedDtor();
}
void ResultColumnMetadata::SharedDtor() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- delete column_name_;
- }
- if (label_ != &::google::protobuf::internal::kEmptyString) {
- delete label_;
- }
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- delete data_type_;
- }
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- delete class_name_;
- }
- if (this != default_instance_) {
- }
+ catalog_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ column_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ class_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ResultColumnMetadata::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ResultColumnMetadata::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ResultColumnMetadata_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ResultColumnMetadata& ResultColumnMetadata::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_ResultColumnMetadata.base);
+ return *internal_default_instance();
}
-ResultColumnMetadata* ResultColumnMetadata::default_instance_ = NULL;
-
-ResultColumnMetadata* ResultColumnMetadata::New() const {
- return new ResultColumnMetadata;
-}
void ResultColumnMetadata::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_catalog_name()) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.ResultColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 127u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_schema_name()) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ schema_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_table_name()) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ table_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_column_name()) {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- column_name_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ column_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_label()) {
- if (label_ != &::google::protobuf::internal::kEmptyString) {
- label_->clear();
- }
+ if (cached_has_bits & 0x00000010u) {
+ label_.ClearNonDefaultToEmptyNoArena();
}
- if (has_data_type()) {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- data_type_->clear();
- }
+ if (cached_has_bits & 0x00000020u) {
+ data_type_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000040u) {
+ class_name_.ClearNonDefaultToEmptyNoArena();
}
- is_nullable_ = false;
- precision_ = 0;
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- scale_ = 0;
- signed__ = false;
- display_size_ = 0;
- is_aliased_ = false;
- searchability_ = 0;
- updatability_ = 0;
- auto_increment_ = false;
- case_sensitivity_ = false;
+ precision_ = 0;
+ if (cached_has_bits & 65280u) {
+ ::memset(&scale_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&updatability_) -
+ reinterpret_cast<char*>(&scale_)) + sizeof(updatability_));
}
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- sortable_ = false;
- if (has_class_name()) {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- class_name_->clear();
- }
- }
- is_currency_ = false;
+ if (cached_has_bits & 458752u) {
+ ::memset(&case_sensitivity_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_currency_) -
+ reinterpret_cast<char*>(&case_sensitivity_)) + sizeof(is_currency_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ResultColumnMetadata::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.ResultColumnMetadata)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string catalog_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.catalog_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_schema_name;
break;
}
// optional string schema_name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_schema_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.schema_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_table_name;
break;
}
// optional string table_name = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.table_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_column_name;
break;
}
// optional string column_name = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_column_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_column_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.column_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_label;
break;
}
// optional string label = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_label:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_label()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->label().data(), this->label().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->label().data(), static_cast<int>(this->label().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.label");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_data_type;
break;
}
// optional string data_type = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_data_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_data_type()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.data_type");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_is_nullable;
break;
}
// optional bool is_nullable = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_nullable:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_is_nullable();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_nullable_)));
- set_has_is_nullable();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_precision;
break;
}
// optional int32 precision = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_precision:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
+ set_has_precision();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &precision_)));
- set_has_precision();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(72)) goto parse_scale;
break;
}
// optional int32 scale = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_scale:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_scale();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &scale_)));
- set_has_scale();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(80)) goto parse_signed;
break;
}
// optional bool signed = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_signed:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
+ set_has_signed_();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &signed__)));
- set_has_signed_();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(88)) goto parse_display_size;
break;
}
// optional int32 display_size = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_display_size:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
+ set_has_display_size();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &display_size_)));
- set_has_display_size();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(96)) goto parse_is_aliased;
break;
}
// optional bool is_aliased = 12;
case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_aliased:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
+ set_has_is_aliased();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_aliased_)));
- set_has_is_aliased();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(104)) goto parse_searchability;
break;
}
// optional .exec.user.ColumnSearchability searchability = 13;
case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_searchability:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -10064,20 +11208,19 @@ bool ResultColumnMetadata::MergePartialFromCodedStream(
if (::exec::user::ColumnSearchability_IsValid(value)) {
set_searchability(static_cast< ::exec::user::ColumnSearchability >(value));
} else {
- mutable_unknown_fields()->AddVarint(13, value);
+ mutable_unknown_fields()->AddVarint(
+ 13, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(112)) goto parse_updatability;
break;
}
// optional .exec.user.ColumnUpdatability updatability = 14;
case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_updatability:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -10085,390 +11228,418 @@ bool ResultColumnMetadata::MergePartialFromCodedStream(
if (::exec::user::ColumnUpdatability_IsValid(value)) {
set_updatability(static_cast< ::exec::user::ColumnUpdatability >(value));
} else {
- mutable_unknown_fields()->AddVarint(14, value);
+ mutable_unknown_fields()->AddVarint(
+ 14, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(120)) goto parse_auto_increment;
break;
}
// optional bool auto_increment = 15;
case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_auto_increment:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
+ set_has_auto_increment();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &auto_increment_)));
- set_has_auto_increment();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(128)) goto parse_case_sensitivity;
break;
}
// optional bool case_sensitivity = 16;
case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_case_sensitivity:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
+ set_has_case_sensitivity();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &case_sensitivity_)));
- set_has_case_sensitivity();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(136)) goto parse_sortable;
break;
}
// optional bool sortable = 17;
case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_sortable:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
+ set_has_sortable();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &sortable_)));
- set_has_sortable();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(146)) goto parse_class_name;
break;
}
// optional string class_name = 18;
case 18: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_class_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_class_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ResultColumnMetadata.class_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(160)) goto parse_is_currency;
break;
}
// optional bool is_currency = 20;
case 20: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_currency:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
+ set_has_is_currency();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_currency_)));
- set_has_is_currency();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.ResultColumnMetadata)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.ResultColumnMetadata)
+ return false;
#undef DO_
}
void ResultColumnMetadata::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.ResultColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.catalog_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->catalog_name(), output);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.schema_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->schema_name(), output);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.table_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->table_name(), output);
}
// optional string column_name = 4;
- if (has_column_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.column_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->column_name(), output);
}
// optional string label = 5;
- if (has_label()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->label().data(), this->label().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->label().data(), static_cast<int>(this->label().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.label");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->label(), output);
}
// optional string data_type = 6;
- if (has_data_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.data_type");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->data_type(), output);
}
// optional bool is_nullable = 7;
- if (has_is_nullable()) {
+ if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_nullable(), output);
}
// optional int32 precision = 8;
- if (has_precision()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->precision(), output);
}
// optional int32 scale = 9;
- if (has_scale()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->scale(), output);
}
// optional bool signed = 10;
- if (has_signed_()) {
+ if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteBool(10, this->signed_(), output);
}
// optional int32 display_size = 11;
- if (has_display_size()) {
+ if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->display_size(), output);
}
// optional bool is_aliased = 12;
- if (has_is_aliased()) {
+ if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(12, this->is_aliased(), output);
}
// optional .exec.user.ColumnSearchability searchability = 13;
- if (has_searchability()) {
+ if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
13, this->searchability(), output);
}
// optional .exec.user.ColumnUpdatability updatability = 14;
- if (has_updatability()) {
+ if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
14, this->updatability(), output);
}
// optional bool auto_increment = 15;
- if (has_auto_increment()) {
+ if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(15, this->auto_increment(), output);
}
// optional bool case_sensitivity = 16;
- if (has_case_sensitivity()) {
+ if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(16, this->case_sensitivity(), output);
}
// optional bool sortable = 17;
- if (has_sortable()) {
+ if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(17, this->sortable(), output);
}
// optional string class_name = 18;
- if (has_class_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.class_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
18, this->class_name(), output);
}
// optional bool is_currency = 20;
- if (has_is_currency()) {
+ if (cached_has_bits & 0x00040000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(20, this->is_currency(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.ResultColumnMetadata)
}
-::google::protobuf::uint8* ResultColumnMetadata::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ResultColumnMetadata::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.ResultColumnMetadata)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string catalog_name = 1;
- if (has_catalog_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_name().data(), this->catalog_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_name().data(), static_cast<int>(this->catalog_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.catalog_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->catalog_name(), target);
}
// optional string schema_name = 2;
- if (has_schema_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_name().data(), this->schema_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_name().data(), static_cast<int>(this->schema_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.schema_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->schema_name(), target);
}
// optional string table_name = 3;
- if (has_table_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_name().data(), this->table_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_name().data(), static_cast<int>(this->table_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.table_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->table_name(), target);
}
// optional string column_name = 4;
- if (has_column_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->column_name().data(), this->column_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->column_name().data(), static_cast<int>(this->column_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.column_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->column_name(), target);
}
// optional string label = 5;
- if (has_label()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->label().data(), this->label().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->label().data(), static_cast<int>(this->label().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.label");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->label(), target);
}
// optional string data_type = 6;
- if (has_data_type()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->data_type().data(), this->data_type().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->data_type().data(), static_cast<int>(this->data_type().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.data_type");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->data_type(), target);
}
// optional bool is_nullable = 7;
- if (has_is_nullable()) {
+ if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_nullable(), target);
}
// optional int32 precision = 8;
- if (has_precision()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->precision(), target);
}
// optional int32 scale = 9;
- if (has_scale()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->scale(), target);
}
// optional bool signed = 10;
- if (has_signed_()) {
+ if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->signed_(), target);
}
// optional int32 display_size = 11;
- if (has_display_size()) {
+ if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->display_size(), target);
}
// optional bool is_aliased = 12;
- if (has_is_aliased()) {
+ if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->is_aliased(), target);
}
// optional .exec.user.ColumnSearchability searchability = 13;
- if (has_searchability()) {
+ if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
13, this->searchability(), target);
}
// optional .exec.user.ColumnUpdatability updatability = 14;
- if (has_updatability()) {
+ if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
14, this->updatability(), target);
}
// optional bool auto_increment = 15;
- if (has_auto_increment()) {
+ if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->auto_increment(), target);
}
// optional bool case_sensitivity = 16;
- if (has_case_sensitivity()) {
+ if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->case_sensitivity(), target);
}
// optional bool sortable = 17;
- if (has_sortable()) {
+ if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->sortable(), target);
}
// optional string class_name = 18;
- if (has_class_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ResultColumnMetadata.class_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
18, this->class_name(), target);
}
// optional bool is_currency = 20;
- if (has_is_currency()) {
+ if (cached_has_bits & 0x00040000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->is_currency(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.ResultColumnMetadata)
return target;
}
-int ResultColumnMetadata::ByteSize() const {
- int total_size = 0;
+size_t ResultColumnMetadata::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.ResultColumnMetadata)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string catalog_name = 1;
if (has_catalog_name()) {
total_size += 1 +
@@ -10511,9 +11682,11 @@ int ResultColumnMetadata::ByteSize() const {
this->data_type());
}
- // optional bool is_nullable = 7;
- if (has_is_nullable()) {
- total_size += 1 + 1;
+ // optional string class_name = 18;
+ if (has_class_name()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->class_name());
}
// optional int32 precision = 8;
@@ -10524,7 +11697,7 @@ int ResultColumnMetadata::ByteSize() const {
}
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
+ if (_has_bits_[8 / 32] & 65280u) {
// optional int32 scale = 9;
if (has_scale()) {
total_size += 1 +
@@ -10532,11 +11705,6 @@ int ResultColumnMetadata::ByteSize() const {
this->scale());
}
- // optional bool signed = 10;
- if (has_signed_()) {
- total_size += 1 + 1;
- }
-
// optional int32 display_size = 11;
if (has_display_size()) {
total_size += 1 +
@@ -10544,11 +11712,26 @@ int ResultColumnMetadata::ByteSize() const {
this->display_size());
}
+ // optional bool is_nullable = 7;
+ if (has_is_nullable()) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool signed = 10;
+ if (has_signed_()) {
+ total_size += 1 + 1;
+ }
+
// optional bool is_aliased = 12;
if (has_is_aliased()) {
total_size += 1 + 1;
}
+ // optional bool auto_increment = 15;
+ if (has_auto_increment()) {
+ total_size += 1 + 1;
+ }
+
// optional .exec.user.ColumnSearchability searchability = 13;
if (has_searchability()) {
total_size += 1 +
@@ -10561,738 +11744,820 @@ int ResultColumnMetadata::ByteSize() const {
::google::protobuf::internal::WireFormatLite::EnumSize(this->updatability());
}
- // optional bool auto_increment = 15;
- if (has_auto_increment()) {
- total_size += 1 + 1;
- }
-
+ }
+ if (_has_bits_[16 / 32] & 458752u) {
// optional bool case_sensitivity = 16;
if (has_case_sensitivity()) {
total_size += 2 + 1;
}
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional bool sortable = 17;
if (has_sortable()) {
total_size += 2 + 1;
}
- // optional string class_name = 18;
- if (has_class_name()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->class_name());
- }
-
// optional bool is_currency = 20;
if (has_is_currency()) {
total_size += 2 + 1;
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ResultColumnMetadata::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.ResultColumnMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
const ResultColumnMetadata* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ResultColumnMetadata*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ResultColumnMetadata>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.ResultColumnMetadata)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.ResultColumnMetadata)
MergeFrom(*source);
}
}
void ResultColumnMetadata::MergeFrom(const ResultColumnMetadata& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_catalog_name()) {
- set_catalog_name(from.catalog_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.ResultColumnMetadata)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_name();
+ catalog_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_name_);
}
- if (from.has_schema_name()) {
- set_schema_name(from.schema_name());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_schema_name();
+ schema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_name_);
}
- if (from.has_table_name()) {
- set_table_name(from.table_name());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_table_name();
+ table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
}
- if (from.has_column_name()) {
- set_column_name(from.column_name());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_column_name();
+ column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
}
- if (from.has_label()) {
- set_label(from.label());
+ if (cached_has_bits & 0x00000010u) {
+ set_has_label();
+ label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_);
}
- if (from.has_data_type()) {
- set_data_type(from.data_type());
+ if (cached_has_bits & 0x00000020u) {
+ set_has_data_type();
+ data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
}
- if (from.has_is_nullable()) {
- set_is_nullable(from.is_nullable());
+ if (cached_has_bits & 0x00000040u) {
+ set_has_class_name();
+ class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
}
- if (from.has_precision()) {
- set_precision(from.precision());
+ if (cached_has_bits & 0x00000080u) {
+ precision_ = from.precision_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_scale()) {
- set_scale(from.scale());
+ if (cached_has_bits & 65280u) {
+ if (cached_has_bits & 0x00000100u) {
+ scale_ = from.scale_;
}
- if (from.has_signed_()) {
- set_signed_(from.signed_());
+ if (cached_has_bits & 0x00000200u) {
+ display_size_ = from.display_size_;
}
- if (from.has_display_size()) {
- set_display_size(from.display_size());
+ if (cached_has_bits & 0x00000400u) {
+ is_nullable_ = from.is_nullable_;
}
- if (from.has_is_aliased()) {
- set_is_aliased(from.is_aliased());
+ if (cached_has_bits & 0x00000800u) {
+ signed__ = from.signed__;
}
- if (from.has_searchability()) {
- set_searchability(from.searchability());
+ if (cached_has_bits & 0x00001000u) {
+ is_aliased_ = from.is_aliased_;
}
- if (from.has_updatability()) {
- set_updatability(from.updatability());
+ if (cached_has_bits & 0x00002000u) {
+ auto_increment_ = from.auto_increment_;
}
- if (from.has_auto_increment()) {
- set_auto_increment(from.auto_increment());
+ if (cached_has_bits & 0x00004000u) {
+ searchability_ = from.searchability_;
}
- if (from.has_case_sensitivity()) {
- set_case_sensitivity(from.case_sensitivity());
+ if (cached_has_bits & 0x00008000u) {
+ updatability_ = from.updatability_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_sortable()) {
- set_sortable(from.sortable());
+ if (cached_has_bits & 458752u) {
+ if (cached_has_bits & 0x00010000u) {
+ case_sensitivity_ = from.case_sensitivity_;
}
- if (from.has_class_name()) {
- set_class_name(from.class_name());
+ if (cached_has_bits & 0x00020000u) {
+ sortable_ = from.sortable_;
}
- if (from.has_is_currency()) {
- set_is_currency(from.is_currency());
+ if (cached_has_bits & 0x00040000u) {
+ is_currency_ = from.is_currency_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ResultColumnMetadata::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.ResultColumnMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ResultColumnMetadata::CopyFrom(const ResultColumnMetadata& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.ResultColumnMetadata)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ResultColumnMetadata::IsInitialized() const {
-
return true;
}
void ResultColumnMetadata::Swap(ResultColumnMetadata* other) {
- if (other != this) {
- std::swap(catalog_name_, other->catalog_name_);
- std::swap(schema_name_, other->schema_name_);
- std::swap(table_name_, other->table_name_);
- std::swap(column_name_, other->column_name_);
- std::swap(label_, other->label_);
- std::swap(data_type_, other->data_type_);
- std::swap(is_nullable_, other->is_nullable_);
- std::swap(precision_, other->precision_);
- std::swap(scale_, other->scale_);
- std::swap(signed__, other->signed__);
- std::swap(display_size_, other->display_size_);
- std::swap(is_aliased_, other->is_aliased_);
- std::swap(searchability_, other->searchability_);
- std::swap(updatability_, other->updatability_);
- std::swap(auto_increment_, other->auto_increment_);
- std::swap(case_sensitivity_, other->case_sensitivity_);
- std::swap(sortable_, other->sortable_);
- std::swap(class_name_, other->class_name_);
- std::swap(is_currency_, other->is_currency_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ResultColumnMetadata::InternalSwap(ResultColumnMetadata* other) {
+ using std::swap;
+ catalog_name_.Swap(&other->catalog_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ schema_name_.Swap(&other->schema_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ column_name_.Swap(&other->column_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ label_.Swap(&other->label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ class_name_.Swap(&other->class_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(precision_, other->precision_);
+ swap(scale_, other->scale_);
+ swap(display_size_, other->display_size_);
+ swap(is_nullable_, other->is_nullable_);
+ swap(signed__, other->signed__);
+ swap(is_aliased_, other->is_aliased_);
+ swap(auto_increment_, other->auto_increment_);
+ swap(searchability_, other->searchability_);
+ swap(updatability_, other->updatability_);
+ swap(case_sensitivity_, other->case_sensitivity_);
+ swap(sortable_, other->sortable_);
+ swap(is_currency_, other->is_currency_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ResultColumnMetadata::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ResultColumnMetadata_descriptor_;
- metadata.reflection = ResultColumnMetadata_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void PreparedStatementHandle::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PreparedStatementHandle::kServerInfoFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PreparedStatementHandle::PreparedStatementHandle()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_PreparedStatementHandle.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.PreparedStatementHandle)
}
-
-void PreparedStatementHandle::InitAsDefaultInstance() {
-}
-
PreparedStatementHandle::PreparedStatementHandle(const PreparedStatementHandle& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ server_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_server_info()) {
+ server_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.server_info_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.PreparedStatementHandle)
}
void PreparedStatementHandle::SharedCtor() {
- _cached_size_ = 0;
- server_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ server_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
PreparedStatementHandle::~PreparedStatementHandle() {
+ // @@protoc_insertion_point(destructor:exec.user.PreparedStatementHandle)
SharedDtor();
}
void PreparedStatementHandle::SharedDtor() {
- if (server_info_ != &::google::protobuf::internal::kEmptyString) {
- delete server_info_;
- }
- if (this != default_instance_) {
- }
+ server_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void PreparedStatementHandle::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* PreparedStatementHandle::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return PreparedStatementHandle_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const PreparedStatementHandle& PreparedStatementHandle::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_PreparedStatementHandle.base);
+ return *internal_default_instance();
}
-PreparedStatementHandle* PreparedStatementHandle::default_instance_ = NULL;
-
-PreparedStatementHandle* PreparedStatementHandle::New() const {
- return new PreparedStatementHandle;
-}
void PreparedStatementHandle::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_server_info()) {
- if (server_info_ != &::google::protobuf::internal::kEmptyString) {
- server_info_->clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.PreparedStatementHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ server_info_.ClearNonDefaultToEmptyNoArena();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool PreparedStatementHandle::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.PreparedStatementHandle)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional bytes server_info = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_server_info()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.PreparedStatementHandle)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.PreparedStatementHandle)
+ return false;
#undef DO_
}
void PreparedStatementHandle::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.PreparedStatementHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bytes server_info = 1;
- if (has_server_info()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1, this->server_info(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.PreparedStatementHandle)
}
-::google::protobuf::uint8* PreparedStatementHandle::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* PreparedStatementHandle::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.PreparedStatementHandle)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bytes server_info = 1;
- if (has_server_info()) {
+ if (cached_has_bits & 0x00000001u) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1, this->server_info(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.PreparedStatementHandle)
return target;
}
-int PreparedStatementHandle::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional bytes server_info = 1;
- if (has_server_info()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->server_info());
- }
+size_t PreparedStatementHandle::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.PreparedStatementHandle)
+ size_t total_size = 0;
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ // optional bytes server_info = 1;
+ if (has_server_info()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->server_info());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void PreparedStatementHandle::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.PreparedStatementHandle)
+ GOOGLE_DCHECK_NE(&from, this);
const PreparedStatementHandle* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const PreparedStatementHandle*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const PreparedStatementHandle>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.PreparedStatementHandle)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.PreparedStatementHandle)
MergeFrom(*source);
}
}
void PreparedStatementHandle::MergeFrom(const PreparedStatementHandle& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_server_info()) {
- set_server_info(from.server_info());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.PreparedStatementHandle)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_server_info()) {
+ set_has_server_info();
+ server_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.server_info_);
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PreparedStatementHandle::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.PreparedStatementHandle)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PreparedStatementHandle::CopyFrom(const PreparedStatementHandle& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.PreparedStatementHandle)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PreparedStatementHandle::IsInitialized() const {
-
return true;
}
void PreparedStatementHandle::Swap(PreparedStatementHandle* other) {
- if (other != this) {
- std::swap(server_info_, other->server_info_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void PreparedStatementHandle::InternalSwap(PreparedStatementHandle* other) {
+ using std::swap;
+ server_info_.Swap(&other->server_info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata PreparedStatementHandle::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = PreparedStatementHandle_descriptor_;
- metadata.reflection = PreparedStatementHandle_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void PreparedStatement::InitAsDefaultInstance() {
+ ::exec::user::_PreparedStatement_default_instance_._instance.get_mutable()->server_handle_ = const_cast< ::exec::user::PreparedStatementHandle*>(
+ ::exec::user::PreparedStatementHandle::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int PreparedStatement::kColumnsFieldNumber;
const int PreparedStatement::kServerHandleFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
PreparedStatement::PreparedStatement()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_PreparedStatement.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.PreparedStatement)
}
-
-void PreparedStatement::InitAsDefaultInstance() {
- server_handle_ = const_cast< ::exec::user::PreparedStatementHandle*>(&::exec::user::PreparedStatementHandle::default_instance());
-}
-
PreparedStatement::PreparedStatement(const PreparedStatement& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ columns_(from.columns_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_server_handle()) {
+ server_handle_ = new ::exec::user::PreparedStatementHandle(*from.server_handle_);
+ } else {
+ server_handle_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.user.PreparedStatement)
}
void PreparedStatement::SharedCtor() {
- _cached_size_ = 0;
server_handle_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PreparedStatement::~PreparedStatement() {
+ // @@protoc_insertion_point(destructor:exec.user.PreparedStatement)
SharedDtor();
}
void PreparedStatement::SharedDtor() {
- if (this != default_instance_) {
- delete server_handle_;
- }
+ if (this != internal_default_instance()) delete server_handle_;
}
void PreparedStatement::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* PreparedStatement::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return PreparedStatement_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const PreparedStatement& PreparedStatement::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_PreparedStatement.base);
+ return *internal_default_instance();
}
-PreparedStatement* PreparedStatement::default_instance_ = NULL;
-
-PreparedStatement* PreparedStatement::New() const {
- return new PreparedStatement;
-}
void PreparedStatement::Clear() {
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
- if (has_server_handle()) {
- if (server_handle_ != NULL) server_handle_->::exec::user::PreparedStatementHandle::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.PreparedStatement)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
columns_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(server_handle_ != NULL);
+ server_handle_->Clear();
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool PreparedStatement::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.PreparedStatement)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.user.ResultColumnMetadata columns = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_columns:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_columns()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_columns;
- if (input->ExpectTag(18)) goto parse_server_handle;
break;
}
// optional .exec.user.PreparedStatementHandle server_handle = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_server_handle:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_server_handle()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.PreparedStatement)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.PreparedStatement)
+ return false;
#undef DO_
}
void PreparedStatement::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.PreparedStatement)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.user.ResultColumnMetadata columns = 1;
- for (int i = 0; i < this->columns_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->columns(i), output);
+ 1,
+ this->columns(static_cast<int>(i)),
+ output);
}
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.PreparedStatementHandle server_handle = 2;
- if (has_server_handle()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->server_handle(), output);
+ 2, this->_internal_server_handle(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.PreparedStatement)
}
-::google::protobuf::uint8* PreparedStatement::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* PreparedStatement::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.PreparedStatement)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.user.ResultColumnMetadata columns = 1;
- for (int i = 0; i < this->columns_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->columns(i), target);
+ InternalWriteMessageToArray(
+ 1, this->columns(static_cast<int>(i)), deterministic, target);
}
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.PreparedStatementHandle server_handle = 2;
- if (has_server_handle()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->server_handle(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_server_handle(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.PreparedStatement)
return target;
}
-int PreparedStatement::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
- // optional .exec.user.PreparedStatementHandle server_handle = 2;
- if (has_server_handle()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->server_handle());
- }
+size_t PreparedStatement::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.PreparedStatement)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
}
// repeated .exec.user.ResultColumnMetadata columns = 1;
- total_size += 1 * this->columns_size();
- for (int i = 0; i < this->columns_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->columns(i));
+ {
+ unsigned int count = static_cast<unsigned int>(this->columns_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->columns(static_cast<int>(i)));
+ }
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional .exec.user.PreparedStatementHandle server_handle = 2;
+ if (has_server_handle()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *server_handle_);
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void PreparedStatement::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.PreparedStatement)
+ GOOGLE_DCHECK_NE(&from, this);
const PreparedStatement* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const PreparedStatement*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const PreparedStatement>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.PreparedStatement)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.PreparedStatement)
MergeFrom(*source);
}
}
void PreparedStatement::MergeFrom(const PreparedStatement& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.PreparedStatement)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
columns_.MergeFrom(from.columns_);
- if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
- if (from.has_server_handle()) {
- mutable_server_handle()->::exec::user::PreparedStatementHandle::MergeFrom(from.server_handle());
- }
+ if (from.has_server_handle()) {
+ mutable_server_handle()->::exec::user::PreparedStatementHandle::MergeFrom(from.server_handle());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PreparedStatement::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.PreparedStatement)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PreparedStatement::CopyFrom(const PreparedStatement& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.PreparedStatement)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PreparedStatement::IsInitialized() const {
-
return true;
}
void PreparedStatement::Swap(PreparedStatement* other) {
- if (other != this) {
- columns_.Swap(&other->columns_);
- std::swap(server_handle_, other->server_handle_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void PreparedStatement::InternalSwap(PreparedStatement* other) {
+ using std::swap;
+ CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_));
+ swap(server_handle_, other->server_handle_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata PreparedStatement::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = PreparedStatement_descriptor_;
- metadata.reflection = PreparedStatement_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void CreatePreparedStatementResp::InitAsDefaultInstance() {
+ ::exec::user::_CreatePreparedStatementResp_default_instance_._instance.get_mutable()->prepared_statement_ = const_cast< ::exec::user::PreparedStatement*>(
+ ::exec::user::PreparedStatement::internal_default_instance());
+ ::exec::user::_CreatePreparedStatementResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void CreatePreparedStatementResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CreatePreparedStatementResp::kStatusFieldNumber;
const int CreatePreparedStatementResp::kPreparedStatementFieldNumber;
const int CreatePreparedStatementResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CreatePreparedStatementResp::CreatePreparedStatementResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_CreatePreparedStatementResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.CreatePreparedStatementResp)
}
-
-void CreatePreparedStatementResp::InitAsDefaultInstance() {
- prepared_statement_ = const_cast< ::exec::user::PreparedStatement*>(&::exec::user::PreparedStatement::default_instance());
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
CreatePreparedStatementResp::CreatePreparedStatementResp(const CreatePreparedStatementResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_prepared_statement()) {
+ prepared_statement_ = new ::exec::user::PreparedStatement(*from.prepared_statement_);
+ } else {
+ prepared_statement_ = NULL;
+ }
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.CreatePreparedStatementResp)
}
void CreatePreparedStatementResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- prepared_statement_ = NULL;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&prepared_statement_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&prepared_statement_)) + sizeof(status_));
}
CreatePreparedStatementResp::~CreatePreparedStatementResp() {
+ // @@protoc_insertion_point(destructor:exec.user.CreatePreparedStatementResp)
SharedDtor();
}
void CreatePreparedStatementResp::SharedDtor() {
- if (this != default_instance_) {
- delete prepared_statement_;
- delete error_;
- }
+ if (this != internal_default_instance()) delete prepared_statement_;
+ if (this != internal_default_instance()) delete error_;
}
void CreatePreparedStatementResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* CreatePreparedStatementResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CreatePreparedStatementResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const CreatePreparedStatementResp& CreatePreparedStatementResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_CreatePreparedStatementResp.base);
+ return *internal_default_instance();
}
-CreatePreparedStatementResp* CreatePreparedStatementResp::default_instance_ = NULL;
-
-CreatePreparedStatementResp* CreatePreparedStatementResp::New() const {
- return new CreatePreparedStatementResp;
-}
void CreatePreparedStatementResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_prepared_statement()) {
- if (prepared_statement_ != NULL) prepared_statement_->::exec::user::PreparedStatement::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.CreatePreparedStatementResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(prepared_statement_ != NULL);
+ prepared_statement_->Clear();
}
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool CreatePreparedStatementResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.CreatePreparedStatementResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -11300,448 +12565,504 @@ bool CreatePreparedStatementResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_prepared_statement;
break;
}
// optional .exec.user.PreparedStatement prepared_statement = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_prepared_statement:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_prepared_statement()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.CreatePreparedStatementResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.CreatePreparedStatementResp)
+ return false;
#undef DO_
}
void CreatePreparedStatementResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.CreatePreparedStatementResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// optional .exec.user.PreparedStatement prepared_statement = 2;
- if (has_prepared_statement()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->prepared_statement(), output);
+ 2, this->_internal_prepared_statement(), output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.CreatePreparedStatementResp)
}
-::google::protobuf::uint8* CreatePreparedStatementResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* CreatePreparedStatementResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.CreatePreparedStatementResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// optional .exec.user.PreparedStatement prepared_statement = 2;
- if (has_prepared_statement()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->prepared_statement(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_prepared_statement(), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.CreatePreparedStatementResp)
return target;
}
-int CreatePreparedStatementResp::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
- }
+size_t CreatePreparedStatementResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.CreatePreparedStatementResp)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional .exec.user.PreparedStatement prepared_statement = 2;
if (has_prepared_statement()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->prepared_statement());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *prepared_statement_);
}
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
+ }
+
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void CreatePreparedStatementResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.CreatePreparedStatementResp)
+ GOOGLE_DCHECK_NE(&from, this);
const CreatePreparedStatementResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const CreatePreparedStatementResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const CreatePreparedStatementResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.CreatePreparedStatementResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.CreatePreparedStatementResp)
MergeFrom(*source);
}
}
void CreatePreparedStatementResp::MergeFrom(const CreatePreparedStatementResp& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_prepared_statement()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.CreatePreparedStatementResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_prepared_statement()->::exec::user::PreparedStatement::MergeFrom(from.prepared_statement());
}
- if (from.has_error()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000004u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CreatePreparedStatementResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.CreatePreparedStatementResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CreatePreparedStatementResp::CopyFrom(const CreatePreparedStatementResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.CreatePreparedStatementResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CreatePreparedStatementResp::IsInitialized() const {
-
return true;
}
void CreatePreparedStatementResp::Swap(CreatePreparedStatementResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- std::swap(prepared_statement_, other->prepared_statement_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CreatePreparedStatementResp::InternalSwap(CreatePreparedStatementResp* other) {
+ using std::swap;
+ swap(prepared_statement_, other->prepared_statement_);
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata CreatePreparedStatementResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = CreatePreparedStatementResp_descriptor_;
- metadata.reflection = CreatePreparedStatementResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
-#endif // !_MSC_VER
+void GetServerMetaReq::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetServerMetaReq::GetServerMetaReq()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetServerMetaReq.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetServerMetaReq)
}
-
-void GetServerMetaReq::InitAsDefaultInstance() {
-}
-
GetServerMetaReq::GetServerMetaReq(const GetServerMetaReq& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetServerMetaReq)
}
void GetServerMetaReq::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
GetServerMetaReq::~GetServerMetaReq() {
+ // @@protoc_insertion_point(destructor:exec.user.GetServerMetaReq)
SharedDtor();
}
void GetServerMetaReq::SharedDtor() {
- if (this != default_instance_) {
- }
}
void GetServerMetaReq::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetServerMetaReq::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetServerMetaReq_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetServerMetaReq& GetServerMetaReq::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetServerMetaReq.base);
+ return *internal_default_instance();
}
-GetServerMetaReq* GetServerMetaReq::default_instance_ = NULL;
-
-GetServerMetaReq* GetServerMetaReq::New() const {
- return new GetServerMetaReq;
-}
void GetServerMetaReq::Clear() {
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.GetServerMetaReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetServerMetaReq::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ // @@protoc_insertion_point(parse_start:exec.user.GetServerMetaReq)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetServerMetaReq)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetServerMetaReq)
+ return false;
#undef DO_
}
void GetServerMetaReq::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
- if (!unknown_fields().empty()) {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetServerMetaReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetServerMetaReq)
}
-::google::protobuf::uint8* GetServerMetaReq::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- if (!unknown_fields().empty()) {
+::google::protobuf::uint8* GetServerMetaReq::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetServerMetaReq)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetServerMetaReq)
return target;
}
-int GetServerMetaReq::ByteSize() const {
- int total_size = 0;
+size_t GetServerMetaReq::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetServerMetaReq)
+ size_t total_size = 0;
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetServerMetaReq::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetServerMetaReq)
+ GOOGLE_DCHECK_NE(&from, this);
const GetServerMetaReq* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetServerMetaReq*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetServerMetaReq>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetServerMetaReq)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetServerMetaReq)
MergeFrom(*source);
}
}
void GetServerMetaReq::MergeFrom(const GetServerMetaReq& from) {
- GOOGLE_CHECK_NE(&from, this);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetServerMetaReq)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
}
void GetServerMetaReq::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetServerMetaReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetServerMetaReq::CopyFrom(const GetServerMetaReq& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetServerMetaReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetServerMetaReq::IsInitialized() const {
-
return true;
}
void GetServerMetaReq::Swap(GetServerMetaReq* other) {
- if (other != this) {
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetServerMetaReq::InternalSwap(GetServerMetaReq* other) {
+ using std::swap;
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetServerMetaReq::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetServerMetaReq_descriptor_;
- metadata.reflection = GetServerMetaReq_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ConvertSupport::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ConvertSupport::kFromFieldNumber;
const int ConvertSupport::kToFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ConvertSupport::ConvertSupport()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_ConvertSupport.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.ConvertSupport)
}
-
-void ConvertSupport::InitAsDefaultInstance() {
-}
-
ConvertSupport::ConvertSupport(const ConvertSupport& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&from_, &from.from_,
+ static_cast<size_t>(reinterpret_cast<char*>(&to_) -
+ reinterpret_cast<char*>(&from_)) + sizeof(to_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.ConvertSupport)
}
void ConvertSupport::SharedCtor() {
- _cached_size_ = 0;
- from_ = 0;
- to_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&from_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&to_) -
+ reinterpret_cast<char*>(&from_)) + sizeof(to_));
}
ConvertSupport::~ConvertSupport() {
+ // @@protoc_insertion_point(destructor:exec.user.ConvertSupport)
SharedDtor();
}
void ConvertSupport::SharedDtor() {
- if (this != default_instance_) {
- }
}
void ConvertSupport::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ConvertSupport::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ConvertSupport_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ConvertSupport& ConvertSupport::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_ConvertSupport.base);
+ return *internal_default_instance();
}
-ConvertSupport* ConvertSupport::default_instance_ = NULL;
-
-ConvertSupport* ConvertSupport::New() const {
- return new ConvertSupport;
-}
void ConvertSupport::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- from_ = 0;
- to_ = 0;
+// @@protoc_insertion_point(message_clear_start:exec.user.ConvertSupport)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ ::memset(&from_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&to_) -
+ reinterpret_cast<char*>(&from_)) + sizeof(to_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ConvertSupport::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.ConvertSupport)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .common.MinorType from = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -11749,20 +13070,19 @@ bool ConvertSupport::MergePartialFromCodedStream(
if (::common::MinorType_IsValid(value)) {
set_from(static_cast< ::common::MinorType >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_to;
break;
}
// required .common.MinorType to = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_to:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -11770,132 +13090,176 @@ bool ConvertSupport::MergePartialFromCodedStream(
if (::common::MinorType_IsValid(value)) {
set_to(static_cast< ::common::MinorType >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.ConvertSupport)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.ConvertSupport)
+ return false;
#undef DO_
}
void ConvertSupport::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.ConvertSupport)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required .common.MinorType from = 1;
- if (has_from()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->from(), output);
}
// required .common.MinorType to = 2;
- if (has_to()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->to(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.ConvertSupport)
}
-::google::protobuf::uint8* ConvertSupport::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ConvertSupport::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.ConvertSupport)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// required .common.MinorType from = 1;
- if (has_from()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->from(), target);
}
// required .common.MinorType to = 2;
- if (has_to()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->to(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.ConvertSupport)
return target;
}
-int ConvertSupport::ByteSize() const {
- int total_size = 0;
+size_t ConvertSupport::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:exec.user.ConvertSupport)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (has_from()) {
// required .common.MinorType from = 1;
- if (has_from()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->from());
- }
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->from());
+ }
+ if (has_to()) {
// required .common.MinorType to = 2;
- if (has_to()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->to());
- }
-
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->to());
}
- if (!unknown_fields().empty()) {
+
+ return total_size;
+}
+size_t ConvertSupport::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.ConvertSupport)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
+ // required .common.MinorType from = 1;
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->from());
+
+ // required .common.MinorType to = 2;
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->to());
+
+ } else {
+ total_size += RequiredFieldsByteSizeFallback();
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ConvertSupport::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.ConvertSupport)
+ GOOGLE_DCHECK_NE(&from, this);
const ConvertSupport* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ConvertSupport*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ConvertSupport>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.ConvertSupport)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.ConvertSupport)
MergeFrom(*source);
}
}
void ConvertSupport::MergeFrom(const ConvertSupport& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_from()) {
- set_from(from.from());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.ConvertSupport)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ from_ = from.from_;
}
- if (from.has_to()) {
- set_to(from.to());
+ if (cached_has_bits & 0x00000002u) {
+ to_ = from.to_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ConvertSupport::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.ConvertSupport)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ConvertSupport::CopyFrom(const ConvertSupport& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.ConvertSupport)
if (&from == this) return;
Clear();
MergeFrom(from);
@@ -11903,117 +13267,137 @@ void ConvertSupport::CopyFrom(const ConvertSupport& from) {
bool ConvertSupport::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
-
return true;
}
void ConvertSupport::Swap(ConvertSupport* other) {
- if (other != this) {
- std::swap(from_, other->from_);
- std::swap(to_, other->to_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ConvertSupport::InternalSwap(ConvertSupport* other) {
+ using std::swap;
+ swap(from_, other->from_);
+ swap(to_, other->to_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ConvertSupport::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ConvertSupport_descriptor_;
- metadata.reflection = ConvertSupport_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void GetServerMetaResp::InitAsDefaultInstance() {
+ ::exec::user::_GetServerMetaResp_default_instance_._instance.get_mutable()->server_meta_ = const_cast< ::exec::user::ServerMeta*>(
+ ::exec::user::ServerMeta::internal_default_instance());
+ ::exec::user::_GetServerMetaResp_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+}
+void GetServerMetaResp::clear_error() {
+ if (error_ != NULL) error_->Clear();
+ clear_has_error();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int GetServerMetaResp::kStatusFieldNumber;
const int GetServerMetaResp::kServerMetaFieldNumber;
const int GetServerMetaResp::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
GetServerMetaResp::GetServerMetaResp()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_GetServerMetaResp.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.GetServerMetaResp)
}
-
-void GetServerMetaResp::InitAsDefaultInstance() {
- server_meta_ = const_cast< ::exec::user::ServerMeta*>(&::exec::user::ServerMeta::default_instance());
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
-}
-
GetServerMetaResp::GetServerMetaResp(const GetServerMetaResp& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_server_meta()) {
+ server_meta_ = new ::exec::user::ServerMeta(*from.server_meta_);
+ } else {
+ server_meta_ = NULL;
+ }
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.user.GetServerMetaResp)
}
void GetServerMetaResp::SharedCtor() {
- _cached_size_ = 0;
- status_ = 0;
- server_meta_ = NULL;
- error_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&server_meta_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&status_) -
+ reinterpret_cast<char*>(&server_meta_)) + sizeof(status_));
}
GetServerMetaResp::~GetServerMetaResp() {
+ // @@protoc_insertion_point(destructor:exec.user.GetServerMetaResp)
SharedDtor();
}
void GetServerMetaResp::SharedDtor() {
- if (this != default_instance_) {
- delete server_meta_;
- delete error_;
- }
+ if (this != internal_default_instance()) delete server_meta_;
+ if (this != internal_default_instance()) delete error_;
}
void GetServerMetaResp::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* GetServerMetaResp::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return GetServerMetaResp_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const GetServerMetaResp& GetServerMetaResp::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_GetServerMetaResp.base);
+ return *internal_default_instance();
}
-GetServerMetaResp* GetServerMetaResp::default_instance_ = NULL;
-
-GetServerMetaResp* GetServerMetaResp::New() const {
- return new GetServerMetaResp;
-}
void GetServerMetaResp::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- status_ = 0;
- if (has_server_meta()) {
- if (server_meta_ != NULL) server_meta_->::exec::user::ServerMeta::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.user.GetServerMetaResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(server_meta_ != NULL);
+ server_meta_->Clear();
}
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool GetServerMetaResp::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.GetServerMetaResp)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.RequestStatus status = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12021,221 +13405,245 @@ bool GetServerMetaResp::MergePartialFromCodedStream(
if (::exec::user::RequestStatus_IsValid(value)) {
set_status(static_cast< ::exec::user::RequestStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_server_meta;
break;
}
// optional .exec.user.ServerMeta server_meta = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_server_meta:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_server_meta()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.GetServerMetaResp)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.GetServerMetaResp)
+ return false;
#undef DO_
}
void GetServerMetaResp::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.GetServerMetaResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->status(), output);
}
// optional .exec.user.ServerMeta server_meta = 2;
- if (has_server_meta()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->server_meta(), output);
+ 2, this->_internal_server_meta(), output);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(), output);
+ 3, this->_internal_error(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.GetServerMetaResp)
}
-::google::protobuf::uint8* GetServerMetaResp::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* GetServerMetaResp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.GetServerMetaResp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->status(), target);
}
// optional .exec.user.ServerMeta server_meta = 2;
- if (has_server_meta()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->server_meta(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_server_meta(), deterministic, target);
}
// optional .exec.shared.DrillPBError error = 3;
- if (has_error()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_error(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.GetServerMetaResp)
return target;
}
-int GetServerMetaResp::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.RequestStatus status = 1;
- if (has_status()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
- }
+size_t GetServerMetaResp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.GetServerMetaResp)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional .exec.user.ServerMeta server_meta = 2;
if (has_server_meta()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->server_meta());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *server_meta_);
}
// optional .exec.shared.DrillPBError error = 3;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
+ }
+
+ // optional .exec.user.RequestStatus status = 1;
+ if (has_status()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void GetServerMetaResp::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.GetServerMetaResp)
+ GOOGLE_DCHECK_NE(&from, this);
const GetServerMetaResp* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const GetServerMetaResp*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetServerMetaResp>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.GetServerMetaResp)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.GetServerMetaResp)
MergeFrom(*source);
}
}
void GetServerMetaResp::MergeFrom(const GetServerMetaResp& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_status()) {
- set_status(from.status());
- }
- if (from.has_server_meta()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.GetServerMetaResp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_server_meta()->::exec::user::ServerMeta::MergeFrom(from.server_meta());
}
- if (from.has_error()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
+ if (cached_has_bits & 0x00000004u) {
+ status_ = from.status_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void GetServerMetaResp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.GetServerMetaResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void GetServerMetaResp::CopyFrom(const GetServerMetaResp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.GetServerMetaResp)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GetServerMetaResp::IsInitialized() const {
-
if (has_server_meta()) {
- if (!this->server_meta().IsInitialized()) return false;
+ if (!this->server_meta_->IsInitialized()) return false;
}
return true;
}
void GetServerMetaResp::Swap(GetServerMetaResp* other) {
- if (other != this) {
- std::swap(status_, other->status_);
- std::swap(server_meta_, other->server_meta_);
- std::swap(error_, other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetServerMetaResp::InternalSwap(GetServerMetaResp* other) {
+ using std::swap;
+ swap(server_meta_, other->server_meta_);
+ swap(error_, other->error_);
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata GetServerMetaResp::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = GetServerMetaResp_descriptor_;
- metadata.reflection = GetServerMetaResp_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ServerMeta::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ServerMeta::kAllTablesSelectableFieldNumber;
const int ServerMeta::kBlobIncludedInMaxRowSizeFieldNumber;
const int ServerMeta::kCatalogAtStartFieldNumber;
@@ -12286,204 +13694,122 @@ const int ServerMeta::kTableTermFieldNumber;
const int ServerMeta::kTransactionSupportedFieldNumber;
const int ServerMeta::kUnionSupportFieldNumber;
const int ServerMeta::kCurrentSchemaFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ServerMeta::ServerMeta()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_ServerMeta.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.ServerMeta)
}
-
-void ServerMeta::InitAsDefaultInstance() {
-}
-
ServerMeta::ServerMeta(const ServerMeta& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ collate_support_(from.collate_support_),
+ convert_support_(from.convert_support_),
+ date_time_functions_(from.date_time_functions_),
+ date_time_literals_support_(from.date_time_literals_support_),
+ numeric_functions_(from.numeric_functions_),
+ order_by_support_(from.order_by_support_),
+ outer_join_support_(from.outer_join_support_),
+ sql_keywords_(from.sql_keywords_),
+ string_functions_(from.string_functions_),
+ subquery_support_(from.subquery_support_),
+ system_functions_(from.system_functions_),
+ union_support_(from.union_support_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ catalog_separator_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_separator()) {
+ catalog_separator_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_separator_);
+ }
+ catalog_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_catalog_term()) {
+ catalog_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_term_);
+ }
+ identifier_quote_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_identifier_quote_string()) {
+ identifier_quote_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_quote_string_);
+ }
+ schema_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_schema_term()) {
+ schema_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_term_);
+ }
+ search_escape_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_search_escape_string()) {
+ search_escape_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.search_escape_string_);
+ }
+ special_characters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_special_characters()) {
+ special_characters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.special_characters_);
+ }
+ table_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_table_term()) {
+ table_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_term_);
+ }
+ current_schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_current_schema()) {
+ current_schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_schema_);
+ }
+ ::memcpy(&all_tables_selectable_, &from.all_tables_selectable_,
+ static_cast<size_t>(reinterpret_cast<char*>(&group_by_support_) -
+ reinterpret_cast<char*>(&all_tables_selectable_)) + sizeof(group_by_support_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.ServerMeta)
}
void ServerMeta::SharedCtor() {
- _cached_size_ = 0;
- all_tables_selectable_ = false;
- blob_included_in_max_row_size_ = false;
- catalog_at_start_ = false;
- catalog_separator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- catalog_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- column_aliasing_supported_ = false;
+ catalog_separator_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ catalog_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ identifier_quote_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ search_escape_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ special_characters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_term_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ current_schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&all_tables_selectable_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&transaction_supported_) -
+ reinterpret_cast<char*>(&all_tables_selectable_)) + sizeof(transaction_supported_));
correlation_names_support_ = 1;
group_by_support_ = 1;
- identifier_casing_ = 0;
- identifier_quote_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- like_escape_clause_supported_ = false;
- max_binary_literal_length_ = 0u;
- max_catalog_name_length_ = 0u;
- max_char_literal_length_ = 0u;
- max_column_name_length_ = 0u;
- max_columns_in_group_by_ = 0u;
- max_columns_in_order_by_ = 0u;
- max_columns_in_select_ = 0u;
- max_cursor_name_length_ = 0u;
- max_logical_lob_size_ = 0u;
- max_row_size_ = 0u;
- max_schema_name_length_ = 0u;
- max_statement_length_ = 0u;
- max_statements_ = 0u;
- max_table_name_length_ = 0u;
- max_tables_in_select_ = 0u;
- max_user_name_length_ = 0u;
- null_collation_ = 0;
- null_plus_non_null_equals_null_ = false;
- quoted_identifier_casing_ = 0;
- read_only_ = false;
- schema_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- search_escape_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- select_for_update_supported_ = false;
- special_characters_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- table_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- transaction_supported_ = false;
- current_schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ServerMeta::~ServerMeta() {
+ // @@protoc_insertion_point(destructor:exec.user.ServerMeta)
SharedDtor();
}
void ServerMeta::SharedDtor() {
- if (catalog_separator_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_separator_;
- }
- if (catalog_term_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_term_;
- }
- if (identifier_quote_string_ != &::google::protobuf::internal::kEmptyString) {
- delete identifier_quote_string_;
- }
- if (schema_term_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_term_;
- }
- if (search_escape_string_ != &::google::protobuf::internal::kEmptyString) {
- delete search_escape_string_;
- }
- if (special_characters_ != &::google::protobuf::internal::kEmptyString) {
- delete special_characters_;
- }
- if (table_term_ != &::google::protobuf::internal::kEmptyString) {
- delete table_term_;
- }
- if (current_schema_ != &::google::protobuf::internal::kEmptyString) {
- delete current_schema_;
- }
- if (this != default_instance_) {
- }
+ catalog_separator_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ catalog_term_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ identifier_quote_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ schema_term_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ search_escape_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ special_characters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ table_term_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ current_schema_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ServerMeta::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ServerMeta::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ServerMeta_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ServerMeta& ServerMeta::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_ServerMeta.base);
+ return *internal_default_instance();
}
-ServerMeta* ServerMeta::default_instance_ = NULL;
-
-ServerMeta* ServerMeta::New() const {
- return new ServerMeta;
-}
void ServerMeta::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- all_tables_selectable_ = false;
- blob_included_in_max_row_size_ = false;
- catalog_at_start_ = false;
- if (has_catalog_separator()) {
- if (catalog_separator_ != &::google::protobuf::internal::kEmptyString) {
- catalog_separator_->clear();
- }
- }
- if (has_catalog_term()) {
- if (catalog_term_ != &::google::protobuf::internal::kEmptyString) {
- catalog_term_->clear();
- }
- }
- column_aliasing_supported_ = false;
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- correlation_names_support_ = 1;
- group_by_support_ = 1;
- identifier_casing_ = 0;
- if (has_identifier_quote_string()) {
- if (identifier_quote_string_ != &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_->clear();
- }
- }
- like_escape_clause_supported_ = false;
- max_binary_literal_length_ = 0u;
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- max_catalog_name_length_ = 0u;
- max_char_literal_length_ = 0u;
- max_column_name_length_ = 0u;
- max_columns_in_group_by_ = 0u;
- max_columns_in_order_by_ = 0u;
- max_columns_in_select_ = 0u;
- max_cursor_name_length_ = 0u;
- max_logical_lob_size_ = 0u;
- }
- if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) {
- max_row_size_ = 0u;
- max_schema_name_length_ = 0u;
- max_statement_length_ = 0u;
- max_statements_ = 0u;
- max_table_name_length_ = 0u;
- max_tables_in_select_ = 0u;
- max_user_name_length_ = 0u;
- null_collation_ = 0;
- }
- if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) {
- null_plus_non_null_equals_null_ = false;
- quoted_identifier_casing_ = 0;
- read_only_ = false;
- if (has_schema_term()) {
- if (schema_term_ != &::google::protobuf::internal::kEmptyString) {
- schema_term_->clear();
- }
- }
- if (has_search_escape_string()) {
- if (search_escape_string_ != &::google::protobuf::internal::kEmptyString) {
- search_escape_string_->clear();
- }
- }
- }
- if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) {
- select_for_update_supported_ = false;
- if (has_special_characters()) {
- if (special_characters_ != &::google::protobuf::internal::kEmptyString) {
- special_characters_->clear();
- }
- }
- if (has_table_term()) {
- if (table_term_ != &::google::protobuf::internal::kEmptyString) {
- table_term_->clear();
- }
- }
- transaction_supported_ = false;
- }
- if (_has_bits_[49 / 32] & (0xffu << (49 % 32))) {
- if (has_current_schema()) {
- if (current_schema_ != &::google::protobuf::internal::kEmptyString) {
- current_schema_->clear();
- }
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.ServerMeta)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
collate_support_.Clear();
convert_support_.Clear();
date_time_functions_.Clear();
@@ -12496,102 +13822,148 @@ void ServerMeta::Clear() {
subquery_support_.Clear();
system_functions_.Clear();
union_support_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ catalog_separator_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ catalog_term_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000004u) {
+ identifier_quote_string_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000008u) {
+ schema_term_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000010u) {
+ search_escape_string_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000020u) {
+ special_characters_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000040u) {
+ table_term_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000080u) {
+ current_schema_.ClearNonDefaultToEmptyNoArena();
+ }
+ }
+ if (cached_has_bits & 65280u) {
+ ::memset(&all_tables_selectable_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&max_char_literal_length_) -
+ reinterpret_cast<char*>(&all_tables_selectable_)) + sizeof(max_char_literal_length_));
+ }
+ if (cached_has_bits & 16711680u) {
+ ::memset(&max_column_name_length_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&max_schema_name_length_) -
+ reinterpret_cast<char*>(&max_column_name_length_)) + sizeof(max_schema_name_length_));
+ }
+ if (cached_has_bits & 4278190080u) {
+ ::memset(&max_statement_length_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&read_only_) -
+ reinterpret_cast<char*>(&max_statement_length_)) + sizeof(read_only_));
+ }
+ cached_has_bits = _has_bits_[1];
+ if (cached_has_bits & 63u) {
+ ::memset(&select_for_update_supported_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&transaction_supported_) -
+ reinterpret_cast<char*>(&select_for_update_supported_)) + sizeof(transaction_supported_));
+ correlation_names_support_ = 1;
+ group_by_support_ = 1;
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ServerMeta::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.ServerMeta)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional bool all_tables_selectable = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_all_tables_selectable();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &all_tables_selectable_)));
- set_has_all_tables_selectable();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_blob_included_in_max_row_size;
break;
}
// optional bool blob_included_in_max_row_size = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_blob_included_in_max_row_size:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_blob_included_in_max_row_size();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &blob_included_in_max_row_size_)));
- set_has_blob_included_in_max_row_size();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_catalog_at_start;
break;
}
// optional bool catalog_at_start = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_catalog_at_start:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_catalog_at_start();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &catalog_at_start_)));
- set_has_catalog_at_start();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_catalog_separator;
break;
}
// optional string catalog_separator = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_catalog_separator:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_separator()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_separator().data(), this->catalog_separator().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_separator().data(), static_cast<int>(this->catalog_separator().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.catalog_separator");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_catalog_term;
break;
}
// optional string catalog_term = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_catalog_term:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_catalog_term()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_term().data(), this->catalog_term().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_term().data(), static_cast<int>(this->catalog_term().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.catalog_term");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_collate_support;
break;
}
// repeated .exec.user.CollateSupport collate_support = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_collate_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12599,59 +13971,54 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::CollateSupport_IsValid(value)) {
add_collate_support(static_cast< ::exec::user::CollateSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(6, value);
+ mutable_unknown_fields()->AddVarint(
+ 6, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::CollateSupport_IsValid,
+ 6,
+ ::exec::user::CollateSupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_collate_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_collate_support;
- if (input->ExpectTag(56)) goto parse_column_aliasing_supported;
break;
}
// optional bool column_aliasing_supported = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_column_aliasing_supported:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_column_aliasing_supported();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &column_aliasing_supported_)));
- set_has_column_aliasing_supported();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_convert_support;
break;
}
// repeated .exec.user.ConvertSupport convert_support = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_convert_support:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_convert_support()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_convert_support;
- if (input->ExpectTag(72)) goto parse_correlation_names_support;
break;
}
// optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_correlation_names_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12659,39 +14026,36 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::CorrelationNamesSupport_IsValid(value)) {
set_correlation_names_support(static_cast< ::exec::user::CorrelationNamesSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(9, value);
+ mutable_unknown_fields()->AddVarint(
+ 9, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(82)) goto parse_date_time_functions;
break;
}
// repeated string date_time_functions = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_date_time_functions:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_date_time_functions()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->date_time_functions(this->date_time_functions_size() - 1).data(),
- this->date_time_functions(this->date_time_functions_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->date_time_functions(this->date_time_functions_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.date_time_functions");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(82)) goto parse_date_time_functions;
- if (input->ExpectTag(88)) goto parse_date_time_literals_support;
break;
}
// repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_date_time_literals_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12699,28 +14063,28 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::DateTimeLiteralsSupport_IsValid(value)) {
add_date_time_literals_support(static_cast< ::exec::user::DateTimeLiteralsSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(11, value);
+ mutable_unknown_fields()->AddVarint(
+ 11, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::DateTimeLiteralsSupport_IsValid,
+ 11,
+ ::exec::user::DateTimeLiteralsSupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_date_time_literals_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(88)) goto parse_date_time_literals_support;
- if (input->ExpectTag(96)) goto parse_group_by_support;
break;
}
// optional .exec.user.GroupBySupport group_by_support = 12;
case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_group_by_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12728,20 +14092,19 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::GroupBySupport_IsValid(value)) {
set_group_by_support(static_cast< ::exec::user::GroupBySupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(12, value);
+ mutable_unknown_fields()->AddVarint(
+ 12, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(104)) goto parse_identifier_casing;
break;
}
// optional .exec.user.IdentifierCasing identifier_casing = 13;
case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_identifier_casing:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -12749,309 +14112,273 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::IdentifierCasing_IsValid(value)) {
set_identifier_casing(static_cast< ::exec::user::IdentifierCasing >(value));
} else {
- mutable_unknown_fields()->AddVarint(13, value);
+ mutable_unknown_fields()->AddVarint(
+ 13, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(114)) goto parse_identifier_quote_string;
break;
}
// optional string identifier_quote_string = 14;
case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_identifier_quote_string:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_identifier_quote_string()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->identifier_quote_string().data(), this->identifier_quote_string().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->identifier_quote_string().data(), static_cast<int>(this->identifier_quote_string().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.identifier_quote_string");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(120)) goto parse_like_escape_clause_supported;
break;
}
// optional bool like_escape_clause_supported = 15;
case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_like_escape_clause_supported:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
+ set_has_like_escape_clause_supported();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &like_escape_clause_supported_)));
- set_has_like_escape_clause_supported();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(128)) goto parse_max_binary_literal_length;
break;
}
// optional uint32 max_binary_literal_length = 16;
case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_binary_literal_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
+ set_has_max_binary_literal_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_binary_literal_length_)));
- set_has_max_binary_literal_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(136)) goto parse_max_catalog_name_length;
break;
}
// optional uint32 max_catalog_name_length = 17;
case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_catalog_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
+ set_has_max_catalog_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_catalog_name_length_)));
- set_has_max_catalog_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(144)) goto parse_max_char_literal_length;
break;
}
// optional uint32 max_char_literal_length = 18;
case 18: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_char_literal_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
+ set_has_max_char_literal_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_char_literal_length_)));
- set_has_max_char_literal_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(152)) goto parse_max_column_name_length;
break;
}
// optional uint32 max_column_name_length = 19;
case 19: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_column_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
+ set_has_max_column_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_column_name_length_)));
- set_has_max_column_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(160)) goto parse_max_columns_in_group_by;
break;
}
// optional uint32 max_columns_in_group_by = 20;
case 20: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_columns_in_group_by:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
+ set_has_max_columns_in_group_by();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_columns_in_group_by_)));
- set_has_max_columns_in_group_by();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(168)) goto parse_max_columns_in_order_by;
break;
}
// optional uint32 max_columns_in_order_by = 21;
case 21: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_columns_in_order_by:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
+ set_has_max_columns_in_order_by();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_columns_in_order_by_)));
- set_has_max_columns_in_order_by();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(176)) goto parse_max_columns_in_select;
break;
}
// optional uint32 max_columns_in_select = 22;
case 22: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_columns_in_select:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(176u /* 176 & 0xFF */)) {
+ set_has_max_columns_in_select();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_columns_in_select_)));
- set_has_max_columns_in_select();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(184)) goto parse_max_cursor_name_length;
break;
}
// optional uint32 max_cursor_name_length = 23;
case 23: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_cursor_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
+ set_has_max_cursor_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_cursor_name_length_)));
- set_has_max_cursor_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(192)) goto parse_max_logical_lob_size;
break;
}
// optional uint32 max_logical_lob_size = 24;
case 24: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_logical_lob_size:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) {
+ set_has_max_logical_lob_size();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_logical_lob_size_)));
- set_has_max_logical_lob_size();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(200)) goto parse_max_row_size;
break;
}
// optional uint32 max_row_size = 25;
case 25: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_row_size:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
+ set_has_max_row_size();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_row_size_)));
- set_has_max_row_size();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(208)) goto parse_max_schema_name_length;
break;
}
// optional uint32 max_schema_name_length = 26;
case 26: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_schema_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(208u /* 208 & 0xFF */)) {
+ set_has_max_schema_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_schema_name_length_)));
- set_has_max_schema_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(216)) goto parse_max_statement_length;
break;
}
// optional uint32 max_statement_length = 27;
case 27: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_statement_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(216u /* 216 & 0xFF */)) {
+ set_has_max_statement_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_statement_length_)));
- set_has_max_statement_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(224)) goto parse_max_statements;
break;
}
// optional uint32 max_statements = 28;
case 28: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_statements:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) {
+ set_has_max_statements();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_statements_)));
- set_has_max_statements();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(232)) goto parse_max_table_name_length;
break;
}
// optional uint32 max_table_name_length = 29;
case 29: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_table_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(232u /* 232 & 0xFF */)) {
+ set_has_max_table_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_table_name_length_)));
- set_has_max_table_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(240)) goto parse_max_tables_in_select;
break;
}
// optional uint32 max_tables_in_select = 30;
case 30: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_tables_in_select:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(240u /* 240 & 0xFF */)) {
+ set_has_max_tables_in_select();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_tables_in_select_)));
- set_has_max_tables_in_select();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(248)) goto parse_max_user_name_length;
break;
}
// optional uint32 max_user_name_length = 31;
case 31: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_user_name_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(248u /* 248 & 0xFF */)) {
+ set_has_max_user_name_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &max_user_name_length_)));
- set_has_max_user_name_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(256)) goto parse_null_collation;
break;
}
// optional .exec.user.NullCollation null_collation = 32;
case 32: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_null_collation:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13059,55 +14386,50 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::NullCollation_IsValid(value)) {
set_null_collation(static_cast< ::exec::user::NullCollation >(value));
} else {
- mutable_unknown_fields()->AddVarint(32, value);
+ mutable_unknown_fields()->AddVarint(
+ 32, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(264)) goto parse_null_plus_non_null_equals_null;
break;
}
// optional bool null_plus_non_null_equals_null = 33;
case 33: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_null_plus_non_null_equals_null:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) {
+ set_has_null_plus_non_null_equals_null();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &null_plus_non_null_equals_null_)));
- set_has_null_plus_non_null_equals_null();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(274)) goto parse_numeric_functions;
break;
}
// repeated string numeric_functions = 34;
case 34: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_numeric_functions:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_numeric_functions()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->numeric_functions(this->numeric_functions_size() - 1).data(),
- this->numeric_functions(this->numeric_functions_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->numeric_functions(this->numeric_functions_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.numeric_functions");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(274)) goto parse_numeric_functions;
- if (input->ExpectTag(280)) goto parse_order_by_support;
break;
}
// repeated .exec.user.OrderBySupport order_by_support = 35;
case 35: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_order_by_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 280 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13115,28 +14437,28 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::OrderBySupport_IsValid(value)) {
add_order_by_support(static_cast< ::exec::user::OrderBySupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(35, value);
+ mutable_unknown_fields()->AddVarint(
+ 35, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::OrderBySupport_IsValid,
+ 35,
+ ::exec::user::OrderBySupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_order_by_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(280)) goto parse_order_by_support;
- if (input->ExpectTag(288)) goto parse_outer_join_support;
break;
}
// repeated .exec.user.OuterJoinSupport outer_join_support = 36;
case 36: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_outer_join_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 288 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13144,28 +14466,28 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::OuterJoinSupport_IsValid(value)) {
add_outer_join_support(static_cast< ::exec::user::OuterJoinSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(36, value);
+ mutable_unknown_fields()->AddVarint(
+ 36, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 290 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::OuterJoinSupport_IsValid,
+ 36,
+ ::exec::user::OuterJoinSupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_outer_join_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(288)) goto parse_outer_join_support;
- if (input->ExpectTag(296)) goto parse_quoted_identifier_casing;
break;
}
// optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
case 37: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_quoted_identifier_casing:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 296 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13173,141 +14495,129 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::IdentifierCasing_IsValid(value)) {
set_quoted_identifier_casing(static_cast< ::exec::user::IdentifierCasing >(value));
} else {
- mutable_unknown_fields()->AddVarint(37, value);
+ mutable_unknown_fields()->AddVarint(
+ 37, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(304)) goto parse_read_only;
break;
}
// optional bool read_only = 38;
case 38: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_read_only:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 304 & 0xFF */)) {
+ set_has_read_only();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &read_only_)));
- set_has_read_only();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(314)) goto parse_schema_term;
break;
}
// optional string schema_term = 39;
case 39: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_schema_term:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 314 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_schema_term()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_term().data(), this->schema_term().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_term().data(), static_cast<int>(this->schema_term().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.schema_term");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(322)) goto parse_search_escape_string;
break;
}
// optional string search_escape_string = 40;
case 40: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_search_escape_string:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_search_escape_string()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->search_escape_string().data(), this->search_escape_string().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->search_escape_string().data(), static_cast<int>(this->search_escape_string().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.search_escape_string");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(328)) goto parse_select_for_update_supported;
break;
}
// optional bool select_for_update_supported = 41;
case 41: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_select_for_update_supported:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 328 & 0xFF */)) {
+ set_has_select_for_update_supported();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &select_for_update_supported_)));
- set_has_select_for_update_supported();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(338)) goto parse_special_characters;
break;
}
// optional string special_characters = 42;
case 42: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_special_characters:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(82u /* 338 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_special_characters()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->special_characters().data(), this->special_characters().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->special_characters().data(), static_cast<int>(this->special_characters().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.special_characters");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(346)) goto parse_sql_keywords;
break;
}
// repeated string sql_keywords = 43;
case 43: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_sql_keywords:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 346 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_sql_keywords()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sql_keywords(this->sql_keywords_size() - 1).data(),
- this->sql_keywords(this->sql_keywords_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->sql_keywords(this->sql_keywords_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.sql_keywords");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(346)) goto parse_sql_keywords;
- if (input->ExpectTag(354)) goto parse_string_functions;
break;
}
// repeated string string_functions = 44;
case 44: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_string_functions:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(98u /* 354 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_string_functions()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->string_functions(this->string_functions_size() - 1).data(),
- this->string_functions(this->string_functions_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->string_functions(this->string_functions_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.string_functions");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(354)) goto parse_string_functions;
- if (input->ExpectTag(360)) goto parse_subquery_support;
break;
}
// repeated .exec.user.SubQuerySupport subquery_support = 45;
case 45: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_subquery_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(104u /* 360 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13315,80 +14625,75 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::SubQuerySupport_IsValid(value)) {
add_subquery_support(static_cast< ::exec::user::SubQuerySupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(45, value);
+ mutable_unknown_fields()->AddVarint(
+ 45, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(106u /* 362 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::SubQuerySupport_IsValid,
+ 45,
+ ::exec::user::SubQuerySupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_subquery_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(360)) goto parse_subquery_support;
- if (input->ExpectTag(370)) goto parse_system_functions;
break;
}
// repeated string system_functions = 46;
case 46: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_system_functions:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(114u /* 370 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_system_functions()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->system_functions(this->system_functions_size() - 1).data(),
- this->system_functions(this->system_functions_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->system_functions(this->system_functions_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.system_functions");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(370)) goto parse_system_functions;
- if (input->ExpectTag(378)) goto parse_table_term;
break;
}
// optional string table_term = 47;
case 47: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_table_term:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(122u /* 378 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_term()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_term().data(), this->table_term().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_term().data(), static_cast<int>(this->table_term().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.table_term");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(384)) goto parse_transaction_supported;
break;
}
// optional bool transaction_supported = 48;
case 48: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_transaction_supported:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(128u /* 384 & 0xFF */)) {
+ set_has_transaction_supported();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &transaction_supported_)));
- set_has_transaction_supported();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(392)) goto parse_union_support;
break;
}
// repeated .exec.user.UnionSupport union_support = 49;
case 49: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_union_support:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(136u /* 392 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -13396,729 +14701,886 @@ bool ServerMeta::MergePartialFromCodedStream(
if (::exec::user::UnionSupport_IsValid(value)) {
add_union_support(static_cast< ::exec::user::UnionSupport >(value));
} else {
- mutable_unknown_fields()->AddVarint(49, value);
+ mutable_unknown_fields()->AddVarint(
+ 49, static_cast< ::google::protobuf::uint64>(value));
}
- } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
- == ::google::protobuf::internal::WireFormatLite::
- WIRETYPE_LENGTH_DELIMITED) {
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline(
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(138u /* 394 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
input,
- &::exec::user::UnionSupport_IsValid,
+ 49,
+ ::exec::user::UnionSupport_IsValid,
+ mutable_unknown_fields(),
this->mutable_union_support())));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(392)) goto parse_union_support;
- if (input->ExpectTag(402)) goto parse_current_schema;
break;
}
// optional string current_schema = 50;
case 50: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_current_schema:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(146u /* 402 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_current_schema()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->current_schema().data(), this->current_schema().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->current_schema().data(), static_cast<int>(this->current_schema().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.ServerMeta.current_schema");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.ServerMeta)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.ServerMeta)
+ return false;
#undef DO_
}
void ServerMeta::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.ServerMeta)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool all_tables_selectable = 1;
- if (has_all_tables_selectable()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->all_tables_selectable(), output);
}
// optional bool blob_included_in_max_row_size = 2;
- if (has_blob_included_in_max_row_size()) {
+ if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->blob_included_in_max_row_size(), output);
}
// optional bool catalog_at_start = 3;
- if (has_catalog_at_start()) {
+ if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->catalog_at_start(), output);
}
// optional string catalog_separator = 4;
- if (has_catalog_separator()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_separator().data(), this->catalog_separator().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_separator().data(), static_cast<int>(this->catalog_separator().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.catalog_separator");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->catalog_separator(), output);
}
// optional string catalog_term = 5;
- if (has_catalog_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_term().data(), this->catalog_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_term().data(), static_cast<int>(this->catalog_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.catalog_term");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->catalog_term(), output);
}
// repeated .exec.user.CollateSupport collate_support = 6;
- for (int i = 0; i < this->collate_support_size(); i++) {
+ for (int i = 0, n = this->collate_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
6, this->collate_support(i), output);
}
// optional bool column_aliasing_supported = 7;
- if (has_column_aliasing_supported()) {
+ if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->column_aliasing_supported(), output);
}
// repeated .exec.user.ConvertSupport convert_support = 8;
- for (int i = 0; i < this->convert_support_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->convert_support_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->convert_support(i), output);
+ 8,
+ this->convert_support(static_cast<int>(i)),
+ output);
}
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
- if (has_correlation_names_support()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
9, this->correlation_names_support(), output);
}
// repeated string date_time_functions = 10;
- for (int i = 0; i < this->date_time_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->date_time_functions(i).data(), this->date_time_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->date_time_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->date_time_functions(i).data(), static_cast<int>(this->date_time_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.date_time_functions");
::google::protobuf::internal::WireFormatLite::WriteString(
10, this->date_time_functions(i), output);
}
// repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
- for (int i = 0; i < this->date_time_literals_support_size(); i++) {
+ for (int i = 0, n = this->date_time_literals_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
11, this->date_time_literals_support(i), output);
}
// optional .exec.user.GroupBySupport group_by_support = 12;
- if (has_group_by_support()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
12, this->group_by_support(), output);
}
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.IdentifierCasing identifier_casing = 13;
- if (has_identifier_casing()) {
+ if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
13, this->identifier_casing(), output);
}
// optional string identifier_quote_string = 14;
- if (has_identifier_quote_string()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->identifier_quote_string().data(), this->identifier_quote_string().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->identifier_quote_string().data(), static_cast<int>(this->identifier_quote_string().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.identifier_quote_string");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14, this->identifier_quote_string(), output);
}
// optional bool like_escape_clause_supported = 15;
- if (has_like_escape_clause_supported()) {
+ if (cached_has_bits & 0x20000000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(15, this->like_escape_clause_supported(), output);
}
// optional uint32 max_binary_literal_length = 16;
- if (has_max_binary_literal_length()) {
+ if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(16, this->max_binary_literal_length(), output);
}
// optional uint32 max_catalog_name_length = 17;
- if (has_max_catalog_name_length()) {
+ if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(17, this->max_catalog_name_length(), output);
}
// optional uint32 max_char_literal_length = 18;
- if (has_max_char_literal_length()) {
+ if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(18, this->max_char_literal_length(), output);
}
// optional uint32 max_column_name_length = 19;
- if (has_max_column_name_length()) {
+ if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->max_column_name_length(), output);
}
// optional uint32 max_columns_in_group_by = 20;
- if (has_max_columns_in_group_by()) {
+ if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->max_columns_in_group_by(), output);
}
// optional uint32 max_columns_in_order_by = 21;
- if (has_max_columns_in_order_by()) {
+ if (cached_has_bits & 0x00040000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(21, this->max_columns_in_order_by(), output);
}
// optional uint32 max_columns_in_select = 22;
- if (has_max_columns_in_select()) {
+ if (cached_has_bits & 0x00080000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(22, this->max_columns_in_select(), output);
}
// optional uint32 max_cursor_name_length = 23;
- if (has_max_cursor_name_length()) {
+ if (cached_has_bits & 0x00100000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(23, this->max_cursor_name_length(), output);
}
// optional uint32 max_logical_lob_size = 24;
- if (has_max_logical_lob_size()) {
+ if (cached_has_bits & 0x00200000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(24, this->max_logical_lob_size(), output);
}
// optional uint32 max_row_size = 25;
- if (has_max_row_size()) {
+ if (cached_has_bits & 0x00400000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(25, this->max_row_size(), output);
}
// optional uint32 max_schema_name_length = 26;
- if (has_max_schema_name_length()) {
+ if (cached_has_bits & 0x00800000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(26, this->max_schema_name_length(), output);
}
// optional uint32 max_statement_length = 27;
- if (has_max_statement_length()) {
+ if (cached_has_bits & 0x01000000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(27, this->max_statement_length(), output);
}
// optional uint32 max_statements = 28;
- if (has_max_statements()) {
+ if (cached_has_bits & 0x02000000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(28, this->max_statements(), output);
}
// optional uint32 max_table_name_length = 29;
- if (has_max_table_name_length()) {
+ if (cached_has_bits & 0x04000000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(29, this->max_table_name_length(), output);
}
// optional uint32 max_tables_in_select = 30;
- if (has_max_tables_in_select()) {
+ if (cached_has_bits & 0x08000000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(30, this->max_tables_in_select(), output);
}
// optional uint32 max_user_name_length = 31;
- if (has_max_user_name_length()) {
+ if (cached_has_bits & 0x10000000u) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(31, this->max_user_name_length(), output);
}
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.NullCollation null_collation = 32;
- if (has_null_collation()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
32, this->null_collation(), output);
}
+ cached_has_bits = _has_bits_[0];
// optional bool null_plus_non_null_equals_null = 33;
- if (has_null_plus_non_null_equals_null()) {
+ if (cached_has_bits & 0x40000000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(33, this->null_plus_non_null_equals_null(), output);
}
// repeated string numeric_functions = 34;
- for (int i = 0; i < this->numeric_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->numeric_functions(i).data(), this->numeric_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->numeric_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->numeric_functions(i).data(), static_cast<int>(this->numeric_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.numeric_functions");
::google::protobuf::internal::WireFormatLite::WriteString(
34, this->numeric_functions(i), output);
}
// repeated .exec.user.OrderBySupport order_by_support = 35;
- for (int i = 0; i < this->order_by_support_size(); i++) {
+ for (int i = 0, n = this->order_by_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
35, this->order_by_support(i), output);
}
// repeated .exec.user.OuterJoinSupport outer_join_support = 36;
- for (int i = 0; i < this->outer_join_support_size(); i++) {
+ for (int i = 0, n = this->outer_join_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
36, this->outer_join_support(i), output);
}
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
- if (has_quoted_identifier_casing()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
37, this->quoted_identifier_casing(), output);
}
+ cached_has_bits = _has_bits_[0];
// optional bool read_only = 38;
- if (has_read_only()) {
+ if (cached_has_bits & 0x80000000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(38, this->read_only(), output);
}
// optional string schema_term = 39;
- if (has_schema_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_term().data(), this->schema_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_term().data(), static_cast<int>(this->schema_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.schema_term");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
39, this->schema_term(), output);
}
// optional string search_escape_string = 40;
- if (has_search_escape_string()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->search_escape_string().data(), this->search_escape_string().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->search_escape_string().data(), static_cast<int>(this->search_escape_string().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.search_escape_string");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
40, this->search_escape_string(), output);
}
+ cached_has_bits = _has_bits_[1];
// optional bool select_for_update_supported = 41;
- if (has_select_for_update_supported()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteBool(41, this->select_for_update_supported(), output);
}
+ cached_has_bits = _has_bits_[0];
// optional string special_characters = 42;
- if (has_special_characters()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->special_characters().data(), this->special_characters().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->special_characters().data(), static_cast<int>(this->special_characters().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.special_characters");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
42, this->special_characters(), output);
}
// repeated string sql_keywords = 43;
- for (int i = 0; i < this->sql_keywords_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_keywords(i).data(), this->sql_keywords(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->sql_keywords_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_keywords(i).data(), static_cast<int>(this->sql_keywords(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.sql_keywords");
::google::protobuf::internal::WireFormatLite::WriteString(
43, this->sql_keywords(i), output);
}
// repeated string string_functions = 44;
- for (int i = 0; i < this->string_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->string_functions(i).data(), this->string_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->string_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->string_functions(i).data(), static_cast<int>(this->string_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.string_functions");
::google::protobuf::internal::WireFormatLite::WriteString(
44, this->string_functions(i), output);
}
// repeated .exec.user.SubQuerySupport subquery_support = 45;
- for (int i = 0; i < this->subquery_support_size(); i++) {
+ for (int i = 0, n = this->subquery_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
45, this->subquery_support(i), output);
}
// repeated string system_functions = 46;
- for (int i = 0; i < this->system_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->system_functions(i).data(), this->system_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->system_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->system_functions(i).data(), static_cast<int>(this->system_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.system_functions");
::google::protobuf::internal::WireFormatLite::WriteString(
46, this->system_functions(i), output);
}
// optional string table_term = 47;
- if (has_table_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_term().data(), this->table_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_term().data(), static_cast<int>(this->table_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.table_term");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
47, this->table_term(), output);
}
+ cached_has_bits = _has_bits_[1];
// optional bool transaction_supported = 48;
- if (has_transaction_supported()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteBool(48, this->transaction_supported(), output);
}
// repeated .exec.user.UnionSupport union_support = 49;
- for (int i = 0; i < this->union_support_size(); i++) {
+ for (int i = 0, n = this->union_support_size(); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
49, this->union_support(i), output);
}
+ cached_has_bits = _has_bits_[0];
// optional string current_schema = 50;
- if (has_current_schema()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->current_schema().data(), this->current_schema().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000080u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->current_schema().data(), static_cast<int>(this->current_schema().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.current_schema");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
50, this->current_schema(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.ServerMeta)
}
-::google::protobuf::uint8* ServerMeta::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ServerMeta::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.ServerMeta)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional bool all_tables_selectable = 1;
- if (has_all_tables_selectable()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->all_tables_selectable(), target);
}
// optional bool blob_included_in_max_row_size = 2;
- if (has_blob_included_in_max_row_size()) {
+ if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->blob_included_in_max_row_size(), target);
}
// optional bool catalog_at_start = 3;
- if (has_catalog_at_start()) {
+ if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->catalog_at_start(), target);
}
// optional string catalog_separator = 4;
- if (has_catalog_separator()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_separator().data(), this->catalog_separator().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_separator().data(), static_cast<int>(this->catalog_separator().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.catalog_separator");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->catalog_separator(), target);
}
// optional string catalog_term = 5;
- if (has_catalog_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->catalog_term().data(), this->catalog_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->catalog_term().data(), static_cast<int>(this->catalog_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.catalog_term");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->catalog_term(), target);
}
// repeated .exec.user.CollateSupport collate_support = 6;
- for (int i = 0; i < this->collate_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 6, this->collate_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 6, this->collate_support_, target);
// optional bool column_aliasing_supported = 7;
- if (has_column_aliasing_supported()) {
+ if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->column_aliasing_supported(), target);
}
// repeated .exec.user.ConvertSupport convert_support = 8;
- for (int i = 0; i < this->convert_support_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->convert_support_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 8, this->convert_support(i), target);
+ InternalWriteMessageToArray(
+ 8, this->convert_support(static_cast<int>(i)), deterministic, target);
}
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
- if (has_correlation_names_support()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9, this->correlation_names_support(), target);
}
// repeated string date_time_functions = 10;
- for (int i = 0; i < this->date_time_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->date_time_functions(i).data(), this->date_time_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->date_time_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->date_time_functions(i).data(), static_cast<int>(this->date_time_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.date_time_functions");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(10, this->date_time_functions(i), target);
}
// repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
- for (int i = 0; i < this->date_time_literals_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 11, this->date_time_literals_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 11, this->date_time_literals_support_, target);
// optional .exec.user.GroupBySupport group_by_support = 12;
- if (has_group_by_support()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12, this->group_by_support(), target);
}
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.IdentifierCasing identifier_casing = 13;
- if (has_identifier_casing()) {
+ if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
13, this->identifier_casing(), target);
}
// optional string identifier_quote_string = 14;
- if (has_identifier_quote_string()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->identifier_quote_string().data(), this->identifier_quote_string().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->identifier_quote_string().data(), static_cast<int>(this->identifier_quote_string().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.identifier_quote_string");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14, this->identifier_quote_string(), target);
}
// optional bool like_escape_clause_supported = 15;
- if (has_like_escape_clause_supported()) {
+ if (cached_has_bits & 0x20000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->like_escape_clause_supported(), target);
}
// optional uint32 max_binary_literal_length = 16;
- if (has_max_binary_literal_length()) {
+ if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(16, this->max_binary_literal_length(), target);
}
// optional uint32 max_catalog_name_length = 17;
- if (has_max_catalog_name_length()) {
+ if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(17, this->max_catalog_name_length(), target);
}
// optional uint32 max_char_literal_length = 18;
- if (has_max_char_literal_length()) {
+ if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(18, this->max_char_literal_length(), target);
}
// optional uint32 max_column_name_length = 19;
- if (has_max_column_name_length()) {
+ if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->max_column_name_length(), target);
}
// optional uint32 max_columns_in_group_by = 20;
- if (has_max_columns_in_group_by()) {
+ if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->max_columns_in_group_by(), target);
}
// optional uint32 max_columns_in_order_by = 21;
- if (has_max_columns_in_order_by()) {
+ if (cached_has_bits & 0x00040000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(21, this->max_columns_in_order_by(), target);
}
// optional uint32 max_columns_in_select = 22;
- if (has_max_columns_in_select()) {
+ if (cached_has_bits & 0x00080000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(22, this->max_columns_in_select(), target);
}
// optional uint32 max_cursor_name_length = 23;
- if (has_max_cursor_name_length()) {
+ if (cached_has_bits & 0x00100000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(23, this->max_cursor_name_length(), target);
}
// optional uint32 max_logical_lob_size = 24;
- if (has_max_logical_lob_size()) {
+ if (cached_has_bits & 0x00200000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(24, this->max_logical_lob_size(), target);
}
// optional uint32 max_row_size = 25;
- if (has_max_row_size()) {
+ if (cached_has_bits & 0x00400000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(25, this->max_row_size(), target);
}
// optional uint32 max_schema_name_length = 26;
- if (has_max_schema_name_length()) {
+ if (cached_has_bits & 0x00800000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(26, this->max_schema_name_length(), target);
}
// optional uint32 max_statement_length = 27;
- if (has_max_statement_length()) {
+ if (cached_has_bits & 0x01000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(27, this->max_statement_length(), target);
}
// optional uint32 max_statements = 28;
- if (has_max_statements()) {
+ if (cached_has_bits & 0x02000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(28, this->max_statements(), target);
}
// optional uint32 max_table_name_length = 29;
- if (has_max_table_name_length()) {
+ if (cached_has_bits & 0x04000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(29, this->max_table_name_length(), target);
}
// optional uint32 max_tables_in_select = 30;
- if (has_max_tables_in_select()) {
+ if (cached_has_bits & 0x08000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(30, this->max_tables_in_select(), target);
}
// optional uint32 max_user_name_length = 31;
- if (has_max_user_name_length()) {
+ if (cached_has_bits & 0x10000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(31, this->max_user_name_length(), target);
}
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.NullCollation null_collation = 32;
- if (has_null_collation()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
32, this->null_collation(), target);
}
+ cached_has_bits = _has_bits_[0];
// optional bool null_plus_non_null_equals_null = 33;
- if (has_null_plus_non_null_equals_null()) {
+ if (cached_has_bits & 0x40000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->null_plus_non_null_equals_null(), target);
}
// repeated string numeric_functions = 34;
- for (int i = 0; i < this->numeric_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->numeric_functions(i).data(), this->numeric_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->numeric_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->numeric_functions(i).data(), static_cast<int>(this->numeric_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.numeric_functions");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(34, this->numeric_functions(i), target);
}
// repeated .exec.user.OrderBySupport order_by_support = 35;
- for (int i = 0; i < this->order_by_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 35, this->order_by_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 35, this->order_by_support_, target);
// repeated .exec.user.OuterJoinSupport outer_join_support = 36;
- for (int i = 0; i < this->outer_join_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 36, this->outer_join_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 36, this->outer_join_support_, target);
+ cached_has_bits = _has_bits_[1];
// optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
- if (has_quoted_identifier_casing()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
37, this->quoted_identifier_casing(), target);
}
+ cached_has_bits = _has_bits_[0];
// optional bool read_only = 38;
- if (has_read_only()) {
+ if (cached_has_bits & 0x80000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(38, this->read_only(), target);
}
// optional string schema_term = 39;
- if (has_schema_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->schema_term().data(), this->schema_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->schema_term().data(), static_cast<int>(this->schema_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.schema_term");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
39, this->schema_term(), target);
}
// optional string search_escape_string = 40;
- if (has_search_escape_string()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->search_escape_string().data(), this->search_escape_string().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->search_escape_string().data(), static_cast<int>(this->search_escape_string().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.search_escape_string");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
40, this->search_escape_string(), target);
}
+ cached_has_bits = _has_bits_[1];
// optional bool select_for_update_supported = 41;
- if (has_select_for_update_supported()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(41, this->select_for_update_supported(), target);
}
+ cached_has_bits = _has_bits_[0];
// optional string special_characters = 42;
- if (has_special_characters()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->special_characters().data(), this->special_characters().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->special_characters().data(), static_cast<int>(this->special_characters().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.special_characters");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
42, this->special_characters(), target);
}
// repeated string sql_keywords = 43;
- for (int i = 0; i < this->sql_keywords_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->sql_keywords(i).data(), this->sql_keywords(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->sql_keywords_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->sql_keywords(i).data(), static_cast<int>(this->sql_keywords(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.sql_keywords");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(43, this->sql_keywords(i), target);
}
// repeated string string_functions = 44;
- for (int i = 0; i < this->string_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->string_functions(i).data(), this->string_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->string_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->string_functions(i).data(), static_cast<int>(this->string_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.string_functions");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(44, this->string_functions(i), target);
}
// repeated .exec.user.SubQuerySupport subquery_support = 45;
- for (int i = 0; i < this->subquery_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 45, this->subquery_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 45, this->subquery_support_, target);
// repeated string system_functions = 46;
- for (int i = 0; i < this->system_functions_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->system_functions(i).data(), this->system_functions(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->system_functions_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->system_functions(i).data(), static_cast<int>(this->system_functions(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.system_functions");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(46, this->system_functions(i), target);
}
// optional string table_term = 47;
- if (has_table_term()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->table_term().data(), this->table_term().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->table_term().data(), static_cast<int>(this->table_term().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.table_term");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
47, this->table_term(), target);
}
+ cached_has_bits = _has_bits_[1];
// optional bool transaction_supported = 48;
- if (has_transaction_supported()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(48, this->transaction_supported(), target);
}
// repeated .exec.user.UnionSupport union_support = 49;
- for (int i = 0; i < this->union_support_size(); i++) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 49, this->union_support(i), target);
- }
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 49, this->union_support_, target);
+ cached_has_bits = _has_bits_[0];
// optional string current_schema = 50;
- if (has_current_schema()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->current_schema().data(), this->current_schema().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000080u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->current_schema().data(), static_cast<int>(this->current_schema().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.ServerMeta.current_schema");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
50, this->current_schema(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.ServerMeta)
return target;
}
-int ServerMeta::ByteSize() const {
- int total_size = 0;
+size_t ServerMeta::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.ServerMeta)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional bool all_tables_selectable = 1;
- if (has_all_tables_selectable()) {
- total_size += 1 + 1;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.user.CollateSupport collate_support = 6;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->collate_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->collate_support(static_cast<int>(i)));
}
+ total_size += (1UL * count) + data_size;
+ }
- // optional bool blob_included_in_max_row_size = 2;
- if (has_blob_included_in_max_row_size()) {
- total_size += 1 + 1;
+ // repeated .exec.user.ConvertSupport convert_support = 8;
+ {
+ unsigned int count = static_cast<unsigned int>(this->convert_support_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->convert_support(static_cast<int>(i)));
}
+ }
- // optional bool catalog_at_start = 3;
- if (has_catalog_at_start()) {
- total_size += 1 + 1;
+ // repeated string date_time_functions = 10;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->date_time_functions_size());
+ for (int i = 0, n = this->date_time_functions_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->date_time_functions(i));
+ }
+
+ // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->date_time_literals_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->date_time_literals_support(static_cast<int>(i)));
+ }
+ total_size += (1UL * count) + data_size;
+ }
+
+ // repeated string numeric_functions = 34;
+ total_size += 2 *
+ ::google::protobuf::internal::FromIntSize(this->numeric_functions_size());
+ for (int i = 0, n = this->numeric_functions_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->numeric_functions(i));
+ }
+
+ // repeated .exec.user.OrderBySupport order_by_support = 35;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->order_by_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->order_by_support(static_cast<int>(i)));
+ }
+ total_size += (2UL * count) + data_size;
+ }
+
+ // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->outer_join_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->outer_join_support(static_cast<int>(i)));
+ }
+ total_size += (2UL * count) + data_size;
+ }
+
+ // repeated string sql_keywords = 43;
+ total_size += 2 *
+ ::google::protobuf::internal::FromIntSize(this->sql_keywords_size());
+ for (int i = 0, n = this->sql_keywords_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->sql_keywords(i));
+ }
+
+ // repeated string string_functions = 44;
+ total_size += 2 *
+ ::google::protobuf::internal::FromIntSize(this->string_functions_size());
+ for (int i = 0, n = this->string_functions_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->string_functions(i));
+ }
+
+ // repeated .exec.user.SubQuerySupport subquery_support = 45;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->subquery_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->subquery_support(static_cast<int>(i)));
+ }
+ total_size += (2UL * count) + data_size;
+ }
+
+ // repeated string system_functions = 46;
+ total_size += 2 *
+ ::google::protobuf::internal::FromIntSize(this->system_functions_size());
+ for (int i = 0, n = this->system_functions_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->system_functions(i));
+ }
+
+ // repeated .exec.user.UnionSupport union_support = 49;
+ {
+ size_t data_size = 0;
+ unsigned int count = static_cast<unsigned int>(this->union_support_size());for (unsigned int i = 0; i < count; i++) {
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
+ this->union_support(static_cast<int>(i)));
}
+ total_size += (2UL * count) + data_size;
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string catalog_separator = 4;
if (has_catalog_separator()) {
total_size += 1 +
@@ -14133,43 +15595,76 @@ int ServerMeta::ByteSize() const {
this->catalog_term());
}
- // optional bool column_aliasing_supported = 7;
- if (has_column_aliasing_supported()) {
- total_size += 1 + 1;
+ // optional string identifier_quote_string = 14;
+ if (has_identifier_quote_string()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->identifier_quote_string());
}
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
- if (has_correlation_names_support()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->correlation_names_support());
+ // optional string schema_term = 39;
+ if (has_schema_term()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->schema_term());
}
- // optional .exec.user.GroupBySupport group_by_support = 12;
- if (has_group_by_support()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->group_by_support());
+ // optional string search_escape_string = 40;
+ if (has_search_escape_string()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->search_escape_string());
}
- // optional .exec.user.IdentifierCasing identifier_casing = 13;
- if (has_identifier_casing()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->identifier_casing());
+ // optional string special_characters = 42;
+ if (has_special_characters()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->special_characters());
}
- // optional string identifier_quote_string = 14;
- if (has_identifier_quote_string()) {
- total_size += 1 +
+ // optional string table_term = 47;
+ if (has_table_term()) {
+ total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
- this->identifier_quote_string());
+ this->table_term());
}
- // optional bool like_escape_clause_supported = 15;
- if (has_like_escape_clause_supported()) {
+ // optional string current_schema = 50;
+ if (has_current_schema()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->current_schema());
+ }
+
+ }
+ if (_has_bits_[8 / 32] & 65280u) {
+ // optional bool all_tables_selectable = 1;
+ if (has_all_tables_selectable()) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool blob_included_in_max_row_size = 2;
+ if (has_blob_included_in_max_row_size()) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool catalog_at_start = 3;
+ if (has_catalog_at_start()) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool column_aliasing_supported = 7;
+ if (has_column_aliasing_supported()) {
total_size += 1 + 1;
}
+ // optional .exec.user.IdentifierCasing identifier_casing = 13;
+ if (has_identifier_casing()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->identifier_casing());
+ }
+
// optional uint32 max_binary_literal_length = 16;
if (has_max_binary_literal_length()) {
total_size += 2 +
@@ -14177,8 +15672,6 @@ int ServerMeta::ByteSize() const {
this->max_binary_literal_length());
}
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional uint32 max_catalog_name_length = 17;
if (has_max_catalog_name_length()) {
total_size += 2 +
@@ -14193,6 +15686,8 @@ int ServerMeta::ByteSize() const {
this->max_char_literal_length());
}
+ }
+ if (_has_bits_[16 / 32] & 16711680u) {
// optional uint32 max_column_name_length = 19;
if (has_max_column_name_length()) {
total_size += 2 +
@@ -14235,8 +15730,6 @@ int ServerMeta::ByteSize() const {
this->max_logical_lob_size());
}
- }
- if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) {
// optional uint32 max_row_size = 25;
if (has_max_row_size()) {
total_size += 2 +
@@ -14251,6 +15744,8 @@ int ServerMeta::ByteSize() const {
this->max_schema_name_length());
}
+ }
+ if (_has_bits_[24 / 32] & 4278190080u) {
// optional uint32 max_statement_length = 27;
if (has_max_statement_length()) {
total_size += 2 +
@@ -14286,63 +15781,38 @@ int ServerMeta::ByteSize() const {
this->max_user_name_length());
}
- // optional .exec.user.NullCollation null_collation = 32;
- if (has_null_collation()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_collation());
+ // optional bool like_escape_clause_supported = 15;
+ if (has_like_escape_clause_supported()) {
+ total_size += 1 + 1;
}
- }
- if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) {
// optional bool null_plus_non_null_equals_null = 33;
if (has_null_plus_non_null_equals_null()) {
total_size += 2 + 1;
}
- // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
- if (has_quoted_identifier_casing()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->quoted_identifier_casing());
- }
-
// optional bool read_only = 38;
if (has_read_only()) {
total_size += 2 + 1;
}
- // optional string schema_term = 39;
- if (has_schema_term()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->schema_term());
- }
-
- // optional string search_escape_string = 40;
- if (has_search_escape_string()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->search_escape_string());
- }
-
}
- if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) {
+ if (_has_bits_[32 / 32] & 63u) {
// optional bool select_for_update_supported = 41;
if (has_select_for_update_supported()) {
total_size += 2 + 1;
}
- // optional string special_characters = 42;
- if (has_special_characters()) {
+ // optional .exec.user.NullCollation null_collation = 32;
+ if (has_null_collation()) {
total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->special_characters());
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_collation());
}
- // optional string table_term = 47;
- if (has_table_term()) {
+ // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
+ if (has_quoted_identifier_casing()) {
total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->table_term());
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->quoted_identifier_casing());
}
// optional bool transaction_supported = 48;
@@ -14350,144 +15820,46 @@ int ServerMeta::ByteSize() const {
total_size += 2 + 1;
}
- }
- if (_has_bits_[49 / 32] & (0xffu << (49 % 32))) {
- // optional string current_schema = 50;
- if (has_current_schema()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->current_schema());
- }
-
- }
- // repeated .exec.user.CollateSupport collate_support = 6;
- {
- int data_size = 0;
- for (int i = 0; i < this->collate_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->collate_support(i));
- }
- total_size += 1 * this->collate_support_size() + data_size;
- }
-
- // repeated .exec.user.ConvertSupport convert_support = 8;
- total_size += 1 * this->convert_support_size();
- for (int i = 0; i < this->convert_support_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->convert_support(i));
- }
-
- // repeated string date_time_functions = 10;
- total_size += 1 * this->date_time_functions_size();
- for (int i = 0; i < this->date_time_functions_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date_time_functions(i));
- }
-
- // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
- {
- int data_size = 0;
- for (int i = 0; i < this->date_time_literals_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->date_time_literals_support(i));
- }
- total_size += 1 * this->date_time_literals_support_size() + data_size;
- }
-
- // repeated string numeric_functions = 34;
- total_size += 2 * this->numeric_functions_size();
- for (int i = 0; i < this->numeric_functions_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->numeric_functions(i));
- }
-
- // repeated .exec.user.OrderBySupport order_by_support = 35;
- {
- int data_size = 0;
- for (int i = 0; i < this->order_by_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->order_by_support(i));
- }
- total_size += 2 * this->order_by_support_size() + data_size;
- }
-
- // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
- {
- int data_size = 0;
- for (int i = 0; i < this->outer_join_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->outer_join_support(i));
- }
- total_size += 2 * this->outer_join_support_size() + data_size;
- }
-
- // repeated string sql_keywords = 43;
- total_size += 2 * this->sql_keywords_size();
- for (int i = 0; i < this->sql_keywords_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->sql_keywords(i));
- }
-
- // repeated string string_functions = 44;
- total_size += 2 * this->string_functions_size();
- for (int i = 0; i < this->string_functions_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->string_functions(i));
- }
-
- // repeated .exec.user.SubQuerySupport subquery_support = 45;
- {
- int data_size = 0;
- for (int i = 0; i < this->subquery_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->subquery_support(i));
+ // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
+ if (has_correlation_names_support()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->correlation_names_support());
}
- total_size += 2 * this->subquery_support_size() + data_size;
- }
-
- // repeated string system_functions = 46;
- total_size += 2 * this->system_functions_size();
- for (int i = 0; i < this->system_functions_size(); i++) {
- total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
- this->system_functions(i));
- }
- // repeated .exec.user.UnionSupport union_support = 49;
- {
- int data_size = 0;
- for (int i = 0; i < this->union_support_size(); i++) {
- data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
- this->union_support(i));
+ // optional .exec.user.GroupBySupport group_by_support = 12;
+ if (has_group_by_support()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->group_by_support());
}
- total_size += 2 * this->union_support_size() + data_size;
- }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ServerMeta::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.ServerMeta)
+ GOOGLE_DCHECK_NE(&from, this);
const ServerMeta* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ServerMeta*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ServerMeta>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.ServerMeta)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.ServerMeta)
MergeFrom(*source);
}
}
void ServerMeta::MergeFrom(const ServerMeta& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.ServerMeta)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
collate_support_.MergeFrom(from.collate_support_);
convert_support_.MergeFrom(from.convert_support_);
date_time_functions_.MergeFrom(from.date_time_functions_);
@@ -14500,321 +15872,353 @@ void ServerMeta::MergeFrom(const ServerMeta& from) {
subquery_support_.MergeFrom(from.subquery_support_);
system_functions_.MergeFrom(from.system_functions_);
union_support_.MergeFrom(from.union_support_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_all_tables_selectable()) {
- set_all_tables_selectable(from.all_tables_selectable());
- }
- if (from.has_blob_included_in_max_row_size()) {
- set_blob_included_in_max_row_size(from.blob_included_in_max_row_size());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_catalog_separator();
+ catalog_separator_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_separator_);
}
- if (from.has_catalog_at_start()) {
- set_catalog_at_start(from.catalog_at_start());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_catalog_term();
+ catalog_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_term_);
}
- if (from.has_catalog_separator()) {
- set_catalog_separator(from.catalog_separator());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_identifier_quote_string();
+ identifier_quote_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_quote_string_);
}
- if (from.has_catalog_term()) {
- set_catalog_term(from.catalog_term());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_schema_term();
+ schema_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_term_);
}
- if (from.has_column_aliasing_supported()) {
- set_column_aliasing_supported(from.column_aliasing_supported());
- }
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_correlation_names_support()) {
- set_correlation_names_support(from.correlation_names_support());
+ if (cached_has_bits & 0x00000010u) {
+ set_has_search_escape_string();
+ search_escape_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.search_escape_string_);
}
- if (from.has_group_by_support()) {
- set_group_by_support(from.group_by_support());
+ if (cached_has_bits & 0x00000020u) {
+ set_has_special_characters();
+ special_characters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.special_characters_);
}
- if (from.has_identifier_casing()) {
- set_identifier_casing(from.identifier_casing());
+ if (cached_has_bits & 0x00000040u) {
+ set_has_table_term();
+ table_term_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_term_);
}
- if (from.has_identifier_quote_string()) {
- set_identifier_quote_string(from.identifier_quote_string());
- }
- if (from.has_like_escape_clause_supported()) {
- set_like_escape_clause_supported(from.like_escape_clause_supported());
- }
- if (from.has_max_binary_literal_length()) {
- set_max_binary_literal_length(from.max_binary_literal_length());
+ if (cached_has_bits & 0x00000080u) {
+ set_has_current_schema();
+ current_schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_schema_);
}
}
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_max_catalog_name_length()) {
- set_max_catalog_name_length(from.max_catalog_name_length());
+ if (cached_has_bits & 65280u) {
+ if (cached_has_bits & 0x00000100u) {
+ all_tables_selectable_ = from.all_tables_selectable_;
}
- if (from.has_max_char_literal_length()) {
- set_max_char_literal_length(from.max_char_literal_length());
+ if (cached_has_bits & 0x00000200u) {
+ blob_included_in_max_row_size_ = from.blob_included_in_max_row_size_;
}
- if (from.has_max_column_name_length()) {
- set_max_column_name_length(from.max_column_name_length());
+ if (cached_has_bits & 0x00000400u) {
+ catalog_at_start_ = from.catalog_at_start_;
}
- if (from.has_max_columns_in_group_by()) {
- set_max_columns_in_group_by(from.max_columns_in_group_by());
+ if (cached_has_bits & 0x00000800u) {
+ column_aliasing_supported_ = from.column_aliasing_supported_;
}
- if (from.has_max_columns_in_order_by()) {
- set_max_columns_in_order_by(from.max_columns_in_order_by());
+ if (cached_has_bits & 0x00001000u) {
+ identifier_casing_ = from.identifier_casing_;
}
- if (from.has_max_columns_in_select()) {
- set_max_columns_in_select(from.max_columns_in_select());
+ if (cached_has_bits & 0x00002000u) {
+ max_binary_literal_length_ = from.max_binary_literal_length_;
}
- if (from.has_max_cursor_name_length()) {
- set_max_cursor_name_length(from.max_cursor_name_length());
+ if (cached_has_bits & 0x00004000u) {
+ max_catalog_name_length_ = from.max_catalog_name_length_;
}
- if (from.has_max_logical_lob_size()) {
- set_max_logical_lob_size(from.max_logical_lob_size());
+ if (cached_has_bits & 0x00008000u) {
+ max_char_literal_length_ = from.max_char_literal_length_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) {
- if (from.has_max_row_size()) {
- set_max_row_size(from.max_row_size());
+ if (cached_has_bits & 16711680u) {
+ if (cached_has_bits & 0x00010000u) {
+ max_column_name_length_ = from.max_column_name_length_;
}
- if (from.has_max_schema_name_length()) {
- set_max_schema_name_length(from.max_schema_name_length());
+ if (cached_has_bits & 0x00020000u) {
+ max_columns_in_group_by_ = from.max_columns_in_group_by_;
}
- if (from.has_max_statement_length()) {
- set_max_statement_length(from.max_statement_length());
+ if (cached_has_bits & 0x00040000u) {
+ max_columns_in_order_by_ = from.max_columns_in_order_by_;
}
- if (from.has_max_statements()) {
- set_max_statements(from.max_statements());
+ if (cached_has_bits & 0x00080000u) {
+ max_columns_in_select_ = from.max_columns_in_select_;
}
- if (from.has_max_table_name_length()) {
- set_max_table_name_length(from.max_table_name_length());
+ if (cached_has_bits & 0x00100000u) {
+ max_cursor_name_length_ = from.max_cursor_name_length_;
}
- if (from.has_max_tables_in_select()) {
- set_max_tables_in_select(from.max_tables_in_select());
+ if (cached_has_bits & 0x00200000u) {
+ max_logical_lob_size_ = from.max_logical_lob_size_;
}
- if (from.has_max_user_name_length()) {
- set_max_user_name_length(from.max_user_name_length());
+ if (cached_has_bits & 0x00400000u) {
+ max_row_size_ = from.max_row_size_;
}
- if (from.has_null_collation()) {
- set_null_collation(from.null_collation());
+ if (cached_has_bits & 0x00800000u) {
+ max_schema_name_length_ = from.max_schema_name_length_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) {
- if (from.has_null_plus_non_null_equals_null()) {
- set_null_plus_non_null_equals_null(from.null_plus_non_null_equals_null());
+ if (cached_has_bits & 4278190080u) {
+ if (cached_has_bits & 0x01000000u) {
+ max_statement_length_ = from.max_statement_length_;
+ }
+ if (cached_has_bits & 0x02000000u) {
+ max_statements_ = from.max_statements_;
+ }
+ if (cached_has_bits & 0x04000000u) {
+ max_table_name_length_ = from.max_table_name_length_;
}
- if (from.has_quoted_identifier_casing()) {
- set_quoted_identifier_casing(from.quoted_identifier_casing());
+ if (cached_has_bits & 0x08000000u) {
+ max_tables_in_select_ = from.max_tables_in_select_;
}
- if (from.has_read_only()) {
- set_read_only(from.read_only());
+ if (cached_has_bits & 0x10000000u) {
+ max_user_name_length_ = from.max_user_name_length_;
}
- if (from.has_schema_term()) {
- set_schema_term(from.schema_term());
+ if (cached_has_bits & 0x20000000u) {
+ like_escape_clause_supported_ = from.like_escape_clause_supported_;
}
- if (from.has_search_escape_string()) {
- set_search_escape_string(from.search_escape_string());
+ if (cached_has_bits & 0x40000000u) {
+ null_plus_non_null_equals_null_ = from.null_plus_non_null_equals_null_;
}
+ if (cached_has_bits & 0x80000000u) {
+ read_only_ = from.read_only_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) {
- if (from.has_select_for_update_supported()) {
- set_select_for_update_supported(from.select_for_update_supported());
+ cached_has_bits = from._has_bits_[1];
+ if (cached_has_bits & 63u) {
+ if (cached_has_bits & 0x00000001u) {
+ select_for_update_supported_ = from.select_for_update_supported_;
}
- if (from.has_special_characters()) {
- set_special_characters(from.special_characters());
+ if (cached_has_bits & 0x00000002u) {
+ null_collation_ = from.null_collation_;
}
- if (from.has_table_term()) {
- set_table_term(from.table_term());
+ if (cached_has_bits & 0x00000004u) {
+ quoted_identifier_casing_ = from.quoted_identifier_casing_;
}
- if (from.has_transaction_supported()) {
- set_transaction_supported(from.transaction_supported());
+ if (cached_has_bits & 0x00000008u) {
+ transaction_supported_ = from.transaction_supported_;
}
- }
- if (from._has_bits_[49 / 32] & (0xffu << (49 % 32))) {
- if (from.has_current_schema()) {
- set_current_schema(from.current_schema());
+ if (cached_has_bits & 0x00000010u) {
+ correlation_names_support_ = from.correlation_names_support_;
+ }
+ if (cached_has_bits & 0x00000020u) {
+ group_by_support_ = from.group_by_support_;
}
+ _has_bits_[1] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ServerMeta::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.ServerMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ServerMeta::CopyFrom(const ServerMeta& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.ServerMeta)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ServerMeta::IsInitialized() const {
-
- for (int i = 0; i < convert_support_size(); i++) {
- if (!this->convert_support(i).IsInitialized()) return false;
- }
+ if (!::google::protobuf::internal::AllAreInitialized(this->convert_support())) return false;
return true;
}
void ServerMeta::Swap(ServerMeta* other) {
- if (other != this) {
- std::swap(all_tables_selectable_, other->all_tables_selectable_);
- std::swap(blob_included_in_max_row_size_, other->blob_included_in_max_row_size_);
- std::swap(catalog_at_start_, other->catalog_at_start_);
- std::swap(catalog_separator_, other->catalog_separator_);
- std::swap(catalog_term_, other->catalog_term_);
- collate_support_.Swap(&other->collate_support_);
- std::swap(column_aliasing_supported_, other->column_aliasing_supported_);
- convert_support_.Swap(&other->convert_support_);
- std::swap(correlation_names_support_, other->correlation_names_support_);
- date_time_functions_.Swap(&other->date_time_functions_);
- date_time_literals_support_.Swap(&other->date_time_literals_support_);
- std::swap(group_by_support_, other->group_by_support_);
- std::swap(identifier_casing_, other->identifier_casing_);
- std::swap(identifier_quote_string_, other->identifier_quote_string_);
- std::swap(like_escape_clause_supported_, other->like_escape_clause_supported_);
- std::swap(max_binary_literal_length_, other->max_binary_literal_length_);
- std::swap(max_catalog_name_length_, other->max_catalog_name_length_);
- std::swap(max_char_literal_length_, other->max_char_literal_length_);
- std::swap(max_column_name_length_, other->max_column_name_length_);
- std::swap(max_columns_in_group_by_, other->max_columns_in_group_by_);
- std::swap(max_columns_in_order_by_, other->max_columns_in_order_by_);
- std::swap(max_columns_in_select_, other->max_columns_in_select_);
- std::swap(max_cursor_name_length_, other->max_cursor_name_length_);
- std::swap(max_logical_lob_size_, other->max_logical_lob_size_);
- std::swap(max_row_size_, other->max_row_size_);
- std::swap(max_schema_name_length_, other->max_schema_name_length_);
- std::swap(max_statement_length_, other->max_statement_length_);
- std::swap(max_statements_, other->max_statements_);
- std::swap(max_table_name_length_, other->max_table_name_length_);
- std::swap(max_tables_in_select_, other->max_tables_in_select_);
- std::swap(max_user_name_length_, other->max_user_name_length_);
- std::swap(null_collation_, other->null_collation_);
- std::swap(null_plus_non_null_equals_null_, other->null_plus_non_null_equals_null_);
- numeric_functions_.Swap(&other->numeric_functions_);
- order_by_support_.Swap(&other->order_by_support_);
- outer_join_support_.Swap(&other->outer_join_support_);
- std::swap(quoted_identifier_casing_, other->quoted_identifier_casing_);
- std::swap(read_only_, other->read_only_);
- std::swap(schema_term_, other->schema_term_);
- std::swap(search_escape_string_, other->search_escape_string_);
- std::swap(select_for_update_supported_, other->select_for_update_supported_);
- std::swap(special_characters_, other->special_characters_);
- sql_keywords_.Swap(&other->sql_keywords_);
- string_functions_.Swap(&other->string_functions_);
- subquery_support_.Swap(&other->subquery_support_);
- system_functions_.Swap(&other->system_functions_);
- std::swap(table_term_, other->table_term_);
- std::swap(transaction_supported_, other->transaction_supported_);
- union_support_.Swap(&other->union_support_);
- std::swap(current_schema_, other->current_schema_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- std::swap(_has_bits_[1], other->_has_bits_[1]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ServerMeta::InternalSwap(ServerMeta* other) {
+ using std::swap;
+ collate_support_.InternalSwap(&other->collate_support_);
+ CastToBase(&convert_support_)->InternalSwap(CastToBase(&other->convert_support_));
+ date_time_functions_.InternalSwap(CastToBase(&other->date_time_functions_));
+ date_time_literals_support_.InternalSwap(&other->date_time_literals_support_);
+ numeric_functions_.InternalSwap(CastToBase(&other->numeric_functions_));
+ order_by_support_.InternalSwap(&other->order_by_support_);
+ outer_join_support_.InternalSwap(&other->outer_join_support_);
+ sql_keywords_.InternalSwap(CastToBase(&other->sql_keywords_));
+ string_functions_.InternalSwap(CastToBase(&other->string_functions_));
+ subquery_support_.InternalSwap(&other->subquery_support_);
+ system_functions_.InternalSwap(CastToBase(&other->system_functions_));
+ union_support_.InternalSwap(&other->union_support_);
+ catalog_separator_.Swap(&other->catalog_separator_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ catalog_term_.Swap(&other->catalog_term_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ identifier_quote_string_.Swap(&other->identifier_quote_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ schema_term_.Swap(&other->schema_term_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ search_escape_string_.Swap(&other->search_escape_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ special_characters_.Swap(&other->special_characters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ table_term_.Swap(&other->table_term_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ current_schema_.Swap(&other->current_schema_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(all_tables_selectable_, other->all_tables_selectable_);
+ swap(blob_included_in_max_row_size_, other->blob_included_in_max_row_size_);
+ swap(catalog_at_start_, other->catalog_at_start_);
+ swap(column_aliasing_supported_, other->column_aliasing_supported_);
+ swap(identifier_casing_, other->identifier_casing_);
+ swap(max_binary_literal_length_, other->max_binary_literal_length_);
+ swap(max_catalog_name_length_, other->max_catalog_name_length_);
+ swap(max_char_literal_length_, other->max_char_literal_length_);
+ swap(max_column_name_length_, other->max_column_name_length_);
+ swap(max_columns_in_group_by_, other->max_columns_in_group_by_);
+ swap(max_columns_in_order_by_, other->max_columns_in_order_by_);
+ swap(max_columns_in_select_, other->max_columns_in_select_);
+ swap(max_cursor_name_length_, other->max_cursor_name_length_);
+ swap(max_logical_lob_size_, other->max_logical_lob_size_);
+ swap(max_row_size_, other->max_row_size_);
+ swap(max_schema_name_length_, other->max_schema_name_length_);
+ swap(max_statement_length_, other->max_statement_length_);
+ swap(max_statements_, other->max_statements_);
+ swap(max_table_name_length_, other->max_table_name_length_);
+ swap(max_tables_in_select_, other->max_tables_in_select_);
+ swap(max_user_name_length_, other->max_user_name_length_);
+ swap(like_escape_clause_supported_, other->like_escape_clause_supported_);
+ swap(null_plus_non_null_equals_null_, other->null_plus_non_null_equals_null_);
+ swap(read_only_, other->read_only_);
+ swap(select_for_update_supported_, other->select_for_update_supported_);
+ swap(null_collation_, other->null_collation_);
+ swap(quoted_identifier_casing_, other->quoted_identifier_casing_);
+ swap(transaction_supported_, other->transaction_supported_);
+ swap(correlation_names_support_, other->correlation_names_support_);
+ swap(group_by_support_, other->group_by_support_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(_has_bits_[1], other->_has_bits_[1]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ServerMeta::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ServerMeta_descriptor_;
- metadata.reflection = ServerMeta_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RunQuery::InitAsDefaultInstance() {
+ ::exec::user::_RunQuery_default_instance_._instance.get_mutable()->prepared_statement_handle_ = const_cast< ::exec::user::PreparedStatementHandle*>(
+ ::exec::user::PreparedStatementHandle::internal_default_instance());
+}
+void RunQuery::clear_fragments() {
+ fragments_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RunQuery::kResultsModeFieldNumber;
const int RunQuery::kTypeFieldNumber;
const int RunQuery::kPlanFieldNumber;
const int RunQuery::kFragmentsFieldNumber;
const int RunQuery::kPreparedStatementHandleFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RunQuery::RunQuery()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_User_2eproto::scc_info_RunQuery.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.user.RunQuery)
}
-
-void RunQuery::InitAsDefaultInstance() {
- prepared_statement_handle_ = const_cast< ::exec::user::PreparedStatementHandle*>(&::exec::user::PreparedStatementHandle::default_instance());
-}
-
RunQuery::RunQuery(const RunQuery& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ fragments_(from.fragments_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_plan()) {
+ plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plan_);
+ }
+ if (from.has_prepared_statement_handle()) {
+ prepared_statement_handle_ = new ::exec::user::PreparedStatementHandle(*from.prepared_statement_handle_);
+ } else {
+ prepared_statement_handle_ = NULL;
+ }
+ ::memcpy(&results_mode_, &from.results_mode_,
+ static_cast<size_t>(reinterpret_cast<char*>(&type_) -
+ reinterpret_cast<char*>(&results_mode_)) + sizeof(type_));
+ // @@protoc_insertion_point(copy_constructor:exec.user.RunQuery)
}
void RunQuery::SharedCtor() {
- _cached_size_ = 0;
+ plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ prepared_statement_handle_ = NULL;
results_mode_ = 1;
type_ = 1;
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- prepared_statement_handle_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RunQuery::~RunQuery() {
+ // @@protoc_insertion_point(destructor:exec.user.RunQuery)
SharedDtor();
}
void RunQuery::SharedDtor() {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- delete plan_;
- }
- if (this != default_instance_) {
- delete prepared_statement_handle_;
- }
+ plan_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete prepared_statement_handle_;
}
void RunQuery::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RunQuery::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RunQuery_descriptor_;
+ ::protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RunQuery& RunQuery::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_User_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_User_2eproto::scc_info_RunQuery.base);
+ return *internal_default_instance();
}
-RunQuery* RunQuery::default_instance_ = NULL;
-
-RunQuery* RunQuery::New() const {
- return new RunQuery;
-}
void RunQuery::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- results_mode_ = 1;
- type_ = 1;
- if (has_plan()) {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- plan_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.user.RunQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fragments_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ plan_.ClearNonDefaultToEmptyNoArena();
}
- if (has_prepared_statement_handle()) {
- if (prepared_statement_handle_ != NULL) prepared_statement_handle_->::exec::user::PreparedStatementHandle::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(prepared_statement_handle_ != NULL);
+ prepared_statement_handle_->Clear();
}
+ results_mode_ = 1;
+ type_ = 1;
}
- fragments_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RunQuery::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.user.RunQuery)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.user.QueryResultsMode results_mode = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -14822,20 +16226,19 @@ bool RunQuery::MergePartialFromCodedStream(
if (::exec::user::QueryResultsMode_IsValid(value)) {
set_results_mode(static_cast< ::exec::user::QueryResultsMode >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_type;
break;
}
// optional .exec.shared.QueryType type = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -14843,179 +16246,201 @@ bool RunQuery::MergePartialFromCodedStream(
if (::exec::shared::QueryType_IsValid(value)) {
set_type(static_cast< ::exec::shared::QueryType >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_plan;
break;
}
// optional string plan = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_plan:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_plan()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.user.RunQuery.plan");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_fragments;
break;
}
// repeated .exec.bit.control.PlanFragment fragments = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragments:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_fragments()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_fragments;
- if (input->ExpectTag(42)) goto parse_prepared_statement_handle;
break;
}
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_prepared_statement_handle:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_prepared_statement_handle()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.user.RunQuery)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.user.RunQuery)
+ return false;
#undef DO_
}
void RunQuery::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.user.RunQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.QueryResultsMode results_mode = 1;
- if (has_results_mode()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->results_mode(), output);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->type(), output);
}
// optional string plan = 3;
- if (has_plan()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RunQuery.plan");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->plan(), output);
}
// repeated .exec.bit.control.PlanFragment fragments = 4;
- for (int i = 0; i < this->fragments_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragments_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->fragments(i), output);
+ 4,
+ this->fragments(static_cast<int>(i)),
+ output);
}
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- if (has_prepared_statement_handle()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->prepared_statement_handle(), output);
+ 5, this->_internal_prepared_statement_handle(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.user.RunQuery)
}
-::google::protobuf::uint8* RunQuery::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RunQuery::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.user.RunQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.user.QueryResultsMode results_mode = 1;
- if (has_results_mode()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->results_mode(), target);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->type(), target);
}
// optional string plan = 3;
- if (has_plan()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.user.RunQuery.plan");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->plan(), target);
}
// repeated .exec.bit.control.PlanFragment fragments = 4;
- for (int i = 0; i < this->fragments_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragments_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->fragments(i), target);
+ InternalWriteMessageToArray(
+ 4, this->fragments(static_cast<int>(i)), deterministic, target);
}
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- if (has_prepared_statement_handle()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->prepared_statement_handle(), target);
+ InternalWriteMessageToArray(
+ 5, this->_internal_prepared_statement_handle(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.user.RunQuery)
return target;
}
-int RunQuery::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.user.QueryResultsMode results_mode = 1;
- if (has_results_mode()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->results_mode());
- }
+size_t RunQuery::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.user.RunQuery)
+ size_t total_size = 0;
- // optional .exec.shared.QueryType type = 2;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.bit.control.PlanFragment fragments = 4;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fragments_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fragments(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional string plan = 3;
if (has_plan()) {
total_size += 1 +
@@ -15026,104 +16451,209 @@ int RunQuery::ByteSize() const {
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
if (has_prepared_statement_handle()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->prepared_statement_handle());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *prepared_statement_handle_);
}
- }
- // repeated .exec.bit.control.PlanFragment fragments = 4;
- total_size += 1 * this->fragments_size();
- for (int i = 0; i < this->fragments_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fragments(i));
- }
+ // optional .exec.user.QueryResultsMode results_mode = 1;
+ if (has_results_mode()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->results_mode());
+ }
+
+ // optional .exec.shared.QueryType type = 2;
+ if (has_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RunQuery::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.user.RunQuery)
+ GOOGLE_DCHECK_NE(&from, this);
const RunQuery* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RunQuery*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RunQuery>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.user.RunQuery)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.user.RunQuery)
MergeFrom(*source);
}
}
void RunQuery::MergeFrom(const RunQuery& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.user.RunQuery)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
fragments_.MergeFrom(from.fragments_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_results_mode()) {
- set_results_mode(from.results_mode());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_plan();
+ plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plan_);
}
- if (from.has_type()) {
- set_type(from.type());
+ if (cached_has_bits & 0x00000002u) {
+ mutable_prepared_statement_handle()->::exec::user::PreparedStatementHandle::MergeFrom(from.prepared_statement_handle());
}
- if (from.has_plan()) {
- set_plan(from.plan());
+ if (cached_has_bits & 0x00000004u) {
+ results_mode_ = from.results_mode_;
}
- if (from.has_prepared_statement_handle()) {
- mutable_prepared_statement_handle()->::exec::user::PreparedStatementHandle::MergeFrom(from.prepared_statement_handle());
+ if (cached_has_bits & 0x00000008u) {
+ type_ = from.type_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RunQuery::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.user.RunQuery)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RunQuery::CopyFrom(const RunQuery& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.user.RunQuery)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RunQuery::IsInitialized() const {
-
return true;
}
void RunQuery::Swap(RunQuery* other) {
- if (other != this) {
- std::swap(results_mode_, other->results_mode_);
- std::swap(type_, other->type_);
- std::swap(plan_, other->plan_);
- fragments_.Swap(&other->fragments_);
- std::swap(prepared_statement_handle_, other->prepared_statement_handle_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RunQuery::InternalSwap(RunQuery* other) {
+ using std::swap;
+ CastToBase(&fragments_)->InternalSwap(CastToBase(&other->fragments_));
+ plan_.Swap(&other->plan_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(prepared_statement_handle_, other->prepared_statement_handle_);
+ swap(results_mode_, other->results_mode_);
+ swap(type_, other->type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RunQuery::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RunQuery_descriptor_;
- metadata.reflection = RunQuery_reflection_;
- return metadata;
+ protobuf_User_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_User_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace user
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::Property* Arena::CreateMaybeMessage< ::exec::user::Property >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::Property >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::UserProperties* Arena::CreateMaybeMessage< ::exec::user::UserProperties >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::UserProperties >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::RpcEndpointInfos* Arena::CreateMaybeMessage< ::exec::user::RpcEndpointInfos >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::RpcEndpointInfos >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::UserToBitHandshake* Arena::CreateMaybeMessage< ::exec::user::UserToBitHandshake >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::UserToBitHandshake >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::RequestResults* Arena::CreateMaybeMessage< ::exec::user::RequestResults >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::RequestResults >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetQueryPlanFragments* Arena::CreateMaybeMessage< ::exec::user::GetQueryPlanFragments >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetQueryPlanFragments >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::QueryPlanFragments* Arena::CreateMaybeMessage< ::exec::user::QueryPlanFragments >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::QueryPlanFragments >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::BitToUserHandshake* Arena::CreateMaybeMessage< ::exec::user::BitToUserHandshake >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::BitToUserHandshake >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::LikeFilter* Arena::CreateMaybeMessage< ::exec::user::LikeFilter >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::LikeFilter >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetCatalogsReq* Arena::CreateMaybeMessage< ::exec::user::GetCatalogsReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetCatalogsReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::CatalogMetadata* Arena::CreateMaybeMessage< ::exec::user::CatalogMetadata >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::CatalogMetadata >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetCatalogsResp* Arena::CreateMaybeMessage< ::exec::user::GetCatalogsResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetCatalogsResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetSchemasReq* Arena::CreateMaybeMessage< ::exec::user::GetSchemasReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetSchemasReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::SchemaMetadata* Arena::CreateMaybeMessage< ::exec::user::SchemaMetadata >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::SchemaMetadata >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetSchemasResp* Arena::CreateMaybeMessage< ::exec::user::GetSchemasResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetSchemasResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetTablesReq* Arena::CreateMaybeMessage< ::exec::user::GetTablesReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetTablesReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::TableMetadata* Arena::CreateMaybeMessage< ::exec::user::TableMetadata >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::TableMetadata >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetTablesResp* Arena::CreateMaybeMessage< ::exec::user::GetTablesResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetTablesResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetColumnsReq* Arena::CreateMaybeMessage< ::exec::user::GetColumnsReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetColumnsReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::ColumnMetadata* Arena::CreateMaybeMessage< ::exec::user::ColumnMetadata >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::ColumnMetadata >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetColumnsResp* Arena::CreateMaybeMessage< ::exec::user::GetColumnsResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetColumnsResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::CreatePreparedStatementReq* Arena::CreateMaybeMessage< ::exec::user::CreatePreparedStatementReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::CreatePreparedStatementReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::ResultColumnMetadata* Arena::CreateMaybeMessage< ::exec::user::ResultColumnMetadata >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::ResultColumnMetadata >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::PreparedStatementHandle* Arena::CreateMaybeMessage< ::exec::user::PreparedStatementHandle >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::PreparedStatementHandle >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::PreparedStatement* Arena::CreateMaybeMessage< ::exec::user::PreparedStatement >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::PreparedStatement >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::CreatePreparedStatementResp* Arena::CreateMaybeMessage< ::exec::user::CreatePreparedStatementResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::CreatePreparedStatementResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetServerMetaReq* Arena::CreateMaybeMessage< ::exec::user::GetServerMetaReq >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetServerMetaReq >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::ConvertSupport* Arena::CreateMaybeMessage< ::exec::user::ConvertSupport >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::ConvertSupport >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::GetServerMetaResp* Arena::CreateMaybeMessage< ::exec::user::GetServerMetaResp >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::GetServerMetaResp >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::ServerMeta* Arena::CreateMaybeMessage< ::exec::user::ServerMeta >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::ServerMeta >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::user::RunQuery* Arena::CreateMaybeMessage< ::exec::user::RunQuery >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::user::RunQuery >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/User.pb.h b/contrib/native/client/src/protobuf/User.pb.h
index df8a45d4f..f7b74cc70 100644
--- a/contrib/native/client/src/protobuf/User.pb.h
+++ b/contrib/native/client/src/protobuf/User.pb.h
@@ -1,28 +1,34 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: User.proto
-#ifndef PROTOBUF_User_2eproto__INCLUDED
-#define PROTOBUF_User_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_User_2eproto
+#define PROTOBUF_INCLUDED_User_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "SchemaDef.pb.h"
@@ -32,46 +38,154 @@
#include "BitControl.pb.h"
#include "ExecutionProtos.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_User_2eproto
+
+namespace protobuf_User_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[31];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_User_2eproto
namespace exec {
namespace user {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_User_2eproto();
-void protobuf_AssignDesc_User_2eproto();
-void protobuf_ShutdownFile_User_2eproto();
-
-class Property;
-class UserProperties;
-class RpcEndpointInfos;
-class UserToBitHandshake;
-class RequestResults;
-class GetQueryPlanFragments;
-class QueryPlanFragments;
class BitToUserHandshake;
-class LikeFilter;
-class GetCatalogsReq;
+class BitToUserHandshakeDefaultTypeInternal;
+extern BitToUserHandshakeDefaultTypeInternal _BitToUserHandshake_default_instance_;
class CatalogMetadata;
+class CatalogMetadataDefaultTypeInternal;
+extern CatalogMetadataDefaultTypeInternal _CatalogMetadata_default_instance_;
+class ColumnMetadata;
+class ColumnMetadataDefaultTypeInternal;
+extern ColumnMetadataDefaultTypeInternal _ColumnMetadata_default_instance_;
+class ConvertSupport;
+class ConvertSupportDefaultTypeInternal;
+extern ConvertSupportDefaultTypeInternal _ConvertSupport_default_instance_;
+class CreatePreparedStatementReq;
+class CreatePreparedStatementReqDefaultTypeInternal;
+extern CreatePreparedStatementReqDefaultTypeInternal _CreatePreparedStatementReq_default_instance_;
+class CreatePreparedStatementResp;
+class CreatePreparedStatementRespDefaultTypeInternal;
+extern CreatePreparedStatementRespDefaultTypeInternal _CreatePreparedStatementResp_default_instance_;
+class GetCatalogsReq;
+class GetCatalogsReqDefaultTypeInternal;
+extern GetCatalogsReqDefaultTypeInternal _GetCatalogsReq_default_instance_;
class GetCatalogsResp;
+class GetCatalogsRespDefaultTypeInternal;
+extern GetCatalogsRespDefaultTypeInternal _GetCatalogsResp_default_instance_;
+class GetColumnsReq;
+class GetColumnsReqDefaultTypeInternal;
+extern GetColumnsReqDefaultTypeInternal _GetColumnsReq_default_instance_;
+class GetColumnsResp;
+class GetColumnsRespDefaultTypeInternal;
+extern GetColumnsRespDefaultTypeInternal _GetColumnsResp_default_instance_;
+class GetQueryPlanFragments;
+class GetQueryPlanFragmentsDefaultTypeInternal;
+extern GetQueryPlanFragmentsDefaultTypeInternal _GetQueryPlanFragments_default_instance_;
class GetSchemasReq;
-class SchemaMetadata;
+class GetSchemasReqDefaultTypeInternal;
+extern GetSchemasReqDefaultTypeInternal _GetSchemasReq_default_instance_;
class GetSchemasResp;
+class GetSchemasRespDefaultTypeInternal;
+extern GetSchemasRespDefaultTypeInternal _GetSchemasResp_default_instance_;
+class GetServerMetaReq;
+class GetServerMetaReqDefaultTypeInternal;
+extern GetServerMetaReqDefaultTypeInternal _GetServerMetaReq_default_instance_;
+class GetServerMetaResp;
+class GetServerMetaRespDefaultTypeInternal;
+extern GetServerMetaRespDefaultTypeInternal _GetServerMetaResp_default_instance_;
class GetTablesReq;
-class TableMetadata;
+class GetTablesReqDefaultTypeInternal;
+extern GetTablesReqDefaultTypeInternal _GetTablesReq_default_instance_;
class GetTablesResp;
-class GetColumnsReq;
-class ColumnMetadata;
-class GetColumnsResp;
-class CreatePreparedStatementReq;
-class ResultColumnMetadata;
-class PreparedStatementHandle;
+class GetTablesRespDefaultTypeInternal;
+extern GetTablesRespDefaultTypeInternal _GetTablesResp_default_instance_;
+class LikeFilter;
+class LikeFilterDefaultTypeInternal;
+extern LikeFilterDefaultTypeInternal _LikeFilter_default_instance_;
class PreparedStatement;
-class CreatePreparedStatementResp;
-class GetServerMetaReq;
-class ConvertSupport;
-class GetServerMetaResp;
-class ServerMeta;
+class PreparedStatementDefaultTypeInternal;
+extern PreparedStatementDefaultTypeInternal _PreparedStatement_default_instance_;
+class PreparedStatementHandle;
+class PreparedStatementHandleDefaultTypeInternal;
+extern PreparedStatementHandleDefaultTypeInternal _PreparedStatementHandle_default_instance_;
+class Property;
+class PropertyDefaultTypeInternal;
+extern PropertyDefaultTypeInternal _Property_default_instance_;
+class QueryPlanFragments;
+class QueryPlanFragmentsDefaultTypeInternal;
+extern QueryPlanFragmentsDefaultTypeInternal _QueryPlanFragments_default_instance_;
+class RequestResults;
+class RequestResultsDefaultTypeInternal;
+extern RequestResultsDefaultTypeInternal _RequestResults_default_instance_;
+class ResultColumnMetadata;
+class ResultColumnMetadataDefaultTypeInternal;
+extern ResultColumnMetadataDefaultTypeInternal _ResultColumnMetadata_default_instance_;
+class RpcEndpointInfos;
+class RpcEndpointInfosDefaultTypeInternal;
+extern RpcEndpointInfosDefaultTypeInternal _RpcEndpointInfos_default_instance_;
class RunQuery;
+class RunQueryDefaultTypeInternal;
+extern RunQueryDefaultTypeInternal _RunQuery_default_instance_;
+class SchemaMetadata;
+class SchemaMetadataDefaultTypeInternal;
+extern SchemaMetadataDefaultTypeInternal _SchemaMetadata_default_instance_;
+class ServerMeta;
+class ServerMetaDefaultTypeInternal;
+extern ServerMetaDefaultTypeInternal _ServerMeta_default_instance_;
+class TableMetadata;
+class TableMetadataDefaultTypeInternal;
+extern TableMetadataDefaultTypeInternal _TableMetadata_default_instance_;
+class UserProperties;
+class UserPropertiesDefaultTypeInternal;
+extern UserPropertiesDefaultTypeInternal _UserProperties_default_instance_;
+class UserToBitHandshake;
+class UserToBitHandshakeDefaultTypeInternal;
+extern UserToBitHandshakeDefaultTypeInternal _UserToBitHandshake_default_instance_;
+} // namespace user
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::user::BitToUserHandshake* Arena::CreateMaybeMessage<::exec::user::BitToUserHandshake>(Arena*);
+template<> ::exec::user::CatalogMetadata* Arena::CreateMaybeMessage<::exec::user::CatalogMetadata>(Arena*);
+template<> ::exec::user::ColumnMetadata* Arena::CreateMaybeMessage<::exec::user::ColumnMetadata>(Arena*);
+template<> ::exec::user::ConvertSupport* Arena::CreateMaybeMessage<::exec::user::ConvertSupport>(Arena*);
+template<> ::exec::user::CreatePreparedStatementReq* Arena::CreateMaybeMessage<::exec::user::CreatePreparedStatementReq>(Arena*);
+template<> ::exec::user::CreatePreparedStatementResp* Arena::CreateMaybeMessage<::exec::user::CreatePreparedStatementResp>(Arena*);
+template<> ::exec::user::GetCatalogsReq* Arena::CreateMaybeMessage<::exec::user::GetCatalogsReq>(Arena*);
+template<> ::exec::user::GetCatalogsResp* Arena::CreateMaybeMessage<::exec::user::GetCatalogsResp>(Arena*);
+template<> ::exec::user::GetColumnsReq* Arena::CreateMaybeMessage<::exec::user::GetColumnsReq>(Arena*);
+template<> ::exec::user::GetColumnsResp* Arena::CreateMaybeMessage<::exec::user::GetColumnsResp>(Arena*);
+template<> ::exec::user::GetQueryPlanFragments* Arena::CreateMaybeMessage<::exec::user::GetQueryPlanFragments>(Arena*);
+template<> ::exec::user::GetSchemasReq* Arena::CreateMaybeMessage<::exec::user::GetSchemasReq>(Arena*);
+template<> ::exec::user::GetSchemasResp* Arena::CreateMaybeMessage<::exec::user::GetSchemasResp>(Arena*);
+template<> ::exec::user::GetServerMetaReq* Arena::CreateMaybeMessage<::exec::user::GetServerMetaReq>(Arena*);
+template<> ::exec::user::GetServerMetaResp* Arena::CreateMaybeMessage<::exec::user::GetServerMetaResp>(Arena*);
+template<> ::exec::user::GetTablesReq* Arena::CreateMaybeMessage<::exec::user::GetTablesReq>(Arena*);
+template<> ::exec::user::GetTablesResp* Arena::CreateMaybeMessage<::exec::user::GetTablesResp>(Arena*);
+template<> ::exec::user::LikeFilter* Arena::CreateMaybeMessage<::exec::user::LikeFilter>(Arena*);
+template<> ::exec::user::PreparedStatement* Arena::CreateMaybeMessage<::exec::user::PreparedStatement>(Arena*);
+template<> ::exec::user::PreparedStatementHandle* Arena::CreateMaybeMessage<::exec::user::PreparedStatementHandle>(Arena*);
+template<> ::exec::user::Property* Arena::CreateMaybeMessage<::exec::user::Property>(Arena*);
+template<> ::exec::user::QueryPlanFragments* Arena::CreateMaybeMessage<::exec::user::QueryPlanFragments>(Arena*);
+template<> ::exec::user::RequestResults* Arena::CreateMaybeMessage<::exec::user::RequestResults>(Arena*);
+template<> ::exec::user::ResultColumnMetadata* Arena::CreateMaybeMessage<::exec::user::ResultColumnMetadata>(Arena*);
+template<> ::exec::user::RpcEndpointInfos* Arena::CreateMaybeMessage<::exec::user::RpcEndpointInfos>(Arena*);
+template<> ::exec::user::RunQuery* Arena::CreateMaybeMessage<::exec::user::RunQuery>(Arena*);
+template<> ::exec::user::SchemaMetadata* Arena::CreateMaybeMessage<::exec::user::SchemaMetadata>(Arena*);
+template<> ::exec::user::ServerMeta* Arena::CreateMaybeMessage<::exec::user::ServerMeta>(Arena*);
+template<> ::exec::user::TableMetadata* Arena::CreateMaybeMessage<::exec::user::TableMetadata>(Arena*);
+template<> ::exec::user::UserProperties* Arena::CreateMaybeMessage<::exec::user::UserProperties>(Arena*);
+template<> ::exec::user::UserToBitHandshake* Arena::CreateMaybeMessage<::exec::user::UserToBitHandshake>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace user {
enum RpcType {
HANDSHAKE = 0,
@@ -466,7 +580,7 @@ inline bool UnionSupport_Parse(
}
// ===================================================================
-class Property : public ::google::protobuf::Message {
+class Property : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.Property) */ {
public:
Property();
virtual ~Property();
@@ -477,98 +591,139 @@ class Property : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Property(Property&& from) noexcept
+ : Property() {
+ *this = ::std::move(from);
+ }
+ inline Property& operator=(Property&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Property& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Property* internal_default_instance() {
+ return reinterpret_cast<const Property*>(
+ &_Property_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(Property* other);
+ friend void swap(Property& a, Property& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Property* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Property* New() const final {
+ return CreateMaybeMessage<Property>(NULL);
+ }
+
+ Property* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Property>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Property& from);
void MergeFrom(const Property& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Property* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string key = 1;
- inline bool has_key() const;
- inline void clear_key();
+ bool has_key() const;
+ void clear_key();
static const int kKeyFieldNumber = 1;
- inline const ::std::string& key() const;
- inline void set_key(const ::std::string& value);
- inline void set_key(const char* value);
- inline void set_key(const char* value, size_t size);
- inline ::std::string* mutable_key();
- inline ::std::string* release_key();
- inline void set_allocated_key(::std::string* key);
+ const ::std::string& key() const;
+ void set_key(const ::std::string& value);
+ #if LANG_CXX11
+ void set_key(::std::string&& value);
+ #endif
+ void set_key(const char* value);
+ void set_key(const char* value, size_t size);
+ ::std::string* mutable_key();
+ ::std::string* release_key();
+ void set_allocated_key(::std::string* key);
// required string value = 2;
- inline bool has_value() const;
- inline void clear_value();
+ bool has_value() const;
+ void clear_value();
static const int kValueFieldNumber = 2;
- inline const ::std::string& value() const;
- inline void set_value(const ::std::string& value);
- inline void set_value(const char* value);
- inline void set_value(const char* value, size_t size);
- inline ::std::string* mutable_value();
- inline ::std::string* release_value();
- inline void set_allocated_value(::std::string* value);
+ const ::std::string& value() const;
+ void set_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_value(::std::string&& value);
+ #endif
+ void set_value(const char* value);
+ void set_value(const char* value, size_t size);
+ ::std::string* mutable_value();
+ ::std::string* release_value();
+ void set_allocated_value(::std::string* value);
// @@protoc_insertion_point(class_scope:exec.user.Property)
private:
- inline void set_has_key();
- inline void clear_has_key();
- inline void set_has_value();
- inline void clear_has_value();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* key_;
- ::std::string* value_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static Property* default_instance_;
+ void set_has_key();
+ void clear_has_key();
+ void set_has_value();
+ void clear_has_value();
+
+ // helper for ByteSizeLong()
+ size_t RequiredFieldsByteSizeFallback() const;
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr key_;
+ ::google::protobuf::internal::ArenaStringPtr value_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class UserProperties : public ::google::protobuf::Message {
+class UserProperties : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.UserProperties) */ {
public:
UserProperties();
virtual ~UserProperties();
@@ -579,81 +734,113 @@ class UserProperties : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ UserProperties(UserProperties&& from) noexcept
+ : UserProperties() {
+ *this = ::std::move(from);
+ }
+ inline UserProperties& operator=(UserProperties&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const UserProperties& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UserProperties* internal_default_instance() {
+ return reinterpret_cast<const UserProperties*>(
+ &_UserProperties_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(UserProperties* other);
+ friend void swap(UserProperties& a, UserProperties& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- UserProperties* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline UserProperties* New() const final {
+ return CreateMaybeMessage<UserProperties>(NULL);
+ }
+
+ UserProperties* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<UserProperties>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const UserProperties& from);
void MergeFrom(const UserProperties& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(UserProperties* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.user.Property properties = 1;
- inline int properties_size() const;
- inline void clear_properties();
+ int properties_size() const;
+ void clear_properties();
static const int kPropertiesFieldNumber = 1;
- inline const ::exec::user::Property& properties(int index) const;
- inline ::exec::user::Property* mutable_properties(int index);
- inline ::exec::user::Property* add_properties();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::Property >&
- properties() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::Property >*
+ ::exec::user::Property* mutable_properties(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::Property >*
mutable_properties();
+ const ::exec::user::Property& properties(int index) const;
+ ::exec::user::Property* add_properties();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::Property >&
+ properties() const;
// @@protoc_insertion_point(class_scope:exec.user.UserProperties)
private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::Property > properties_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static UserProperties* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RpcEndpointInfos : public ::google::protobuf::Message {
+class RpcEndpointInfos : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.RpcEndpointInfos) */ {
public:
RpcEndpointInfos();
virtual ~RpcEndpointInfos();
@@ -664,168 +851,212 @@ class RpcEndpointInfos : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RpcEndpointInfos(RpcEndpointInfos&& from) noexcept
+ : RpcEndpointInfos() {
+ *this = ::std::move(from);
+ }
+ inline RpcEndpointInfos& operator=(RpcEndpointInfos&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RpcEndpointInfos& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RpcEndpointInfos* internal_default_instance() {
+ return reinterpret_cast<const RpcEndpointInfos*>(
+ &_RpcEndpointInfos_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(RpcEndpointInfos* other);
+ friend void swap(RpcEndpointInfos& a, RpcEndpointInfos& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RpcEndpointInfos* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RpcEndpointInfos* New() const final {
+ return CreateMaybeMessage<RpcEndpointInfos>(NULL);
+ }
+
+ RpcEndpointInfos* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RpcEndpointInfos>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RpcEndpointInfos& from);
void MergeFrom(const RpcEndpointInfos& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RpcEndpointInfos* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string name = 1;
- inline bool has_name() const;
- inline void clear_name();
+ bool has_name() const;
+ void clear_name();
static const int kNameFieldNumber = 1;
- inline const ::std::string& name() const;
- inline void set_name(const ::std::string& value);
- inline void set_name(const char* value);
- inline void set_name(const char* value, size_t size);
- inline ::std::string* mutable_name();
- inline ::std::string* release_name();
- inline void set_allocated_name(::std::string* name);
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
// optional string version = 2;
- inline bool has_version() const;
- inline void clear_version();
+ bool has_version() const;
+ void clear_version();
static const int kVersionFieldNumber = 2;
- inline const ::std::string& version() const;
- inline void set_version(const ::std::string& value);
- inline void set_version(const char* value);
- inline void set_version(const char* value, size_t size);
- inline ::std::string* mutable_version();
- inline ::std::string* release_version();
- inline void set_allocated_version(::std::string* version);
+ const ::std::string& version() const;
+ void set_version(const ::std::string& value);
+ #if LANG_CXX11
+ void set_version(::std::string&& value);
+ #endif
+ void set_version(const char* value);
+ void set_version(const char* value, size_t size);
+ ::std::string* mutable_version();
+ ::std::string* release_version();
+ void set_allocated_version(::std::string* version);
+
+ // optional string application = 6;
+ bool has_application() const;
+ void clear_application();
+ static const int kApplicationFieldNumber = 6;
+ const ::std::string& application() const;
+ void set_application(const ::std::string& value);
+ #if LANG_CXX11
+ void set_application(::std::string&& value);
+ #endif
+ void set_application(const char* value);
+ void set_application(const char* value, size_t size);
+ ::std::string* mutable_application();
+ ::std::string* release_application();
+ void set_allocated_application(::std::string* application);
+
+ // optional string versionQualifier = 8;
+ bool has_versionqualifier() const;
+ void clear_versionqualifier();
+ static const int kVersionQualifierFieldNumber = 8;
+ const ::std::string& versionqualifier() const;
+ void set_versionqualifier(const ::std::string& value);
+ #if LANG_CXX11
+ void set_versionqualifier(::std::string&& value);
+ #endif
+ void set_versionqualifier(const char* value);
+ void set_versionqualifier(const char* value, size_t size);
+ ::std::string* mutable_versionqualifier();
+ ::std::string* release_versionqualifier();
+ void set_allocated_versionqualifier(::std::string* versionqualifier);
// optional uint32 majorVersion = 3;
- inline bool has_majorversion() const;
- inline void clear_majorversion();
+ bool has_majorversion() const;
+ void clear_majorversion();
static const int kMajorVersionFieldNumber = 3;
- inline ::google::protobuf::uint32 majorversion() const;
- inline void set_majorversion(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 majorversion() const;
+ void set_majorversion(::google::protobuf::uint32 value);
// optional uint32 minorVersion = 4;
- inline bool has_minorversion() const;
- inline void clear_minorversion();
+ bool has_minorversion() const;
+ void clear_minorversion();
static const int kMinorVersionFieldNumber = 4;
- inline ::google::protobuf::uint32 minorversion() const;
- inline void set_minorversion(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 minorversion() const;
+ void set_minorversion(::google::protobuf::uint32 value);
// optional uint32 patchVersion = 5;
- inline bool has_patchversion() const;
- inline void clear_patchversion();
+ bool has_patchversion() const;
+ void clear_patchversion();
static const int kPatchVersionFieldNumber = 5;
- inline ::google::protobuf::uint32 patchversion() const;
- inline void set_patchversion(::google::protobuf::uint32 value);
-
- // optional string application = 6;
- inline bool has_application() const;
- inline void clear_application();
- static const int kApplicationFieldNumber = 6;
- inline const ::std::string& application() const;
- inline void set_application(const ::std::string& value);
- inline void set_application(const char* value);
- inline void set_application(const char* value, size_t size);
- inline ::std::string* mutable_application();
- inline ::std::string* release_application();
- inline void set_allocated_application(::std::string* application);
+ ::google::protobuf::uint32 patchversion() const;
+ void set_patchversion(::google::protobuf::uint32 value);
// optional uint32 buildNumber = 7;
- inline bool has_buildnumber() const;
- inline void clear_buildnumber();
+ bool has_buildnumber() const;
+ void clear_buildnumber();
static const int kBuildNumberFieldNumber = 7;
- inline ::google::protobuf::uint32 buildnumber() const;
- inline void set_buildnumber(::google::protobuf::uint32 value);
-
- // optional string versionQualifier = 8;
- inline bool has_versionqualifier() const;
- inline void clear_versionqualifier();
- static const int kVersionQualifierFieldNumber = 8;
- inline const ::std::string& versionqualifier() const;
- inline void set_versionqualifier(const ::std::string& value);
- inline void set_versionqualifier(const char* value);
- inline void set_versionqualifier(const char* value, size_t size);
- inline ::std::string* mutable_versionqualifier();
- inline ::std::string* release_versionqualifier();
- inline void set_allocated_versionqualifier(::std::string* versionqualifier);
+ ::google::protobuf::uint32 buildnumber() const;
+ void set_buildnumber(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:exec.user.RpcEndpointInfos)
private:
- inline void set_has_name();
- inline void clear_has_name();
- inline void set_has_version();
- inline void clear_has_version();
- inline void set_has_majorversion();
- inline void clear_has_majorversion();
- inline void set_has_minorversion();
- inline void clear_has_minorversion();
- inline void set_has_patchversion();
- inline void clear_has_patchversion();
- inline void set_has_application();
- inline void clear_has_application();
- inline void set_has_buildnumber();
- inline void clear_has_buildnumber();
- inline void set_has_versionqualifier();
- inline void clear_has_versionqualifier();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* name_;
- ::std::string* version_;
+ void set_has_name();
+ void clear_has_name();
+ void set_has_version();
+ void clear_has_version();
+ void set_has_majorversion();
+ void clear_has_majorversion();
+ void set_has_minorversion();
+ void clear_has_minorversion();
+ void set_has_patchversion();
+ void clear_has_patchversion();
+ void set_has_application();
+ void clear_has_application();
+ void set_has_buildnumber();
+ void clear_has_buildnumber();
+ void set_has_versionqualifier();
+ void clear_has_versionqualifier();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ ::google::protobuf::internal::ArenaStringPtr version_;
+ ::google::protobuf::internal::ArenaStringPtr application_;
+ ::google::protobuf::internal::ArenaStringPtr versionqualifier_;
::google::protobuf::uint32 majorversion_;
::google::protobuf::uint32 minorversion_;
- ::std::string* application_;
::google::protobuf::uint32 patchversion_;
::google::protobuf::uint32 buildnumber_;
- ::std::string* versionqualifier_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static RpcEndpointInfos* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class UserToBitHandshake : public ::google::protobuf::Message {
+class UserToBitHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.UserToBitHandshake) */ {
public:
UserToBitHandshake();
virtual ~UserToBitHandshake();
@@ -836,164 +1067,205 @@ class UserToBitHandshake : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ UserToBitHandshake(UserToBitHandshake&& from) noexcept
+ : UserToBitHandshake() {
+ *this = ::std::move(from);
+ }
+ inline UserToBitHandshake& operator=(UserToBitHandshake&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const UserToBitHandshake& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UserToBitHandshake* internal_default_instance() {
+ return reinterpret_cast<const UserToBitHandshake*>(
+ &_UserToBitHandshake_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 3;
+
void Swap(UserToBitHandshake* other);
+ friend void swap(UserToBitHandshake& a, UserToBitHandshake& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- UserToBitHandshake* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline UserToBitHandshake* New() const final {
+ return CreateMaybeMessage<UserToBitHandshake>(NULL);
+ }
+
+ UserToBitHandshake* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<UserToBitHandshake>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const UserToBitHandshake& from);
void MergeFrom(const UserToBitHandshake& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(UserToBitHandshake* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.shared.RpcChannel channel = 1 [default = USER];
- inline bool has_channel() const;
- inline void clear_channel();
- static const int kChannelFieldNumber = 1;
- inline ::exec::shared::RpcChannel channel() const;
- inline void set_channel(::exec::shared::RpcChannel value);
-
- // optional bool support_listening = 2;
- inline bool has_support_listening() const;
- inline void clear_support_listening();
- static const int kSupportListeningFieldNumber = 2;
- inline bool support_listening() const;
- inline void set_support_listening(bool value);
-
- // optional int32 rpc_version = 3;
- inline bool has_rpc_version() const;
- inline void clear_rpc_version();
- static const int kRpcVersionFieldNumber = 3;
- inline ::google::protobuf::int32 rpc_version() const;
- inline void set_rpc_version(::google::protobuf::int32 value);
-
// optional .exec.shared.UserCredentials credentials = 4;
- inline bool has_credentials() const;
- inline void clear_credentials();
+ bool has_credentials() const;
+ void clear_credentials();
static const int kCredentialsFieldNumber = 4;
- inline const ::exec::shared::UserCredentials& credentials() const;
- inline ::exec::shared::UserCredentials* mutable_credentials();
- inline ::exec::shared::UserCredentials* release_credentials();
- inline void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
+ private:
+ const ::exec::shared::UserCredentials& _internal_credentials() const;
+ public:
+ const ::exec::shared::UserCredentials& credentials() const;
+ ::exec::shared::UserCredentials* release_credentials();
+ ::exec::shared::UserCredentials* mutable_credentials();
+ void set_allocated_credentials(::exec::shared::UserCredentials* credentials);
// optional .exec.user.UserProperties properties = 5;
- inline bool has_properties() const;
- inline void clear_properties();
+ bool has_properties() const;
+ void clear_properties();
static const int kPropertiesFieldNumber = 5;
- inline const ::exec::user::UserProperties& properties() const;
- inline ::exec::user::UserProperties* mutable_properties();
- inline ::exec::user::UserProperties* release_properties();
- inline void set_allocated_properties(::exec::user::UserProperties* properties);
+ private:
+ const ::exec::user::UserProperties& _internal_properties() const;
+ public:
+ const ::exec::user::UserProperties& properties() const;
+ ::exec::user::UserProperties* release_properties();
+ ::exec::user::UserProperties* mutable_properties();
+ void set_allocated_properties(::exec::user::UserProperties* properties);
+
+ // optional .exec.user.RpcEndpointInfos client_infos = 8;
+ bool has_client_infos() const;
+ void clear_client_infos();
+ static const int kClientInfosFieldNumber = 8;
+ private:
+ const ::exec::user::RpcEndpointInfos& _internal_client_infos() const;
+ public:
+ const ::exec::user::RpcEndpointInfos& client_infos() const;
+ ::exec::user::RpcEndpointInfos* release_client_infos();
+ ::exec::user::RpcEndpointInfos* mutable_client_infos();
+ void set_allocated_client_infos(::exec::user::RpcEndpointInfos* client_infos);
+
+ // optional int32 rpc_version = 3;
+ bool has_rpc_version() const;
+ void clear_rpc_version();
+ static const int kRpcVersionFieldNumber = 3;
+ ::google::protobuf::int32 rpc_version() const;
+ void set_rpc_version(::google::protobuf::int32 value);
+
+ // optional bool support_listening = 2;
+ bool has_support_listening() const;
+ void clear_support_listening();
+ static const int kSupportListeningFieldNumber = 2;
+ bool support_listening() const;
+ void set_support_listening(bool value);
// optional bool support_complex_types = 6 [default = false];
- inline bool has_support_complex_types() const;
- inline void clear_support_complex_types();
+ bool has_support_complex_types() const;
+ void clear_support_complex_types();
static const int kSupportComplexTypesFieldNumber = 6;
- inline bool support_complex_types() const;
- inline void set_support_complex_types(bool value);
+ bool support_complex_types() const;
+ void set_support_complex_types(bool value);
// optional bool support_timeout = 7 [default = false];
- inline bool has_support_timeout() const;
- inline void clear_support_timeout();
+ bool has_support_timeout() const;
+ void clear_support_timeout();
static const int kSupportTimeoutFieldNumber = 7;
- inline bool support_timeout() const;
- inline void set_support_timeout(bool value);
-
- // optional .exec.user.RpcEndpointInfos client_infos = 8;
- inline bool has_client_infos() const;
- inline void clear_client_infos();
- static const int kClientInfosFieldNumber = 8;
- inline const ::exec::user::RpcEndpointInfos& client_infos() const;
- inline ::exec::user::RpcEndpointInfos* mutable_client_infos();
- inline ::exec::user::RpcEndpointInfos* release_client_infos();
- inline void set_allocated_client_infos(::exec::user::RpcEndpointInfos* client_infos);
+ bool support_timeout() const;
+ void set_support_timeout(bool value);
// optional .exec.user.SaslSupport sasl_support = 9;
- inline bool has_sasl_support() const;
- inline void clear_sasl_support();
+ bool has_sasl_support() const;
+ void clear_sasl_support();
static const int kSaslSupportFieldNumber = 9;
- inline ::exec::user::SaslSupport sasl_support() const;
- inline void set_sasl_support(::exec::user::SaslSupport value);
+ ::exec::user::SaslSupport sasl_support() const;
+ void set_sasl_support(::exec::user::SaslSupport value);
+
+ // optional .exec.shared.RpcChannel channel = 1 [default = USER];
+ bool has_channel() const;
+ void clear_channel();
+ static const int kChannelFieldNumber = 1;
+ ::exec::shared::RpcChannel channel() const;
+ void set_channel(::exec::shared::RpcChannel value);
// @@protoc_insertion_point(class_scope:exec.user.UserToBitHandshake)
private:
- inline void set_has_channel();
- inline void clear_has_channel();
- inline void set_has_support_listening();
- inline void clear_has_support_listening();
- inline void set_has_rpc_version();
- inline void clear_has_rpc_version();
- inline void set_has_credentials();
- inline void clear_has_credentials();
- inline void set_has_properties();
- inline void clear_has_properties();
- inline void set_has_support_complex_types();
- inline void clear_has_support_complex_types();
- inline void set_has_support_timeout();
- inline void clear_has_support_timeout();
- inline void set_has_client_infos();
- inline void clear_has_client_infos();
- inline void set_has_sasl_support();
- inline void clear_has_sasl_support();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- int channel_;
- ::google::protobuf::int32 rpc_version_;
+ void set_has_channel();
+ void clear_has_channel();
+ void set_has_support_listening();
+ void clear_has_support_listening();
+ void set_has_rpc_version();
+ void clear_has_rpc_version();
+ void set_has_credentials();
+ void clear_has_credentials();
+ void set_has_properties();
+ void clear_has_properties();
+ void set_has_support_complex_types();
+ void clear_has_support_complex_types();
+ void set_has_support_timeout();
+ void clear_has_support_timeout();
+ void set_has_client_infos();
+ void clear_has_client_infos();
+ void set_has_sasl_support();
+ void clear_has_sasl_support();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::shared::UserCredentials* credentials_;
::exec::user::UserProperties* properties_;
+ ::exec::user::RpcEndpointInfos* client_infos_;
+ ::google::protobuf::int32 rpc_version_;
bool support_listening_;
bool support_complex_types_;
bool support_timeout_;
int sasl_support_;
- ::exec::user::RpcEndpointInfos* client_infos_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static UserToBitHandshake* default_instance_;
+ int channel_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RequestResults : public ::google::protobuf::Message {
+class RequestResults : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.RequestResults) */ {
public:
RequestResults();
virtual ~RequestResults();
@@ -1004,90 +1276,125 @@ class RequestResults : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RequestResults(RequestResults&& from) noexcept
+ : RequestResults() {
+ *this = ::std::move(from);
+ }
+ inline RequestResults& operator=(RequestResults&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RequestResults& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RequestResults* internal_default_instance() {
+ return reinterpret_cast<const RequestResults*>(
+ &_RequestResults_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 4;
+
void Swap(RequestResults* other);
+ friend void swap(RequestResults& a, RequestResults& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RequestResults* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RequestResults* New() const final {
+ return CreateMaybeMessage<RequestResults>(NULL);
+ }
+
+ RequestResults* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RequestResults>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RequestResults& from);
void MergeFrom(const RequestResults& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RequestResults* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.shared.QueryId query_id = 1;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
// optional int32 maximum_responses = 2;
- inline bool has_maximum_responses() const;
- inline void clear_maximum_responses();
+ bool has_maximum_responses() const;
+ void clear_maximum_responses();
static const int kMaximumResponsesFieldNumber = 2;
- inline ::google::protobuf::int32 maximum_responses() const;
- inline void set_maximum_responses(::google::protobuf::int32 value);
+ ::google::protobuf::int32 maximum_responses() const;
+ void set_maximum_responses(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.user.RequestResults)
private:
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_maximum_responses();
- inline void clear_has_maximum_responses();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_maximum_responses();
+ void clear_has_maximum_responses();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::shared::QueryId* query_id_;
::google::protobuf::int32 maximum_responses_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static RequestResults* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetQueryPlanFragments : public ::google::protobuf::Message {
+class GetQueryPlanFragments : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetQueryPlanFragments) */ {
public:
GetQueryPlanFragments();
virtual ~GetQueryPlanFragments();
@@ -1098,103 +1405,138 @@ class GetQueryPlanFragments : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetQueryPlanFragments(GetQueryPlanFragments&& from) noexcept
+ : GetQueryPlanFragments() {
+ *this = ::std::move(from);
+ }
+ inline GetQueryPlanFragments& operator=(GetQueryPlanFragments&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetQueryPlanFragments& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetQueryPlanFragments* internal_default_instance() {
+ return reinterpret_cast<const GetQueryPlanFragments*>(
+ &_GetQueryPlanFragments_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 5;
+
void Swap(GetQueryPlanFragments* other);
+ friend void swap(GetQueryPlanFragments& a, GetQueryPlanFragments& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetQueryPlanFragments* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetQueryPlanFragments* New() const final {
+ return CreateMaybeMessage<GetQueryPlanFragments>(NULL);
+ }
+
+ GetQueryPlanFragments* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetQueryPlanFragments>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetQueryPlanFragments& from);
void MergeFrom(const GetQueryPlanFragments& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetQueryPlanFragments* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string query = 1;
- inline bool has_query() const;
- inline void clear_query();
+ bool has_query() const;
+ void clear_query();
static const int kQueryFieldNumber = 1;
- inline const ::std::string& query() const;
- inline void set_query(const ::std::string& value);
- inline void set_query(const char* value);
- inline void set_query(const char* value, size_t size);
- inline ::std::string* mutable_query();
- inline ::std::string* release_query();
- inline void set_allocated_query(::std::string* query);
-
- // optional .exec.shared.QueryType type = 2;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 2;
- inline ::exec::shared::QueryType type() const;
- inline void set_type(::exec::shared::QueryType value);
+ const ::std::string& query() const;
+ void set_query(const ::std::string& value);
+ #if LANG_CXX11
+ void set_query(::std::string&& value);
+ #endif
+ void set_query(const char* value);
+ void set_query(const char* value, size_t size);
+ ::std::string* mutable_query();
+ ::std::string* release_query();
+ void set_allocated_query(::std::string* query);
// optional bool split_plan = 3 [default = false];
- inline bool has_split_plan() const;
- inline void clear_split_plan();
+ bool has_split_plan() const;
+ void clear_split_plan();
static const int kSplitPlanFieldNumber = 3;
- inline bool split_plan() const;
- inline void set_split_plan(bool value);
+ bool split_plan() const;
+ void set_split_plan(bool value);
+
+ // optional .exec.shared.QueryType type = 2;
+ bool has_type() const;
+ void clear_type();
+ static const int kTypeFieldNumber = 2;
+ ::exec::shared::QueryType type() const;
+ void set_type(::exec::shared::QueryType value);
// @@protoc_insertion_point(class_scope:exec.user.GetQueryPlanFragments)
private:
- inline void set_has_query();
- inline void clear_has_query();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_split_plan();
- inline void clear_has_split_plan();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* query_;
- int type_;
+ void set_has_query();
+ void clear_has_query();
+ void set_has_type();
+ void clear_has_type();
+ void set_has_split_plan();
+ void clear_has_split_plan();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr query_;
bool split_plan_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetQueryPlanFragments* default_instance_;
+ int type_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryPlanFragments : public ::google::protobuf::Message {
+class QueryPlanFragments : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.QueryPlanFragments) */ {
public:
QueryPlanFragments();
virtual ~QueryPlanFragments();
@@ -1205,115 +1547,153 @@ class QueryPlanFragments : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryPlanFragments(QueryPlanFragments&& from) noexcept
+ : QueryPlanFragments() {
+ *this = ::std::move(from);
+ }
+ inline QueryPlanFragments& operator=(QueryPlanFragments&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryPlanFragments& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryPlanFragments* internal_default_instance() {
+ return reinterpret_cast<const QueryPlanFragments*>(
+ &_QueryPlanFragments_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 6;
+
void Swap(QueryPlanFragments* other);
+ friend void swap(QueryPlanFragments& a, QueryPlanFragments& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryPlanFragments* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryPlanFragments* New() const final {
+ return CreateMaybeMessage<QueryPlanFragments>(NULL);
+ }
+
+ QueryPlanFragments* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryPlanFragments>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryPlanFragments& from);
void MergeFrom(const QueryPlanFragments& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryPlanFragments* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // required .exec.shared.QueryResult.QueryState status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::shared::QueryResult_QueryState status() const;
- inline void set_status(::exec::shared::QueryResult_QueryState value);
-
- // optional .exec.shared.QueryId query_id = 2;
- inline bool has_query_id() const;
- inline void clear_query_id();
- static const int kQueryIdFieldNumber = 2;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
-
// repeated .exec.bit.control.PlanFragment fragments = 3;
- inline int fragments_size() const;
- inline void clear_fragments();
+ int fragments_size() const;
+ void clear_fragments();
static const int kFragmentsFieldNumber = 3;
- inline const ::exec::bit::control::PlanFragment& fragments(int index) const;
- inline ::exec::bit::control::PlanFragment* mutable_fragments(int index);
- inline ::exec::bit::control::PlanFragment* add_fragments();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
- fragments() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+ ::exec::bit::control::PlanFragment* mutable_fragments(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
mutable_fragments();
+ const ::exec::bit::control::PlanFragment& fragments(int index) const;
+ ::exec::bit::control::PlanFragment* add_fragments();
+ const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
+ fragments() const;
+
+ // optional .exec.shared.QueryId query_id = 2;
+ bool has_query_id() const;
+ void clear_query_id();
+ static const int kQueryIdFieldNumber = 2;
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
// optional .exec.shared.DrillPBError error = 4;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 4;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // required .exec.shared.QueryResult.QueryState status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::shared::QueryResult_QueryState status() const;
+ void set_status(::exec::shared::QueryResult_QueryState value);
// @@protoc_insertion_point(class_scope:exec.user.QueryPlanFragments)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::exec::shared::QueryId* query_id_;
+ void set_has_status();
+ void clear_has_status();
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment > fragments_;
+ ::exec::shared::QueryId* query_id_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static QueryPlanFragments* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class BitToUserHandshake : public ::google::protobuf::Message {
+class BitToUserHandshake : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.BitToUserHandshake) */ {
public:
BitToUserHandshake();
virtual ~BitToUserHandshake();
@@ -1324,178 +1704,225 @@ class BitToUserHandshake : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ BitToUserHandshake(BitToUserHandshake&& from) noexcept
+ : BitToUserHandshake() {
+ *this = ::std::move(from);
+ }
+ inline BitToUserHandshake& operator=(BitToUserHandshake&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const BitToUserHandshake& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BitToUserHandshake* internal_default_instance() {
+ return reinterpret_cast<const BitToUserHandshake*>(
+ &_BitToUserHandshake_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 7;
+
void Swap(BitToUserHandshake* other);
+ friend void swap(BitToUserHandshake& a, BitToUserHandshake& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- BitToUserHandshake* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline BitToUserHandshake* New() const final {
+ return CreateMaybeMessage<BitToUserHandshake>(NULL);
+ }
+
+ BitToUserHandshake* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<BitToUserHandshake>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const BitToUserHandshake& from);
void MergeFrom(const BitToUserHandshake& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(BitToUserHandshake* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 rpc_version = 2;
- inline bool has_rpc_version() const;
- inline void clear_rpc_version();
- static const int kRpcVersionFieldNumber = 2;
- inline ::google::protobuf::int32 rpc_version() const;
- inline void set_rpc_version(::google::protobuf::int32 value);
+ // repeated string authenticationMechanisms = 7;
+ int authenticationmechanisms_size() const;
+ void clear_authenticationmechanisms();
+ static const int kAuthenticationMechanismsFieldNumber = 7;
+ const ::std::string& authenticationmechanisms(int index) const;
+ ::std::string* mutable_authenticationmechanisms(int index);
+ void set_authenticationmechanisms(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_authenticationmechanisms(int index, ::std::string&& value);
+ #endif
+ void set_authenticationmechanisms(int index, const char* value);
+ void set_authenticationmechanisms(int index, const char* value, size_t size);
+ ::std::string* add_authenticationmechanisms();
+ void add_authenticationmechanisms(const ::std::string& value);
+ #if LANG_CXX11
+ void add_authenticationmechanisms(::std::string&& value);
+ #endif
+ void add_authenticationmechanisms(const char* value);
+ void add_authenticationmechanisms(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
- // optional .exec.user.HandshakeStatus status = 3;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 3;
- inline ::exec::user::HandshakeStatus status() const;
- inline void set_status(::exec::user::HandshakeStatus value);
+ // repeated .exec.user.RpcType supported_methods = 8;
+ int supported_methods_size() const;
+ void clear_supported_methods();
+ static const int kSupportedMethodsFieldNumber = 8;
+ ::exec::user::RpcType supported_methods(int index) const;
+ void set_supported_methods(int index, ::exec::user::RpcType value);
+ void add_supported_methods(::exec::user::RpcType value);
+ const ::google::protobuf::RepeatedField<int>& supported_methods() const;
+ ::google::protobuf::RepeatedField<int>* mutable_supported_methods();
// optional string errorId = 4;
- inline bool has_errorid() const;
- inline void clear_errorid();
+ bool has_errorid() const;
+ void clear_errorid();
static const int kErrorIdFieldNumber = 4;
- inline const ::std::string& errorid() const;
- inline void set_errorid(const ::std::string& value);
- inline void set_errorid(const char* value);
- inline void set_errorid(const char* value, size_t size);
- inline ::std::string* mutable_errorid();
- inline ::std::string* release_errorid();
- inline void set_allocated_errorid(::std::string* errorid);
+ const ::std::string& errorid() const;
+ void set_errorid(const ::std::string& value);
+ #if LANG_CXX11
+ void set_errorid(::std::string&& value);
+ #endif
+ void set_errorid(const char* value);
+ void set_errorid(const char* value, size_t size);
+ ::std::string* mutable_errorid();
+ ::std::string* release_errorid();
+ void set_allocated_errorid(::std::string* errorid);
// optional string errorMessage = 5;
- inline bool has_errormessage() const;
- inline void clear_errormessage();
+ bool has_errormessage() const;
+ void clear_errormessage();
static const int kErrorMessageFieldNumber = 5;
- inline const ::std::string& errormessage() const;
- inline void set_errormessage(const ::std::string& value);
- inline void set_errormessage(const char* value);
- inline void set_errormessage(const char* value, size_t size);
- inline ::std::string* mutable_errormessage();
- inline ::std::string* release_errormessage();
- inline void set_allocated_errormessage(::std::string* errormessage);
+ const ::std::string& errormessage() const;
+ void set_errormessage(const ::std::string& value);
+ #if LANG_CXX11
+ void set_errormessage(::std::string&& value);
+ #endif
+ void set_errormessage(const char* value);
+ void set_errormessage(const char* value, size_t size);
+ ::std::string* mutable_errormessage();
+ ::std::string* release_errormessage();
+ void set_allocated_errormessage(::std::string* errormessage);
// optional .exec.user.RpcEndpointInfos server_infos = 6;
- inline bool has_server_infos() const;
- inline void clear_server_infos();
+ bool has_server_infos() const;
+ void clear_server_infos();
static const int kServerInfosFieldNumber = 6;
- inline const ::exec::user::RpcEndpointInfos& server_infos() const;
- inline ::exec::user::RpcEndpointInfos* mutable_server_infos();
- inline ::exec::user::RpcEndpointInfos* release_server_infos();
- inline void set_allocated_server_infos(::exec::user::RpcEndpointInfos* server_infos);
-
- // repeated string authenticationMechanisms = 7;
- inline int authenticationmechanisms_size() const;
- inline void clear_authenticationmechanisms();
- static const int kAuthenticationMechanismsFieldNumber = 7;
- inline const ::std::string& authenticationmechanisms(int index) const;
- inline ::std::string* mutable_authenticationmechanisms(int index);
- inline void set_authenticationmechanisms(int index, const ::std::string& value);
- inline void set_authenticationmechanisms(int index, const char* value);
- inline void set_authenticationmechanisms(int index, const char* value, size_t size);
- inline ::std::string* add_authenticationmechanisms();
- inline void add_authenticationmechanisms(const ::std::string& value);
- inline void add_authenticationmechanisms(const char* value);
- inline void add_authenticationmechanisms(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& authenticationmechanisms() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_authenticationmechanisms();
+ private:
+ const ::exec::user::RpcEndpointInfos& _internal_server_infos() const;
+ public:
+ const ::exec::user::RpcEndpointInfos& server_infos() const;
+ ::exec::user::RpcEndpointInfos* release_server_infos();
+ ::exec::user::RpcEndpointInfos* mutable_server_infos();
+ void set_allocated_server_infos(::exec::user::RpcEndpointInfos* server_infos);
- // repeated .exec.user.RpcType supported_methods = 8;
- inline int supported_methods_size() const;
- inline void clear_supported_methods();
- static const int kSupportedMethodsFieldNumber = 8;
- inline ::exec::user::RpcType supported_methods(int index) const;
- inline void set_supported_methods(int index, ::exec::user::RpcType value);
- inline void add_supported_methods(::exec::user::RpcType value);
- inline const ::google::protobuf::RepeatedField<int>& supported_methods() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_supported_methods();
+ // optional int32 rpc_version = 2;
+ bool has_rpc_version() const;
+ void clear_rpc_version();
+ static const int kRpcVersionFieldNumber = 2;
+ ::google::protobuf::int32 rpc_version() const;
+ void set_rpc_version(::google::protobuf::int32 value);
// optional bool encrypted = 9;
- inline bool has_encrypted() const;
- inline void clear_encrypted();
+ bool has_encrypted() const;
+ void clear_encrypted();
static const int kEncryptedFieldNumber = 9;
- inline bool encrypted() const;
- inline void set_encrypted(bool value);
+ bool encrypted() const;
+ void set_encrypted(bool value);
// optional int32 maxWrappedSize = 10;
- inline bool has_maxwrappedsize() const;
- inline void clear_maxwrappedsize();
+ bool has_maxwrappedsize() const;
+ void clear_maxwrappedsize();
static const int kMaxWrappedSizeFieldNumber = 10;
- inline ::google::protobuf::int32 maxwrappedsize() const;
- inline void set_maxwrappedsize(::google::protobuf::int32 value);
+ ::google::protobuf::int32 maxwrappedsize() const;
+ void set_maxwrappedsize(::google::protobuf::int32 value);
+
+ // optional .exec.user.HandshakeStatus status = 3;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 3;
+ ::exec::user::HandshakeStatus status() const;
+ void set_status(::exec::user::HandshakeStatus value);
// @@protoc_insertion_point(class_scope:exec.user.BitToUserHandshake)
private:
- inline void set_has_rpc_version();
- inline void clear_has_rpc_version();
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_errorid();
- inline void clear_has_errorid();
- inline void set_has_errormessage();
- inline void clear_has_errormessage();
- inline void set_has_server_infos();
- inline void clear_has_server_infos();
- inline void set_has_encrypted();
- inline void clear_has_encrypted();
- inline void set_has_maxwrappedsize();
- inline void clear_has_maxwrappedsize();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::google::protobuf::int32 rpc_version_;
- int status_;
- ::std::string* errorid_;
- ::std::string* errormessage_;
- ::exec::user::RpcEndpointInfos* server_infos_;
+ void set_has_rpc_version();
+ void clear_has_rpc_version();
+ void set_has_status();
+ void clear_has_status();
+ void set_has_errorid();
+ void clear_has_errorid();
+ void set_has_errormessage();
+ void clear_has_errormessage();
+ void set_has_server_infos();
+ void clear_has_server_infos();
+ void set_has_encrypted();
+ void clear_has_encrypted();
+ void set_has_maxwrappedsize();
+ void clear_has_maxwrappedsize();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::std::string> authenticationmechanisms_;
::google::protobuf::RepeatedField<int> supported_methods_;
+ ::google::protobuf::internal::ArenaStringPtr errorid_;
+ ::google::protobuf::internal::ArenaStringPtr errormessage_;
+ ::exec::user::RpcEndpointInfos* server_infos_;
+ ::google::protobuf::int32 rpc_version_;
bool encrypted_;
::google::protobuf::int32 maxwrappedsize_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static BitToUserHandshake* default_instance_;
+ int status_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class LikeFilter : public ::google::protobuf::Message {
+class LikeFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.LikeFilter) */ {
public:
LikeFilter();
virtual ~LikeFilter();
@@ -1506,98 +1933,136 @@ class LikeFilter : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ LikeFilter(LikeFilter&& from) noexcept
+ : LikeFilter() {
+ *this = ::std::move(from);
+ }
+ inline LikeFilter& operator=(LikeFilter&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const LikeFilter& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LikeFilter* internal_default_instance() {
+ return reinterpret_cast<const LikeFilter*>(
+ &_LikeFilter_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 8;
+
void Swap(LikeFilter* other);
+ friend void swap(LikeFilter& a, LikeFilter& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- LikeFilter* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline LikeFilter* New() const final {
+ return CreateMaybeMessage<LikeFilter>(NULL);
+ }
+
+ LikeFilter* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<LikeFilter>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const LikeFilter& from);
void MergeFrom(const LikeFilter& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(LikeFilter* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string pattern = 1;
- inline bool has_pattern() const;
- inline void clear_pattern();
+ bool has_pattern() const;
+ void clear_pattern();
static const int kPatternFieldNumber = 1;
- inline const ::std::string& pattern() const;
- inline void set_pattern(const ::std::string& value);
- inline void set_pattern(const char* value);
- inline void set_pattern(const char* value, size_t size);
- inline ::std::string* mutable_pattern();
- inline ::std::string* release_pattern();
- inline void set_allocated_pattern(::std::string* pattern);
+ const ::std::string& pattern() const;
+ void set_pattern(const ::std::string& value);
+ #if LANG_CXX11
+ void set_pattern(::std::string&& value);
+ #endif
+ void set_pattern(const char* value);
+ void set_pattern(const char* value, size_t size);
+ ::std::string* mutable_pattern();
+ ::std::string* release_pattern();
+ void set_allocated_pattern(::std::string* pattern);
// optional string escape = 2;
- inline bool has_escape() const;
- inline void clear_escape();
+ bool has_escape() const;
+ void clear_escape();
static const int kEscapeFieldNumber = 2;
- inline const ::std::string& escape() const;
- inline void set_escape(const ::std::string& value);
- inline void set_escape(const char* value);
- inline void set_escape(const char* value, size_t size);
- inline ::std::string* mutable_escape();
- inline ::std::string* release_escape();
- inline void set_allocated_escape(::std::string* escape);
+ const ::std::string& escape() const;
+ void set_escape(const ::std::string& value);
+ #if LANG_CXX11
+ void set_escape(::std::string&& value);
+ #endif
+ void set_escape(const char* value);
+ void set_escape(const char* value, size_t size);
+ ::std::string* mutable_escape();
+ ::std::string* release_escape();
+ void set_allocated_escape(::std::string* escape);
// @@protoc_insertion_point(class_scope:exec.user.LikeFilter)
private:
- inline void set_has_pattern();
- inline void clear_has_pattern();
- inline void set_has_escape();
- inline void clear_has_escape();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* pattern_;
- ::std::string* escape_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static LikeFilter* default_instance_;
+ void set_has_pattern();
+ void clear_has_pattern();
+ void set_has_escape();
+ void clear_has_escape();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr pattern_;
+ ::google::protobuf::internal::ArenaStringPtr escape_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetCatalogsReq : public ::google::protobuf::Message {
+class GetCatalogsReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetCatalogsReq) */ {
public:
GetCatalogsReq();
virtual ~GetCatalogsReq();
@@ -1608,80 +2073,115 @@ class GetCatalogsReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetCatalogsReq(GetCatalogsReq&& from) noexcept
+ : GetCatalogsReq() {
+ *this = ::std::move(from);
+ }
+ inline GetCatalogsReq& operator=(GetCatalogsReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetCatalogsReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetCatalogsReq* internal_default_instance() {
+ return reinterpret_cast<const GetCatalogsReq*>(
+ &_GetCatalogsReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 9;
+
void Swap(GetCatalogsReq* other);
+ friend void swap(GetCatalogsReq& a, GetCatalogsReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetCatalogsReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetCatalogsReq* New() const final {
+ return CreateMaybeMessage<GetCatalogsReq>(NULL);
+ }
+
+ GetCatalogsReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetCatalogsReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetCatalogsReq& from);
void MergeFrom(const GetCatalogsReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetCatalogsReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- inline bool has_catalog_name_filter() const;
- inline void clear_catalog_name_filter();
+ bool has_catalog_name_filter() const;
+ void clear_catalog_name_filter();
static const int kCatalogNameFilterFieldNumber = 1;
- inline const ::exec::user::LikeFilter& catalog_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_catalog_name_filter();
- inline ::exec::user::LikeFilter* release_catalog_name_filter();
- inline void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_catalog_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& catalog_name_filter() const;
+ ::exec::user::LikeFilter* release_catalog_name_filter();
+ ::exec::user::LikeFilter* mutable_catalog_name_filter();
+ void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
// @@protoc_insertion_point(class_scope:exec.user.GetCatalogsReq)
private:
- inline void set_has_catalog_name_filter();
- inline void clear_has_catalog_name_filter();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_catalog_name_filter();
+ void clear_has_catalog_name_filter();
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::user::LikeFilter* catalog_name_filter_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetCatalogsReq* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class CatalogMetadata : public ::google::protobuf::Message {
+class CatalogMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.CatalogMetadata) */ {
public:
CatalogMetadata();
virtual ~CatalogMetadata();
@@ -1692,113 +2192,154 @@ class CatalogMetadata : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ CatalogMetadata(CatalogMetadata&& from) noexcept
+ : CatalogMetadata() {
+ *this = ::std::move(from);
+ }
+ inline CatalogMetadata& operator=(CatalogMetadata&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const CatalogMetadata& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CatalogMetadata* internal_default_instance() {
+ return reinterpret_cast<const CatalogMetadata*>(
+ &_CatalogMetadata_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 10;
+
void Swap(CatalogMetadata* other);
+ friend void swap(CatalogMetadata& a, CatalogMetadata& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- CatalogMetadata* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline CatalogMetadata* New() const final {
+ return CreateMaybeMessage<CatalogMetadata>(NULL);
+ }
+
+ CatalogMetadata* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<CatalogMetadata>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const CatalogMetadata& from);
void MergeFrom(const CatalogMetadata& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(CatalogMetadata* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string catalog_name = 1;
- inline bool has_catalog_name() const;
- inline void clear_catalog_name();
+ bool has_catalog_name() const;
+ void clear_catalog_name();
static const int kCatalogNameFieldNumber = 1;
- inline const ::std::string& catalog_name() const;
- inline void set_catalog_name(const ::std::string& value);
- inline void set_catalog_name(const char* value);
- inline void set_catalog_name(const char* value, size_t size);
- inline ::std::string* mutable_catalog_name();
- inline ::std::string* release_catalog_name();
- inline void set_allocated_catalog_name(::std::string* catalog_name);
+ const ::std::string& catalog_name() const;
+ void set_catalog_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_name(::std::string&& value);
+ #endif
+ void set_catalog_name(const char* value);
+ void set_catalog_name(const char* value, size_t size);
+ ::std::string* mutable_catalog_name();
+ ::std::string* release_catalog_name();
+ void set_allocated_catalog_name(::std::string* catalog_name);
// optional string description = 2;
- inline bool has_description() const;
- inline void clear_description();
+ bool has_description() const;
+ void clear_description();
static const int kDescriptionFieldNumber = 2;
- inline const ::std::string& description() const;
- inline void set_description(const ::std::string& value);
- inline void set_description(const char* value);
- inline void set_description(const char* value, size_t size);
- inline ::std::string* mutable_description();
- inline ::std::string* release_description();
- inline void set_allocated_description(::std::string* description);
+ const ::std::string& description() const;
+ void set_description(const ::std::string& value);
+ #if LANG_CXX11
+ void set_description(::std::string&& value);
+ #endif
+ void set_description(const char* value);
+ void set_description(const char* value, size_t size);
+ ::std::string* mutable_description();
+ ::std::string* release_description();
+ void set_allocated_description(::std::string* description);
// optional string connect = 3;
- inline bool has_connect() const;
- inline void clear_connect();
+ bool has_connect() const;
+ void clear_connect();
static const int kConnectFieldNumber = 3;
- inline const ::std::string& connect() const;
- inline void set_connect(const ::std::string& value);
- inline void set_connect(const char* value);
- inline void set_connect(const char* value, size_t size);
- inline ::std::string* mutable_connect();
- inline ::std::string* release_connect();
- inline void set_allocated_connect(::std::string* connect);
+ const ::std::string& connect() const;
+ void set_connect(const ::std::string& value);
+ #if LANG_CXX11
+ void set_connect(::std::string&& value);
+ #endif
+ void set_connect(const char* value);
+ void set_connect(const char* value, size_t size);
+ ::std::string* mutable_connect();
+ ::std::string* release_connect();
+ void set_allocated_connect(::std::string* connect);
// @@protoc_insertion_point(class_scope:exec.user.CatalogMetadata)
private:
- inline void set_has_catalog_name();
- inline void clear_has_catalog_name();
- inline void set_has_description();
- inline void clear_has_description();
- inline void set_has_connect();
- inline void clear_has_connect();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_name_;
- ::std::string* description_;
- ::std::string* connect_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static CatalogMetadata* default_instance_;
+ void set_has_catalog_name();
+ void clear_has_catalog_name();
+ void set_has_description();
+ void clear_has_description();
+ void set_has_connect();
+ void clear_has_connect();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_name_;
+ ::google::protobuf::internal::ArenaStringPtr description_;
+ ::google::protobuf::internal::ArenaStringPtr connect_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetCatalogsResp : public ::google::protobuf::Message {
+class GetCatalogsResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetCatalogsResp) */ {
public:
GetCatalogsResp();
virtual ~GetCatalogsResp();
@@ -1809,103 +2350,138 @@ class GetCatalogsResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetCatalogsResp(GetCatalogsResp&& from) noexcept
+ : GetCatalogsResp() {
+ *this = ::std::move(from);
+ }
+ inline GetCatalogsResp& operator=(GetCatalogsResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetCatalogsResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetCatalogsResp* internal_default_instance() {
+ return reinterpret_cast<const GetCatalogsResp*>(
+ &_GetCatalogsResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 11;
+
void Swap(GetCatalogsResp* other);
+ friend void swap(GetCatalogsResp& a, GetCatalogsResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetCatalogsResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetCatalogsResp* New() const final {
+ return CreateMaybeMessage<GetCatalogsResp>(NULL);
+ }
+
+ GetCatalogsResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetCatalogsResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetCatalogsResp& from);
void MergeFrom(const GetCatalogsResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetCatalogsResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// repeated .exec.user.CatalogMetadata catalogs = 2;
- inline int catalogs_size() const;
- inline void clear_catalogs();
+ int catalogs_size() const;
+ void clear_catalogs();
static const int kCatalogsFieldNumber = 2;
- inline const ::exec::user::CatalogMetadata& catalogs(int index) const;
- inline ::exec::user::CatalogMetadata* mutable_catalogs(int index);
- inline ::exec::user::CatalogMetadata* add_catalogs();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >&
- catalogs() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >*
+ ::exec::user::CatalogMetadata* mutable_catalogs(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >*
mutable_catalogs();
+ const ::exec::user::CatalogMetadata& catalogs(int index) const;
+ ::exec::user::CatalogMetadata* add_catalogs();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >&
+ catalogs() const;
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.GetCatalogsResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata > catalogs_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetCatalogsResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetSchemasReq : public ::google::protobuf::Message {
+class GetSchemasReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetSchemasReq) */ {
public:
GetSchemasReq();
virtual ~GetSchemasReq();
@@ -1916,92 +2492,130 @@ class GetSchemasReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetSchemasReq(GetSchemasReq&& from) noexcept
+ : GetSchemasReq() {
+ *this = ::std::move(from);
+ }
+ inline GetSchemasReq& operator=(GetSchemasReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetSchemasReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetSchemasReq* internal_default_instance() {
+ return reinterpret_cast<const GetSchemasReq*>(
+ &_GetSchemasReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 12;
+
void Swap(GetSchemasReq* other);
+ friend void swap(GetSchemasReq& a, GetSchemasReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetSchemasReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetSchemasReq* New() const final {
+ return CreateMaybeMessage<GetSchemasReq>(NULL);
+ }
+
+ GetSchemasReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetSchemasReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetSchemasReq& from);
void MergeFrom(const GetSchemasReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetSchemasReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- inline bool has_catalog_name_filter() const;
- inline void clear_catalog_name_filter();
+ bool has_catalog_name_filter() const;
+ void clear_catalog_name_filter();
static const int kCatalogNameFilterFieldNumber = 1;
- inline const ::exec::user::LikeFilter& catalog_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_catalog_name_filter();
- inline ::exec::user::LikeFilter* release_catalog_name_filter();
- inline void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_catalog_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& catalog_name_filter() const;
+ ::exec::user::LikeFilter* release_catalog_name_filter();
+ ::exec::user::LikeFilter* mutable_catalog_name_filter();
+ void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
// optional .exec.user.LikeFilter schema_name_filter = 2;
- inline bool has_schema_name_filter() const;
- inline void clear_schema_name_filter();
+ bool has_schema_name_filter() const;
+ void clear_schema_name_filter();
static const int kSchemaNameFilterFieldNumber = 2;
- inline const ::exec::user::LikeFilter& schema_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_schema_name_filter();
- inline ::exec::user::LikeFilter* release_schema_name_filter();
- inline void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_schema_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& schema_name_filter() const;
+ ::exec::user::LikeFilter* release_schema_name_filter();
+ ::exec::user::LikeFilter* mutable_schema_name_filter();
+ void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
// @@protoc_insertion_point(class_scope:exec.user.GetSchemasReq)
private:
- inline void set_has_catalog_name_filter();
- inline void clear_has_catalog_name_filter();
- inline void set_has_schema_name_filter();
- inline void clear_has_schema_name_filter();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_catalog_name_filter();
+ void clear_has_catalog_name_filter();
+ void set_has_schema_name_filter();
+ void clear_has_schema_name_filter();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::user::LikeFilter* catalog_name_filter_;
::exec::user::LikeFilter* schema_name_filter_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetSchemasReq* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class SchemaMetadata : public ::google::protobuf::Message {
+class SchemaMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.SchemaMetadata) */ {
public:
SchemaMetadata();
virtual ~SchemaMetadata();
@@ -2012,143 +2626,190 @@ class SchemaMetadata : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ SchemaMetadata(SchemaMetadata&& from) noexcept
+ : SchemaMetadata() {
+ *this = ::std::move(from);
+ }
+ inline SchemaMetadata& operator=(SchemaMetadata&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const SchemaMetadata& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const SchemaMetadata* internal_default_instance() {
+ return reinterpret_cast<const SchemaMetadata*>(
+ &_SchemaMetadata_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 13;
+
void Swap(SchemaMetadata* other);
+ friend void swap(SchemaMetadata& a, SchemaMetadata& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- SchemaMetadata* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline SchemaMetadata* New() const final {
+ return CreateMaybeMessage<SchemaMetadata>(NULL);
+ }
+
+ SchemaMetadata* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<SchemaMetadata>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const SchemaMetadata& from);
void MergeFrom(const SchemaMetadata& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(SchemaMetadata* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string catalog_name = 1;
- inline bool has_catalog_name() const;
- inline void clear_catalog_name();
+ bool has_catalog_name() const;
+ void clear_catalog_name();
static const int kCatalogNameFieldNumber = 1;
- inline const ::std::string& catalog_name() const;
- inline void set_catalog_name(const ::std::string& value);
- inline void set_catalog_name(const char* value);
- inline void set_catalog_name(const char* value, size_t size);
- inline ::std::string* mutable_catalog_name();
- inline ::std::string* release_catalog_name();
- inline void set_allocated_catalog_name(::std::string* catalog_name);
+ const ::std::string& catalog_name() const;
+ void set_catalog_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_name(::std::string&& value);
+ #endif
+ void set_catalog_name(const char* value);
+ void set_catalog_name(const char* value, size_t size);
+ ::std::string* mutable_catalog_name();
+ ::std::string* release_catalog_name();
+ void set_allocated_catalog_name(::std::string* catalog_name);
// optional string schema_name = 2;
- inline bool has_schema_name() const;
- inline void clear_schema_name();
+ bool has_schema_name() const;
+ void clear_schema_name();
static const int kSchemaNameFieldNumber = 2;
- inline const ::std::string& schema_name() const;
- inline void set_schema_name(const ::std::string& value);
- inline void set_schema_name(const char* value);
- inline void set_schema_name(const char* value, size_t size);
- inline ::std::string* mutable_schema_name();
- inline ::std::string* release_schema_name();
- inline void set_allocated_schema_name(::std::string* schema_name);
+ const ::std::string& schema_name() const;
+ void set_schema_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_schema_name(::std::string&& value);
+ #endif
+ void set_schema_name(const char* value);
+ void set_schema_name(const char* value, size_t size);
+ ::std::string* mutable_schema_name();
+ ::std::string* release_schema_name();
+ void set_allocated_schema_name(::std::string* schema_name);
// optional string owner = 3;
- inline bool has_owner() const;
- inline void clear_owner();
+ bool has_owner() const;
+ void clear_owner();
static const int kOwnerFieldNumber = 3;
- inline const ::std::string& owner() const;
- inline void set_owner(const ::std::string& value);
- inline void set_owner(const char* value);
- inline void set_owner(const char* value, size_t size);
- inline ::std::string* mutable_owner();
- inline ::std::string* release_owner();
- inline void set_allocated_owner(::std::string* owner);
+ const ::std::string& owner() const;
+ void set_owner(const ::std::string& value);
+ #if LANG_CXX11
+ void set_owner(::std::string&& value);
+ #endif
+ void set_owner(const char* value);
+ void set_owner(const char* value, size_t size);
+ ::std::string* mutable_owner();
+ ::std::string* release_owner();
+ void set_allocated_owner(::std::string* owner);
// optional string type = 4;
- inline bool has_type() const;
- inline void clear_type();
+ bool has_type() const;
+ void clear_type();
static const int kTypeFieldNumber = 4;
- inline const ::std::string& type() const;
- inline void set_type(const ::std::string& value);
- inline void set_type(const char* value);
- inline void set_type(const char* value, size_t size);
- inline ::std::string* mutable_type();
- inline ::std::string* release_type();
- inline void set_allocated_type(::std::string* type);
+ const ::std::string& type() const;
+ void set_type(const ::std::string& value);
+ #if LANG_CXX11
+ void set_type(::std::string&& value);
+ #endif
+ void set_type(const char* value);
+ void set_type(const char* value, size_t size);
+ ::std::string* mutable_type();
+ ::std::string* release_type();
+ void set_allocated_type(::std::string* type);
// optional string mutable = 5;
- inline bool has_mutable_() const;
- inline void clear_mutable_();
+ bool has_mutable_() const;
+ void clear_mutable_();
static const int kMutableFieldNumber = 5;
- inline const ::std::string& mutable_() const;
- inline void set_mutable_(const ::std::string& value);
- inline void set_mutable_(const char* value);
- inline void set_mutable_(const char* value, size_t size);
- inline ::std::string* mutable_mutable_();
- inline ::std::string* release_mutable_();
- inline void set_allocated_mutable_(::std::string* mutable_);
+ const ::std::string& mutable_() const;
+ void set_mutable_(const ::std::string& value);
+ #if LANG_CXX11
+ void set_mutable_(::std::string&& value);
+ #endif
+ void set_mutable_(const char* value);
+ void set_mutable_(const char* value, size_t size);
+ ::std::string* mutable_mutable_();
+ ::std::string* release_mutable_();
+ void set_allocated_mutable_(::std::string* mutable_);
// @@protoc_insertion_point(class_scope:exec.user.SchemaMetadata)
private:
- inline void set_has_catalog_name();
- inline void clear_has_catalog_name();
- inline void set_has_schema_name();
- inline void clear_has_schema_name();
- inline void set_has_owner();
- inline void clear_has_owner();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_mutable_();
- inline void clear_has_mutable_();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_name_;
- ::std::string* schema_name_;
- ::std::string* owner_;
- ::std::string* type_;
- ::std::string* mutable__;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static SchemaMetadata* default_instance_;
+ void set_has_catalog_name();
+ void clear_has_catalog_name();
+ void set_has_schema_name();
+ void clear_has_schema_name();
+ void set_has_owner();
+ void clear_has_owner();
+ void set_has_type();
+ void clear_has_type();
+ void set_has_mutable_();
+ void clear_has_mutable_();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_name_;
+ ::google::protobuf::internal::ArenaStringPtr schema_name_;
+ ::google::protobuf::internal::ArenaStringPtr owner_;
+ ::google::protobuf::internal::ArenaStringPtr type_;
+ ::google::protobuf::internal::ArenaStringPtr mutable__;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetSchemasResp : public ::google::protobuf::Message {
+class GetSchemasResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetSchemasResp) */ {
public:
GetSchemasResp();
virtual ~GetSchemasResp();
@@ -2159,103 +2820,138 @@ class GetSchemasResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetSchemasResp(GetSchemasResp&& from) noexcept
+ : GetSchemasResp() {
+ *this = ::std::move(from);
+ }
+ inline GetSchemasResp& operator=(GetSchemasResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetSchemasResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetSchemasResp* internal_default_instance() {
+ return reinterpret_cast<const GetSchemasResp*>(
+ &_GetSchemasResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 14;
+
void Swap(GetSchemasResp* other);
+ friend void swap(GetSchemasResp& a, GetSchemasResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetSchemasResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetSchemasResp* New() const final {
+ return CreateMaybeMessage<GetSchemasResp>(NULL);
+ }
+
+ GetSchemasResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetSchemasResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetSchemasResp& from);
void MergeFrom(const GetSchemasResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetSchemasResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// repeated .exec.user.SchemaMetadata schemas = 2;
- inline int schemas_size() const;
- inline void clear_schemas();
+ int schemas_size() const;
+ void clear_schemas();
static const int kSchemasFieldNumber = 2;
- inline const ::exec::user::SchemaMetadata& schemas(int index) const;
- inline ::exec::user::SchemaMetadata* mutable_schemas(int index);
- inline ::exec::user::SchemaMetadata* add_schemas();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >&
- schemas() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >*
+ ::exec::user::SchemaMetadata* mutable_schemas(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >*
mutable_schemas();
+ const ::exec::user::SchemaMetadata& schemas(int index) const;
+ ::exec::user::SchemaMetadata* add_schemas();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >&
+ schemas() const;
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.GetSchemasResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata > schemas_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetSchemasResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetTablesReq : public ::google::protobuf::Message {
+class GetTablesReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetTablesReq) */ {
public:
GetTablesReq();
virtual ~GetTablesReq();
@@ -2266,121 +2962,168 @@ class GetTablesReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetTablesReq(GetTablesReq&& from) noexcept
+ : GetTablesReq() {
+ *this = ::std::move(from);
+ }
+ inline GetTablesReq& operator=(GetTablesReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetTablesReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetTablesReq* internal_default_instance() {
+ return reinterpret_cast<const GetTablesReq*>(
+ &_GetTablesReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 15;
+
void Swap(GetTablesReq* other);
+ friend void swap(GetTablesReq& a, GetTablesReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetTablesReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetTablesReq* New() const final {
+ return CreateMaybeMessage<GetTablesReq>(NULL);
+ }
+
+ GetTablesReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetTablesReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetTablesReq& from);
void MergeFrom(const GetTablesReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetTablesReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated string table_type_filter = 4;
+ int table_type_filter_size() const;
+ void clear_table_type_filter();
+ static const int kTableTypeFilterFieldNumber = 4;
+ const ::std::string& table_type_filter(int index) const;
+ ::std::string* mutable_table_type_filter(int index);
+ void set_table_type_filter(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_table_type_filter(int index, ::std::string&& value);
+ #endif
+ void set_table_type_filter(int index, const char* value);
+ void set_table_type_filter(int index, const char* value, size_t size);
+ ::std::string* add_table_type_filter();
+ void add_table_type_filter(const ::std::string& value);
+ #if LANG_CXX11
+ void add_table_type_filter(::std::string&& value);
+ #endif
+ void add_table_type_filter(const char* value);
+ void add_table_type_filter(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& table_type_filter() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_table_type_filter();
+
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- inline bool has_catalog_name_filter() const;
- inline void clear_catalog_name_filter();
+ bool has_catalog_name_filter() const;
+ void clear_catalog_name_filter();
static const int kCatalogNameFilterFieldNumber = 1;
- inline const ::exec::user::LikeFilter& catalog_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_catalog_name_filter();
- inline ::exec::user::LikeFilter* release_catalog_name_filter();
- inline void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_catalog_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& catalog_name_filter() const;
+ ::exec::user::LikeFilter* release_catalog_name_filter();
+ ::exec::user::LikeFilter* mutable_catalog_name_filter();
+ void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
// optional .exec.user.LikeFilter schema_name_filter = 2;
- inline bool has_schema_name_filter() const;
- inline void clear_schema_name_filter();
+ bool has_schema_name_filter() const;
+ void clear_schema_name_filter();
static const int kSchemaNameFilterFieldNumber = 2;
- inline const ::exec::user::LikeFilter& schema_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_schema_name_filter();
- inline ::exec::user::LikeFilter* release_schema_name_filter();
- inline void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_schema_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& schema_name_filter() const;
+ ::exec::user::LikeFilter* release_schema_name_filter();
+ ::exec::user::LikeFilter* mutable_schema_name_filter();
+ void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
// optional .exec.user.LikeFilter table_name_filter = 3;
- inline bool has_table_name_filter() const;
- inline void clear_table_name_filter();
+ bool has_table_name_filter() const;
+ void clear_table_name_filter();
static const int kTableNameFilterFieldNumber = 3;
- inline const ::exec::user::LikeFilter& table_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_table_name_filter();
- inline ::exec::user::LikeFilter* release_table_name_filter();
- inline void set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter);
-
- // repeated string table_type_filter = 4;
- inline int table_type_filter_size() const;
- inline void clear_table_type_filter();
- static const int kTableTypeFilterFieldNumber = 4;
- inline const ::std::string& table_type_filter(int index) const;
- inline ::std::string* mutable_table_type_filter(int index);
- inline void set_table_type_filter(int index, const ::std::string& value);
- inline void set_table_type_filter(int index, const char* value);
- inline void set_table_type_filter(int index, const char* value, size_t size);
- inline ::std::string* add_table_type_filter();
- inline void add_table_type_filter(const ::std::string& value);
- inline void add_table_type_filter(const char* value);
- inline void add_table_type_filter(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& table_type_filter() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_table_type_filter();
+ private:
+ const ::exec::user::LikeFilter& _internal_table_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& table_name_filter() const;
+ ::exec::user::LikeFilter* release_table_name_filter();
+ ::exec::user::LikeFilter* mutable_table_name_filter();
+ void set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter);
// @@protoc_insertion_point(class_scope:exec.user.GetTablesReq)
private:
- inline void set_has_catalog_name_filter();
- inline void clear_has_catalog_name_filter();
- inline void set_has_schema_name_filter();
- inline void clear_has_schema_name_filter();
- inline void set_has_table_name_filter();
- inline void clear_has_table_name_filter();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_catalog_name_filter();
+ void clear_has_catalog_name_filter();
+ void set_has_schema_name_filter();
+ void clear_has_schema_name_filter();
+ void set_has_table_name_filter();
+ void clear_has_table_name_filter();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> table_type_filter_;
::exec::user::LikeFilter* catalog_name_filter_;
::exec::user::LikeFilter* schema_name_filter_;
::exec::user::LikeFilter* table_name_filter_;
- ::google::protobuf::RepeatedPtrField< ::std::string> table_type_filter_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetTablesReq* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class TableMetadata : public ::google::protobuf::Message {
+class TableMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.TableMetadata) */ {
public:
TableMetadata();
virtual ~TableMetadata();
@@ -2391,128 +3134,172 @@ class TableMetadata : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ TableMetadata(TableMetadata&& from) noexcept
+ : TableMetadata() {
+ *this = ::std::move(from);
+ }
+ inline TableMetadata& operator=(TableMetadata&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const TableMetadata& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TableMetadata* internal_default_instance() {
+ return reinterpret_cast<const TableMetadata*>(
+ &_TableMetadata_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 16;
+
void Swap(TableMetadata* other);
+ friend void swap(TableMetadata& a, TableMetadata& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- TableMetadata* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline TableMetadata* New() const final {
+ return CreateMaybeMessage<TableMetadata>(NULL);
+ }
+
+ TableMetadata* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<TableMetadata>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const TableMetadata& from);
void MergeFrom(const TableMetadata& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(TableMetadata* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string catalog_name = 1;
- inline bool has_catalog_name() const;
- inline void clear_catalog_name();
+ bool has_catalog_name() const;
+ void clear_catalog_name();
static const int kCatalogNameFieldNumber = 1;
- inline const ::std::string& catalog_name() const;
- inline void set_catalog_name(const ::std::string& value);
- inline void set_catalog_name(const char* value);
- inline void set_catalog_name(const char* value, size_t size);
- inline ::std::string* mutable_catalog_name();
- inline ::std::string* release_catalog_name();
- inline void set_allocated_catalog_name(::std::string* catalog_name);
+ const ::std::string& catalog_name() const;
+ void set_catalog_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_name(::std::string&& value);
+ #endif
+ void set_catalog_name(const char* value);
+ void set_catalog_name(const char* value, size_t size);
+ ::std::string* mutable_catalog_name();
+ ::std::string* release_catalog_name();
+ void set_allocated_catalog_name(::std::string* catalog_name);
// optional string schema_name = 2;
- inline bool has_schema_name() const;
- inline void clear_schema_name();
+ bool has_schema_name() const;
+ void clear_schema_name();
static const int kSchemaNameFieldNumber = 2;
- inline const ::std::string& schema_name() const;
- inline void set_schema_name(const ::std::string& value);
- inline void set_schema_name(const char* value);
- inline void set_schema_name(const char* value, size_t size);
- inline ::std::string* mutable_schema_name();
- inline ::std::string* release_schema_name();
- inline void set_allocated_schema_name(::std::string* schema_name);
+ const ::std::string& schema_name() const;
+ void set_schema_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_schema_name(::std::string&& value);
+ #endif
+ void set_schema_name(const char* value);
+ void set_schema_name(const char* value, size_t size);
+ ::std::string* mutable_schema_name();
+ ::std::string* release_schema_name();
+ void set_allocated_schema_name(::std::string* schema_name);
// optional string table_name = 3;
- inline bool has_table_name() const;
- inline void clear_table_name();
+ bool has_table_name() const;
+ void clear_table_name();
static const int kTableNameFieldNumber = 3;
- inline const ::std::string& table_name() const;
- inline void set_table_name(const ::std::string& value);
- inline void set_table_name(const char* value);
- inline void set_table_name(const char* value, size_t size);
- inline ::std::string* mutable_table_name();
- inline ::std::string* release_table_name();
- inline void set_allocated_table_name(::std::string* table_name);
+ const ::std::string& table_name() const;
+ void set_table_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_table_name(::std::string&& value);
+ #endif
+ void set_table_name(const char* value);
+ void set_table_name(const char* value, size_t size);
+ ::std::string* mutable_table_name();
+ ::std::string* release_table_name();
+ void set_allocated_table_name(::std::string* table_name);
// optional string type = 4;
- inline bool has_type() const;
- inline void clear_type();
+ bool has_type() const;
+ void clear_type();
static const int kTypeFieldNumber = 4;
- inline const ::std::string& type() const;
- inline void set_type(const ::std::string& value);
- inline void set_type(const char* value);
- inline void set_type(const char* value, size_t size);
- inline ::std::string* mutable_type();
- inline ::std::string* release_type();
- inline void set_allocated_type(::std::string* type);
+ const ::std::string& type() const;
+ void set_type(const ::std::string& value);
+ #if LANG_CXX11
+ void set_type(::std::string&& value);
+ #endif
+ void set_type(const char* value);
+ void set_type(const char* value, size_t size);
+ ::std::string* mutable_type();
+ ::std::string* release_type();
+ void set_allocated_type(::std::string* type);
// @@protoc_insertion_point(class_scope:exec.user.TableMetadata)
private:
- inline void set_has_catalog_name();
- inline void clear_has_catalog_name();
- inline void set_has_schema_name();
- inline void clear_has_schema_name();
- inline void set_has_table_name();
- inline void clear_has_table_name();
- inline void set_has_type();
- inline void clear_has_type();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_name_;
- ::std::string* schema_name_;
- ::std::string* table_name_;
- ::std::string* type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static TableMetadata* default_instance_;
+ void set_has_catalog_name();
+ void clear_has_catalog_name();
+ void set_has_schema_name();
+ void clear_has_schema_name();
+ void set_has_table_name();
+ void clear_has_table_name();
+ void set_has_type();
+ void clear_has_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_name_;
+ ::google::protobuf::internal::ArenaStringPtr schema_name_;
+ ::google::protobuf::internal::ArenaStringPtr table_name_;
+ ::google::protobuf::internal::ArenaStringPtr type_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetTablesResp : public ::google::protobuf::Message {
+class GetTablesResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetTablesResp) */ {
public:
GetTablesResp();
virtual ~GetTablesResp();
@@ -2523,103 +3310,138 @@ class GetTablesResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetTablesResp(GetTablesResp&& from) noexcept
+ : GetTablesResp() {
+ *this = ::std::move(from);
+ }
+ inline GetTablesResp& operator=(GetTablesResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetTablesResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetTablesResp* internal_default_instance() {
+ return reinterpret_cast<const GetTablesResp*>(
+ &_GetTablesResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 17;
+
void Swap(GetTablesResp* other);
+ friend void swap(GetTablesResp& a, GetTablesResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetTablesResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetTablesResp* New() const final {
+ return CreateMaybeMessage<GetTablesResp>(NULL);
+ }
+
+ GetTablesResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetTablesResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetTablesResp& from);
void MergeFrom(const GetTablesResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetTablesResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// repeated .exec.user.TableMetadata tables = 2;
- inline int tables_size() const;
- inline void clear_tables();
+ int tables_size() const;
+ void clear_tables();
static const int kTablesFieldNumber = 2;
- inline const ::exec::user::TableMetadata& tables(int index) const;
- inline ::exec::user::TableMetadata* mutable_tables(int index);
- inline ::exec::user::TableMetadata* add_tables();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >&
- tables() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >*
+ ::exec::user::TableMetadata* mutable_tables(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >*
mutable_tables();
+ const ::exec::user::TableMetadata& tables(int index) const;
+ ::exec::user::TableMetadata* add_tables();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >&
+ tables() const;
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.GetTablesResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata > tables_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetTablesResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetColumnsReq : public ::google::protobuf::Message {
+class GetColumnsReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetColumnsReq) */ {
public:
GetColumnsReq();
virtual ~GetColumnsReq();
@@ -2630,116 +3452,160 @@ class GetColumnsReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetColumnsReq(GetColumnsReq&& from) noexcept
+ : GetColumnsReq() {
+ *this = ::std::move(from);
+ }
+ inline GetColumnsReq& operator=(GetColumnsReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetColumnsReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetColumnsReq* internal_default_instance() {
+ return reinterpret_cast<const GetColumnsReq*>(
+ &_GetColumnsReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 18;
+
void Swap(GetColumnsReq* other);
+ friend void swap(GetColumnsReq& a, GetColumnsReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetColumnsReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetColumnsReq* New() const final {
+ return CreateMaybeMessage<GetColumnsReq>(NULL);
+ }
+
+ GetColumnsReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetColumnsReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetColumnsReq& from);
void MergeFrom(const GetColumnsReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetColumnsReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.user.LikeFilter catalog_name_filter = 1;
- inline bool has_catalog_name_filter() const;
- inline void clear_catalog_name_filter();
+ bool has_catalog_name_filter() const;
+ void clear_catalog_name_filter();
static const int kCatalogNameFilterFieldNumber = 1;
- inline const ::exec::user::LikeFilter& catalog_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_catalog_name_filter();
- inline ::exec::user::LikeFilter* release_catalog_name_filter();
- inline void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_catalog_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& catalog_name_filter() const;
+ ::exec::user::LikeFilter* release_catalog_name_filter();
+ ::exec::user::LikeFilter* mutable_catalog_name_filter();
+ void set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter);
// optional .exec.user.LikeFilter schema_name_filter = 2;
- inline bool has_schema_name_filter() const;
- inline void clear_schema_name_filter();
+ bool has_schema_name_filter() const;
+ void clear_schema_name_filter();
static const int kSchemaNameFilterFieldNumber = 2;
- inline const ::exec::user::LikeFilter& schema_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_schema_name_filter();
- inline ::exec::user::LikeFilter* release_schema_name_filter();
- inline void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_schema_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& schema_name_filter() const;
+ ::exec::user::LikeFilter* release_schema_name_filter();
+ ::exec::user::LikeFilter* mutable_schema_name_filter();
+ void set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter);
// optional .exec.user.LikeFilter table_name_filter = 3;
- inline bool has_table_name_filter() const;
- inline void clear_table_name_filter();
+ bool has_table_name_filter() const;
+ void clear_table_name_filter();
static const int kTableNameFilterFieldNumber = 3;
- inline const ::exec::user::LikeFilter& table_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_table_name_filter();
- inline ::exec::user::LikeFilter* release_table_name_filter();
- inline void set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_table_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& table_name_filter() const;
+ ::exec::user::LikeFilter* release_table_name_filter();
+ ::exec::user::LikeFilter* mutable_table_name_filter();
+ void set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter);
// optional .exec.user.LikeFilter column_name_filter = 4;
- inline bool has_column_name_filter() const;
- inline void clear_column_name_filter();
+ bool has_column_name_filter() const;
+ void clear_column_name_filter();
static const int kColumnNameFilterFieldNumber = 4;
- inline const ::exec::user::LikeFilter& column_name_filter() const;
- inline ::exec::user::LikeFilter* mutable_column_name_filter();
- inline ::exec::user::LikeFilter* release_column_name_filter();
- inline void set_allocated_column_name_filter(::exec::user::LikeFilter* column_name_filter);
+ private:
+ const ::exec::user::LikeFilter& _internal_column_name_filter() const;
+ public:
+ const ::exec::user::LikeFilter& column_name_filter() const;
+ ::exec::user::LikeFilter* release_column_name_filter();
+ ::exec::user::LikeFilter* mutable_column_name_filter();
+ void set_allocated_column_name_filter(::exec::user::LikeFilter* column_name_filter);
// @@protoc_insertion_point(class_scope:exec.user.GetColumnsReq)
private:
- inline void set_has_catalog_name_filter();
- inline void clear_has_catalog_name_filter();
- inline void set_has_schema_name_filter();
- inline void clear_has_schema_name_filter();
- inline void set_has_table_name_filter();
- inline void clear_has_table_name_filter();
- inline void set_has_column_name_filter();
- inline void clear_has_column_name_filter();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_catalog_name_filter();
+ void clear_has_catalog_name_filter();
+ void set_has_schema_name_filter();
+ void clear_has_schema_name_filter();
+ void set_has_table_name_filter();
+ void clear_has_table_name_filter();
+ void set_has_column_name_filter();
+ void clear_has_column_name_filter();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::user::LikeFilter* catalog_name_filter_;
::exec::user::LikeFilter* schema_name_filter_;
::exec::user::LikeFilter* table_name_filter_;
::exec::user::LikeFilter* column_name_filter_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetColumnsReq* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ColumnMetadata : public ::google::protobuf::Message {
+class ColumnMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.ColumnMetadata) */ {
public:
ColumnMetadata();
virtual ~ColumnMetadata();
@@ -2750,273 +3616,326 @@ class ColumnMetadata : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ColumnMetadata(ColumnMetadata&& from) noexcept
+ : ColumnMetadata() {
+ *this = ::std::move(from);
+ }
+ inline ColumnMetadata& operator=(ColumnMetadata&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ColumnMetadata& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ColumnMetadata* internal_default_instance() {
+ return reinterpret_cast<const ColumnMetadata*>(
+ &_ColumnMetadata_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 19;
+
void Swap(ColumnMetadata* other);
+ friend void swap(ColumnMetadata& a, ColumnMetadata& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ColumnMetadata* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ColumnMetadata* New() const final {
+ return CreateMaybeMessage<ColumnMetadata>(NULL);
+ }
+
+ ColumnMetadata* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ColumnMetadata>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ColumnMetadata& from);
void MergeFrom(const ColumnMetadata& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ColumnMetadata* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string catalog_name = 1;
- inline bool has_catalog_name() const;
- inline void clear_catalog_name();
+ bool has_catalog_name() const;
+ void clear_catalog_name();
static const int kCatalogNameFieldNumber = 1;
- inline const ::std::string& catalog_name() const;
- inline void set_catalog_name(const ::std::string& value);
- inline void set_catalog_name(const char* value);
- inline void set_catalog_name(const char* value, size_t size);
- inline ::std::string* mutable_catalog_name();
- inline ::std::string* release_catalog_name();
- inline void set_allocated_catalog_name(::std::string* catalog_name);
+ const ::std::string& catalog_name() const;
+ void set_catalog_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_name(::std::string&& value);
+ #endif
+ void set_catalog_name(const char* value);
+ void set_catalog_name(const char* value, size_t size);
+ ::std::string* mutable_catalog_name();
+ ::std::string* release_catalog_name();
+ void set_allocated_catalog_name(::std::string* catalog_name);
// optional string schema_name = 2;
- inline bool has_schema_name() const;
- inline void clear_schema_name();
+ bool has_schema_name() const;
+ void clear_schema_name();
static const int kSchemaNameFieldNumber = 2;
- inline const ::std::string& schema_name() const;
- inline void set_schema_name(const ::std::string& value);
- inline void set_schema_name(const char* value);
- inline void set_schema_name(const char* value, size_t size);
- inline ::std::string* mutable_schema_name();
- inline ::std::string* release_schema_name();
- inline void set_allocated_schema_name(::std::string* schema_name);
+ const ::std::string& schema_name() const;
+ void set_schema_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_schema_name(::std::string&& value);
+ #endif
+ void set_schema_name(const char* value);
+ void set_schema_name(const char* value, size_t size);
+ ::std::string* mutable_schema_name();
+ ::std::string* release_schema_name();
+ void set_allocated_schema_name(::std::string* schema_name);
// optional string table_name = 3;
- inline bool has_table_name() const;
- inline void clear_table_name();
+ bool has_table_name() const;
+ void clear_table_name();
static const int kTableNameFieldNumber = 3;
- inline const ::std::string& table_name() const;
- inline void set_table_name(const ::std::string& value);
- inline void set_table_name(const char* value);
- inline void set_table_name(const char* value, size_t size);
- inline ::std::string* mutable_table_name();
- inline ::std::string* release_table_name();
- inline void set_allocated_table_name(::std::string* table_name);
+ const ::std::string& table_name() const;
+ void set_table_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_table_name(::std::string&& value);
+ #endif
+ void set_table_name(const char* value);
+ void set_table_name(const char* value, size_t size);
+ ::std::string* mutable_table_name();
+ ::std::string* release_table_name();
+ void set_allocated_table_name(::std::string* table_name);
// optional string column_name = 4;
- inline bool has_column_name() const;
- inline void clear_column_name();
+ bool has_column_name() const;
+ void clear_column_name();
static const int kColumnNameFieldNumber = 4;
- inline const ::std::string& column_name() const;
- inline void set_column_name(const ::std::string& value);
- inline void set_column_name(const char* value);
- inline void set_column_name(const char* value, size_t size);
- inline ::std::string* mutable_column_name();
- inline ::std::string* release_column_name();
- inline void set_allocated_column_name(::std::string* column_name);
-
- // optional int32 ordinal_position = 5;
- inline bool has_ordinal_position() const;
- inline void clear_ordinal_position();
- static const int kOrdinalPositionFieldNumber = 5;
- inline ::google::protobuf::int32 ordinal_position() const;
- inline void set_ordinal_position(::google::protobuf::int32 value);
+ const ::std::string& column_name() const;
+ void set_column_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_column_name(::std::string&& value);
+ #endif
+ void set_column_name(const char* value);
+ void set_column_name(const char* value, size_t size);
+ ::std::string* mutable_column_name();
+ ::std::string* release_column_name();
+ void set_allocated_column_name(::std::string* column_name);
// optional string default_value = 6;
- inline bool has_default_value() const;
- inline void clear_default_value();
+ bool has_default_value() const;
+ void clear_default_value();
static const int kDefaultValueFieldNumber = 6;
- inline const ::std::string& default_value() const;
- inline void set_default_value(const ::std::string& value);
- inline void set_default_value(const char* value);
- inline void set_default_value(const char* value, size_t size);
- inline ::std::string* mutable_default_value();
- inline ::std::string* release_default_value();
- inline void set_allocated_default_value(::std::string* default_value);
-
- // optional bool is_nullable = 7;
- inline bool has_is_nullable() const;
- inline void clear_is_nullable();
- static const int kIsNullableFieldNumber = 7;
- inline bool is_nullable() const;
- inline void set_is_nullable(bool value);
+ const ::std::string& default_value() const;
+ void set_default_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_default_value(::std::string&& value);
+ #endif
+ void set_default_value(const char* value);
+ void set_default_value(const char* value, size_t size);
+ ::std::string* mutable_default_value();
+ ::std::string* release_default_value();
+ void set_allocated_default_value(::std::string* default_value);
// optional string data_type = 8;
- inline bool has_data_type() const;
- inline void clear_data_type();
+ bool has_data_type() const;
+ void clear_data_type();
static const int kDataTypeFieldNumber = 8;
- inline const ::std::string& data_type() const;
- inline void set_data_type(const ::std::string& value);
- inline void set_data_type(const char* value);
- inline void set_data_type(const char* value, size_t size);
- inline ::std::string* mutable_data_type();
- inline ::std::string* release_data_type();
- inline void set_allocated_data_type(::std::string* data_type);
+ const ::std::string& data_type() const;
+ void set_data_type(const ::std::string& value);
+ #if LANG_CXX11
+ void set_data_type(::std::string&& value);
+ #endif
+ void set_data_type(const char* value);
+ void set_data_type(const char* value, size_t size);
+ ::std::string* mutable_data_type();
+ ::std::string* release_data_type();
+ void set_allocated_data_type(::std::string* data_type);
+
+ // optional string interval_type = 15;
+ bool has_interval_type() const;
+ void clear_interval_type();
+ static const int kIntervalTypeFieldNumber = 15;
+ const ::std::string& interval_type() const;
+ void set_interval_type(const ::std::string& value);
+ #if LANG_CXX11
+ void set_interval_type(::std::string&& value);
+ #endif
+ void set_interval_type(const char* value);
+ void set_interval_type(const char* value, size_t size);
+ ::std::string* mutable_interval_type();
+ ::std::string* release_interval_type();
+ void set_allocated_interval_type(::std::string* interval_type);
+
+ // optional int32 ordinal_position = 5;
+ bool has_ordinal_position() const;
+ void clear_ordinal_position();
+ static const int kOrdinalPositionFieldNumber = 5;
+ ::google::protobuf::int32 ordinal_position() const;
+ void set_ordinal_position(::google::protobuf::int32 value);
+
+ // optional bool is_nullable = 7;
+ bool has_is_nullable() const;
+ void clear_is_nullable();
+ static const int kIsNullableFieldNumber = 7;
+ bool is_nullable() const;
+ void set_is_nullable(bool value);
// optional int32 char_max_length = 9;
- inline bool has_char_max_length() const;
- inline void clear_char_max_length();
+ bool has_char_max_length() const;
+ void clear_char_max_length();
static const int kCharMaxLengthFieldNumber = 9;
- inline ::google::protobuf::int32 char_max_length() const;
- inline void set_char_max_length(::google::protobuf::int32 value);
+ ::google::protobuf::int32 char_max_length() const;
+ void set_char_max_length(::google::protobuf::int32 value);
// optional int32 char_octet_length = 10;
- inline bool has_char_octet_length() const;
- inline void clear_char_octet_length();
+ bool has_char_octet_length() const;
+ void clear_char_octet_length();
static const int kCharOctetLengthFieldNumber = 10;
- inline ::google::protobuf::int32 char_octet_length() const;
- inline void set_char_octet_length(::google::protobuf::int32 value);
+ ::google::protobuf::int32 char_octet_length() const;
+ void set_char_octet_length(::google::protobuf::int32 value);
// optional int32 numeric_precision = 11;
- inline bool has_numeric_precision() const;
- inline void clear_numeric_precision();
+ bool has_numeric_precision() const;
+ void clear_numeric_precision();
static const int kNumericPrecisionFieldNumber = 11;
- inline ::google::protobuf::int32 numeric_precision() const;
- inline void set_numeric_precision(::google::protobuf::int32 value);
+ ::google::protobuf::int32 numeric_precision() const;
+ void set_numeric_precision(::google::protobuf::int32 value);
// optional int32 numeric_precision_radix = 12;
- inline bool has_numeric_precision_radix() const;
- inline void clear_numeric_precision_radix();
+ bool has_numeric_precision_radix() const;
+ void clear_numeric_precision_radix();
static const int kNumericPrecisionRadixFieldNumber = 12;
- inline ::google::protobuf::int32 numeric_precision_radix() const;
- inline void set_numeric_precision_radix(::google::protobuf::int32 value);
+ ::google::protobuf::int32 numeric_precision_radix() const;
+ void set_numeric_precision_radix(::google::protobuf::int32 value);
// optional int32 numeric_scale = 13;
- inline bool has_numeric_scale() const;
- inline void clear_numeric_scale();
+ bool has_numeric_scale() const;
+ void clear_numeric_scale();
static const int kNumericScaleFieldNumber = 13;
- inline ::google::protobuf::int32 numeric_scale() const;
- inline void set_numeric_scale(::google::protobuf::int32 value);
+ ::google::protobuf::int32 numeric_scale() const;
+ void set_numeric_scale(::google::protobuf::int32 value);
// optional int32 date_time_precision = 14;
- inline bool has_date_time_precision() const;
- inline void clear_date_time_precision();
+ bool has_date_time_precision() const;
+ void clear_date_time_precision();
static const int kDateTimePrecisionFieldNumber = 14;
- inline ::google::protobuf::int32 date_time_precision() const;
- inline void set_date_time_precision(::google::protobuf::int32 value);
-
- // optional string interval_type = 15;
- inline bool has_interval_type() const;
- inline void clear_interval_type();
- static const int kIntervalTypeFieldNumber = 15;
- inline const ::std::string& interval_type() const;
- inline void set_interval_type(const ::std::string& value);
- inline void set_interval_type(const char* value);
- inline void set_interval_type(const char* value, size_t size);
- inline ::std::string* mutable_interval_type();
- inline ::std::string* release_interval_type();
- inline void set_allocated_interval_type(::std::string* interval_type);
+ ::google::protobuf::int32 date_time_precision() const;
+ void set_date_time_precision(::google::protobuf::int32 value);
// optional int32 interval_precision = 16;
- inline bool has_interval_precision() const;
- inline void clear_interval_precision();
+ bool has_interval_precision() const;
+ void clear_interval_precision();
static const int kIntervalPrecisionFieldNumber = 16;
- inline ::google::protobuf::int32 interval_precision() const;
- inline void set_interval_precision(::google::protobuf::int32 value);
+ ::google::protobuf::int32 interval_precision() const;
+ void set_interval_precision(::google::protobuf::int32 value);
// optional int32 column_size = 17;
- inline bool has_column_size() const;
- inline void clear_column_size();
+ bool has_column_size() const;
+ void clear_column_size();
static const int kColumnSizeFieldNumber = 17;
- inline ::google::protobuf::int32 column_size() const;
- inline void set_column_size(::google::protobuf::int32 value);
+ ::google::protobuf::int32 column_size() const;
+ void set_column_size(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.user.ColumnMetadata)
private:
- inline void set_has_catalog_name();
- inline void clear_has_catalog_name();
- inline void set_has_schema_name();
- inline void clear_has_schema_name();
- inline void set_has_table_name();
- inline void clear_has_table_name();
- inline void set_has_column_name();
- inline void clear_has_column_name();
- inline void set_has_ordinal_position();
- inline void clear_has_ordinal_position();
- inline void set_has_default_value();
- inline void clear_has_default_value();
- inline void set_has_is_nullable();
- inline void clear_has_is_nullable();
- inline void set_has_data_type();
- inline void clear_has_data_type();
- inline void set_has_char_max_length();
- inline void clear_has_char_max_length();
- inline void set_has_char_octet_length();
- inline void clear_has_char_octet_length();
- inline void set_has_numeric_precision();
- inline void clear_has_numeric_precision();
- inline void set_has_numeric_precision_radix();
- inline void clear_has_numeric_precision_radix();
- inline void set_has_numeric_scale();
- inline void clear_has_numeric_scale();
- inline void set_has_date_time_precision();
- inline void clear_has_date_time_precision();
- inline void set_has_interval_type();
- inline void clear_has_interval_type();
- inline void set_has_interval_precision();
- inline void clear_has_interval_precision();
- inline void set_has_column_size();
- inline void clear_has_column_size();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_name_;
- ::std::string* schema_name_;
- ::std::string* table_name_;
- ::std::string* column_name_;
- ::std::string* default_value_;
+ void set_has_catalog_name();
+ void clear_has_catalog_name();
+ void set_has_schema_name();
+ void clear_has_schema_name();
+ void set_has_table_name();
+ void clear_has_table_name();
+ void set_has_column_name();
+ void clear_has_column_name();
+ void set_has_ordinal_position();
+ void clear_has_ordinal_position();
+ void set_has_default_value();
+ void clear_has_default_value();
+ void set_has_is_nullable();
+ void clear_has_is_nullable();
+ void set_has_data_type();
+ void clear_has_data_type();
+ void set_has_char_max_length();
+ void clear_has_char_max_length();
+ void set_has_char_octet_length();
+ void clear_has_char_octet_length();
+ void set_has_numeric_precision();
+ void clear_has_numeric_precision();
+ void set_has_numeric_precision_radix();
+ void clear_has_numeric_precision_radix();
+ void set_has_numeric_scale();
+ void clear_has_numeric_scale();
+ void set_has_date_time_precision();
+ void clear_has_date_time_precision();
+ void set_has_interval_type();
+ void clear_has_interval_type();
+ void set_has_interval_precision();
+ void clear_has_interval_precision();
+ void set_has_column_size();
+ void clear_has_column_size();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_name_;
+ ::google::protobuf::internal::ArenaStringPtr schema_name_;
+ ::google::protobuf::internal::ArenaStringPtr table_name_;
+ ::google::protobuf::internal::ArenaStringPtr column_name_;
+ ::google::protobuf::internal::ArenaStringPtr default_value_;
+ ::google::protobuf::internal::ArenaStringPtr data_type_;
+ ::google::protobuf::internal::ArenaStringPtr interval_type_;
::google::protobuf::int32 ordinal_position_;
bool is_nullable_;
- ::std::string* data_type_;
::google::protobuf::int32 char_max_length_;
::google::protobuf::int32 char_octet_length_;
::google::protobuf::int32 numeric_precision_;
::google::protobuf::int32 numeric_precision_radix_;
::google::protobuf::int32 numeric_scale_;
::google::protobuf::int32 date_time_precision_;
- ::std::string* interval_type_;
::google::protobuf::int32 interval_precision_;
::google::protobuf::int32 column_size_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(17 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static ColumnMetadata* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetColumnsResp : public ::google::protobuf::Message {
+class GetColumnsResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetColumnsResp) */ {
public:
GetColumnsResp();
virtual ~GetColumnsResp();
@@ -3027,103 +3946,138 @@ class GetColumnsResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetColumnsResp(GetColumnsResp&& from) noexcept
+ : GetColumnsResp() {
+ *this = ::std::move(from);
+ }
+ inline GetColumnsResp& operator=(GetColumnsResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetColumnsResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetColumnsResp* internal_default_instance() {
+ return reinterpret_cast<const GetColumnsResp*>(
+ &_GetColumnsResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 20;
+
void Swap(GetColumnsResp* other);
+ friend void swap(GetColumnsResp& a, GetColumnsResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetColumnsResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetColumnsResp* New() const final {
+ return CreateMaybeMessage<GetColumnsResp>(NULL);
+ }
+
+ GetColumnsResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetColumnsResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetColumnsResp& from);
void MergeFrom(const GetColumnsResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetColumnsResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// repeated .exec.user.ColumnMetadata columns = 2;
- inline int columns_size() const;
- inline void clear_columns();
+ int columns_size() const;
+ void clear_columns();
static const int kColumnsFieldNumber = 2;
- inline const ::exec::user::ColumnMetadata& columns(int index) const;
- inline ::exec::user::ColumnMetadata* mutable_columns(int index);
- inline ::exec::user::ColumnMetadata* add_columns();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >&
- columns() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >*
+ ::exec::user::ColumnMetadata* mutable_columns(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >*
mutable_columns();
+ const ::exec::user::ColumnMetadata& columns(int index) const;
+ ::exec::user::ColumnMetadata* add_columns();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >&
+ columns() const;
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.GetColumnsResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata > columns_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetColumnsResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class CreatePreparedStatementReq : public ::google::protobuf::Message {
+class CreatePreparedStatementReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.CreatePreparedStatementReq) */ {
public:
CreatePreparedStatementReq();
virtual ~CreatePreparedStatementReq();
@@ -3134,83 +4088,118 @@ class CreatePreparedStatementReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ CreatePreparedStatementReq(CreatePreparedStatementReq&& from) noexcept
+ : CreatePreparedStatementReq() {
+ *this = ::std::move(from);
+ }
+ inline CreatePreparedStatementReq& operator=(CreatePreparedStatementReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const CreatePreparedStatementReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CreatePreparedStatementReq* internal_default_instance() {
+ return reinterpret_cast<const CreatePreparedStatementReq*>(
+ &_CreatePreparedStatementReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 21;
+
void Swap(CreatePreparedStatementReq* other);
+ friend void swap(CreatePreparedStatementReq& a, CreatePreparedStatementReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- CreatePreparedStatementReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline CreatePreparedStatementReq* New() const final {
+ return CreateMaybeMessage<CreatePreparedStatementReq>(NULL);
+ }
+
+ CreatePreparedStatementReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<CreatePreparedStatementReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const CreatePreparedStatementReq& from);
void MergeFrom(const CreatePreparedStatementReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(CreatePreparedStatementReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string sql_query = 1;
- inline bool has_sql_query() const;
- inline void clear_sql_query();
+ bool has_sql_query() const;
+ void clear_sql_query();
static const int kSqlQueryFieldNumber = 1;
- inline const ::std::string& sql_query() const;
- inline void set_sql_query(const ::std::string& value);
- inline void set_sql_query(const char* value);
- inline void set_sql_query(const char* value, size_t size);
- inline ::std::string* mutable_sql_query();
- inline ::std::string* release_sql_query();
- inline void set_allocated_sql_query(::std::string* sql_query);
+ const ::std::string& sql_query() const;
+ void set_sql_query(const ::std::string& value);
+ #if LANG_CXX11
+ void set_sql_query(::std::string&& value);
+ #endif
+ void set_sql_query(const char* value);
+ void set_sql_query(const char* value, size_t size);
+ ::std::string* mutable_sql_query();
+ ::std::string* release_sql_query();
+ void set_allocated_sql_query(::std::string* sql_query);
// @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementReq)
private:
- inline void set_has_sql_query();
- inline void clear_has_sql_query();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* sql_query_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static CreatePreparedStatementReq* default_instance_;
+ void set_has_sql_query();
+ void clear_has_sql_query();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr sql_query_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ResultColumnMetadata : public ::google::protobuf::Message {
+class ResultColumnMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.ResultColumnMetadata) */ {
public:
ResultColumnMetadata();
virtual ~ResultColumnMetadata();
@@ -3221,266 +4210,329 @@ class ResultColumnMetadata : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ResultColumnMetadata(ResultColumnMetadata&& from) noexcept
+ : ResultColumnMetadata() {
+ *this = ::std::move(from);
+ }
+ inline ResultColumnMetadata& operator=(ResultColumnMetadata&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ResultColumnMetadata& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ResultColumnMetadata* internal_default_instance() {
+ return reinterpret_cast<const ResultColumnMetadata*>(
+ &_ResultColumnMetadata_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 22;
+
void Swap(ResultColumnMetadata* other);
+ friend void swap(ResultColumnMetadata& a, ResultColumnMetadata& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ResultColumnMetadata* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ResultColumnMetadata* New() const final {
+ return CreateMaybeMessage<ResultColumnMetadata>(NULL);
+ }
+
+ ResultColumnMetadata* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ResultColumnMetadata>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ResultColumnMetadata& from);
void MergeFrom(const ResultColumnMetadata& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ResultColumnMetadata* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string catalog_name = 1;
- inline bool has_catalog_name() const;
- inline void clear_catalog_name();
+ bool has_catalog_name() const;
+ void clear_catalog_name();
static const int kCatalogNameFieldNumber = 1;
- inline const ::std::string& catalog_name() const;
- inline void set_catalog_name(const ::std::string& value);
- inline void set_catalog_name(const char* value);
- inline void set_catalog_name(const char* value, size_t size);
- inline ::std::string* mutable_catalog_name();
- inline ::std::string* release_catalog_name();
- inline void set_allocated_catalog_name(::std::string* catalog_name);
+ const ::std::string& catalog_name() const;
+ void set_catalog_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_name(::std::string&& value);
+ #endif
+ void set_catalog_name(const char* value);
+ void set_catalog_name(const char* value, size_t size);
+ ::std::string* mutable_catalog_name();
+ ::std::string* release_catalog_name();
+ void set_allocated_catalog_name(::std::string* catalog_name);
// optional string schema_name = 2;
- inline bool has_schema_name() const;
- inline void clear_schema_name();
+ bool has_schema_name() const;
+ void clear_schema_name();
static const int kSchemaNameFieldNumber = 2;
- inline const ::std::string& schema_name() const;
- inline void set_schema_name(const ::std::string& value);
- inline void set_schema_name(const char* value);
- inline void set_schema_name(const char* value, size_t size);
- inline ::std::string* mutable_schema_name();
- inline ::std::string* release_schema_name();
- inline void set_allocated_schema_name(::std::string* schema_name);
+ const ::std::string& schema_name() const;
+ void set_schema_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_schema_name(::std::string&& value);
+ #endif
+ void set_schema_name(const char* value);
+ void set_schema_name(const char* value, size_t size);
+ ::std::string* mutable_schema_name();
+ ::std::string* release_schema_name();
+ void set_allocated_schema_name(::std::string* schema_name);
// optional string table_name = 3;
- inline bool has_table_name() const;
- inline void clear_table_name();
+ bool has_table_name() const;
+ void clear_table_name();
static const int kTableNameFieldNumber = 3;
- inline const ::std::string& table_name() const;
- inline void set_table_name(const ::std::string& value);
- inline void set_table_name(const char* value);
- inline void set_table_name(const char* value, size_t size);
- inline ::std::string* mutable_table_name();
- inline ::std::string* release_table_name();
- inline void set_allocated_table_name(::std::string* table_name);
+ const ::std::string& table_name() const;
+ void set_table_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_table_name(::std::string&& value);
+ #endif
+ void set_table_name(const char* value);
+ void set_table_name(const char* value, size_t size);
+ ::std::string* mutable_table_name();
+ ::std::string* release_table_name();
+ void set_allocated_table_name(::std::string* table_name);
// optional string column_name = 4;
- inline bool has_column_name() const;
- inline void clear_column_name();
+ bool has_column_name() const;
+ void clear_column_name();
static const int kColumnNameFieldNumber = 4;
- inline const ::std::string& column_name() const;
- inline void set_column_name(const ::std::string& value);
- inline void set_column_name(const char* value);
- inline void set_column_name(const char* value, size_t size);
- inline ::std::string* mutable_column_name();
- inline ::std::string* release_column_name();
- inline void set_allocated_column_name(::std::string* column_name);
+ const ::std::string& column_name() const;
+ void set_column_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_column_name(::std::string&& value);
+ #endif
+ void set_column_name(const char* value);
+ void set_column_name(const char* value, size_t size);
+ ::std::string* mutable_column_name();
+ ::std::string* release_column_name();
+ void set_allocated_column_name(::std::string* column_name);
// optional string label = 5;
- inline bool has_label() const;
- inline void clear_label();
+ bool has_label() const;
+ void clear_label();
static const int kLabelFieldNumber = 5;
- inline const ::std::string& label() const;
- inline void set_label(const ::std::string& value);
- inline void set_label(const char* value);
- inline void set_label(const char* value, size_t size);
- inline ::std::string* mutable_label();
- inline ::std::string* release_label();
- inline void set_allocated_label(::std::string* label);
+ const ::std::string& label() const;
+ void set_label(const ::std::string& value);
+ #if LANG_CXX11
+ void set_label(::std::string&& value);
+ #endif
+ void set_label(const char* value);
+ void set_label(const char* value, size_t size);
+ ::std::string* mutable_label();
+ ::std::string* release_label();
+ void set_allocated_label(::std::string* label);
// optional string data_type = 6;
- inline bool has_data_type() const;
- inline void clear_data_type();
+ bool has_data_type() const;
+ void clear_data_type();
static const int kDataTypeFieldNumber = 6;
- inline const ::std::string& data_type() const;
- inline void set_data_type(const ::std::string& value);
- inline void set_data_type(const char* value);
- inline void set_data_type(const char* value, size_t size);
- inline ::std::string* mutable_data_type();
- inline ::std::string* release_data_type();
- inline void set_allocated_data_type(::std::string* data_type);
+ const ::std::string& data_type() const;
+ void set_data_type(const ::std::string& value);
+ #if LANG_CXX11
+ void set_data_type(::std::string&& value);
+ #endif
+ void set_data_type(const char* value);
+ void set_data_type(const char* value, size_t size);
+ ::std::string* mutable_data_type();
+ ::std::string* release_data_type();
+ void set_allocated_data_type(::std::string* data_type);
- // optional bool is_nullable = 7;
- inline bool has_is_nullable() const;
- inline void clear_is_nullable();
- static const int kIsNullableFieldNumber = 7;
- inline bool is_nullable() const;
- inline void set_is_nullable(bool value);
+ // optional string class_name = 18;
+ bool has_class_name() const;
+ void clear_class_name();
+ static const int kClassNameFieldNumber = 18;
+ const ::std::string& class_name() const;
+ void set_class_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_class_name(::std::string&& value);
+ #endif
+ void set_class_name(const char* value);
+ void set_class_name(const char* value, size_t size);
+ ::std::string* mutable_class_name();
+ ::std::string* release_class_name();
+ void set_allocated_class_name(::std::string* class_name);
// optional int32 precision = 8;
- inline bool has_precision() const;
- inline void clear_precision();
+ bool has_precision() const;
+ void clear_precision();
static const int kPrecisionFieldNumber = 8;
- inline ::google::protobuf::int32 precision() const;
- inline void set_precision(::google::protobuf::int32 value);
+ ::google::protobuf::int32 precision() const;
+ void set_precision(::google::protobuf::int32 value);
// optional int32 scale = 9;
- inline bool has_scale() const;
- inline void clear_scale();
+ bool has_scale() const;
+ void clear_scale();
static const int kScaleFieldNumber = 9;
- inline ::google::protobuf::int32 scale() const;
- inline void set_scale(::google::protobuf::int32 value);
-
- // optional bool signed = 10;
- inline bool has_signed_() const;
- inline void clear_signed_();
- static const int kSignedFieldNumber = 10;
- inline bool signed_() const;
- inline void set_signed_(bool value);
+ ::google::protobuf::int32 scale() const;
+ void set_scale(::google::protobuf::int32 value);
// optional int32 display_size = 11;
- inline bool has_display_size() const;
- inline void clear_display_size();
+ bool has_display_size() const;
+ void clear_display_size();
static const int kDisplaySizeFieldNumber = 11;
- inline ::google::protobuf::int32 display_size() const;
- inline void set_display_size(::google::protobuf::int32 value);
+ ::google::protobuf::int32 display_size() const;
+ void set_display_size(::google::protobuf::int32 value);
+
+ // optional bool is_nullable = 7;
+ bool has_is_nullable() const;
+ void clear_is_nullable();
+ static const int kIsNullableFieldNumber = 7;
+ bool is_nullable() const;
+ void set_is_nullable(bool value);
+
+ // optional bool signed = 10;
+ bool has_signed_() const;
+ void clear_signed_();
+ static const int kSignedFieldNumber = 10;
+ bool signed_() const;
+ void set_signed_(bool value);
// optional bool is_aliased = 12;
- inline bool has_is_aliased() const;
- inline void clear_is_aliased();
+ bool has_is_aliased() const;
+ void clear_is_aliased();
static const int kIsAliasedFieldNumber = 12;
- inline bool is_aliased() const;
- inline void set_is_aliased(bool value);
+ bool is_aliased() const;
+ void set_is_aliased(bool value);
+
+ // optional bool auto_increment = 15;
+ bool has_auto_increment() const;
+ void clear_auto_increment();
+ static const int kAutoIncrementFieldNumber = 15;
+ bool auto_increment() const;
+ void set_auto_increment(bool value);
// optional .exec.user.ColumnSearchability searchability = 13;
- inline bool has_searchability() const;
- inline void clear_searchability();
+ bool has_searchability() const;
+ void clear_searchability();
static const int kSearchabilityFieldNumber = 13;
- inline ::exec::user::ColumnSearchability searchability() const;
- inline void set_searchability(::exec::user::ColumnSearchability value);
+ ::exec::user::ColumnSearchability searchability() const;
+ void set_searchability(::exec::user::ColumnSearchability value);
// optional .exec.user.ColumnUpdatability updatability = 14;
- inline bool has_updatability() const;
- inline void clear_updatability();
+ bool has_updatability() const;
+ void clear_updatability();
static const int kUpdatabilityFieldNumber = 14;
- inline ::exec::user::ColumnUpdatability updatability() const;
- inline void set_updatability(::exec::user::ColumnUpdatability value);
-
- // optional bool auto_increment = 15;
- inline bool has_auto_increment() const;
- inline void clear_auto_increment();
- static const int kAutoIncrementFieldNumber = 15;
- inline bool auto_increment() const;
- inline void set_auto_increment(bool value);
+ ::exec::user::ColumnUpdatability updatability() const;
+ void set_updatability(::exec::user::ColumnUpdatability value);
// optional bool case_sensitivity = 16;
- inline bool has_case_sensitivity() const;
- inline void clear_case_sensitivity();
+ bool has_case_sensitivity() const;
+ void clear_case_sensitivity();
static const int kCaseSensitivityFieldNumber = 16;
- inline bool case_sensitivity() const;
- inline void set_case_sensitivity(bool value);
+ bool case_sensitivity() const;
+ void set_case_sensitivity(bool value);
// optional bool sortable = 17;
- inline bool has_sortable() const;
- inline void clear_sortable();
+ bool has_sortable() const;
+ void clear_sortable();
static const int kSortableFieldNumber = 17;
- inline bool sortable() const;
- inline void set_sortable(bool value);
-
- // optional string class_name = 18;
- inline bool has_class_name() const;
- inline void clear_class_name();
- static const int kClassNameFieldNumber = 18;
- inline const ::std::string& class_name() const;
- inline void set_class_name(const ::std::string& value);
- inline void set_class_name(const char* value);
- inline void set_class_name(const char* value, size_t size);
- inline ::std::string* mutable_class_name();
- inline ::std::string* release_class_name();
- inline void set_allocated_class_name(::std::string* class_name);
+ bool sortable() const;
+ void set_sortable(bool value);
// optional bool is_currency = 20;
- inline bool has_is_currency() const;
- inline void clear_is_currency();
+ bool has_is_currency() const;
+ void clear_is_currency();
static const int kIsCurrencyFieldNumber = 20;
- inline bool is_currency() const;
- inline void set_is_currency(bool value);
+ bool is_currency() const;
+ void set_is_currency(bool value);
// @@protoc_insertion_point(class_scope:exec.user.ResultColumnMetadata)
private:
- inline void set_has_catalog_name();
- inline void clear_has_catalog_name();
- inline void set_has_schema_name();
- inline void clear_has_schema_name();
- inline void set_has_table_name();
- inline void clear_has_table_name();
- inline void set_has_column_name();
- inline void clear_has_column_name();
- inline void set_has_label();
- inline void clear_has_label();
- inline void set_has_data_type();
- inline void clear_has_data_type();
- inline void set_has_is_nullable();
- inline void clear_has_is_nullable();
- inline void set_has_precision();
- inline void clear_has_precision();
- inline void set_has_scale();
- inline void clear_has_scale();
- inline void set_has_signed_();
- inline void clear_has_signed_();
- inline void set_has_display_size();
- inline void clear_has_display_size();
- inline void set_has_is_aliased();
- inline void clear_has_is_aliased();
- inline void set_has_searchability();
- inline void clear_has_searchability();
- inline void set_has_updatability();
- inline void clear_has_updatability();
- inline void set_has_auto_increment();
- inline void clear_has_auto_increment();
- inline void set_has_case_sensitivity();
- inline void clear_has_case_sensitivity();
- inline void set_has_sortable();
- inline void clear_has_sortable();
- inline void set_has_class_name();
- inline void clear_has_class_name();
- inline void set_has_is_currency();
- inline void clear_has_is_currency();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_name_;
- ::std::string* schema_name_;
- ::std::string* table_name_;
- ::std::string* column_name_;
- ::std::string* label_;
- ::std::string* data_type_;
+ void set_has_catalog_name();
+ void clear_has_catalog_name();
+ void set_has_schema_name();
+ void clear_has_schema_name();
+ void set_has_table_name();
+ void clear_has_table_name();
+ void set_has_column_name();
+ void clear_has_column_name();
+ void set_has_label();
+ void clear_has_label();
+ void set_has_data_type();
+ void clear_has_data_type();
+ void set_has_is_nullable();
+ void clear_has_is_nullable();
+ void set_has_precision();
+ void clear_has_precision();
+ void set_has_scale();
+ void clear_has_scale();
+ void set_has_signed_();
+ void clear_has_signed_();
+ void set_has_display_size();
+ void clear_has_display_size();
+ void set_has_is_aliased();
+ void clear_has_is_aliased();
+ void set_has_searchability();
+ void clear_has_searchability();
+ void set_has_updatability();
+ void clear_has_updatability();
+ void set_has_auto_increment();
+ void clear_has_auto_increment();
+ void set_has_case_sensitivity();
+ void clear_has_case_sensitivity();
+ void set_has_sortable();
+ void clear_has_sortable();
+ void set_has_class_name();
+ void clear_has_class_name();
+ void set_has_is_currency();
+ void clear_has_is_currency();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_name_;
+ ::google::protobuf::internal::ArenaStringPtr schema_name_;
+ ::google::protobuf::internal::ArenaStringPtr table_name_;
+ ::google::protobuf::internal::ArenaStringPtr column_name_;
+ ::google::protobuf::internal::ArenaStringPtr label_;
+ ::google::protobuf::internal::ArenaStringPtr data_type_;
+ ::google::protobuf::internal::ArenaStringPtr class_name_;
::google::protobuf::int32 precision_;
::google::protobuf::int32 scale_;
::google::protobuf::int32 display_size_;
@@ -3490,24 +4542,14 @@ class ResultColumnMetadata : public ::google::protobuf::Message {
bool auto_increment_;
int searchability_;
int updatability_;
- ::std::string* class_name_;
bool case_sensitivity_;
bool sortable_;
bool is_currency_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(19 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static ResultColumnMetadata* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class PreparedStatementHandle : public ::google::protobuf::Message {
+class PreparedStatementHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.PreparedStatementHandle) */ {
public:
PreparedStatementHandle();
virtual ~PreparedStatementHandle();
@@ -3518,83 +4560,118 @@ class PreparedStatementHandle : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ PreparedStatementHandle(PreparedStatementHandle&& from) noexcept
+ : PreparedStatementHandle() {
+ *this = ::std::move(from);
+ }
+ inline PreparedStatementHandle& operator=(PreparedStatementHandle&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const PreparedStatementHandle& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const PreparedStatementHandle* internal_default_instance() {
+ return reinterpret_cast<const PreparedStatementHandle*>(
+ &_PreparedStatementHandle_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 23;
+
void Swap(PreparedStatementHandle* other);
+ friend void swap(PreparedStatementHandle& a, PreparedStatementHandle& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- PreparedStatementHandle* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline PreparedStatementHandle* New() const final {
+ return CreateMaybeMessage<PreparedStatementHandle>(NULL);
+ }
+
+ PreparedStatementHandle* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<PreparedStatementHandle>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const PreparedStatementHandle& from);
void MergeFrom(const PreparedStatementHandle& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(PreparedStatementHandle* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional bytes server_info = 1;
- inline bool has_server_info() const;
- inline void clear_server_info();
+ bool has_server_info() const;
+ void clear_server_info();
static const int kServerInfoFieldNumber = 1;
- inline const ::std::string& server_info() const;
- inline void set_server_info(const ::std::string& value);
- inline void set_server_info(const char* value);
- inline void set_server_info(const void* value, size_t size);
- inline ::std::string* mutable_server_info();
- inline ::std::string* release_server_info();
- inline void set_allocated_server_info(::std::string* server_info);
+ const ::std::string& server_info() const;
+ void set_server_info(const ::std::string& value);
+ #if LANG_CXX11
+ void set_server_info(::std::string&& value);
+ #endif
+ void set_server_info(const char* value);
+ void set_server_info(const void* value, size_t size);
+ ::std::string* mutable_server_info();
+ ::std::string* release_server_info();
+ void set_allocated_server_info(::std::string* server_info);
// @@protoc_insertion_point(class_scope:exec.user.PreparedStatementHandle)
private:
- inline void set_has_server_info();
- inline void clear_has_server_info();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* server_info_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static PreparedStatementHandle* default_instance_;
+ void set_has_server_info();
+ void clear_has_server_info();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr server_info_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class PreparedStatement : public ::google::protobuf::Message {
+class PreparedStatement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.PreparedStatement) */ {
public:
PreparedStatement();
virtual ~PreparedStatement();
@@ -3605,93 +4682,128 @@ class PreparedStatement : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ PreparedStatement(PreparedStatement&& from) noexcept
+ : PreparedStatement() {
+ *this = ::std::move(from);
+ }
+ inline PreparedStatement& operator=(PreparedStatement&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const PreparedStatement& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const PreparedStatement* internal_default_instance() {
+ return reinterpret_cast<const PreparedStatement*>(
+ &_PreparedStatement_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 24;
+
void Swap(PreparedStatement* other);
+ friend void swap(PreparedStatement& a, PreparedStatement& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- PreparedStatement* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline PreparedStatement* New() const final {
+ return CreateMaybeMessage<PreparedStatement>(NULL);
+ }
+
+ PreparedStatement* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<PreparedStatement>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const PreparedStatement& from);
void MergeFrom(const PreparedStatement& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(PreparedStatement* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.user.ResultColumnMetadata columns = 1;
- inline int columns_size() const;
- inline void clear_columns();
+ int columns_size() const;
+ void clear_columns();
static const int kColumnsFieldNumber = 1;
- inline const ::exec::user::ResultColumnMetadata& columns(int index) const;
- inline ::exec::user::ResultColumnMetadata* mutable_columns(int index);
- inline ::exec::user::ResultColumnMetadata* add_columns();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >&
- columns() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >*
+ ::exec::user::ResultColumnMetadata* mutable_columns(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >*
mutable_columns();
+ const ::exec::user::ResultColumnMetadata& columns(int index) const;
+ ::exec::user::ResultColumnMetadata* add_columns();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >&
+ columns() const;
// optional .exec.user.PreparedStatementHandle server_handle = 2;
- inline bool has_server_handle() const;
- inline void clear_server_handle();
+ bool has_server_handle() const;
+ void clear_server_handle();
static const int kServerHandleFieldNumber = 2;
- inline const ::exec::user::PreparedStatementHandle& server_handle() const;
- inline ::exec::user::PreparedStatementHandle* mutable_server_handle();
- inline ::exec::user::PreparedStatementHandle* release_server_handle();
- inline void set_allocated_server_handle(::exec::user::PreparedStatementHandle* server_handle);
+ private:
+ const ::exec::user::PreparedStatementHandle& _internal_server_handle() const;
+ public:
+ const ::exec::user::PreparedStatementHandle& server_handle() const;
+ ::exec::user::PreparedStatementHandle* release_server_handle();
+ ::exec::user::PreparedStatementHandle* mutable_server_handle();
+ void set_allocated_server_handle(::exec::user::PreparedStatementHandle* server_handle);
// @@protoc_insertion_point(class_scope:exec.user.PreparedStatement)
private:
- inline void set_has_server_handle();
- inline void clear_has_server_handle();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_server_handle();
+ void clear_has_server_handle();
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata > columns_;
::exec::user::PreparedStatementHandle* server_handle_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static PreparedStatement* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class CreatePreparedStatementResp : public ::google::protobuf::Message {
+class CreatePreparedStatementResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.CreatePreparedStatementResp) */ {
public:
CreatePreparedStatementResp();
virtual ~CreatePreparedStatementResp();
@@ -3702,102 +4814,140 @@ class CreatePreparedStatementResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ CreatePreparedStatementResp(CreatePreparedStatementResp&& from) noexcept
+ : CreatePreparedStatementResp() {
+ *this = ::std::move(from);
+ }
+ inline CreatePreparedStatementResp& operator=(CreatePreparedStatementResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const CreatePreparedStatementResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CreatePreparedStatementResp* internal_default_instance() {
+ return reinterpret_cast<const CreatePreparedStatementResp*>(
+ &_CreatePreparedStatementResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 25;
+
void Swap(CreatePreparedStatementResp* other);
+ friend void swap(CreatePreparedStatementResp& a, CreatePreparedStatementResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- CreatePreparedStatementResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline CreatePreparedStatementResp* New() const final {
+ return CreateMaybeMessage<CreatePreparedStatementResp>(NULL);
+ }
+
+ CreatePreparedStatementResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<CreatePreparedStatementResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const CreatePreparedStatementResp& from);
void MergeFrom(const CreatePreparedStatementResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(CreatePreparedStatementResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// optional .exec.user.PreparedStatement prepared_statement = 2;
- inline bool has_prepared_statement() const;
- inline void clear_prepared_statement();
+ bool has_prepared_statement() const;
+ void clear_prepared_statement();
static const int kPreparedStatementFieldNumber = 2;
- inline const ::exec::user::PreparedStatement& prepared_statement() const;
- inline ::exec::user::PreparedStatement* mutable_prepared_statement();
- inline ::exec::user::PreparedStatement* release_prepared_statement();
- inline void set_allocated_prepared_statement(::exec::user::PreparedStatement* prepared_statement);
+ private:
+ const ::exec::user::PreparedStatement& _internal_prepared_statement() const;
+ public:
+ const ::exec::user::PreparedStatement& prepared_statement() const;
+ ::exec::user::PreparedStatement* release_prepared_statement();
+ ::exec::user::PreparedStatement* mutable_prepared_statement();
+ void set_allocated_prepared_statement(::exec::user::PreparedStatement* prepared_statement);
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_prepared_statement();
- inline void clear_has_prepared_statement();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_prepared_statement();
+ void clear_has_prepared_statement();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::user::PreparedStatement* prepared_statement_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static CreatePreparedStatementResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetServerMetaReq : public ::google::protobuf::Message {
+class GetServerMetaReq : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetServerMetaReq) */ {
public:
GetServerMetaReq();
virtual ~GetServerMetaReq();
@@ -3808,44 +4958,84 @@ class GetServerMetaReq : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetServerMetaReq(GetServerMetaReq&& from) noexcept
+ : GetServerMetaReq() {
+ *this = ::std::move(from);
+ }
+ inline GetServerMetaReq& operator=(GetServerMetaReq&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetServerMetaReq& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetServerMetaReq* internal_default_instance() {
+ return reinterpret_cast<const GetServerMetaReq*>(
+ &_GetServerMetaReq_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 26;
+
void Swap(GetServerMetaReq* other);
+ friend void swap(GetServerMetaReq& a, GetServerMetaReq& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetServerMetaReq* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetServerMetaReq* New() const final {
+ return CreateMaybeMessage<GetServerMetaReq>(NULL);
+ }
+
+ GetServerMetaReq* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetServerMetaReq>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetServerMetaReq& from);
void MergeFrom(const GetServerMetaReq& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetServerMetaReq* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
@@ -3854,22 +5044,14 @@ class GetServerMetaReq : public ::google::protobuf::Message {
// @@protoc_insertion_point(class_scope:exec.user.GetServerMetaReq)
private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[1];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetServerMetaReq* default_instance_;
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ConvertSupport : public ::google::protobuf::Message {
+class ConvertSupport : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.ConvertSupport) */ {
public:
ConvertSupport();
virtual ~ConvertSupport();
@@ -3880,88 +5062,123 @@ class ConvertSupport : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ConvertSupport(ConvertSupport&& from) noexcept
+ : ConvertSupport() {
+ *this = ::std::move(from);
+ }
+ inline ConvertSupport& operator=(ConvertSupport&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ConvertSupport& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ConvertSupport* internal_default_instance() {
+ return reinterpret_cast<const ConvertSupport*>(
+ &_ConvertSupport_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 27;
+
void Swap(ConvertSupport* other);
+ friend void swap(ConvertSupport& a, ConvertSupport& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ConvertSupport* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ConvertSupport* New() const final {
+ return CreateMaybeMessage<ConvertSupport>(NULL);
+ }
+
+ ConvertSupport* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ConvertSupport>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ConvertSupport& from);
void MergeFrom(const ConvertSupport& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ConvertSupport* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .common.MinorType from = 1;
- inline bool has_from() const;
- inline void clear_from();
+ bool has_from() const;
+ void clear_from();
static const int kFromFieldNumber = 1;
- inline ::common::MinorType from() const;
- inline void set_from(::common::MinorType value);
+ ::common::MinorType from() const;
+ void set_from(::common::MinorType value);
// required .common.MinorType to = 2;
- inline bool has_to() const;
- inline void clear_to();
+ bool has_to() const;
+ void clear_to();
static const int kToFieldNumber = 2;
- inline ::common::MinorType to() const;
- inline void set_to(::common::MinorType value);
+ ::common::MinorType to() const;
+ void set_to(::common::MinorType value);
// @@protoc_insertion_point(class_scope:exec.user.ConvertSupport)
private:
- inline void set_has_from();
- inline void clear_has_from();
- inline void set_has_to();
- inline void clear_has_to();
+ void set_has_from();
+ void clear_has_from();
+ void set_has_to();
+ void clear_has_to();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ // helper for ByteSizeLong()
+ size_t RequiredFieldsByteSizeFallback() const;
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
int from_;
int to_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static ConvertSupport* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class GetServerMetaResp : public ::google::protobuf::Message {
+class GetServerMetaResp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.GetServerMetaResp) */ {
public:
GetServerMetaResp();
virtual ~GetServerMetaResp();
@@ -3972,102 +5189,140 @@ class GetServerMetaResp : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ GetServerMetaResp(GetServerMetaResp&& from) noexcept
+ : GetServerMetaResp() {
+ *this = ::std::move(from);
+ }
+ inline GetServerMetaResp& operator=(GetServerMetaResp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const GetServerMetaResp& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetServerMetaResp* internal_default_instance() {
+ return reinterpret_cast<const GetServerMetaResp*>(
+ &_GetServerMetaResp_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 28;
+
void Swap(GetServerMetaResp* other);
+ friend void swap(GetServerMetaResp& a, GetServerMetaResp& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- GetServerMetaResp* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline GetServerMetaResp* New() const final {
+ return CreateMaybeMessage<GetServerMetaResp>(NULL);
+ }
+
+ GetServerMetaResp* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<GetServerMetaResp>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const GetServerMetaResp& from);
void MergeFrom(const GetServerMetaResp& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(GetServerMetaResp* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.RequestStatus status = 1;
- inline bool has_status() const;
- inline void clear_status();
- static const int kStatusFieldNumber = 1;
- inline ::exec::user::RequestStatus status() const;
- inline void set_status(::exec::user::RequestStatus value);
-
// optional .exec.user.ServerMeta server_meta = 2;
- inline bool has_server_meta() const;
- inline void clear_server_meta();
+ bool has_server_meta() const;
+ void clear_server_meta();
static const int kServerMetaFieldNumber = 2;
- inline const ::exec::user::ServerMeta& server_meta() const;
- inline ::exec::user::ServerMeta* mutable_server_meta();
- inline ::exec::user::ServerMeta* release_server_meta();
- inline void set_allocated_server_meta(::exec::user::ServerMeta* server_meta);
+ private:
+ const ::exec::user::ServerMeta& _internal_server_meta() const;
+ public:
+ const ::exec::user::ServerMeta& server_meta() const;
+ ::exec::user::ServerMeta* release_server_meta();
+ ::exec::user::ServerMeta* mutable_server_meta();
+ void set_allocated_server_meta(::exec::user::ServerMeta* server_meta);
// optional .exec.shared.DrillPBError error = 3;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.user.RequestStatus status = 1;
+ bool has_status() const;
+ void clear_status();
+ static const int kStatusFieldNumber = 1;
+ ::exec::user::RequestStatus status() const;
+ void set_status(::exec::user::RequestStatus value);
// @@protoc_insertion_point(class_scope:exec.user.GetServerMetaResp)
private:
- inline void set_has_status();
- inline void clear_has_status();
- inline void set_has_server_meta();
- inline void clear_has_server_meta();
- inline void set_has_error();
- inline void clear_has_error();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_status();
+ void clear_has_status();
+ void set_has_server_meta();
+ void clear_has_server_meta();
+ void set_has_error();
+ void clear_has_error();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::user::ServerMeta* server_meta_;
::exec::shared::DrillPBError* error_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static GetServerMetaResp* default_instance_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ServerMeta : public ::google::protobuf::Message {
+class ServerMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.ServerMeta) */ {
public:
ServerMeta();
virtual ~ServerMeta();
@@ -4078,602 +5333,707 @@ class ServerMeta : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ServerMeta(ServerMeta&& from) noexcept
+ : ServerMeta() {
+ *this = ::std::move(from);
+ }
+ inline ServerMeta& operator=(ServerMeta&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ServerMeta& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ServerMeta* internal_default_instance() {
+ return reinterpret_cast<const ServerMeta*>(
+ &_ServerMeta_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 29;
+
void Swap(ServerMeta* other);
+ friend void swap(ServerMeta& a, ServerMeta& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ServerMeta* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ServerMeta* New() const final {
+ return CreateMaybeMessage<ServerMeta>(NULL);
+ }
+
+ ServerMeta* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ServerMeta>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ServerMeta& from);
void MergeFrom(const ServerMeta& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ServerMeta* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional bool all_tables_selectable = 1;
- inline bool has_all_tables_selectable() const;
- inline void clear_all_tables_selectable();
- static const int kAllTablesSelectableFieldNumber = 1;
- inline bool all_tables_selectable() const;
- inline void set_all_tables_selectable(bool value);
-
- // optional bool blob_included_in_max_row_size = 2;
- inline bool has_blob_included_in_max_row_size() const;
- inline void clear_blob_included_in_max_row_size();
- static const int kBlobIncludedInMaxRowSizeFieldNumber = 2;
- inline bool blob_included_in_max_row_size() const;
- inline void set_blob_included_in_max_row_size(bool value);
-
- // optional bool catalog_at_start = 3;
- inline bool has_catalog_at_start() const;
- inline void clear_catalog_at_start();
- static const int kCatalogAtStartFieldNumber = 3;
- inline bool catalog_at_start() const;
- inline void set_catalog_at_start(bool value);
-
- // optional string catalog_separator = 4;
- inline bool has_catalog_separator() const;
- inline void clear_catalog_separator();
- static const int kCatalogSeparatorFieldNumber = 4;
- inline const ::std::string& catalog_separator() const;
- inline void set_catalog_separator(const ::std::string& value);
- inline void set_catalog_separator(const char* value);
- inline void set_catalog_separator(const char* value, size_t size);
- inline ::std::string* mutable_catalog_separator();
- inline ::std::string* release_catalog_separator();
- inline void set_allocated_catalog_separator(::std::string* catalog_separator);
-
- // optional string catalog_term = 5;
- inline bool has_catalog_term() const;
- inline void clear_catalog_term();
- static const int kCatalogTermFieldNumber = 5;
- inline const ::std::string& catalog_term() const;
- inline void set_catalog_term(const ::std::string& value);
- inline void set_catalog_term(const char* value);
- inline void set_catalog_term(const char* value, size_t size);
- inline ::std::string* mutable_catalog_term();
- inline ::std::string* release_catalog_term();
- inline void set_allocated_catalog_term(::std::string* catalog_term);
-
// repeated .exec.user.CollateSupport collate_support = 6;
- inline int collate_support_size() const;
- inline void clear_collate_support();
+ int collate_support_size() const;
+ void clear_collate_support();
static const int kCollateSupportFieldNumber = 6;
- inline ::exec::user::CollateSupport collate_support(int index) const;
- inline void set_collate_support(int index, ::exec::user::CollateSupport value);
- inline void add_collate_support(::exec::user::CollateSupport value);
- inline const ::google::protobuf::RepeatedField<int>& collate_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_collate_support();
-
- // optional bool column_aliasing_supported = 7;
- inline bool has_column_aliasing_supported() const;
- inline void clear_column_aliasing_supported();
- static const int kColumnAliasingSupportedFieldNumber = 7;
- inline bool column_aliasing_supported() const;
- inline void set_column_aliasing_supported(bool value);
+ ::exec::user::CollateSupport collate_support(int index) const;
+ void set_collate_support(int index, ::exec::user::CollateSupport value);
+ void add_collate_support(::exec::user::CollateSupport value);
+ const ::google::protobuf::RepeatedField<int>& collate_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_collate_support();
// repeated .exec.user.ConvertSupport convert_support = 8;
- inline int convert_support_size() const;
- inline void clear_convert_support();
+ int convert_support_size() const;
+ void clear_convert_support();
static const int kConvertSupportFieldNumber = 8;
- inline const ::exec::user::ConvertSupport& convert_support(int index) const;
- inline ::exec::user::ConvertSupport* mutable_convert_support(int index);
- inline ::exec::user::ConvertSupport* add_convert_support();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >&
- convert_support() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >*
+ ::exec::user::ConvertSupport* mutable_convert_support(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >*
mutable_convert_support();
-
- // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
- inline bool has_correlation_names_support() const;
- inline void clear_correlation_names_support();
- static const int kCorrelationNamesSupportFieldNumber = 9;
- inline ::exec::user::CorrelationNamesSupport correlation_names_support() const;
- inline void set_correlation_names_support(::exec::user::CorrelationNamesSupport value);
+ const ::exec::user::ConvertSupport& convert_support(int index) const;
+ ::exec::user::ConvertSupport* add_convert_support();
+ const ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >&
+ convert_support() const;
// repeated string date_time_functions = 10;
- inline int date_time_functions_size() const;
- inline void clear_date_time_functions();
+ int date_time_functions_size() const;
+ void clear_date_time_functions();
static const int kDateTimeFunctionsFieldNumber = 10;
- inline const ::std::string& date_time_functions(int index) const;
- inline ::std::string* mutable_date_time_functions(int index);
- inline void set_date_time_functions(int index, const ::std::string& value);
- inline void set_date_time_functions(int index, const char* value);
- inline void set_date_time_functions(int index, const char* value, size_t size);
- inline ::std::string* add_date_time_functions();
- inline void add_date_time_functions(const ::std::string& value);
- inline void add_date_time_functions(const char* value);
- inline void add_date_time_functions(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& date_time_functions() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_date_time_functions();
+ const ::std::string& date_time_functions(int index) const;
+ ::std::string* mutable_date_time_functions(int index);
+ void set_date_time_functions(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_date_time_functions(int index, ::std::string&& value);
+ #endif
+ void set_date_time_functions(int index, const char* value);
+ void set_date_time_functions(int index, const char* value, size_t size);
+ ::std::string* add_date_time_functions();
+ void add_date_time_functions(const ::std::string& value);
+ #if LANG_CXX11
+ void add_date_time_functions(::std::string&& value);
+ #endif
+ void add_date_time_functions(const char* value);
+ void add_date_time_functions(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& date_time_functions() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_date_time_functions();
// repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
- inline int date_time_literals_support_size() const;
- inline void clear_date_time_literals_support();
+ int date_time_literals_support_size() const;
+ void clear_date_time_literals_support();
static const int kDateTimeLiteralsSupportFieldNumber = 11;
- inline ::exec::user::DateTimeLiteralsSupport date_time_literals_support(int index) const;
- inline void set_date_time_literals_support(int index, ::exec::user::DateTimeLiteralsSupport value);
- inline void add_date_time_literals_support(::exec::user::DateTimeLiteralsSupport value);
- inline const ::google::protobuf::RepeatedField<int>& date_time_literals_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_date_time_literals_support();
+ ::exec::user::DateTimeLiteralsSupport date_time_literals_support(int index) const;
+ void set_date_time_literals_support(int index, ::exec::user::DateTimeLiteralsSupport value);
+ void add_date_time_literals_support(::exec::user::DateTimeLiteralsSupport value);
+ const ::google::protobuf::RepeatedField<int>& date_time_literals_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_date_time_literals_support();
- // optional .exec.user.GroupBySupport group_by_support = 12;
- inline bool has_group_by_support() const;
- inline void clear_group_by_support();
- static const int kGroupBySupportFieldNumber = 12;
- inline ::exec::user::GroupBySupport group_by_support() const;
- inline void set_group_by_support(::exec::user::GroupBySupport value);
+ // repeated string numeric_functions = 34;
+ int numeric_functions_size() const;
+ void clear_numeric_functions();
+ static const int kNumericFunctionsFieldNumber = 34;
+ const ::std::string& numeric_functions(int index) const;
+ ::std::string* mutable_numeric_functions(int index);
+ void set_numeric_functions(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_numeric_functions(int index, ::std::string&& value);
+ #endif
+ void set_numeric_functions(int index, const char* value);
+ void set_numeric_functions(int index, const char* value, size_t size);
+ ::std::string* add_numeric_functions();
+ void add_numeric_functions(const ::std::string& value);
+ #if LANG_CXX11
+ void add_numeric_functions(::std::string&& value);
+ #endif
+ void add_numeric_functions(const char* value);
+ void add_numeric_functions(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& numeric_functions() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_numeric_functions();
- // optional .exec.user.IdentifierCasing identifier_casing = 13;
- inline bool has_identifier_casing() const;
- inline void clear_identifier_casing();
- static const int kIdentifierCasingFieldNumber = 13;
- inline ::exec::user::IdentifierCasing identifier_casing() const;
- inline void set_identifier_casing(::exec::user::IdentifierCasing value);
+ // repeated .exec.user.OrderBySupport order_by_support = 35;
+ int order_by_support_size() const;
+ void clear_order_by_support();
+ static const int kOrderBySupportFieldNumber = 35;
+ ::exec::user::OrderBySupport order_by_support(int index) const;
+ void set_order_by_support(int index, ::exec::user::OrderBySupport value);
+ void add_order_by_support(::exec::user::OrderBySupport value);
+ const ::google::protobuf::RepeatedField<int>& order_by_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_order_by_support();
+
+ // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
+ int outer_join_support_size() const;
+ void clear_outer_join_support();
+ static const int kOuterJoinSupportFieldNumber = 36;
+ ::exec::user::OuterJoinSupport outer_join_support(int index) const;
+ void set_outer_join_support(int index, ::exec::user::OuterJoinSupport value);
+ void add_outer_join_support(::exec::user::OuterJoinSupport value);
+ const ::google::protobuf::RepeatedField<int>& outer_join_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_outer_join_support();
+
+ // repeated string sql_keywords = 43;
+ int sql_keywords_size() const;
+ void clear_sql_keywords();
+ static const int kSqlKeywordsFieldNumber = 43;
+ const ::std::string& sql_keywords(int index) const;
+ ::std::string* mutable_sql_keywords(int index);
+ void set_sql_keywords(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_sql_keywords(int index, ::std::string&& value);
+ #endif
+ void set_sql_keywords(int index, const char* value);
+ void set_sql_keywords(int index, const char* value, size_t size);
+ ::std::string* add_sql_keywords();
+ void add_sql_keywords(const ::std::string& value);
+ #if LANG_CXX11
+ void add_sql_keywords(::std::string&& value);
+ #endif
+ void add_sql_keywords(const char* value);
+ void add_sql_keywords(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& sql_keywords() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_sql_keywords();
+
+ // repeated string string_functions = 44;
+ int string_functions_size() const;
+ void clear_string_functions();
+ static const int kStringFunctionsFieldNumber = 44;
+ const ::std::string& string_functions(int index) const;
+ ::std::string* mutable_string_functions(int index);
+ void set_string_functions(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_string_functions(int index, ::std::string&& value);
+ #endif
+ void set_string_functions(int index, const char* value);
+ void set_string_functions(int index, const char* value, size_t size);
+ ::std::string* add_string_functions();
+ void add_string_functions(const ::std::string& value);
+ #if LANG_CXX11
+ void add_string_functions(::std::string&& value);
+ #endif
+ void add_string_functions(const char* value);
+ void add_string_functions(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& string_functions() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_functions();
+
+ // repeated .exec.user.SubQuerySupport subquery_support = 45;
+ int subquery_support_size() const;
+ void clear_subquery_support();
+ static const int kSubquerySupportFieldNumber = 45;
+ ::exec::user::SubQuerySupport subquery_support(int index) const;
+ void set_subquery_support(int index, ::exec::user::SubQuerySupport value);
+ void add_subquery_support(::exec::user::SubQuerySupport value);
+ const ::google::protobuf::RepeatedField<int>& subquery_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_subquery_support();
+
+ // repeated string system_functions = 46;
+ int system_functions_size() const;
+ void clear_system_functions();
+ static const int kSystemFunctionsFieldNumber = 46;
+ const ::std::string& system_functions(int index) const;
+ ::std::string* mutable_system_functions(int index);
+ void set_system_functions(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_system_functions(int index, ::std::string&& value);
+ #endif
+ void set_system_functions(int index, const char* value);
+ void set_system_functions(int index, const char* value, size_t size);
+ ::std::string* add_system_functions();
+ void add_system_functions(const ::std::string& value);
+ #if LANG_CXX11
+ void add_system_functions(::std::string&& value);
+ #endif
+ void add_system_functions(const char* value);
+ void add_system_functions(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& system_functions() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_system_functions();
+
+ // repeated .exec.user.UnionSupport union_support = 49;
+ int union_support_size() const;
+ void clear_union_support();
+ static const int kUnionSupportFieldNumber = 49;
+ ::exec::user::UnionSupport union_support(int index) const;
+ void set_union_support(int index, ::exec::user::UnionSupport value);
+ void add_union_support(::exec::user::UnionSupport value);
+ const ::google::protobuf::RepeatedField<int>& union_support() const;
+ ::google::protobuf::RepeatedField<int>* mutable_union_support();
+
+ // optional string catalog_separator = 4;
+ bool has_catalog_separator() const;
+ void clear_catalog_separator();
+ static const int kCatalogSeparatorFieldNumber = 4;
+ const ::std::string& catalog_separator() const;
+ void set_catalog_separator(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_separator(::std::string&& value);
+ #endif
+ void set_catalog_separator(const char* value);
+ void set_catalog_separator(const char* value, size_t size);
+ ::std::string* mutable_catalog_separator();
+ ::std::string* release_catalog_separator();
+ void set_allocated_catalog_separator(::std::string* catalog_separator);
+
+ // optional string catalog_term = 5;
+ bool has_catalog_term() const;
+ void clear_catalog_term();
+ static const int kCatalogTermFieldNumber = 5;
+ const ::std::string& catalog_term() const;
+ void set_catalog_term(const ::std::string& value);
+ #if LANG_CXX11
+ void set_catalog_term(::std::string&& value);
+ #endif
+ void set_catalog_term(const char* value);
+ void set_catalog_term(const char* value, size_t size);
+ ::std::string* mutable_catalog_term();
+ ::std::string* release_catalog_term();
+ void set_allocated_catalog_term(::std::string* catalog_term);
// optional string identifier_quote_string = 14;
- inline bool has_identifier_quote_string() const;
- inline void clear_identifier_quote_string();
+ bool has_identifier_quote_string() const;
+ void clear_identifier_quote_string();
static const int kIdentifierQuoteStringFieldNumber = 14;
- inline const ::std::string& identifier_quote_string() const;
- inline void set_identifier_quote_string(const ::std::string& value);
- inline void set_identifier_quote_string(const char* value);
- inline void set_identifier_quote_string(const char* value, size_t size);
- inline ::std::string* mutable_identifier_quote_string();
- inline ::std::string* release_identifier_quote_string();
- inline void set_allocated_identifier_quote_string(::std::string* identifier_quote_string);
+ const ::std::string& identifier_quote_string() const;
+ void set_identifier_quote_string(const ::std::string& value);
+ #if LANG_CXX11
+ void set_identifier_quote_string(::std::string&& value);
+ #endif
+ void set_identifier_quote_string(const char* value);
+ void set_identifier_quote_string(const char* value, size_t size);
+ ::std::string* mutable_identifier_quote_string();
+ ::std::string* release_identifier_quote_string();
+ void set_allocated_identifier_quote_string(::std::string* identifier_quote_string);
- // optional bool like_escape_clause_supported = 15;
- inline bool has_like_escape_clause_supported() const;
- inline void clear_like_escape_clause_supported();
- static const int kLikeEscapeClauseSupportedFieldNumber = 15;
- inline bool like_escape_clause_supported() const;
- inline void set_like_escape_clause_supported(bool value);
+ // optional string schema_term = 39;
+ bool has_schema_term() const;
+ void clear_schema_term();
+ static const int kSchemaTermFieldNumber = 39;
+ const ::std::string& schema_term() const;
+ void set_schema_term(const ::std::string& value);
+ #if LANG_CXX11
+ void set_schema_term(::std::string&& value);
+ #endif
+ void set_schema_term(const char* value);
+ void set_schema_term(const char* value, size_t size);
+ ::std::string* mutable_schema_term();
+ ::std::string* release_schema_term();
+ void set_allocated_schema_term(::std::string* schema_term);
+
+ // optional string search_escape_string = 40;
+ bool has_search_escape_string() const;
+ void clear_search_escape_string();
+ static const int kSearchEscapeStringFieldNumber = 40;
+ const ::std::string& search_escape_string() const;
+ void set_search_escape_string(const ::std::string& value);
+ #if LANG_CXX11
+ void set_search_escape_string(::std::string&& value);
+ #endif
+ void set_search_escape_string(const char* value);
+ void set_search_escape_string(const char* value, size_t size);
+ ::std::string* mutable_search_escape_string();
+ ::std::string* release_search_escape_string();
+ void set_allocated_search_escape_string(::std::string* search_escape_string);
+
+ // optional string special_characters = 42;
+ bool has_special_characters() const;
+ void clear_special_characters();
+ static const int kSpecialCharactersFieldNumber = 42;
+ const ::std::string& special_characters() const;
+ void set_special_characters(const ::std::string& value);
+ #if LANG_CXX11
+ void set_special_characters(::std::string&& value);
+ #endif
+ void set_special_characters(const char* value);
+ void set_special_characters(const char* value, size_t size);
+ ::std::string* mutable_special_characters();
+ ::std::string* release_special_characters();
+ void set_allocated_special_characters(::std::string* special_characters);
+
+ // optional string table_term = 47;
+ bool has_table_term() const;
+ void clear_table_term();
+ static const int kTableTermFieldNumber = 47;
+ const ::std::string& table_term() const;
+ void set_table_term(const ::std::string& value);
+ #if LANG_CXX11
+ void set_table_term(::std::string&& value);
+ #endif
+ void set_table_term(const char* value);
+ void set_table_term(const char* value, size_t size);
+ ::std::string* mutable_table_term();
+ ::std::string* release_table_term();
+ void set_allocated_table_term(::std::string* table_term);
+
+ // optional string current_schema = 50;
+ bool has_current_schema() const;
+ void clear_current_schema();
+ static const int kCurrentSchemaFieldNumber = 50;
+ const ::std::string& current_schema() const;
+ void set_current_schema(const ::std::string& value);
+ #if LANG_CXX11
+ void set_current_schema(::std::string&& value);
+ #endif
+ void set_current_schema(const char* value);
+ void set_current_schema(const char* value, size_t size);
+ ::std::string* mutable_current_schema();
+ ::std::string* release_current_schema();
+ void set_allocated_current_schema(::std::string* current_schema);
+
+ // optional bool all_tables_selectable = 1;
+ bool has_all_tables_selectable() const;
+ void clear_all_tables_selectable();
+ static const int kAllTablesSelectableFieldNumber = 1;
+ bool all_tables_selectable() const;
+ void set_all_tables_selectable(bool value);
+
+ // optional bool blob_included_in_max_row_size = 2;
+ bool has_blob_included_in_max_row_size() const;
+ void clear_blob_included_in_max_row_size();
+ static const int kBlobIncludedInMaxRowSizeFieldNumber = 2;
+ bool blob_included_in_max_row_size() const;
+ void set_blob_included_in_max_row_size(bool value);
+
+ // optional bool catalog_at_start = 3;
+ bool has_catalog_at_start() const;
+ void clear_catalog_at_start();
+ static const int kCatalogAtStartFieldNumber = 3;
+ bool catalog_at_start() const;
+ void set_catalog_at_start(bool value);
+
+ // optional bool column_aliasing_supported = 7;
+ bool has_column_aliasing_supported() const;
+ void clear_column_aliasing_supported();
+ static const int kColumnAliasingSupportedFieldNumber = 7;
+ bool column_aliasing_supported() const;
+ void set_column_aliasing_supported(bool value);
+
+ // optional .exec.user.IdentifierCasing identifier_casing = 13;
+ bool has_identifier_casing() const;
+ void clear_identifier_casing();
+ static const int kIdentifierCasingFieldNumber = 13;
+ ::exec::user::IdentifierCasing identifier_casing() const;
+ void set_identifier_casing(::exec::user::IdentifierCasing value);
// optional uint32 max_binary_literal_length = 16;
- inline bool has_max_binary_literal_length() const;
- inline void clear_max_binary_literal_length();
+ bool has_max_binary_literal_length() const;
+ void clear_max_binary_literal_length();
static const int kMaxBinaryLiteralLengthFieldNumber = 16;
- inline ::google::protobuf::uint32 max_binary_literal_length() const;
- inline void set_max_binary_literal_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_binary_literal_length() const;
+ void set_max_binary_literal_length(::google::protobuf::uint32 value);
// optional uint32 max_catalog_name_length = 17;
- inline bool has_max_catalog_name_length() const;
- inline void clear_max_catalog_name_length();
+ bool has_max_catalog_name_length() const;
+ void clear_max_catalog_name_length();
static const int kMaxCatalogNameLengthFieldNumber = 17;
- inline ::google::protobuf::uint32 max_catalog_name_length() const;
- inline void set_max_catalog_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_catalog_name_length() const;
+ void set_max_catalog_name_length(::google::protobuf::uint32 value);
// optional uint32 max_char_literal_length = 18;
- inline bool has_max_char_literal_length() const;
- inline void clear_max_char_literal_length();
+ bool has_max_char_literal_length() const;
+ void clear_max_char_literal_length();
static const int kMaxCharLiteralLengthFieldNumber = 18;
- inline ::google::protobuf::uint32 max_char_literal_length() const;
- inline void set_max_char_literal_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_char_literal_length() const;
+ void set_max_char_literal_length(::google::protobuf::uint32 value);
// optional uint32 max_column_name_length = 19;
- inline bool has_max_column_name_length() const;
- inline void clear_max_column_name_length();
+ bool has_max_column_name_length() const;
+ void clear_max_column_name_length();
static const int kMaxColumnNameLengthFieldNumber = 19;
- inline ::google::protobuf::uint32 max_column_name_length() const;
- inline void set_max_column_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_column_name_length() const;
+ void set_max_column_name_length(::google::protobuf::uint32 value);
// optional uint32 max_columns_in_group_by = 20;
- inline bool has_max_columns_in_group_by() const;
- inline void clear_max_columns_in_group_by();
+ bool has_max_columns_in_group_by() const;
+ void clear_max_columns_in_group_by();
static const int kMaxColumnsInGroupByFieldNumber = 20;
- inline ::google::protobuf::uint32 max_columns_in_group_by() const;
- inline void set_max_columns_in_group_by(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_columns_in_group_by() const;
+ void set_max_columns_in_group_by(::google::protobuf::uint32 value);
// optional uint32 max_columns_in_order_by = 21;
- inline bool has_max_columns_in_order_by() const;
- inline void clear_max_columns_in_order_by();
+ bool has_max_columns_in_order_by() const;
+ void clear_max_columns_in_order_by();
static const int kMaxColumnsInOrderByFieldNumber = 21;
- inline ::google::protobuf::uint32 max_columns_in_order_by() const;
- inline void set_max_columns_in_order_by(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_columns_in_order_by() const;
+ void set_max_columns_in_order_by(::google::protobuf::uint32 value);
// optional uint32 max_columns_in_select = 22;
- inline bool has_max_columns_in_select() const;
- inline void clear_max_columns_in_select();
+ bool has_max_columns_in_select() const;
+ void clear_max_columns_in_select();
static const int kMaxColumnsInSelectFieldNumber = 22;
- inline ::google::protobuf::uint32 max_columns_in_select() const;
- inline void set_max_columns_in_select(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_columns_in_select() const;
+ void set_max_columns_in_select(::google::protobuf::uint32 value);
// optional uint32 max_cursor_name_length = 23;
- inline bool has_max_cursor_name_length() const;
- inline void clear_max_cursor_name_length();
+ bool has_max_cursor_name_length() const;
+ void clear_max_cursor_name_length();
static const int kMaxCursorNameLengthFieldNumber = 23;
- inline ::google::protobuf::uint32 max_cursor_name_length() const;
- inline void set_max_cursor_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_cursor_name_length() const;
+ void set_max_cursor_name_length(::google::protobuf::uint32 value);
// optional uint32 max_logical_lob_size = 24;
- inline bool has_max_logical_lob_size() const;
- inline void clear_max_logical_lob_size();
+ bool has_max_logical_lob_size() const;
+ void clear_max_logical_lob_size();
static const int kMaxLogicalLobSizeFieldNumber = 24;
- inline ::google::protobuf::uint32 max_logical_lob_size() const;
- inline void set_max_logical_lob_size(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_logical_lob_size() const;
+ void set_max_logical_lob_size(::google::protobuf::uint32 value);
// optional uint32 max_row_size = 25;
- inline bool has_max_row_size() const;
- inline void clear_max_row_size();
+ bool has_max_row_size() const;
+ void clear_max_row_size();
static const int kMaxRowSizeFieldNumber = 25;
- inline ::google::protobuf::uint32 max_row_size() const;
- inline void set_max_row_size(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_row_size() const;
+ void set_max_row_size(::google::protobuf::uint32 value);
// optional uint32 max_schema_name_length = 26;
- inline bool has_max_schema_name_length() const;
- inline void clear_max_schema_name_length();
+ bool has_max_schema_name_length() const;
+ void clear_max_schema_name_length();
static const int kMaxSchemaNameLengthFieldNumber = 26;
- inline ::google::protobuf::uint32 max_schema_name_length() const;
- inline void set_max_schema_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_schema_name_length() const;
+ void set_max_schema_name_length(::google::protobuf::uint32 value);
// optional uint32 max_statement_length = 27;
- inline bool has_max_statement_length() const;
- inline void clear_max_statement_length();
+ bool has_max_statement_length() const;
+ void clear_max_statement_length();
static const int kMaxStatementLengthFieldNumber = 27;
- inline ::google::protobuf::uint32 max_statement_length() const;
- inline void set_max_statement_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_statement_length() const;
+ void set_max_statement_length(::google::protobuf::uint32 value);
// optional uint32 max_statements = 28;
- inline bool has_max_statements() const;
- inline void clear_max_statements();
+ bool has_max_statements() const;
+ void clear_max_statements();
static const int kMaxStatementsFieldNumber = 28;
- inline ::google::protobuf::uint32 max_statements() const;
- inline void set_max_statements(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_statements() const;
+ void set_max_statements(::google::protobuf::uint32 value);
// optional uint32 max_table_name_length = 29;
- inline bool has_max_table_name_length() const;
- inline void clear_max_table_name_length();
+ bool has_max_table_name_length() const;
+ void clear_max_table_name_length();
static const int kMaxTableNameLengthFieldNumber = 29;
- inline ::google::protobuf::uint32 max_table_name_length() const;
- inline void set_max_table_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_table_name_length() const;
+ void set_max_table_name_length(::google::protobuf::uint32 value);
// optional uint32 max_tables_in_select = 30;
- inline bool has_max_tables_in_select() const;
- inline void clear_max_tables_in_select();
+ bool has_max_tables_in_select() const;
+ void clear_max_tables_in_select();
static const int kMaxTablesInSelectFieldNumber = 30;
- inline ::google::protobuf::uint32 max_tables_in_select() const;
- inline void set_max_tables_in_select(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_tables_in_select() const;
+ void set_max_tables_in_select(::google::protobuf::uint32 value);
// optional uint32 max_user_name_length = 31;
- inline bool has_max_user_name_length() const;
- inline void clear_max_user_name_length();
+ bool has_max_user_name_length() const;
+ void clear_max_user_name_length();
static const int kMaxUserNameLengthFieldNumber = 31;
- inline ::google::protobuf::uint32 max_user_name_length() const;
- inline void set_max_user_name_length(::google::protobuf::uint32 value);
+ ::google::protobuf::uint32 max_user_name_length() const;
+ void set_max_user_name_length(::google::protobuf::uint32 value);
- // optional .exec.user.NullCollation null_collation = 32;
- inline bool has_null_collation() const;
- inline void clear_null_collation();
- static const int kNullCollationFieldNumber = 32;
- inline ::exec::user::NullCollation null_collation() const;
- inline void set_null_collation(::exec::user::NullCollation value);
+ // optional bool like_escape_clause_supported = 15;
+ bool has_like_escape_clause_supported() const;
+ void clear_like_escape_clause_supported();
+ static const int kLikeEscapeClauseSupportedFieldNumber = 15;
+ bool like_escape_clause_supported() const;
+ void set_like_escape_clause_supported(bool value);
// optional bool null_plus_non_null_equals_null = 33;
- inline bool has_null_plus_non_null_equals_null() const;
- inline void clear_null_plus_non_null_equals_null();
+ bool has_null_plus_non_null_equals_null() const;
+ void clear_null_plus_non_null_equals_null();
static const int kNullPlusNonNullEqualsNullFieldNumber = 33;
- inline bool null_plus_non_null_equals_null() const;
- inline void set_null_plus_non_null_equals_null(bool value);
-
- // repeated string numeric_functions = 34;
- inline int numeric_functions_size() const;
- inline void clear_numeric_functions();
- static const int kNumericFunctionsFieldNumber = 34;
- inline const ::std::string& numeric_functions(int index) const;
- inline ::std::string* mutable_numeric_functions(int index);
- inline void set_numeric_functions(int index, const ::std::string& value);
- inline void set_numeric_functions(int index, const char* value);
- inline void set_numeric_functions(int index, const char* value, size_t size);
- inline ::std::string* add_numeric_functions();
- inline void add_numeric_functions(const ::std::string& value);
- inline void add_numeric_functions(const char* value);
- inline void add_numeric_functions(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& numeric_functions() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_numeric_functions();
-
- // repeated .exec.user.OrderBySupport order_by_support = 35;
- inline int order_by_support_size() const;
- inline void clear_order_by_support();
- static const int kOrderBySupportFieldNumber = 35;
- inline ::exec::user::OrderBySupport order_by_support(int index) const;
- inline void set_order_by_support(int index, ::exec::user::OrderBySupport value);
- inline void add_order_by_support(::exec::user::OrderBySupport value);
- inline const ::google::protobuf::RepeatedField<int>& order_by_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_order_by_support();
-
- // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
- inline int outer_join_support_size() const;
- inline void clear_outer_join_support();
- static const int kOuterJoinSupportFieldNumber = 36;
- inline ::exec::user::OuterJoinSupport outer_join_support(int index) const;
- inline void set_outer_join_support(int index, ::exec::user::OuterJoinSupport value);
- inline void add_outer_join_support(::exec::user::OuterJoinSupport value);
- inline const ::google::protobuf::RepeatedField<int>& outer_join_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_outer_join_support();
-
- // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
- inline bool has_quoted_identifier_casing() const;
- inline void clear_quoted_identifier_casing();
- static const int kQuotedIdentifierCasingFieldNumber = 37;
- inline ::exec::user::IdentifierCasing quoted_identifier_casing() const;
- inline void set_quoted_identifier_casing(::exec::user::IdentifierCasing value);
+ bool null_plus_non_null_equals_null() const;
+ void set_null_plus_non_null_equals_null(bool value);
// optional bool read_only = 38;
- inline bool has_read_only() const;
- inline void clear_read_only();
+ bool has_read_only() const;
+ void clear_read_only();
static const int kReadOnlyFieldNumber = 38;
- inline bool read_only() const;
- inline void set_read_only(bool value);
-
- // optional string schema_term = 39;
- inline bool has_schema_term() const;
- inline void clear_schema_term();
- static const int kSchemaTermFieldNumber = 39;
- inline const ::std::string& schema_term() const;
- inline void set_schema_term(const ::std::string& value);
- inline void set_schema_term(const char* value);
- inline void set_schema_term(const char* value, size_t size);
- inline ::std::string* mutable_schema_term();
- inline ::std::string* release_schema_term();
- inline void set_allocated_schema_term(::std::string* schema_term);
-
- // optional string search_escape_string = 40;
- inline bool has_search_escape_string() const;
- inline void clear_search_escape_string();
- static const int kSearchEscapeStringFieldNumber = 40;
- inline const ::std::string& search_escape_string() const;
- inline void set_search_escape_string(const ::std::string& value);
- inline void set_search_escape_string(const char* value);
- inline void set_search_escape_string(const char* value, size_t size);
- inline ::std::string* mutable_search_escape_string();
- inline ::std::string* release_search_escape_string();
- inline void set_allocated_search_escape_string(::std::string* search_escape_string);
+ bool read_only() const;
+ void set_read_only(bool value);
// optional bool select_for_update_supported = 41;
- inline bool has_select_for_update_supported() const;
- inline void clear_select_for_update_supported();
+ bool has_select_for_update_supported() const;
+ void clear_select_for_update_supported();
static const int kSelectForUpdateSupportedFieldNumber = 41;
- inline bool select_for_update_supported() const;
- inline void set_select_for_update_supported(bool value);
-
- // optional string special_characters = 42;
- inline bool has_special_characters() const;
- inline void clear_special_characters();
- static const int kSpecialCharactersFieldNumber = 42;
- inline const ::std::string& special_characters() const;
- inline void set_special_characters(const ::std::string& value);
- inline void set_special_characters(const char* value);
- inline void set_special_characters(const char* value, size_t size);
- inline ::std::string* mutable_special_characters();
- inline ::std::string* release_special_characters();
- inline void set_allocated_special_characters(::std::string* special_characters);
-
- // repeated string sql_keywords = 43;
- inline int sql_keywords_size() const;
- inline void clear_sql_keywords();
- static const int kSqlKeywordsFieldNumber = 43;
- inline const ::std::string& sql_keywords(int index) const;
- inline ::std::string* mutable_sql_keywords(int index);
- inline void set_sql_keywords(int index, const ::std::string& value);
- inline void set_sql_keywords(int index, const char* value);
- inline void set_sql_keywords(int index, const char* value, size_t size);
- inline ::std::string* add_sql_keywords();
- inline void add_sql_keywords(const ::std::string& value);
- inline void add_sql_keywords(const char* value);
- inline void add_sql_keywords(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& sql_keywords() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_sql_keywords();
-
- // repeated string string_functions = 44;
- inline int string_functions_size() const;
- inline void clear_string_functions();
- static const int kStringFunctionsFieldNumber = 44;
- inline const ::std::string& string_functions(int index) const;
- inline ::std::string* mutable_string_functions(int index);
- inline void set_string_functions(int index, const ::std::string& value);
- inline void set_string_functions(int index, const char* value);
- inline void set_string_functions(int index, const char* value, size_t size);
- inline ::std::string* add_string_functions();
- inline void add_string_functions(const ::std::string& value);
- inline void add_string_functions(const char* value);
- inline void add_string_functions(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& string_functions() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_functions();
+ bool select_for_update_supported() const;
+ void set_select_for_update_supported(bool value);
- // repeated .exec.user.SubQuerySupport subquery_support = 45;
- inline int subquery_support_size() const;
- inline void clear_subquery_support();
- static const int kSubquerySupportFieldNumber = 45;
- inline ::exec::user::SubQuerySupport subquery_support(int index) const;
- inline void set_subquery_support(int index, ::exec::user::SubQuerySupport value);
- inline void add_subquery_support(::exec::user::SubQuerySupport value);
- inline const ::google::protobuf::RepeatedField<int>& subquery_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_subquery_support();
-
- // repeated string system_functions = 46;
- inline int system_functions_size() const;
- inline void clear_system_functions();
- static const int kSystemFunctionsFieldNumber = 46;
- inline const ::std::string& system_functions(int index) const;
- inline ::std::string* mutable_system_functions(int index);
- inline void set_system_functions(int index, const ::std::string& value);
- inline void set_system_functions(int index, const char* value);
- inline void set_system_functions(int index, const char* value, size_t size);
- inline ::std::string* add_system_functions();
- inline void add_system_functions(const ::std::string& value);
- inline void add_system_functions(const char* value);
- inline void add_system_functions(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& system_functions() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_system_functions();
+ // optional .exec.user.NullCollation null_collation = 32;
+ bool has_null_collation() const;
+ void clear_null_collation();
+ static const int kNullCollationFieldNumber = 32;
+ ::exec::user::NullCollation null_collation() const;
+ void set_null_collation(::exec::user::NullCollation value);
- // optional string table_term = 47;
- inline bool has_table_term() const;
- inline void clear_table_term();
- static const int kTableTermFieldNumber = 47;
- inline const ::std::string& table_term() const;
- inline void set_table_term(const ::std::string& value);
- inline void set_table_term(const char* value);
- inline void set_table_term(const char* value, size_t size);
- inline ::std::string* mutable_table_term();
- inline ::std::string* release_table_term();
- inline void set_allocated_table_term(::std::string* table_term);
+ // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
+ bool has_quoted_identifier_casing() const;
+ void clear_quoted_identifier_casing();
+ static const int kQuotedIdentifierCasingFieldNumber = 37;
+ ::exec::user::IdentifierCasing quoted_identifier_casing() const;
+ void set_quoted_identifier_casing(::exec::user::IdentifierCasing value);
// optional bool transaction_supported = 48;
- inline bool has_transaction_supported() const;
- inline void clear_transaction_supported();
+ bool has_transaction_supported() const;
+ void clear_transaction_supported();
static const int kTransactionSupportedFieldNumber = 48;
- inline bool transaction_supported() const;
- inline void set_transaction_supported(bool value);
+ bool transaction_supported() const;
+ void set_transaction_supported(bool value);
- // repeated .exec.user.UnionSupport union_support = 49;
- inline int union_support_size() const;
- inline void clear_union_support();
- static const int kUnionSupportFieldNumber = 49;
- inline ::exec::user::UnionSupport union_support(int index) const;
- inline void set_union_support(int index, ::exec::user::UnionSupport value);
- inline void add_union_support(::exec::user::UnionSupport value);
- inline const ::google::protobuf::RepeatedField<int>& union_support() const;
- inline ::google::protobuf::RepeatedField<int>* mutable_union_support();
+ // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
+ bool has_correlation_names_support() const;
+ void clear_correlation_names_support();
+ static const int kCorrelationNamesSupportFieldNumber = 9;
+ ::exec::user::CorrelationNamesSupport correlation_names_support() const;
+ void set_correlation_names_support(::exec::user::CorrelationNamesSupport value);
- // optional string current_schema = 50;
- inline bool has_current_schema() const;
- inline void clear_current_schema();
- static const int kCurrentSchemaFieldNumber = 50;
- inline const ::std::string& current_schema() const;
- inline void set_current_schema(const ::std::string& value);
- inline void set_current_schema(const char* value);
- inline void set_current_schema(const char* value, size_t size);
- inline ::std::string* mutable_current_schema();
- inline ::std::string* release_current_schema();
- inline void set_allocated_current_schema(::std::string* current_schema);
+ // optional .exec.user.GroupBySupport group_by_support = 12;
+ bool has_group_by_support() const;
+ void clear_group_by_support();
+ static const int kGroupBySupportFieldNumber = 12;
+ ::exec::user::GroupBySupport group_by_support() const;
+ void set_group_by_support(::exec::user::GroupBySupport value);
// @@protoc_insertion_point(class_scope:exec.user.ServerMeta)
private:
- inline void set_has_all_tables_selectable();
- inline void clear_has_all_tables_selectable();
- inline void set_has_blob_included_in_max_row_size();
- inline void clear_has_blob_included_in_max_row_size();
- inline void set_has_catalog_at_start();
- inline void clear_has_catalog_at_start();
- inline void set_has_catalog_separator();
- inline void clear_has_catalog_separator();
- inline void set_has_catalog_term();
- inline void clear_has_catalog_term();
- inline void set_has_column_aliasing_supported();
- inline void clear_has_column_aliasing_supported();
- inline void set_has_correlation_names_support();
- inline void clear_has_correlation_names_support();
- inline void set_has_group_by_support();
- inline void clear_has_group_by_support();
- inline void set_has_identifier_casing();
- inline void clear_has_identifier_casing();
- inline void set_has_identifier_quote_string();
- inline void clear_has_identifier_quote_string();
- inline void set_has_like_escape_clause_supported();
- inline void clear_has_like_escape_clause_supported();
- inline void set_has_max_binary_literal_length();
- inline void clear_has_max_binary_literal_length();
- inline void set_has_max_catalog_name_length();
- inline void clear_has_max_catalog_name_length();
- inline void set_has_max_char_literal_length();
- inline void clear_has_max_char_literal_length();
- inline void set_has_max_column_name_length();
- inline void clear_has_max_column_name_length();
- inline void set_has_max_columns_in_group_by();
- inline void clear_has_max_columns_in_group_by();
- inline void set_has_max_columns_in_order_by();
- inline void clear_has_max_columns_in_order_by();
- inline void set_has_max_columns_in_select();
- inline void clear_has_max_columns_in_select();
- inline void set_has_max_cursor_name_length();
- inline void clear_has_max_cursor_name_length();
- inline void set_has_max_logical_lob_size();
- inline void clear_has_max_logical_lob_size();
- inline void set_has_max_row_size();
- inline void clear_has_max_row_size();
- inline void set_has_max_schema_name_length();
- inline void clear_has_max_schema_name_length();
- inline void set_has_max_statement_length();
- inline void clear_has_max_statement_length();
- inline void set_has_max_statements();
- inline void clear_has_max_statements();
- inline void set_has_max_table_name_length();
- inline void clear_has_max_table_name_length();
- inline void set_has_max_tables_in_select();
- inline void clear_has_max_tables_in_select();
- inline void set_has_max_user_name_length();
- inline void clear_has_max_user_name_length();
- inline void set_has_null_collation();
- inline void clear_has_null_collation();
- inline void set_has_null_plus_non_null_equals_null();
- inline void clear_has_null_plus_non_null_equals_null();
- inline void set_has_quoted_identifier_casing();
- inline void clear_has_quoted_identifier_casing();
- inline void set_has_read_only();
- inline void clear_has_read_only();
- inline void set_has_schema_term();
- inline void clear_has_schema_term();
- inline void set_has_search_escape_string();
- inline void clear_has_search_escape_string();
- inline void set_has_select_for_update_supported();
- inline void clear_has_select_for_update_supported();
- inline void set_has_special_characters();
- inline void clear_has_special_characters();
- inline void set_has_table_term();
- inline void clear_has_table_term();
- inline void set_has_transaction_supported();
- inline void clear_has_transaction_supported();
- inline void set_has_current_schema();
- inline void clear_has_current_schema();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* catalog_separator_;
- bool all_tables_selectable_;
- bool blob_included_in_max_row_size_;
- bool catalog_at_start_;
- bool column_aliasing_supported_;
- int correlation_names_support_;
- ::std::string* catalog_term_;
+ void set_has_all_tables_selectable();
+ void clear_has_all_tables_selectable();
+ void set_has_blob_included_in_max_row_size();
+ void clear_has_blob_included_in_max_row_size();
+ void set_has_catalog_at_start();
+ void clear_has_catalog_at_start();
+ void set_has_catalog_separator();
+ void clear_has_catalog_separator();
+ void set_has_catalog_term();
+ void clear_has_catalog_term();
+ void set_has_column_aliasing_supported();
+ void clear_has_column_aliasing_supported();
+ void set_has_correlation_names_support();
+ void clear_has_correlation_names_support();
+ void set_has_group_by_support();
+ void clear_has_group_by_support();
+ void set_has_identifier_casing();
+ void clear_has_identifier_casing();
+ void set_has_identifier_quote_string();
+ void clear_has_identifier_quote_string();
+ void set_has_like_escape_clause_supported();
+ void clear_has_like_escape_clause_supported();
+ void set_has_max_binary_literal_length();
+ void clear_has_max_binary_literal_length();
+ void set_has_max_catalog_name_length();
+ void clear_has_max_catalog_name_length();
+ void set_has_max_char_literal_length();
+ void clear_has_max_char_literal_length();
+ void set_has_max_column_name_length();
+ void clear_has_max_column_name_length();
+ void set_has_max_columns_in_group_by();
+ void clear_has_max_columns_in_group_by();
+ void set_has_max_columns_in_order_by();
+ void clear_has_max_columns_in_order_by();
+ void set_has_max_columns_in_select();
+ void clear_has_max_columns_in_select();
+ void set_has_max_cursor_name_length();
+ void clear_has_max_cursor_name_length();
+ void set_has_max_logical_lob_size();
+ void clear_has_max_logical_lob_size();
+ void set_has_max_row_size();
+ void clear_has_max_row_size();
+ void set_has_max_schema_name_length();
+ void clear_has_max_schema_name_length();
+ void set_has_max_statement_length();
+ void clear_has_max_statement_length();
+ void set_has_max_statements();
+ void clear_has_max_statements();
+ void set_has_max_table_name_length();
+ void clear_has_max_table_name_length();
+ void set_has_max_tables_in_select();
+ void clear_has_max_tables_in_select();
+ void set_has_max_user_name_length();
+ void clear_has_max_user_name_length();
+ void set_has_null_collation();
+ void clear_has_null_collation();
+ void set_has_null_plus_non_null_equals_null();
+ void clear_has_null_plus_non_null_equals_null();
+ void set_has_quoted_identifier_casing();
+ void clear_has_quoted_identifier_casing();
+ void set_has_read_only();
+ void clear_has_read_only();
+ void set_has_schema_term();
+ void clear_has_schema_term();
+ void set_has_search_escape_string();
+ void clear_has_search_escape_string();
+ void set_has_select_for_update_supported();
+ void clear_has_select_for_update_supported();
+ void set_has_special_characters();
+ void clear_has_special_characters();
+ void set_has_table_term();
+ void clear_has_table_term();
+ void set_has_transaction_supported();
+ void clear_has_transaction_supported();
+ void set_has_current_schema();
+ void clear_has_current_schema();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<2> _has_bits_;
::google::protobuf::RepeatedField<int> collate_support_;
::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport > convert_support_;
::google::protobuf::RepeatedPtrField< ::std::string> date_time_functions_;
::google::protobuf::RepeatedField<int> date_time_literals_support_;
- int group_by_support_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> numeric_functions_;
+ ::google::protobuf::RepeatedField<int> order_by_support_;
+ ::google::protobuf::RepeatedField<int> outer_join_support_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> sql_keywords_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> string_functions_;
+ ::google::protobuf::RepeatedField<int> subquery_support_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> system_functions_;
+ ::google::protobuf::RepeatedField<int> union_support_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_separator_;
+ ::google::protobuf::internal::ArenaStringPtr catalog_term_;
+ ::google::protobuf::internal::ArenaStringPtr identifier_quote_string_;
+ ::google::protobuf::internal::ArenaStringPtr schema_term_;
+ ::google::protobuf::internal::ArenaStringPtr search_escape_string_;
+ ::google::protobuf::internal::ArenaStringPtr special_characters_;
+ ::google::protobuf::internal::ArenaStringPtr table_term_;
+ ::google::protobuf::internal::ArenaStringPtr current_schema_;
+ bool all_tables_selectable_;
+ bool blob_included_in_max_row_size_;
+ bool catalog_at_start_;
+ bool column_aliasing_supported_;
int identifier_casing_;
- ::std::string* identifier_quote_string_;
::google::protobuf::uint32 max_binary_literal_length_;
::google::protobuf::uint32 max_catalog_name_length_;
::google::protobuf::uint32 max_char_literal_length_;
@@ -4695,35 +6055,16 @@ class ServerMeta : public ::google::protobuf::Message {
bool read_only_;
bool select_for_update_supported_;
int null_collation_;
- ::google::protobuf::RepeatedPtrField< ::std::string> numeric_functions_;
- ::google::protobuf::RepeatedField<int> order_by_support_;
- ::google::protobuf::RepeatedField<int> outer_join_support_;
- ::std::string* schema_term_;
- ::std::string* search_escape_string_;
- ::std::string* special_characters_;
int quoted_identifier_casing_;
bool transaction_supported_;
- ::google::protobuf::RepeatedPtrField< ::std::string> sql_keywords_;
- ::google::protobuf::RepeatedPtrField< ::std::string> string_functions_;
- ::google::protobuf::RepeatedField<int> subquery_support_;
- ::google::protobuf::RepeatedPtrField< ::std::string> system_functions_;
- ::std::string* table_term_;
- ::google::protobuf::RepeatedField<int> union_support_;
- ::std::string* current_schema_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(50 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static ServerMeta* default_instance_;
+ int correlation_names_support_;
+ int group_by_support_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RunQuery : public ::google::protobuf::Message {
+class RunQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.user.RunQuery) */ {
public:
RunQuery();
virtual ~RunQuery();
@@ -4734,130 +6075,172 @@ class RunQuery : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RunQuery(RunQuery&& from) noexcept
+ : RunQuery() {
+ *this = ::std::move(from);
+ }
+ inline RunQuery& operator=(RunQuery&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RunQuery& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RunQuery* internal_default_instance() {
+ return reinterpret_cast<const RunQuery*>(
+ &_RunQuery_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 30;
+
void Swap(RunQuery* other);
+ friend void swap(RunQuery& a, RunQuery& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RunQuery* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RunQuery* New() const final {
+ return CreateMaybeMessage<RunQuery>(NULL);
+ }
+
+ RunQuery* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RunQuery>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RunQuery& from);
void MergeFrom(const RunQuery& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RunQuery* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.user.QueryResultsMode results_mode = 1;
- inline bool has_results_mode() const;
- inline void clear_results_mode();
- static const int kResultsModeFieldNumber = 1;
- inline ::exec::user::QueryResultsMode results_mode() const;
- inline void set_results_mode(::exec::user::QueryResultsMode value);
-
- // optional .exec.shared.QueryType type = 2;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 2;
- inline ::exec::shared::QueryType type() const;
- inline void set_type(::exec::shared::QueryType value);
-
- // optional string plan = 3;
- inline bool has_plan() const;
- inline void clear_plan();
- static const int kPlanFieldNumber = 3;
- inline const ::std::string& plan() const;
- inline void set_plan(const ::std::string& value);
- inline void set_plan(const char* value);
- inline void set_plan(const char* value, size_t size);
- inline ::std::string* mutable_plan();
- inline ::std::string* release_plan();
- inline void set_allocated_plan(::std::string* plan);
-
// repeated .exec.bit.control.PlanFragment fragments = 4;
- inline int fragments_size() const;
- inline void clear_fragments();
+ int fragments_size() const;
+ void clear_fragments();
static const int kFragmentsFieldNumber = 4;
- inline const ::exec::bit::control::PlanFragment& fragments(int index) const;
- inline ::exec::bit::control::PlanFragment* mutable_fragments(int index);
- inline ::exec::bit::control::PlanFragment* add_fragments();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
- fragments() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+ ::exec::bit::control::PlanFragment* mutable_fragments(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
mutable_fragments();
+ const ::exec::bit::control::PlanFragment& fragments(int index) const;
+ ::exec::bit::control::PlanFragment* add_fragments();
+ const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
+ fragments() const;
+
+ // optional string plan = 3;
+ bool has_plan() const;
+ void clear_plan();
+ static const int kPlanFieldNumber = 3;
+ const ::std::string& plan() const;
+ void set_plan(const ::std::string& value);
+ #if LANG_CXX11
+ void set_plan(::std::string&& value);
+ #endif
+ void set_plan(const char* value);
+ void set_plan(const char* value, size_t size);
+ ::std::string* mutable_plan();
+ ::std::string* release_plan();
+ void set_allocated_plan(::std::string* plan);
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- inline bool has_prepared_statement_handle() const;
- inline void clear_prepared_statement_handle();
+ bool has_prepared_statement_handle() const;
+ void clear_prepared_statement_handle();
static const int kPreparedStatementHandleFieldNumber = 5;
- inline const ::exec::user::PreparedStatementHandle& prepared_statement_handle() const;
- inline ::exec::user::PreparedStatementHandle* mutable_prepared_statement_handle();
- inline ::exec::user::PreparedStatementHandle* release_prepared_statement_handle();
- inline void set_allocated_prepared_statement_handle(::exec::user::PreparedStatementHandle* prepared_statement_handle);
+ private:
+ const ::exec::user::PreparedStatementHandle& _internal_prepared_statement_handle() const;
+ public:
+ const ::exec::user::PreparedStatementHandle& prepared_statement_handle() const;
+ ::exec::user::PreparedStatementHandle* release_prepared_statement_handle();
+ ::exec::user::PreparedStatementHandle* mutable_prepared_statement_handle();
+ void set_allocated_prepared_statement_handle(::exec::user::PreparedStatementHandle* prepared_statement_handle);
- // @@protoc_insertion_point(class_scope:exec.user.RunQuery)
- private:
- inline void set_has_results_mode();
- inline void clear_has_results_mode();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_plan();
- inline void clear_has_plan();
- inline void set_has_prepared_statement_handle();
- inline void clear_has_prepared_statement_handle();
+ // optional .exec.user.QueryResultsMode results_mode = 1;
+ bool has_results_mode() const;
+ void clear_results_mode();
+ static const int kResultsModeFieldNumber = 1;
+ ::exec::user::QueryResultsMode results_mode() const;
+ void set_results_mode(::exec::user::QueryResultsMode value);
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ // optional .exec.shared.QueryType type = 2;
+ bool has_type() const;
+ void clear_type();
+ static const int kTypeFieldNumber = 2;
+ ::exec::shared::QueryType type() const;
+ void set_type(::exec::shared::QueryType value);
- int results_mode_;
- int type_;
- ::std::string* plan_;
+ // @@protoc_insertion_point(class_scope:exec.user.RunQuery)
+ private:
+ void set_has_results_mode();
+ void clear_has_results_mode();
+ void set_has_type();
+ void clear_has_type();
+ void set_has_plan();
+ void clear_has_plan();
+ void set_has_prepared_statement_handle();
+ void clear_has_prepared_statement_handle();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment > fragments_;
+ ::google::protobuf::internal::ArenaStringPtr plan_;
::exec::user::PreparedStatementHandle* prepared_statement_handle_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
-
- friend void protobuf_AddDesc_User_2eproto();
- friend void protobuf_AssignDesc_User_2eproto();
- friend void protobuf_ShutdownFile_User_2eproto();
-
- void InitAsDefaultInstance();
- static RunQuery* default_instance_;
+ int results_mode_;
+ int type_;
+ friend struct ::protobuf_User_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// Property
// required string key = 1;
@@ -4871,63 +6254,59 @@ inline void Property::clear_has_key() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Property::clear_key() {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- key_->clear();
- }
+ key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_key();
}
inline const ::std::string& Property::key() const {
- return *key_;
+ // @@protoc_insertion_point(field_get:exec.user.Property.key)
+ return key_.GetNoArena();
}
inline void Property::set_key(const ::std::string& value) {
set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(value);
+ key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.Property.key)
+}
+#if LANG_CXX11
+inline void Property::set_key(::std::string&& value) {
+ set_has_key();
+ key_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.Property.key)
}
+#endif
inline void Property::set_key(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(value);
+ key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.Property.key)
}
inline void Property::set_key(const char* value, size_t size) {
set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- key_->assign(reinterpret_cast<const char*>(value), size);
+ key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.Property.key)
}
inline ::std::string* Property::mutable_key() {
set_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
- key_ = new ::std::string;
- }
- return key_;
+ // @@protoc_insertion_point(field_mutable:exec.user.Property.key)
+ return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Property::release_key() {
- clear_has_key();
- if (key_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.Property.key)
+ if (!has_key()) {
return NULL;
- } else {
- ::std::string* temp = key_;
- key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_key();
+ return key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Property::set_allocated_key(::std::string* key) {
- if (key_ != &::google::protobuf::internal::kEmptyString) {
- delete key_;
- }
- if (key) {
+ if (key != NULL) {
set_has_key();
- key_ = key;
} else {
clear_has_key();
- key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.Property.key)
}
// required string value = 2;
@@ -4941,63 +6320,59 @@ inline void Property::clear_has_value() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Property::clear_value() {
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- value_->clear();
- }
+ value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_value();
}
inline const ::std::string& Property::value() const {
- return *value_;
+ // @@protoc_insertion_point(field_get:exec.user.Property.value)
+ return value_.GetNoArena();
}
inline void Property::set_value(const ::std::string& value) {
set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(value);
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.Property.value)
}
+#if LANG_CXX11
+inline void Property::set_value(::std::string&& value) {
+ set_has_value();
+ value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.Property.value)
+}
+#endif
inline void Property::set_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(value);
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.Property.value)
}
inline void Property::set_value(const char* value, size_t size) {
set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- value_->assign(reinterpret_cast<const char*>(value), size);
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.Property.value)
}
inline ::std::string* Property::mutable_value() {
set_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
- value_ = new ::std::string;
- }
- return value_;
+ // @@protoc_insertion_point(field_mutable:exec.user.Property.value)
+ return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Property::release_value() {
- clear_has_value();
- if (value_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.Property.value)
+ if (!has_value()) {
return NULL;
- } else {
- ::std::string* temp = value_;
- value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_value();
+ return value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Property::set_allocated_value(::std::string* value) {
- if (value_ != &::google::protobuf::internal::kEmptyString) {
- delete value_;
- }
- if (value) {
+ if (value != NULL) {
set_has_value();
- value_ = value;
} else {
clear_has_value();
- value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.Property.value)
}
// -------------------------------------------------------------------
@@ -5011,23 +6386,28 @@ inline int UserProperties::properties_size() const {
inline void UserProperties::clear_properties() {
properties_.Clear();
}
-inline const ::exec::user::Property& UserProperties::properties(int index) const {
- return properties_.Get(index);
-}
inline ::exec::user::Property* UserProperties::mutable_properties(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.UserProperties.properties)
return properties_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::Property >*
+UserProperties::mutable_properties() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.UserProperties.properties)
+ return &properties_;
+}
+inline const ::exec::user::Property& UserProperties::properties(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.UserProperties.properties)
+ return properties_.Get(index);
+}
inline ::exec::user::Property* UserProperties::add_properties() {
+ // @@protoc_insertion_point(field_add:exec.user.UserProperties.properties)
return properties_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::Property >&
UserProperties::properties() const {
+ // @@protoc_insertion_point(field_list:exec.user.UserProperties.properties)
return properties_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::Property >*
-UserProperties::mutable_properties() {
- return &properties_;
-}
// -------------------------------------------------------------------
@@ -5044,63 +6424,59 @@ inline void RpcEndpointInfos::clear_has_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void RpcEndpointInfos::clear_name() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
}
inline const ::std::string& RpcEndpointInfos::name() const {
- return *name_;
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.name)
+ return name_.GetNoArena();
}
inline void RpcEndpointInfos::set_name(const ::std::string& value) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.name)
+}
+#if LANG_CXX11
+inline void RpcEndpointInfos::set_name(::std::string&& value) {
+ set_has_name();
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.RpcEndpointInfos.name)
}
+#endif
inline void RpcEndpointInfos::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.RpcEndpointInfos.name)
}
inline void RpcEndpointInfos::set_name(const char* value, size_t size) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(reinterpret_cast<const char*>(value), size);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.RpcEndpointInfos.name)
}
inline ::std::string* RpcEndpointInfos::mutable_name() {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- return name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.RpcEndpointInfos.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* RpcEndpointInfos::release_name() {
- clear_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.RpcEndpointInfos.name)
+ if (!has_name()) {
return NULL;
- } else {
- ::std::string* temp = name_;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_name();
+ return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void RpcEndpointInfos::set_allocated_name(::std::string* name) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (name) {
+ if (name != NULL) {
set_has_name();
- name_ = name;
} else {
clear_has_name();
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RpcEndpointInfos.name)
}
// optional string version = 2;
@@ -5114,291 +6490,287 @@ inline void RpcEndpointInfos::clear_has_version() {
_has_bits_[0] &= ~0x00000002u;
}
inline void RpcEndpointInfos::clear_version() {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- version_->clear();
- }
+ version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_version();
}
inline const ::std::string& RpcEndpointInfos::version() const {
- return *version_;
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.version)
+ return version_.GetNoArena();
}
inline void RpcEndpointInfos::set_version(const ::std::string& value) {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(value);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.version)
+}
+#if LANG_CXX11
+inline void RpcEndpointInfos::set_version(::std::string&& value) {
+ set_has_version();
+ version_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.RpcEndpointInfos.version)
}
+#endif
inline void RpcEndpointInfos::set_version(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(value);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.RpcEndpointInfos.version)
}
inline void RpcEndpointInfos::set_version(const char* value, size_t size) {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- version_->assign(reinterpret_cast<const char*>(value), size);
+ version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.RpcEndpointInfos.version)
}
inline ::std::string* RpcEndpointInfos::mutable_version() {
set_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
- version_ = new ::std::string;
- }
- return version_;
+ // @@protoc_insertion_point(field_mutable:exec.user.RpcEndpointInfos.version)
+ return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* RpcEndpointInfos::release_version() {
- clear_has_version();
- if (version_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.RpcEndpointInfos.version)
+ if (!has_version()) {
return NULL;
- } else {
- ::std::string* temp = version_;
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_version();
+ return version_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void RpcEndpointInfos::set_allocated_version(::std::string* version) {
- if (version_ != &::google::protobuf::internal::kEmptyString) {
- delete version_;
- }
- if (version) {
+ if (version != NULL) {
set_has_version();
- version_ = version;
} else {
clear_has_version();
- version_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RpcEndpointInfos.version)
}
// optional uint32 majorVersion = 3;
inline bool RpcEndpointInfos::has_majorversion() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void RpcEndpointInfos::set_has_majorversion() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void RpcEndpointInfos::clear_has_majorversion() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void RpcEndpointInfos::clear_majorversion() {
majorversion_ = 0u;
clear_has_majorversion();
}
inline ::google::protobuf::uint32 RpcEndpointInfos::majorversion() const {
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.majorVersion)
return majorversion_;
}
inline void RpcEndpointInfos::set_majorversion(::google::protobuf::uint32 value) {
set_has_majorversion();
majorversion_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.majorVersion)
}
// optional uint32 minorVersion = 4;
inline bool RpcEndpointInfos::has_minorversion() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void RpcEndpointInfos::set_has_minorversion() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void RpcEndpointInfos::clear_has_minorversion() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void RpcEndpointInfos::clear_minorversion() {
minorversion_ = 0u;
clear_has_minorversion();
}
inline ::google::protobuf::uint32 RpcEndpointInfos::minorversion() const {
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.minorVersion)
return minorversion_;
}
inline void RpcEndpointInfos::set_minorversion(::google::protobuf::uint32 value) {
set_has_minorversion();
minorversion_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.minorVersion)
}
// optional uint32 patchVersion = 5;
inline bool RpcEndpointInfos::has_patchversion() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void RpcEndpointInfos::set_has_patchversion() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void RpcEndpointInfos::clear_has_patchversion() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void RpcEndpointInfos::clear_patchversion() {
patchversion_ = 0u;
clear_has_patchversion();
}
inline ::google::protobuf::uint32 RpcEndpointInfos::patchversion() const {
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.patchVersion)
return patchversion_;
}
inline void RpcEndpointInfos::set_patchversion(::google::protobuf::uint32 value) {
set_has_patchversion();
patchversion_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.patchVersion)
}
// optional string application = 6;
inline bool RpcEndpointInfos::has_application() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void RpcEndpointInfos::set_has_application() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void RpcEndpointInfos::clear_has_application() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void RpcEndpointInfos::clear_application() {
- if (application_ != &::google::protobuf::internal::kEmptyString) {
- application_->clear();
- }
+ application_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_application();
}
inline const ::std::string& RpcEndpointInfos::application() const {
- return *application_;
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.application)
+ return application_.GetNoArena();
}
inline void RpcEndpointInfos::set_application(const ::std::string& value) {
set_has_application();
- if (application_ == &::google::protobuf::internal::kEmptyString) {
- application_ = new ::std::string;
- }
- application_->assign(value);
+ application_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.application)
+}
+#if LANG_CXX11
+inline void RpcEndpointInfos::set_application(::std::string&& value) {
+ set_has_application();
+ application_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.RpcEndpointInfos.application)
}
+#endif
inline void RpcEndpointInfos::set_application(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_application();
- if (application_ == &::google::protobuf::internal::kEmptyString) {
- application_ = new ::std::string;
- }
- application_->assign(value);
+ application_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.RpcEndpointInfos.application)
}
inline void RpcEndpointInfos::set_application(const char* value, size_t size) {
set_has_application();
- if (application_ == &::google::protobuf::internal::kEmptyString) {
- application_ = new ::std::string;
- }
- application_->assign(reinterpret_cast<const char*>(value), size);
+ application_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.RpcEndpointInfos.application)
}
inline ::std::string* RpcEndpointInfos::mutable_application() {
set_has_application();
- if (application_ == &::google::protobuf::internal::kEmptyString) {
- application_ = new ::std::string;
- }
- return application_;
+ // @@protoc_insertion_point(field_mutable:exec.user.RpcEndpointInfos.application)
+ return application_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* RpcEndpointInfos::release_application() {
- clear_has_application();
- if (application_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.RpcEndpointInfos.application)
+ if (!has_application()) {
return NULL;
- } else {
- ::std::string* temp = application_;
- application_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_application();
+ return application_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void RpcEndpointInfos::set_allocated_application(::std::string* application) {
- if (application_ != &::google::protobuf::internal::kEmptyString) {
- delete application_;
- }
- if (application) {
+ if (application != NULL) {
set_has_application();
- application_ = application;
} else {
clear_has_application();
- application_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ application_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), application);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RpcEndpointInfos.application)
}
// optional uint32 buildNumber = 7;
inline bool RpcEndpointInfos::has_buildnumber() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void RpcEndpointInfos::set_has_buildnumber() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void RpcEndpointInfos::clear_has_buildnumber() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void RpcEndpointInfos::clear_buildnumber() {
buildnumber_ = 0u;
clear_has_buildnumber();
}
inline ::google::protobuf::uint32 RpcEndpointInfos::buildnumber() const {
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.buildNumber)
return buildnumber_;
}
inline void RpcEndpointInfos::set_buildnumber(::google::protobuf::uint32 value) {
set_has_buildnumber();
buildnumber_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.buildNumber)
}
// optional string versionQualifier = 8;
inline bool RpcEndpointInfos::has_versionqualifier() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void RpcEndpointInfos::set_has_versionqualifier() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void RpcEndpointInfos::clear_has_versionqualifier() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void RpcEndpointInfos::clear_versionqualifier() {
- if (versionqualifier_ != &::google::protobuf::internal::kEmptyString) {
- versionqualifier_->clear();
- }
+ versionqualifier_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_versionqualifier();
}
inline const ::std::string& RpcEndpointInfos::versionqualifier() const {
- return *versionqualifier_;
+ // @@protoc_insertion_point(field_get:exec.user.RpcEndpointInfos.versionQualifier)
+ return versionqualifier_.GetNoArena();
}
inline void RpcEndpointInfos::set_versionqualifier(const ::std::string& value) {
set_has_versionqualifier();
- if (versionqualifier_ == &::google::protobuf::internal::kEmptyString) {
- versionqualifier_ = new ::std::string;
- }
- versionqualifier_->assign(value);
+ versionqualifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.RpcEndpointInfos.versionQualifier)
+}
+#if LANG_CXX11
+inline void RpcEndpointInfos::set_versionqualifier(::std::string&& value) {
+ set_has_versionqualifier();
+ versionqualifier_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.RpcEndpointInfos.versionQualifier)
}
+#endif
inline void RpcEndpointInfos::set_versionqualifier(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_versionqualifier();
- if (versionqualifier_ == &::google::protobuf::internal::kEmptyString) {
- versionqualifier_ = new ::std::string;
- }
- versionqualifier_->assign(value);
+ versionqualifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.RpcEndpointInfos.versionQualifier)
}
inline void RpcEndpointInfos::set_versionqualifier(const char* value, size_t size) {
set_has_versionqualifier();
- if (versionqualifier_ == &::google::protobuf::internal::kEmptyString) {
- versionqualifier_ = new ::std::string;
- }
- versionqualifier_->assign(reinterpret_cast<const char*>(value), size);
+ versionqualifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.RpcEndpointInfos.versionQualifier)
}
inline ::std::string* RpcEndpointInfos::mutable_versionqualifier() {
set_has_versionqualifier();
- if (versionqualifier_ == &::google::protobuf::internal::kEmptyString) {
- versionqualifier_ = new ::std::string;
- }
- return versionqualifier_;
+ // @@protoc_insertion_point(field_mutable:exec.user.RpcEndpointInfos.versionQualifier)
+ return versionqualifier_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* RpcEndpointInfos::release_versionqualifier() {
- clear_has_versionqualifier();
- if (versionqualifier_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.RpcEndpointInfos.versionQualifier)
+ if (!has_versionqualifier()) {
return NULL;
- } else {
- ::std::string* temp = versionqualifier_;
- versionqualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_versionqualifier();
+ return versionqualifier_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void RpcEndpointInfos::set_allocated_versionqualifier(::std::string* versionqualifier) {
- if (versionqualifier_ != &::google::protobuf::internal::kEmptyString) {
- delete versionqualifier_;
- }
- if (versionqualifier) {
+ if (versionqualifier != NULL) {
set_has_versionqualifier();
- versionqualifier_ = versionqualifier;
} else {
clear_has_versionqualifier();
- versionqualifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ versionqualifier_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), versionqualifier);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RpcEndpointInfos.versionQualifier)
}
// -------------------------------------------------------------------
@@ -5407,145 +6779,187 @@ inline void RpcEndpointInfos::set_allocated_versionqualifier(::std::string* vers
// optional .exec.shared.RpcChannel channel = 1 [default = USER];
inline bool UserToBitHandshake::has_channel() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void UserToBitHandshake::set_has_channel() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void UserToBitHandshake::clear_has_channel() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void UserToBitHandshake::clear_channel() {
channel_ = 2;
clear_has_channel();
}
inline ::exec::shared::RpcChannel UserToBitHandshake::channel() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.channel)
return static_cast< ::exec::shared::RpcChannel >(channel_);
}
inline void UserToBitHandshake::set_channel(::exec::shared::RpcChannel value) {
assert(::exec::shared::RpcChannel_IsValid(value));
set_has_channel();
channel_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.channel)
}
// optional bool support_listening = 2;
inline bool UserToBitHandshake::has_support_listening() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void UserToBitHandshake::set_has_support_listening() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void UserToBitHandshake::clear_has_support_listening() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void UserToBitHandshake::clear_support_listening() {
support_listening_ = false;
clear_has_support_listening();
}
inline bool UserToBitHandshake::support_listening() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.support_listening)
return support_listening_;
}
inline void UserToBitHandshake::set_support_listening(bool value) {
set_has_support_listening();
support_listening_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.support_listening)
}
// optional int32 rpc_version = 3;
inline bool UserToBitHandshake::has_rpc_version() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void UserToBitHandshake::set_has_rpc_version() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void UserToBitHandshake::clear_has_rpc_version() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void UserToBitHandshake::clear_rpc_version() {
rpc_version_ = 0;
clear_has_rpc_version();
}
inline ::google::protobuf::int32 UserToBitHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.rpc_version)
return rpc_version_;
}
inline void UserToBitHandshake::set_rpc_version(::google::protobuf::int32 value) {
set_has_rpc_version();
rpc_version_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.rpc_version)
}
// optional .exec.shared.UserCredentials credentials = 4;
inline bool UserToBitHandshake::has_credentials() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void UserToBitHandshake::set_has_credentials() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void UserToBitHandshake::clear_has_credentials() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void UserToBitHandshake::clear_credentials() {
- if (credentials_ != NULL) credentials_->::exec::shared::UserCredentials::Clear();
- clear_has_credentials();
+inline const ::exec::shared::UserCredentials& UserToBitHandshake::_internal_credentials() const {
+ return *credentials_;
}
inline const ::exec::shared::UserCredentials& UserToBitHandshake::credentials() const {
- return credentials_ != NULL ? *credentials_ : *default_instance_->credentials_;
-}
-inline ::exec::shared::UserCredentials* UserToBitHandshake::mutable_credentials() {
- set_has_credentials();
- if (credentials_ == NULL) credentials_ = new ::exec::shared::UserCredentials;
- return credentials_;
+ const ::exec::shared::UserCredentials* p = credentials_;
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.credentials)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::UserCredentials*>(
+ &::exec::shared::_UserCredentials_default_instance_);
}
inline ::exec::shared::UserCredentials* UserToBitHandshake::release_credentials() {
+ // @@protoc_insertion_point(field_release:exec.user.UserToBitHandshake.credentials)
clear_has_credentials();
::exec::shared::UserCredentials* temp = credentials_;
credentials_ = NULL;
return temp;
}
+inline ::exec::shared::UserCredentials* UserToBitHandshake::mutable_credentials() {
+ set_has_credentials();
+ if (credentials_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::UserCredentials>(GetArenaNoVirtual());
+ credentials_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.UserToBitHandshake.credentials)
+ return credentials_;
+}
inline void UserToBitHandshake::set_allocated_credentials(::exec::shared::UserCredentials* credentials) {
- delete credentials_;
- credentials_ = credentials;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(credentials_);
+ }
if (credentials) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ credentials = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, credentials, submessage_arena);
+ }
set_has_credentials();
} else {
clear_has_credentials();
}
+ credentials_ = credentials;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.UserToBitHandshake.credentials)
}
// optional .exec.user.UserProperties properties = 5;
inline bool UserToBitHandshake::has_properties() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void UserToBitHandshake::set_has_properties() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void UserToBitHandshake::clear_has_properties() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void UserToBitHandshake::clear_properties() {
- if (properties_ != NULL) properties_->::exec::user::UserProperties::Clear();
+ if (properties_ != NULL) properties_->Clear();
clear_has_properties();
}
-inline const ::exec::user::UserProperties& UserToBitHandshake::properties() const {
- return properties_ != NULL ? *properties_ : *default_instance_->properties_;
+inline const ::exec::user::UserProperties& UserToBitHandshake::_internal_properties() const {
+ return *properties_;
}
-inline ::exec::user::UserProperties* UserToBitHandshake::mutable_properties() {
- set_has_properties();
- if (properties_ == NULL) properties_ = new ::exec::user::UserProperties;
- return properties_;
+inline const ::exec::user::UserProperties& UserToBitHandshake::properties() const {
+ const ::exec::user::UserProperties* p = properties_;
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.properties)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::UserProperties*>(
+ &::exec::user::_UserProperties_default_instance_);
}
inline ::exec::user::UserProperties* UserToBitHandshake::release_properties() {
+ // @@protoc_insertion_point(field_release:exec.user.UserToBitHandshake.properties)
clear_has_properties();
::exec::user::UserProperties* temp = properties_;
properties_ = NULL;
return temp;
}
+inline ::exec::user::UserProperties* UserToBitHandshake::mutable_properties() {
+ set_has_properties();
+ if (properties_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::UserProperties>(GetArenaNoVirtual());
+ properties_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.UserToBitHandshake.properties)
+ return properties_;
+}
inline void UserToBitHandshake::set_allocated_properties(::exec::user::UserProperties* properties) {
- delete properties_;
- properties_ = properties;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete properties_;
+ }
if (properties) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ properties = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, properties, submessage_arena);
+ }
set_has_properties();
} else {
clear_has_properties();
}
+ properties_ = properties;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.UserToBitHandshake.properties)
}
// optional bool support_complex_types = 6 [default = false];
@@ -5563,11 +6977,13 @@ inline void UserToBitHandshake::clear_support_complex_types() {
clear_has_support_complex_types();
}
inline bool UserToBitHandshake::support_complex_types() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.support_complex_types)
return support_complex_types_;
}
inline void UserToBitHandshake::set_support_complex_types(bool value) {
set_has_support_complex_types();
support_complex_types_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.support_complex_types)
}
// optional bool support_timeout = 7 [default = false];
@@ -5585,72 +7001,96 @@ inline void UserToBitHandshake::clear_support_timeout() {
clear_has_support_timeout();
}
inline bool UserToBitHandshake::support_timeout() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.support_timeout)
return support_timeout_;
}
inline void UserToBitHandshake::set_support_timeout(bool value) {
set_has_support_timeout();
support_timeout_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.support_timeout)
}
// optional .exec.user.RpcEndpointInfos client_infos = 8;
inline bool UserToBitHandshake::has_client_infos() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void UserToBitHandshake::set_has_client_infos() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void UserToBitHandshake::clear_has_client_infos() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void UserToBitHandshake::clear_client_infos() {
- if (client_infos_ != NULL) client_infos_->::exec::user::RpcEndpointInfos::Clear();
+ if (client_infos_ != NULL) client_infos_->Clear();
clear_has_client_infos();
}
-inline const ::exec::user::RpcEndpointInfos& UserToBitHandshake::client_infos() const {
- return client_infos_ != NULL ? *client_infos_ : *default_instance_->client_infos_;
+inline const ::exec::user::RpcEndpointInfos& UserToBitHandshake::_internal_client_infos() const {
+ return *client_infos_;
}
-inline ::exec::user::RpcEndpointInfos* UserToBitHandshake::mutable_client_infos() {
- set_has_client_infos();
- if (client_infos_ == NULL) client_infos_ = new ::exec::user::RpcEndpointInfos;
- return client_infos_;
+inline const ::exec::user::RpcEndpointInfos& UserToBitHandshake::client_infos() const {
+ const ::exec::user::RpcEndpointInfos* p = client_infos_;
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.client_infos)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::RpcEndpointInfos*>(
+ &::exec::user::_RpcEndpointInfos_default_instance_);
}
inline ::exec::user::RpcEndpointInfos* UserToBitHandshake::release_client_infos() {
+ // @@protoc_insertion_point(field_release:exec.user.UserToBitHandshake.client_infos)
clear_has_client_infos();
::exec::user::RpcEndpointInfos* temp = client_infos_;
client_infos_ = NULL;
return temp;
}
+inline ::exec::user::RpcEndpointInfos* UserToBitHandshake::mutable_client_infos() {
+ set_has_client_infos();
+ if (client_infos_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::RpcEndpointInfos>(GetArenaNoVirtual());
+ client_infos_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.UserToBitHandshake.client_infos)
+ return client_infos_;
+}
inline void UserToBitHandshake::set_allocated_client_infos(::exec::user::RpcEndpointInfos* client_infos) {
- delete client_infos_;
- client_infos_ = client_infos;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete client_infos_;
+ }
if (client_infos) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ client_infos = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, client_infos, submessage_arena);
+ }
set_has_client_infos();
} else {
clear_has_client_infos();
}
+ client_infos_ = client_infos;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.UserToBitHandshake.client_infos)
}
// optional .exec.user.SaslSupport sasl_support = 9;
inline bool UserToBitHandshake::has_sasl_support() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void UserToBitHandshake::set_has_sasl_support() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void UserToBitHandshake::clear_has_sasl_support() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void UserToBitHandshake::clear_sasl_support() {
sasl_support_ = 0;
clear_has_sasl_support();
}
inline ::exec::user::SaslSupport UserToBitHandshake::sasl_support() const {
+ // @@protoc_insertion_point(field_get:exec.user.UserToBitHandshake.sasl_support)
return static_cast< ::exec::user::SaslSupport >(sasl_support_);
}
inline void UserToBitHandshake::set_sasl_support(::exec::user::SaslSupport value) {
assert(::exec::user::SaslSupport_IsValid(value));
set_has_sasl_support();
sasl_support_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.UserToBitHandshake.sasl_support)
}
// -------------------------------------------------------------------
@@ -5667,32 +7107,48 @@ inline void RequestResults::set_has_query_id() {
inline void RequestResults::clear_has_query_id() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void RequestResults::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- clear_has_query_id();
+inline const ::exec::shared::QueryId& RequestResults::_internal_query_id() const {
+ return *query_id_;
}
inline const ::exec::shared::QueryId& RequestResults::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
-}
-inline ::exec::shared::QueryId* RequestResults::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.user.RequestResults.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* RequestResults::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.user.RequestResults.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* RequestResults::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.RequestResults.query_id)
+ return query_id_;
+}
inline void RequestResults::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_id_);
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RequestResults.query_id)
}
// optional int32 maximum_responses = 2;
@@ -5710,11 +7166,13 @@ inline void RequestResults::clear_maximum_responses() {
clear_has_maximum_responses();
}
inline ::google::protobuf::int32 RequestResults::maximum_responses() const {
+ // @@protoc_insertion_point(field_get:exec.user.RequestResults.maximum_responses)
return maximum_responses_;
}
inline void RequestResults::set_maximum_responses(::google::protobuf::int32 value) {
set_has_maximum_responses();
maximum_responses_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RequestResults.maximum_responses)
}
// -------------------------------------------------------------------
@@ -5732,108 +7190,108 @@ inline void GetQueryPlanFragments::clear_has_query() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GetQueryPlanFragments::clear_query() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
+ query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_query();
}
inline const ::std::string& GetQueryPlanFragments::query() const {
- return *query_;
+ // @@protoc_insertion_point(field_get:exec.user.GetQueryPlanFragments.query)
+ return query_.GetNoArena();
}
inline void GetQueryPlanFragments::set_query(const ::std::string& value) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.GetQueryPlanFragments.query)
}
+#if LANG_CXX11
+inline void GetQueryPlanFragments::set_query(::std::string&& value) {
+ set_has_query();
+ query_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.GetQueryPlanFragments.query)
+}
+#endif
inline void GetQueryPlanFragments::set_query(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.GetQueryPlanFragments.query)
}
inline void GetQueryPlanFragments::set_query(const char* value, size_t size) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(reinterpret_cast<const char*>(value), size);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.GetQueryPlanFragments.query)
}
inline ::std::string* GetQueryPlanFragments::mutable_query() {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- return query_;
+ // @@protoc_insertion_point(field_mutable:exec.user.GetQueryPlanFragments.query)
+ return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* GetQueryPlanFragments::release_query() {
- clear_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.GetQueryPlanFragments.query)
+ if (!has_query()) {
return NULL;
- } else {
- ::std::string* temp = query_;
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_query();
+ return query_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void GetQueryPlanFragments::set_allocated_query(::std::string* query) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (query) {
+ if (query != NULL) {
set_has_query();
- query_ = query;
} else {
clear_has_query();
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetQueryPlanFragments.query)
}
// optional .exec.shared.QueryType type = 2;
inline bool GetQueryPlanFragments::has_type() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void GetQueryPlanFragments::set_has_type() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void GetQueryPlanFragments::clear_has_type() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void GetQueryPlanFragments::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::exec::shared::QueryType GetQueryPlanFragments::type() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetQueryPlanFragments.type)
return static_cast< ::exec::shared::QueryType >(type_);
}
inline void GetQueryPlanFragments::set_type(::exec::shared::QueryType value) {
assert(::exec::shared::QueryType_IsValid(value));
set_has_type();
type_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetQueryPlanFragments.type)
}
// optional bool split_plan = 3 [default = false];
inline bool GetQueryPlanFragments::has_split_plan() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetQueryPlanFragments::set_has_split_plan() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetQueryPlanFragments::clear_has_split_plan() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void GetQueryPlanFragments::clear_split_plan() {
split_plan_ = false;
clear_has_split_plan();
}
inline bool GetQueryPlanFragments::split_plan() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetQueryPlanFragments.split_plan)
return split_plan_;
}
inline void GetQueryPlanFragments::set_split_plan(bool value) {
set_has_split_plan();
split_plan_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetQueryPlanFragments.split_plan)
}
// -------------------------------------------------------------------
@@ -5842,126 +7300,162 @@ inline void GetQueryPlanFragments::set_split_plan(bool value) {
// required .exec.shared.QueryResult.QueryState status = 1;
inline bool QueryPlanFragments::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void QueryPlanFragments::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void QueryPlanFragments::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void QueryPlanFragments::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::shared::QueryResult_QueryState QueryPlanFragments::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.QueryPlanFragments.status)
return static_cast< ::exec::shared::QueryResult_QueryState >(status_);
}
inline void QueryPlanFragments::set_status(::exec::shared::QueryResult_QueryState value) {
assert(::exec::shared::QueryResult_QueryState_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.QueryPlanFragments.status)
}
// optional .exec.shared.QueryId query_id = 2;
inline bool QueryPlanFragments::has_query_id() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void QueryPlanFragments::set_has_query_id() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void QueryPlanFragments::clear_has_query_id() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void QueryPlanFragments::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- clear_has_query_id();
+inline const ::exec::shared::QueryId& QueryPlanFragments::_internal_query_id() const {
+ return *query_id_;
}
inline const ::exec::shared::QueryId& QueryPlanFragments::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
-}
-inline ::exec::shared::QueryId* QueryPlanFragments::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.user.QueryPlanFragments.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* QueryPlanFragments::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.user.QueryPlanFragments.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* QueryPlanFragments::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.QueryPlanFragments.query_id)
+ return query_id_;
+}
inline void QueryPlanFragments::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_id_);
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.QueryPlanFragments.query_id)
}
// repeated .exec.bit.control.PlanFragment fragments = 3;
inline int QueryPlanFragments::fragments_size() const {
return fragments_.size();
}
-inline void QueryPlanFragments::clear_fragments() {
- fragments_.Clear();
+inline ::exec::bit::control::PlanFragment* QueryPlanFragments::mutable_fragments(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.QueryPlanFragments.fragments)
+ return fragments_.Mutable(index);
+}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+QueryPlanFragments::mutable_fragments() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.QueryPlanFragments.fragments)
+ return &fragments_;
}
inline const ::exec::bit::control::PlanFragment& QueryPlanFragments::fragments(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.QueryPlanFragments.fragments)
return fragments_.Get(index);
}
-inline ::exec::bit::control::PlanFragment* QueryPlanFragments::mutable_fragments(int index) {
- return fragments_.Mutable(index);
-}
inline ::exec::bit::control::PlanFragment* QueryPlanFragments::add_fragments() {
+ // @@protoc_insertion_point(field_add:exec.user.QueryPlanFragments.fragments)
return fragments_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
QueryPlanFragments::fragments() const {
+ // @@protoc_insertion_point(field_list:exec.user.QueryPlanFragments.fragments)
return fragments_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
-QueryPlanFragments::mutable_fragments() {
- return &fragments_;
-}
// optional .exec.shared.DrillPBError error = 4;
inline bool QueryPlanFragments::has_error() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryPlanFragments::set_has_error() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryPlanFragments::clear_has_error() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void QueryPlanFragments::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& QueryPlanFragments::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& QueryPlanFragments::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* QueryPlanFragments::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.QueryPlanFragments.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* QueryPlanFragments::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.QueryPlanFragments.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* QueryPlanFragments::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.QueryPlanFragments.error)
+ return error_;
+}
inline void QueryPlanFragments::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.QueryPlanFragments.error)
}
// -------------------------------------------------------------------
@@ -5970,225 +7464,241 @@ inline void QueryPlanFragments::set_allocated_error(::exec::shared::DrillPBError
// optional int32 rpc_version = 2;
inline bool BitToUserHandshake::has_rpc_version() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void BitToUserHandshake::set_has_rpc_version() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void BitToUserHandshake::clear_has_rpc_version() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void BitToUserHandshake::clear_rpc_version() {
rpc_version_ = 0;
clear_has_rpc_version();
}
inline ::google::protobuf::int32 BitToUserHandshake::rpc_version() const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.rpc_version)
return rpc_version_;
}
inline void BitToUserHandshake::set_rpc_version(::google::protobuf::int32 value) {
set_has_rpc_version();
rpc_version_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.rpc_version)
}
// optional .exec.user.HandshakeStatus status = 3;
inline bool BitToUserHandshake::has_status() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void BitToUserHandshake::set_has_status() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void BitToUserHandshake::clear_has_status() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void BitToUserHandshake::clear_status() {
status_ = 1;
clear_has_status();
}
inline ::exec::user::HandshakeStatus BitToUserHandshake::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.status)
return static_cast< ::exec::user::HandshakeStatus >(status_);
}
inline void BitToUserHandshake::set_status(::exec::user::HandshakeStatus value) {
assert(::exec::user::HandshakeStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.status)
}
// optional string errorId = 4;
inline bool BitToUserHandshake::has_errorid() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void BitToUserHandshake::set_has_errorid() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void BitToUserHandshake::clear_has_errorid() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void BitToUserHandshake::clear_errorid() {
- if (errorid_ != &::google::protobuf::internal::kEmptyString) {
- errorid_->clear();
- }
+ errorid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_errorid();
}
inline const ::std::string& BitToUserHandshake::errorid() const {
- return *errorid_;
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.errorId)
+ return errorid_.GetNoArena();
}
inline void BitToUserHandshake::set_errorid(const ::std::string& value) {
set_has_errorid();
- if (errorid_ == &::google::protobuf::internal::kEmptyString) {
- errorid_ = new ::std::string;
- }
- errorid_->assign(value);
+ errorid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.errorId)
+}
+#if LANG_CXX11
+inline void BitToUserHandshake::set_errorid(::std::string&& value) {
+ set_has_errorid();
+ errorid_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.BitToUserHandshake.errorId)
}
+#endif
inline void BitToUserHandshake::set_errorid(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_errorid();
- if (errorid_ == &::google::protobuf::internal::kEmptyString) {
- errorid_ = new ::std::string;
- }
- errorid_->assign(value);
+ errorid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.BitToUserHandshake.errorId)
}
inline void BitToUserHandshake::set_errorid(const char* value, size_t size) {
set_has_errorid();
- if (errorid_ == &::google::protobuf::internal::kEmptyString) {
- errorid_ = new ::std::string;
- }
- errorid_->assign(reinterpret_cast<const char*>(value), size);
+ errorid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.BitToUserHandshake.errorId)
}
inline ::std::string* BitToUserHandshake::mutable_errorid() {
set_has_errorid();
- if (errorid_ == &::google::protobuf::internal::kEmptyString) {
- errorid_ = new ::std::string;
- }
- return errorid_;
+ // @@protoc_insertion_point(field_mutable:exec.user.BitToUserHandshake.errorId)
+ return errorid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BitToUserHandshake::release_errorid() {
- clear_has_errorid();
- if (errorid_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.BitToUserHandshake.errorId)
+ if (!has_errorid()) {
return NULL;
- } else {
- ::std::string* temp = errorid_;
- errorid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_errorid();
+ return errorid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BitToUserHandshake::set_allocated_errorid(::std::string* errorid) {
- if (errorid_ != &::google::protobuf::internal::kEmptyString) {
- delete errorid_;
- }
- if (errorid) {
+ if (errorid != NULL) {
set_has_errorid();
- errorid_ = errorid;
} else {
clear_has_errorid();
- errorid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ errorid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), errorid);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.BitToUserHandshake.errorId)
}
// optional string errorMessage = 5;
inline bool BitToUserHandshake::has_errormessage() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void BitToUserHandshake::set_has_errormessage() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void BitToUserHandshake::clear_has_errormessage() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void BitToUserHandshake::clear_errormessage() {
- if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
- errormessage_->clear();
- }
+ errormessage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_errormessage();
}
inline const ::std::string& BitToUserHandshake::errormessage() const {
- return *errormessage_;
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.errorMessage)
+ return errormessage_.GetNoArena();
}
inline void BitToUserHandshake::set_errormessage(const ::std::string& value) {
set_has_errormessage();
- if (errormessage_ == &::google::protobuf::internal::kEmptyString) {
- errormessage_ = new ::std::string;
- }
- errormessage_->assign(value);
+ errormessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.errorMessage)
}
+#if LANG_CXX11
+inline void BitToUserHandshake::set_errormessage(::std::string&& value) {
+ set_has_errormessage();
+ errormessage_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.BitToUserHandshake.errorMessage)
+}
+#endif
inline void BitToUserHandshake::set_errormessage(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_errormessage();
- if (errormessage_ == &::google::protobuf::internal::kEmptyString) {
- errormessage_ = new ::std::string;
- }
- errormessage_->assign(value);
+ errormessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.BitToUserHandshake.errorMessage)
}
inline void BitToUserHandshake::set_errormessage(const char* value, size_t size) {
set_has_errormessage();
- if (errormessage_ == &::google::protobuf::internal::kEmptyString) {
- errormessage_ = new ::std::string;
- }
- errormessage_->assign(reinterpret_cast<const char*>(value), size);
+ errormessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.BitToUserHandshake.errorMessage)
}
inline ::std::string* BitToUserHandshake::mutable_errormessage() {
set_has_errormessage();
- if (errormessage_ == &::google::protobuf::internal::kEmptyString) {
- errormessage_ = new ::std::string;
- }
- return errormessage_;
+ // @@protoc_insertion_point(field_mutable:exec.user.BitToUserHandshake.errorMessage)
+ return errormessage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* BitToUserHandshake::release_errormessage() {
- clear_has_errormessage();
- if (errormessage_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.BitToUserHandshake.errorMessage)
+ if (!has_errormessage()) {
return NULL;
- } else {
- ::std::string* temp = errormessage_;
- errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_errormessage();
+ return errormessage_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void BitToUserHandshake::set_allocated_errormessage(::std::string* errormessage) {
- if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
- delete errormessage_;
- }
- if (errormessage) {
+ if (errormessage != NULL) {
set_has_errormessage();
- errormessage_ = errormessage;
} else {
clear_has_errormessage();
- errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ errormessage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), errormessage);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.BitToUserHandshake.errorMessage)
}
// optional .exec.user.RpcEndpointInfos server_infos = 6;
inline bool BitToUserHandshake::has_server_infos() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void BitToUserHandshake::set_has_server_infos() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void BitToUserHandshake::clear_has_server_infos() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void BitToUserHandshake::clear_server_infos() {
- if (server_infos_ != NULL) server_infos_->::exec::user::RpcEndpointInfos::Clear();
+ if (server_infos_ != NULL) server_infos_->Clear();
clear_has_server_infos();
}
-inline const ::exec::user::RpcEndpointInfos& BitToUserHandshake::server_infos() const {
- return server_infos_ != NULL ? *server_infos_ : *default_instance_->server_infos_;
+inline const ::exec::user::RpcEndpointInfos& BitToUserHandshake::_internal_server_infos() const {
+ return *server_infos_;
}
-inline ::exec::user::RpcEndpointInfos* BitToUserHandshake::mutable_server_infos() {
- set_has_server_infos();
- if (server_infos_ == NULL) server_infos_ = new ::exec::user::RpcEndpointInfos;
- return server_infos_;
+inline const ::exec::user::RpcEndpointInfos& BitToUserHandshake::server_infos() const {
+ const ::exec::user::RpcEndpointInfos* p = server_infos_;
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.server_infos)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::RpcEndpointInfos*>(
+ &::exec::user::_RpcEndpointInfos_default_instance_);
}
inline ::exec::user::RpcEndpointInfos* BitToUserHandshake::release_server_infos() {
+ // @@protoc_insertion_point(field_release:exec.user.BitToUserHandshake.server_infos)
clear_has_server_infos();
::exec::user::RpcEndpointInfos* temp = server_infos_;
server_infos_ = NULL;
return temp;
}
+inline ::exec::user::RpcEndpointInfos* BitToUserHandshake::mutable_server_infos() {
+ set_has_server_infos();
+ if (server_infos_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::RpcEndpointInfos>(GetArenaNoVirtual());
+ server_infos_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.BitToUserHandshake.server_infos)
+ return server_infos_;
+}
inline void BitToUserHandshake::set_allocated_server_infos(::exec::user::RpcEndpointInfos* server_infos) {
- delete server_infos_;
- server_infos_ = server_infos;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete server_infos_;
+ }
if (server_infos) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ server_infos = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, server_infos, submessage_arena);
+ }
set_has_server_infos();
} else {
clear_has_server_infos();
}
+ server_infos_ = server_infos;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.BitToUserHandshake.server_infos)
}
// repeated string authenticationMechanisms = 7;
@@ -6199,39 +7709,64 @@ inline void BitToUserHandshake::clear_authenticationmechanisms() {
authenticationmechanisms_.Clear();
}
inline const ::std::string& BitToUserHandshake::authenticationmechanisms(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.authenticationMechanisms)
return authenticationmechanisms_.Get(index);
}
inline ::std::string* BitToUserHandshake::mutable_authenticationmechanisms(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.BitToUserHandshake.authenticationMechanisms)
return authenticationmechanisms_.Mutable(index);
}
inline void BitToUserHandshake::set_authenticationmechanisms(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.authenticationMechanisms)
authenticationmechanisms_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void BitToUserHandshake::set_authenticationmechanisms(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.authenticationMechanisms)
+ authenticationmechanisms_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void BitToUserHandshake::set_authenticationmechanisms(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.BitToUserHandshake.authenticationMechanisms)
}
inline void BitToUserHandshake::set_authenticationmechanisms(int index, const char* value, size_t size) {
authenticationmechanisms_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.BitToUserHandshake.authenticationMechanisms)
}
inline ::std::string* BitToUserHandshake::add_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.BitToUserHandshake.authenticationMechanisms)
return authenticationmechanisms_.Add();
}
inline void BitToUserHandshake::add_authenticationmechanisms(const ::std::string& value) {
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.BitToUserHandshake.authenticationMechanisms)
}
+#if LANG_CXX11
+inline void BitToUserHandshake::add_authenticationmechanisms(::std::string&& value) {
+ authenticationmechanisms_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.BitToUserHandshake.authenticationMechanisms)
+}
+#endif
inline void BitToUserHandshake::add_authenticationmechanisms(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
authenticationmechanisms_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.BitToUserHandshake.authenticationMechanisms)
}
inline void BitToUserHandshake::add_authenticationmechanisms(const char* value, size_t size) {
authenticationmechanisms_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.BitToUserHandshake.authenticationMechanisms)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
BitToUserHandshake::authenticationmechanisms() const {
+ // @@protoc_insertion_point(field_list:exec.user.BitToUserHandshake.authenticationMechanisms)
return authenticationmechanisms_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
BitToUserHandshake::mutable_authenticationmechanisms() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.BitToUserHandshake.authenticationMechanisms)
return &authenticationmechanisms_;
}
@@ -6243,67 +7778,76 @@ inline void BitToUserHandshake::clear_supported_methods() {
supported_methods_.Clear();
}
inline ::exec::user::RpcType BitToUserHandshake::supported_methods(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.supported_methods)
return static_cast< ::exec::user::RpcType >(supported_methods_.Get(index));
}
inline void BitToUserHandshake::set_supported_methods(int index, ::exec::user::RpcType value) {
assert(::exec::user::RpcType_IsValid(value));
supported_methods_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.supported_methods)
}
inline void BitToUserHandshake::add_supported_methods(::exec::user::RpcType value) {
assert(::exec::user::RpcType_IsValid(value));
supported_methods_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.BitToUserHandshake.supported_methods)
}
inline const ::google::protobuf::RepeatedField<int>&
BitToUserHandshake::supported_methods() const {
+ // @@protoc_insertion_point(field_list:exec.user.BitToUserHandshake.supported_methods)
return supported_methods_;
}
inline ::google::protobuf::RepeatedField<int>*
BitToUserHandshake::mutable_supported_methods() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.BitToUserHandshake.supported_methods)
return &supported_methods_;
}
// optional bool encrypted = 9;
inline bool BitToUserHandshake::has_encrypted() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void BitToUserHandshake::set_has_encrypted() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void BitToUserHandshake::clear_has_encrypted() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void BitToUserHandshake::clear_encrypted() {
encrypted_ = false;
clear_has_encrypted();
}
inline bool BitToUserHandshake::encrypted() const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.encrypted)
return encrypted_;
}
inline void BitToUserHandshake::set_encrypted(bool value) {
set_has_encrypted();
encrypted_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.encrypted)
}
// optional int32 maxWrappedSize = 10;
inline bool BitToUserHandshake::has_maxwrappedsize() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void BitToUserHandshake::set_has_maxwrappedsize() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void BitToUserHandshake::clear_has_maxwrappedsize() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void BitToUserHandshake::clear_maxwrappedsize() {
maxwrappedsize_ = 0;
clear_has_maxwrappedsize();
}
inline ::google::protobuf::int32 BitToUserHandshake::maxwrappedsize() const {
+ // @@protoc_insertion_point(field_get:exec.user.BitToUserHandshake.maxWrappedSize)
return maxwrappedsize_;
}
inline void BitToUserHandshake::set_maxwrappedsize(::google::protobuf::int32 value) {
set_has_maxwrappedsize();
maxwrappedsize_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.BitToUserHandshake.maxWrappedSize)
}
// -------------------------------------------------------------------
@@ -6321,63 +7865,59 @@ inline void LikeFilter::clear_has_pattern() {
_has_bits_[0] &= ~0x00000001u;
}
inline void LikeFilter::clear_pattern() {
- if (pattern_ != &::google::protobuf::internal::kEmptyString) {
- pattern_->clear();
- }
+ pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_pattern();
}
inline const ::std::string& LikeFilter::pattern() const {
- return *pattern_;
+ // @@protoc_insertion_point(field_get:exec.user.LikeFilter.pattern)
+ return pattern_.GetNoArena();
}
inline void LikeFilter::set_pattern(const ::std::string& value) {
set_has_pattern();
- if (pattern_ == &::google::protobuf::internal::kEmptyString) {
- pattern_ = new ::std::string;
- }
- pattern_->assign(value);
+ pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.LikeFilter.pattern)
}
+#if LANG_CXX11
+inline void LikeFilter::set_pattern(::std::string&& value) {
+ set_has_pattern();
+ pattern_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.LikeFilter.pattern)
+}
+#endif
inline void LikeFilter::set_pattern(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_pattern();
- if (pattern_ == &::google::protobuf::internal::kEmptyString) {
- pattern_ = new ::std::string;
- }
- pattern_->assign(value);
+ pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.LikeFilter.pattern)
}
inline void LikeFilter::set_pattern(const char* value, size_t size) {
set_has_pattern();
- if (pattern_ == &::google::protobuf::internal::kEmptyString) {
- pattern_ = new ::std::string;
- }
- pattern_->assign(reinterpret_cast<const char*>(value), size);
+ pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.LikeFilter.pattern)
}
inline ::std::string* LikeFilter::mutable_pattern() {
set_has_pattern();
- if (pattern_ == &::google::protobuf::internal::kEmptyString) {
- pattern_ = new ::std::string;
- }
- return pattern_;
+ // @@protoc_insertion_point(field_mutable:exec.user.LikeFilter.pattern)
+ return pattern_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* LikeFilter::release_pattern() {
- clear_has_pattern();
- if (pattern_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.LikeFilter.pattern)
+ if (!has_pattern()) {
return NULL;
- } else {
- ::std::string* temp = pattern_;
- pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_pattern();
+ return pattern_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void LikeFilter::set_allocated_pattern(::std::string* pattern) {
- if (pattern_ != &::google::protobuf::internal::kEmptyString) {
- delete pattern_;
- }
- if (pattern) {
+ if (pattern != NULL) {
set_has_pattern();
- pattern_ = pattern;
} else {
clear_has_pattern();
- pattern_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ pattern_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pattern);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.LikeFilter.pattern)
}
// optional string escape = 2;
@@ -6391,63 +7931,59 @@ inline void LikeFilter::clear_has_escape() {
_has_bits_[0] &= ~0x00000002u;
}
inline void LikeFilter::clear_escape() {
- if (escape_ != &::google::protobuf::internal::kEmptyString) {
- escape_->clear();
- }
+ escape_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_escape();
}
inline const ::std::string& LikeFilter::escape() const {
- return *escape_;
+ // @@protoc_insertion_point(field_get:exec.user.LikeFilter.escape)
+ return escape_.GetNoArena();
}
inline void LikeFilter::set_escape(const ::std::string& value) {
set_has_escape();
- if (escape_ == &::google::protobuf::internal::kEmptyString) {
- escape_ = new ::std::string;
- }
- escape_->assign(value);
+ escape_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.LikeFilter.escape)
+}
+#if LANG_CXX11
+inline void LikeFilter::set_escape(::std::string&& value) {
+ set_has_escape();
+ escape_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.LikeFilter.escape)
}
+#endif
inline void LikeFilter::set_escape(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_escape();
- if (escape_ == &::google::protobuf::internal::kEmptyString) {
- escape_ = new ::std::string;
- }
- escape_->assign(value);
+ escape_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.LikeFilter.escape)
}
inline void LikeFilter::set_escape(const char* value, size_t size) {
set_has_escape();
- if (escape_ == &::google::protobuf::internal::kEmptyString) {
- escape_ = new ::std::string;
- }
- escape_->assign(reinterpret_cast<const char*>(value), size);
+ escape_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.LikeFilter.escape)
}
inline ::std::string* LikeFilter::mutable_escape() {
set_has_escape();
- if (escape_ == &::google::protobuf::internal::kEmptyString) {
- escape_ = new ::std::string;
- }
- return escape_;
+ // @@protoc_insertion_point(field_mutable:exec.user.LikeFilter.escape)
+ return escape_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* LikeFilter::release_escape() {
- clear_has_escape();
- if (escape_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.LikeFilter.escape)
+ if (!has_escape()) {
return NULL;
- } else {
- ::std::string* temp = escape_;
- escape_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_escape();
+ return escape_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void LikeFilter::set_allocated_escape(::std::string* escape) {
- if (escape_ != &::google::protobuf::internal::kEmptyString) {
- delete escape_;
- }
- if (escape) {
+ if (escape != NULL) {
set_has_escape();
- escape_ = escape;
} else {
clear_has_escape();
- escape_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ escape_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), escape);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.LikeFilter.escape)
}
// -------------------------------------------------------------------
@@ -6465,31 +8001,51 @@ inline void GetCatalogsReq::clear_has_catalog_name_filter() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GetCatalogsReq::clear_catalog_name_filter() {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+ if (catalog_name_filter_ != NULL) catalog_name_filter_->Clear();
clear_has_catalog_name_filter();
}
-inline const ::exec::user::LikeFilter& GetCatalogsReq::catalog_name_filter() const {
- return catalog_name_filter_ != NULL ? *catalog_name_filter_ : *default_instance_->catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetCatalogsReq::_internal_catalog_name_filter() const {
+ return *catalog_name_filter_;
}
-inline ::exec::user::LikeFilter* GetCatalogsReq::mutable_catalog_name_filter() {
- set_has_catalog_name_filter();
- if (catalog_name_filter_ == NULL) catalog_name_filter_ = new ::exec::user::LikeFilter;
- return catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetCatalogsReq::catalog_name_filter() const {
+ const ::exec::user::LikeFilter* p = catalog_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetCatalogsReq.catalog_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetCatalogsReq::release_catalog_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetCatalogsReq.catalog_name_filter)
clear_has_catalog_name_filter();
::exec::user::LikeFilter* temp = catalog_name_filter_;
catalog_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetCatalogsReq::mutable_catalog_name_filter() {
+ set_has_catalog_name_filter();
+ if (catalog_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ catalog_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetCatalogsReq.catalog_name_filter)
+ return catalog_name_filter_;
+}
inline void GetCatalogsReq::set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter) {
- delete catalog_name_filter_;
- catalog_name_filter_ = catalog_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete catalog_name_filter_;
+ }
if (catalog_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ catalog_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, catalog_name_filter, submessage_arena);
+ }
set_has_catalog_name_filter();
} else {
clear_has_catalog_name_filter();
}
+ catalog_name_filter_ = catalog_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetCatalogsReq.catalog_name_filter)
}
// -------------------------------------------------------------------
@@ -6507,63 +8063,59 @@ inline void CatalogMetadata::clear_has_catalog_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void CatalogMetadata::clear_catalog_name() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+ catalog_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_name();
}
inline const ::std::string& CatalogMetadata::catalog_name() const {
- return *catalog_name_;
+ // @@protoc_insertion_point(field_get:exec.user.CatalogMetadata.catalog_name)
+ return catalog_name_.GetNoArena();
}
inline void CatalogMetadata::set_catalog_name(const ::std::string& value) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.CatalogMetadata.catalog_name)
+}
+#if LANG_CXX11
+inline void CatalogMetadata::set_catalog_name(::std::string&& value) {
+ set_has_catalog_name();
+ catalog_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.CatalogMetadata.catalog_name)
}
+#endif
inline void CatalogMetadata::set_catalog_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.CatalogMetadata.catalog_name)
}
inline void CatalogMetadata::set_catalog_name(const char* value, size_t size) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.CatalogMetadata.catalog_name)
}
inline ::std::string* CatalogMetadata::mutable_catalog_name() {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- return catalog_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.CatalogMetadata.catalog_name)
+ return catalog_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CatalogMetadata::release_catalog_name() {
- clear_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.CatalogMetadata.catalog_name)
+ if (!has_catalog_name()) {
return NULL;
- } else {
- ::std::string* temp = catalog_name_;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_name();
+ return catalog_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CatalogMetadata::set_allocated_catalog_name(::std::string* catalog_name) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (catalog_name) {
+ if (catalog_name != NULL) {
set_has_catalog_name();
- catalog_name_ = catalog_name;
} else {
clear_has_catalog_name();
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CatalogMetadata.catalog_name)
}
// optional string description = 2;
@@ -6577,63 +8129,59 @@ inline void CatalogMetadata::clear_has_description() {
_has_bits_[0] &= ~0x00000002u;
}
inline void CatalogMetadata::clear_description() {
- if (description_ != &::google::protobuf::internal::kEmptyString) {
- description_->clear();
- }
+ description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_description();
}
inline const ::std::string& CatalogMetadata::description() const {
- return *description_;
+ // @@protoc_insertion_point(field_get:exec.user.CatalogMetadata.description)
+ return description_.GetNoArena();
}
inline void CatalogMetadata::set_description(const ::std::string& value) {
set_has_description();
- if (description_ == &::google::protobuf::internal::kEmptyString) {
- description_ = new ::std::string;
- }
- description_->assign(value);
+ description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.CatalogMetadata.description)
+}
+#if LANG_CXX11
+inline void CatalogMetadata::set_description(::std::string&& value) {
+ set_has_description();
+ description_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.CatalogMetadata.description)
}
+#endif
inline void CatalogMetadata::set_description(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_description();
- if (description_ == &::google::protobuf::internal::kEmptyString) {
- description_ = new ::std::string;
- }
- description_->assign(value);
+ description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.CatalogMetadata.description)
}
inline void CatalogMetadata::set_description(const char* value, size_t size) {
set_has_description();
- if (description_ == &::google::protobuf::internal::kEmptyString) {
- description_ = new ::std::string;
- }
- description_->assign(reinterpret_cast<const char*>(value), size);
+ description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.CatalogMetadata.description)
}
inline ::std::string* CatalogMetadata::mutable_description() {
set_has_description();
- if (description_ == &::google::protobuf::internal::kEmptyString) {
- description_ = new ::std::string;
- }
- return description_;
+ // @@protoc_insertion_point(field_mutable:exec.user.CatalogMetadata.description)
+ return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CatalogMetadata::release_description() {
- clear_has_description();
- if (description_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.CatalogMetadata.description)
+ if (!has_description()) {
return NULL;
- } else {
- ::std::string* temp = description_;
- description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_description();
+ return description_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CatalogMetadata::set_allocated_description(::std::string* description) {
- if (description_ != &::google::protobuf::internal::kEmptyString) {
- delete description_;
- }
- if (description) {
+ if (description != NULL) {
set_has_description();
- description_ = description;
} else {
clear_has_description();
- description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CatalogMetadata.description)
}
// optional string connect = 3;
@@ -6647,63 +8195,59 @@ inline void CatalogMetadata::clear_has_connect() {
_has_bits_[0] &= ~0x00000004u;
}
inline void CatalogMetadata::clear_connect() {
- if (connect_ != &::google::protobuf::internal::kEmptyString) {
- connect_->clear();
- }
+ connect_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_connect();
}
inline const ::std::string& CatalogMetadata::connect() const {
- return *connect_;
+ // @@protoc_insertion_point(field_get:exec.user.CatalogMetadata.connect)
+ return connect_.GetNoArena();
}
inline void CatalogMetadata::set_connect(const ::std::string& value) {
set_has_connect();
- if (connect_ == &::google::protobuf::internal::kEmptyString) {
- connect_ = new ::std::string;
- }
- connect_->assign(value);
+ connect_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.CatalogMetadata.connect)
}
+#if LANG_CXX11
+inline void CatalogMetadata::set_connect(::std::string&& value) {
+ set_has_connect();
+ connect_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.CatalogMetadata.connect)
+}
+#endif
inline void CatalogMetadata::set_connect(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_connect();
- if (connect_ == &::google::protobuf::internal::kEmptyString) {
- connect_ = new ::std::string;
- }
- connect_->assign(value);
+ connect_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.CatalogMetadata.connect)
}
inline void CatalogMetadata::set_connect(const char* value, size_t size) {
set_has_connect();
- if (connect_ == &::google::protobuf::internal::kEmptyString) {
- connect_ = new ::std::string;
- }
- connect_->assign(reinterpret_cast<const char*>(value), size);
+ connect_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.CatalogMetadata.connect)
}
inline ::std::string* CatalogMetadata::mutable_connect() {
set_has_connect();
- if (connect_ == &::google::protobuf::internal::kEmptyString) {
- connect_ = new ::std::string;
- }
- return connect_;
+ // @@protoc_insertion_point(field_mutable:exec.user.CatalogMetadata.connect)
+ return connect_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CatalogMetadata::release_connect() {
- clear_has_connect();
- if (connect_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.CatalogMetadata.connect)
+ if (!has_connect()) {
return NULL;
- } else {
- ::std::string* temp = connect_;
- connect_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_connect();
+ return connect_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CatalogMetadata::set_allocated_connect(::std::string* connect) {
- if (connect_ != &::google::protobuf::internal::kEmptyString) {
- delete connect_;
- }
- if (connect) {
+ if (connect != NULL) {
set_has_connect();
- connect_ = connect;
} else {
clear_has_connect();
- connect_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ connect_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), connect);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CatalogMetadata.connect)
}
// -------------------------------------------------------------------
@@ -6712,25 +8256,27 @@ inline void CatalogMetadata::set_allocated_connect(::std::string* connect) {
// optional .exec.user.RequestStatus status = 1;
inline bool GetCatalogsResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetCatalogsResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetCatalogsResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void GetCatalogsResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus GetCatalogsResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetCatalogsResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void GetCatalogsResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetCatalogsResp.status)
}
// repeated .exec.user.CatalogMetadata catalogs = 2;
@@ -6740,60 +8286,81 @@ inline int GetCatalogsResp::catalogs_size() const {
inline void GetCatalogsResp::clear_catalogs() {
catalogs_.Clear();
}
-inline const ::exec::user::CatalogMetadata& GetCatalogsResp::catalogs(int index) const {
- return catalogs_.Get(index);
-}
inline ::exec::user::CatalogMetadata* GetCatalogsResp::mutable_catalogs(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.GetCatalogsResp.catalogs)
return catalogs_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >*
+GetCatalogsResp::mutable_catalogs() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.GetCatalogsResp.catalogs)
+ return &catalogs_;
+}
+inline const ::exec::user::CatalogMetadata& GetCatalogsResp::catalogs(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.GetCatalogsResp.catalogs)
+ return catalogs_.Get(index);
+}
inline ::exec::user::CatalogMetadata* GetCatalogsResp::add_catalogs() {
+ // @@protoc_insertion_point(field_add:exec.user.GetCatalogsResp.catalogs)
return catalogs_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >&
GetCatalogsResp::catalogs() const {
+ // @@protoc_insertion_point(field_list:exec.user.GetCatalogsResp.catalogs)
return catalogs_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::CatalogMetadata >*
-GetCatalogsResp::mutable_catalogs() {
- return &catalogs_;
-}
// optional .exec.shared.DrillPBError error = 3;
inline bool GetCatalogsResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GetCatalogsResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void GetCatalogsResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void GetCatalogsResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& GetCatalogsResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& GetCatalogsResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* GetCatalogsResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.GetCatalogsResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* GetCatalogsResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.GetCatalogsResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* GetCatalogsResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetCatalogsResp.error)
+ return error_;
+}
inline void GetCatalogsResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetCatalogsResp.error)
}
// -------------------------------------------------------------------
@@ -6811,31 +8378,51 @@ inline void GetSchemasReq::clear_has_catalog_name_filter() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GetSchemasReq::clear_catalog_name_filter() {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+ if (catalog_name_filter_ != NULL) catalog_name_filter_->Clear();
clear_has_catalog_name_filter();
}
-inline const ::exec::user::LikeFilter& GetSchemasReq::catalog_name_filter() const {
- return catalog_name_filter_ != NULL ? *catalog_name_filter_ : *default_instance_->catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetSchemasReq::_internal_catalog_name_filter() const {
+ return *catalog_name_filter_;
}
-inline ::exec::user::LikeFilter* GetSchemasReq::mutable_catalog_name_filter() {
- set_has_catalog_name_filter();
- if (catalog_name_filter_ == NULL) catalog_name_filter_ = new ::exec::user::LikeFilter;
- return catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetSchemasReq::catalog_name_filter() const {
+ const ::exec::user::LikeFilter* p = catalog_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetSchemasReq.catalog_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetSchemasReq::release_catalog_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetSchemasReq.catalog_name_filter)
clear_has_catalog_name_filter();
::exec::user::LikeFilter* temp = catalog_name_filter_;
catalog_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetSchemasReq::mutable_catalog_name_filter() {
+ set_has_catalog_name_filter();
+ if (catalog_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ catalog_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetSchemasReq.catalog_name_filter)
+ return catalog_name_filter_;
+}
inline void GetSchemasReq::set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter) {
- delete catalog_name_filter_;
- catalog_name_filter_ = catalog_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete catalog_name_filter_;
+ }
if (catalog_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ catalog_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, catalog_name_filter, submessage_arena);
+ }
set_has_catalog_name_filter();
} else {
clear_has_catalog_name_filter();
}
+ catalog_name_filter_ = catalog_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetSchemasReq.catalog_name_filter)
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
@@ -6849,31 +8436,51 @@ inline void GetSchemasReq::clear_has_schema_name_filter() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GetSchemasReq::clear_schema_name_filter() {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (schema_name_filter_ != NULL) schema_name_filter_->Clear();
clear_has_schema_name_filter();
}
-inline const ::exec::user::LikeFilter& GetSchemasReq::schema_name_filter() const {
- return schema_name_filter_ != NULL ? *schema_name_filter_ : *default_instance_->schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetSchemasReq::_internal_schema_name_filter() const {
+ return *schema_name_filter_;
}
-inline ::exec::user::LikeFilter* GetSchemasReq::mutable_schema_name_filter() {
- set_has_schema_name_filter();
- if (schema_name_filter_ == NULL) schema_name_filter_ = new ::exec::user::LikeFilter;
- return schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetSchemasReq::schema_name_filter() const {
+ const ::exec::user::LikeFilter* p = schema_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetSchemasReq.schema_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetSchemasReq::release_schema_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetSchemasReq.schema_name_filter)
clear_has_schema_name_filter();
::exec::user::LikeFilter* temp = schema_name_filter_;
schema_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetSchemasReq::mutable_schema_name_filter() {
+ set_has_schema_name_filter();
+ if (schema_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ schema_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetSchemasReq.schema_name_filter)
+ return schema_name_filter_;
+}
inline void GetSchemasReq::set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter) {
- delete schema_name_filter_;
- schema_name_filter_ = schema_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete schema_name_filter_;
+ }
if (schema_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ schema_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, schema_name_filter, submessage_arena);
+ }
set_has_schema_name_filter();
} else {
clear_has_schema_name_filter();
}
+ schema_name_filter_ = schema_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetSchemasReq.schema_name_filter)
}
// -------------------------------------------------------------------
@@ -6891,63 +8498,59 @@ inline void SchemaMetadata::clear_has_catalog_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void SchemaMetadata::clear_catalog_name() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+ catalog_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_name();
}
inline const ::std::string& SchemaMetadata::catalog_name() const {
- return *catalog_name_;
+ // @@protoc_insertion_point(field_get:exec.user.SchemaMetadata.catalog_name)
+ return catalog_name_.GetNoArena();
}
inline void SchemaMetadata::set_catalog_name(const ::std::string& value) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.SchemaMetadata.catalog_name)
+}
+#if LANG_CXX11
+inline void SchemaMetadata::set_catalog_name(::std::string&& value) {
+ set_has_catalog_name();
+ catalog_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.SchemaMetadata.catalog_name)
}
+#endif
inline void SchemaMetadata::set_catalog_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.SchemaMetadata.catalog_name)
}
inline void SchemaMetadata::set_catalog_name(const char* value, size_t size) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.SchemaMetadata.catalog_name)
}
inline ::std::string* SchemaMetadata::mutable_catalog_name() {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- return catalog_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.SchemaMetadata.catalog_name)
+ return catalog_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SchemaMetadata::release_catalog_name() {
- clear_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.SchemaMetadata.catalog_name)
+ if (!has_catalog_name()) {
return NULL;
- } else {
- ::std::string* temp = catalog_name_;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_name();
+ return catalog_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SchemaMetadata::set_allocated_catalog_name(::std::string* catalog_name) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (catalog_name) {
+ if (catalog_name != NULL) {
set_has_catalog_name();
- catalog_name_ = catalog_name;
} else {
clear_has_catalog_name();
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.SchemaMetadata.catalog_name)
}
// optional string schema_name = 2;
@@ -6961,63 +8564,59 @@ inline void SchemaMetadata::clear_has_schema_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void SchemaMetadata::clear_schema_name() {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ schema_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_schema_name();
}
inline const ::std::string& SchemaMetadata::schema_name() const {
- return *schema_name_;
+ // @@protoc_insertion_point(field_get:exec.user.SchemaMetadata.schema_name)
+ return schema_name_.GetNoArena();
}
inline void SchemaMetadata::set_schema_name(const ::std::string& value) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.SchemaMetadata.schema_name)
}
+#if LANG_CXX11
+inline void SchemaMetadata::set_schema_name(::std::string&& value) {
+ set_has_schema_name();
+ schema_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.SchemaMetadata.schema_name)
+}
+#endif
inline void SchemaMetadata::set_schema_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.SchemaMetadata.schema_name)
}
inline void SchemaMetadata::set_schema_name(const char* value, size_t size) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(reinterpret_cast<const char*>(value), size);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.SchemaMetadata.schema_name)
}
inline ::std::string* SchemaMetadata::mutable_schema_name() {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- return schema_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.SchemaMetadata.schema_name)
+ return schema_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SchemaMetadata::release_schema_name() {
- clear_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.SchemaMetadata.schema_name)
+ if (!has_schema_name()) {
return NULL;
- } else {
- ::std::string* temp = schema_name_;
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_schema_name();
+ return schema_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SchemaMetadata::set_allocated_schema_name(::std::string* schema_name) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (schema_name) {
+ if (schema_name != NULL) {
set_has_schema_name();
- schema_name_ = schema_name;
} else {
clear_has_schema_name();
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ schema_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.SchemaMetadata.schema_name)
}
// optional string owner = 3;
@@ -7031,63 +8630,59 @@ inline void SchemaMetadata::clear_has_owner() {
_has_bits_[0] &= ~0x00000004u;
}
inline void SchemaMetadata::clear_owner() {
- if (owner_ != &::google::protobuf::internal::kEmptyString) {
- owner_->clear();
- }
+ owner_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_owner();
}
inline const ::std::string& SchemaMetadata::owner() const {
- return *owner_;
+ // @@protoc_insertion_point(field_get:exec.user.SchemaMetadata.owner)
+ return owner_.GetNoArena();
}
inline void SchemaMetadata::set_owner(const ::std::string& value) {
set_has_owner();
- if (owner_ == &::google::protobuf::internal::kEmptyString) {
- owner_ = new ::std::string;
- }
- owner_->assign(value);
+ owner_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.SchemaMetadata.owner)
+}
+#if LANG_CXX11
+inline void SchemaMetadata::set_owner(::std::string&& value) {
+ set_has_owner();
+ owner_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.SchemaMetadata.owner)
}
+#endif
inline void SchemaMetadata::set_owner(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_owner();
- if (owner_ == &::google::protobuf::internal::kEmptyString) {
- owner_ = new ::std::string;
- }
- owner_->assign(value);
+ owner_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.SchemaMetadata.owner)
}
inline void SchemaMetadata::set_owner(const char* value, size_t size) {
set_has_owner();
- if (owner_ == &::google::protobuf::internal::kEmptyString) {
- owner_ = new ::std::string;
- }
- owner_->assign(reinterpret_cast<const char*>(value), size);
+ owner_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.SchemaMetadata.owner)
}
inline ::std::string* SchemaMetadata::mutable_owner() {
set_has_owner();
- if (owner_ == &::google::protobuf::internal::kEmptyString) {
- owner_ = new ::std::string;
- }
- return owner_;
+ // @@protoc_insertion_point(field_mutable:exec.user.SchemaMetadata.owner)
+ return owner_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SchemaMetadata::release_owner() {
- clear_has_owner();
- if (owner_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.SchemaMetadata.owner)
+ if (!has_owner()) {
return NULL;
- } else {
- ::std::string* temp = owner_;
- owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_owner();
+ return owner_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SchemaMetadata::set_allocated_owner(::std::string* owner) {
- if (owner_ != &::google::protobuf::internal::kEmptyString) {
- delete owner_;
- }
- if (owner) {
+ if (owner != NULL) {
set_has_owner();
- owner_ = owner;
} else {
clear_has_owner();
- owner_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ owner_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.SchemaMetadata.owner)
}
// optional string type = 4;
@@ -7101,63 +8696,59 @@ inline void SchemaMetadata::clear_has_type() {
_has_bits_[0] &= ~0x00000008u;
}
inline void SchemaMetadata::clear_type() {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- type_->clear();
- }
+ type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_type();
}
inline const ::std::string& SchemaMetadata::type() const {
- return *type_;
+ // @@protoc_insertion_point(field_get:exec.user.SchemaMetadata.type)
+ return type_.GetNoArena();
}
inline void SchemaMetadata::set_type(const ::std::string& value) {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(value);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.SchemaMetadata.type)
}
+#if LANG_CXX11
+inline void SchemaMetadata::set_type(::std::string&& value) {
+ set_has_type();
+ type_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.SchemaMetadata.type)
+}
+#endif
inline void SchemaMetadata::set_type(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(value);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.SchemaMetadata.type)
}
inline void SchemaMetadata::set_type(const char* value, size_t size) {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(reinterpret_cast<const char*>(value), size);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.SchemaMetadata.type)
}
inline ::std::string* SchemaMetadata::mutable_type() {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- return type_;
+ // @@protoc_insertion_point(field_mutable:exec.user.SchemaMetadata.type)
+ return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SchemaMetadata::release_type() {
- clear_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.SchemaMetadata.type)
+ if (!has_type()) {
return NULL;
- } else {
- ::std::string* temp = type_;
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_type();
+ return type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SchemaMetadata::set_allocated_type(::std::string* type) {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- delete type_;
- }
- if (type) {
+ if (type != NULL) {
set_has_type();
- type_ = type;
} else {
clear_has_type();
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.SchemaMetadata.type)
}
// optional string mutable = 5;
@@ -7171,63 +8762,59 @@ inline void SchemaMetadata::clear_has_mutable_() {
_has_bits_[0] &= ~0x00000010u;
}
inline void SchemaMetadata::clear_mutable_() {
- if (mutable__ != &::google::protobuf::internal::kEmptyString) {
- mutable__->clear();
- }
+ mutable__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_mutable_();
}
inline const ::std::string& SchemaMetadata::mutable_() const {
- return *mutable__;
+ // @@protoc_insertion_point(field_get:exec.user.SchemaMetadata.mutable)
+ return mutable__.GetNoArena();
}
inline void SchemaMetadata::set_mutable_(const ::std::string& value) {
set_has_mutable_();
- if (mutable__ == &::google::protobuf::internal::kEmptyString) {
- mutable__ = new ::std::string;
- }
- mutable__->assign(value);
+ mutable__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.SchemaMetadata.mutable)
}
+#if LANG_CXX11
+inline void SchemaMetadata::set_mutable_(::std::string&& value) {
+ set_has_mutable_();
+ mutable__.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.SchemaMetadata.mutable)
+}
+#endif
inline void SchemaMetadata::set_mutable_(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_mutable_();
- if (mutable__ == &::google::protobuf::internal::kEmptyString) {
- mutable__ = new ::std::string;
- }
- mutable__->assign(value);
+ mutable__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.SchemaMetadata.mutable)
}
inline void SchemaMetadata::set_mutable_(const char* value, size_t size) {
set_has_mutable_();
- if (mutable__ == &::google::protobuf::internal::kEmptyString) {
- mutable__ = new ::std::string;
- }
- mutable__->assign(reinterpret_cast<const char*>(value), size);
+ mutable__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.SchemaMetadata.mutable)
}
inline ::std::string* SchemaMetadata::mutable_mutable_() {
set_has_mutable_();
- if (mutable__ == &::google::protobuf::internal::kEmptyString) {
- mutable__ = new ::std::string;
- }
- return mutable__;
+ // @@protoc_insertion_point(field_mutable:exec.user.SchemaMetadata.mutable)
+ return mutable__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SchemaMetadata::release_mutable_() {
- clear_has_mutable_();
- if (mutable__ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.SchemaMetadata.mutable)
+ if (!has_mutable_()) {
return NULL;
- } else {
- ::std::string* temp = mutable__;
- mutable__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_mutable_();
+ return mutable__.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SchemaMetadata::set_allocated_mutable_(::std::string* mutable_) {
- if (mutable__ != &::google::protobuf::internal::kEmptyString) {
- delete mutable__;
- }
- if (mutable_) {
+ if (mutable_ != NULL) {
set_has_mutable_();
- mutable__ = mutable_;
} else {
clear_has_mutable_();
- mutable__ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ mutable__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mutable_);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.SchemaMetadata.mutable)
}
// -------------------------------------------------------------------
@@ -7236,25 +8823,27 @@ inline void SchemaMetadata::set_allocated_mutable_(::std::string* mutable_) {
// optional .exec.user.RequestStatus status = 1;
inline bool GetSchemasResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetSchemasResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetSchemasResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void GetSchemasResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus GetSchemasResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetSchemasResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void GetSchemasResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetSchemasResp.status)
}
// repeated .exec.user.SchemaMetadata schemas = 2;
@@ -7264,60 +8853,81 @@ inline int GetSchemasResp::schemas_size() const {
inline void GetSchemasResp::clear_schemas() {
schemas_.Clear();
}
-inline const ::exec::user::SchemaMetadata& GetSchemasResp::schemas(int index) const {
- return schemas_.Get(index);
-}
inline ::exec::user::SchemaMetadata* GetSchemasResp::mutable_schemas(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.GetSchemasResp.schemas)
return schemas_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >*
+GetSchemasResp::mutable_schemas() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.GetSchemasResp.schemas)
+ return &schemas_;
+}
+inline const ::exec::user::SchemaMetadata& GetSchemasResp::schemas(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.GetSchemasResp.schemas)
+ return schemas_.Get(index);
+}
inline ::exec::user::SchemaMetadata* GetSchemasResp::add_schemas() {
+ // @@protoc_insertion_point(field_add:exec.user.GetSchemasResp.schemas)
return schemas_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >&
GetSchemasResp::schemas() const {
+ // @@protoc_insertion_point(field_list:exec.user.GetSchemasResp.schemas)
return schemas_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::SchemaMetadata >*
-GetSchemasResp::mutable_schemas() {
- return &schemas_;
-}
// optional .exec.shared.DrillPBError error = 3;
inline bool GetSchemasResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GetSchemasResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void GetSchemasResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void GetSchemasResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& GetSchemasResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& GetSchemasResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* GetSchemasResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.GetSchemasResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* GetSchemasResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.GetSchemasResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* GetSchemasResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetSchemasResp.error)
+ return error_;
+}
inline void GetSchemasResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetSchemasResp.error)
}
// -------------------------------------------------------------------
@@ -7335,31 +8945,51 @@ inline void GetTablesReq::clear_has_catalog_name_filter() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GetTablesReq::clear_catalog_name_filter() {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+ if (catalog_name_filter_ != NULL) catalog_name_filter_->Clear();
clear_has_catalog_name_filter();
}
-inline const ::exec::user::LikeFilter& GetTablesReq::catalog_name_filter() const {
- return catalog_name_filter_ != NULL ? *catalog_name_filter_ : *default_instance_->catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::_internal_catalog_name_filter() const {
+ return *catalog_name_filter_;
}
-inline ::exec::user::LikeFilter* GetTablesReq::mutable_catalog_name_filter() {
- set_has_catalog_name_filter();
- if (catalog_name_filter_ == NULL) catalog_name_filter_ = new ::exec::user::LikeFilter;
- return catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::catalog_name_filter() const {
+ const ::exec::user::LikeFilter* p = catalog_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesReq.catalog_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetTablesReq::release_catalog_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetTablesReq.catalog_name_filter)
clear_has_catalog_name_filter();
::exec::user::LikeFilter* temp = catalog_name_filter_;
catalog_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetTablesReq::mutable_catalog_name_filter() {
+ set_has_catalog_name_filter();
+ if (catalog_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ catalog_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesReq.catalog_name_filter)
+ return catalog_name_filter_;
+}
inline void GetTablesReq::set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter) {
- delete catalog_name_filter_;
- catalog_name_filter_ = catalog_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete catalog_name_filter_;
+ }
if (catalog_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ catalog_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, catalog_name_filter, submessage_arena);
+ }
set_has_catalog_name_filter();
} else {
clear_has_catalog_name_filter();
}
+ catalog_name_filter_ = catalog_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetTablesReq.catalog_name_filter)
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
@@ -7373,31 +9003,51 @@ inline void GetTablesReq::clear_has_schema_name_filter() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GetTablesReq::clear_schema_name_filter() {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (schema_name_filter_ != NULL) schema_name_filter_->Clear();
clear_has_schema_name_filter();
}
-inline const ::exec::user::LikeFilter& GetTablesReq::schema_name_filter() const {
- return schema_name_filter_ != NULL ? *schema_name_filter_ : *default_instance_->schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::_internal_schema_name_filter() const {
+ return *schema_name_filter_;
}
-inline ::exec::user::LikeFilter* GetTablesReq::mutable_schema_name_filter() {
- set_has_schema_name_filter();
- if (schema_name_filter_ == NULL) schema_name_filter_ = new ::exec::user::LikeFilter;
- return schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::schema_name_filter() const {
+ const ::exec::user::LikeFilter* p = schema_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesReq.schema_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetTablesReq::release_schema_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetTablesReq.schema_name_filter)
clear_has_schema_name_filter();
::exec::user::LikeFilter* temp = schema_name_filter_;
schema_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetTablesReq::mutable_schema_name_filter() {
+ set_has_schema_name_filter();
+ if (schema_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ schema_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesReq.schema_name_filter)
+ return schema_name_filter_;
+}
inline void GetTablesReq::set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter) {
- delete schema_name_filter_;
- schema_name_filter_ = schema_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete schema_name_filter_;
+ }
if (schema_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ schema_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, schema_name_filter, submessage_arena);
+ }
set_has_schema_name_filter();
} else {
clear_has_schema_name_filter();
}
+ schema_name_filter_ = schema_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetTablesReq.schema_name_filter)
}
// optional .exec.user.LikeFilter table_name_filter = 3;
@@ -7411,31 +9061,51 @@ inline void GetTablesReq::clear_has_table_name_filter() {
_has_bits_[0] &= ~0x00000004u;
}
inline void GetTablesReq::clear_table_name_filter() {
- if (table_name_filter_ != NULL) table_name_filter_->::exec::user::LikeFilter::Clear();
+ if (table_name_filter_ != NULL) table_name_filter_->Clear();
clear_has_table_name_filter();
}
-inline const ::exec::user::LikeFilter& GetTablesReq::table_name_filter() const {
- return table_name_filter_ != NULL ? *table_name_filter_ : *default_instance_->table_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::_internal_table_name_filter() const {
+ return *table_name_filter_;
}
-inline ::exec::user::LikeFilter* GetTablesReq::mutable_table_name_filter() {
- set_has_table_name_filter();
- if (table_name_filter_ == NULL) table_name_filter_ = new ::exec::user::LikeFilter;
- return table_name_filter_;
+inline const ::exec::user::LikeFilter& GetTablesReq::table_name_filter() const {
+ const ::exec::user::LikeFilter* p = table_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesReq.table_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetTablesReq::release_table_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetTablesReq.table_name_filter)
clear_has_table_name_filter();
::exec::user::LikeFilter* temp = table_name_filter_;
table_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetTablesReq::mutable_table_name_filter() {
+ set_has_table_name_filter();
+ if (table_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ table_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesReq.table_name_filter)
+ return table_name_filter_;
+}
inline void GetTablesReq::set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter) {
- delete table_name_filter_;
- table_name_filter_ = table_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete table_name_filter_;
+ }
if (table_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ table_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, table_name_filter, submessage_arena);
+ }
set_has_table_name_filter();
} else {
clear_has_table_name_filter();
}
+ table_name_filter_ = table_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetTablesReq.table_name_filter)
}
// repeated string table_type_filter = 4;
@@ -7446,39 +9116,64 @@ inline void GetTablesReq::clear_table_type_filter() {
table_type_filter_.Clear();
}
inline const ::std::string& GetTablesReq::table_type_filter(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesReq.table_type_filter)
return table_type_filter_.Get(index);
}
inline ::std::string* GetTablesReq::mutable_table_type_filter(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesReq.table_type_filter)
return table_type_filter_.Mutable(index);
}
inline void GetTablesReq::set_table_type_filter(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.GetTablesReq.table_type_filter)
table_type_filter_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void GetTablesReq::set_table_type_filter(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.GetTablesReq.table_type_filter)
+ table_type_filter_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void GetTablesReq::set_table_type_filter(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
table_type_filter_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.GetTablesReq.table_type_filter)
}
inline void GetTablesReq::set_table_type_filter(int index, const char* value, size_t size) {
table_type_filter_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.GetTablesReq.table_type_filter)
}
inline ::std::string* GetTablesReq::add_table_type_filter() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.GetTablesReq.table_type_filter)
return table_type_filter_.Add();
}
inline void GetTablesReq::add_table_type_filter(const ::std::string& value) {
table_type_filter_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.GetTablesReq.table_type_filter)
+}
+#if LANG_CXX11
+inline void GetTablesReq::add_table_type_filter(::std::string&& value) {
+ table_type_filter_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.GetTablesReq.table_type_filter)
}
+#endif
inline void GetTablesReq::add_table_type_filter(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
table_type_filter_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.GetTablesReq.table_type_filter)
}
inline void GetTablesReq::add_table_type_filter(const char* value, size_t size) {
table_type_filter_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.GetTablesReq.table_type_filter)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
GetTablesReq::table_type_filter() const {
+ // @@protoc_insertion_point(field_list:exec.user.GetTablesReq.table_type_filter)
return table_type_filter_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
GetTablesReq::mutable_table_type_filter() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.GetTablesReq.table_type_filter)
return &table_type_filter_;
}
@@ -7497,63 +9192,59 @@ inline void TableMetadata::clear_has_catalog_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void TableMetadata::clear_catalog_name() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+ catalog_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_name();
}
inline const ::std::string& TableMetadata::catalog_name() const {
- return *catalog_name_;
+ // @@protoc_insertion_point(field_get:exec.user.TableMetadata.catalog_name)
+ return catalog_name_.GetNoArena();
}
inline void TableMetadata::set_catalog_name(const ::std::string& value) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.TableMetadata.catalog_name)
+}
+#if LANG_CXX11
+inline void TableMetadata::set_catalog_name(::std::string&& value) {
+ set_has_catalog_name();
+ catalog_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.TableMetadata.catalog_name)
}
+#endif
inline void TableMetadata::set_catalog_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.TableMetadata.catalog_name)
}
inline void TableMetadata::set_catalog_name(const char* value, size_t size) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.TableMetadata.catalog_name)
}
inline ::std::string* TableMetadata::mutable_catalog_name() {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- return catalog_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.TableMetadata.catalog_name)
+ return catalog_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TableMetadata::release_catalog_name() {
- clear_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.TableMetadata.catalog_name)
+ if (!has_catalog_name()) {
return NULL;
- } else {
- ::std::string* temp = catalog_name_;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_name();
+ return catalog_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TableMetadata::set_allocated_catalog_name(::std::string* catalog_name) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (catalog_name) {
+ if (catalog_name != NULL) {
set_has_catalog_name();
- catalog_name_ = catalog_name;
} else {
clear_has_catalog_name();
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.TableMetadata.catalog_name)
}
// optional string schema_name = 2;
@@ -7567,63 +9258,59 @@ inline void TableMetadata::clear_has_schema_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void TableMetadata::clear_schema_name() {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ schema_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_schema_name();
}
inline const ::std::string& TableMetadata::schema_name() const {
- return *schema_name_;
+ // @@protoc_insertion_point(field_get:exec.user.TableMetadata.schema_name)
+ return schema_name_.GetNoArena();
}
inline void TableMetadata::set_schema_name(const ::std::string& value) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.TableMetadata.schema_name)
+}
+#if LANG_CXX11
+inline void TableMetadata::set_schema_name(::std::string&& value) {
+ set_has_schema_name();
+ schema_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.TableMetadata.schema_name)
}
+#endif
inline void TableMetadata::set_schema_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.TableMetadata.schema_name)
}
inline void TableMetadata::set_schema_name(const char* value, size_t size) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(reinterpret_cast<const char*>(value), size);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.TableMetadata.schema_name)
}
inline ::std::string* TableMetadata::mutable_schema_name() {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- return schema_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.TableMetadata.schema_name)
+ return schema_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TableMetadata::release_schema_name() {
- clear_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.TableMetadata.schema_name)
+ if (!has_schema_name()) {
return NULL;
- } else {
- ::std::string* temp = schema_name_;
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_schema_name();
+ return schema_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TableMetadata::set_allocated_schema_name(::std::string* schema_name) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (schema_name) {
+ if (schema_name != NULL) {
set_has_schema_name();
- schema_name_ = schema_name;
} else {
clear_has_schema_name();
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ schema_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.TableMetadata.schema_name)
}
// optional string table_name = 3;
@@ -7637,63 +9324,59 @@ inline void TableMetadata::clear_has_table_name() {
_has_bits_[0] &= ~0x00000004u;
}
inline void TableMetadata::clear_table_name() {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_table_name();
}
inline const ::std::string& TableMetadata::table_name() const {
- return *table_name_;
+ // @@protoc_insertion_point(field_get:exec.user.TableMetadata.table_name)
+ return table_name_.GetNoArena();
}
inline void TableMetadata::set_table_name(const ::std::string& value) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.TableMetadata.table_name)
+}
+#if LANG_CXX11
+inline void TableMetadata::set_table_name(::std::string&& value) {
+ set_has_table_name();
+ table_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.TableMetadata.table_name)
}
+#endif
inline void TableMetadata::set_table_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.TableMetadata.table_name)
}
inline void TableMetadata::set_table_name(const char* value, size_t size) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(reinterpret_cast<const char*>(value), size);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.TableMetadata.table_name)
}
inline ::std::string* TableMetadata::mutable_table_name() {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- return table_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.TableMetadata.table_name)
+ return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TableMetadata::release_table_name() {
- clear_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.TableMetadata.table_name)
+ if (!has_table_name()) {
return NULL;
- } else {
- ::std::string* temp = table_name_;
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_table_name();
+ return table_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TableMetadata::set_allocated_table_name(::std::string* table_name) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (table_name) {
+ if (table_name != NULL) {
set_has_table_name();
- table_name_ = table_name;
} else {
clear_has_table_name();
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.TableMetadata.table_name)
}
// optional string type = 4;
@@ -7707,63 +9390,59 @@ inline void TableMetadata::clear_has_type() {
_has_bits_[0] &= ~0x00000008u;
}
inline void TableMetadata::clear_type() {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- type_->clear();
- }
+ type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_type();
}
inline const ::std::string& TableMetadata::type() const {
- return *type_;
+ // @@protoc_insertion_point(field_get:exec.user.TableMetadata.type)
+ return type_.GetNoArena();
}
inline void TableMetadata::set_type(const ::std::string& value) {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(value);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.TableMetadata.type)
}
+#if LANG_CXX11
+inline void TableMetadata::set_type(::std::string&& value) {
+ set_has_type();
+ type_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.TableMetadata.type)
+}
+#endif
inline void TableMetadata::set_type(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(value);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.TableMetadata.type)
}
inline void TableMetadata::set_type(const char* value, size_t size) {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- type_->assign(reinterpret_cast<const char*>(value), size);
+ type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.TableMetadata.type)
}
inline ::std::string* TableMetadata::mutable_type() {
set_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
- type_ = new ::std::string;
- }
- return type_;
+ // @@protoc_insertion_point(field_mutable:exec.user.TableMetadata.type)
+ return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TableMetadata::release_type() {
- clear_has_type();
- if (type_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.TableMetadata.type)
+ if (!has_type()) {
return NULL;
- } else {
- ::std::string* temp = type_;
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_type();
+ return type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TableMetadata::set_allocated_type(::std::string* type) {
- if (type_ != &::google::protobuf::internal::kEmptyString) {
- delete type_;
- }
- if (type) {
+ if (type != NULL) {
set_has_type();
- type_ = type;
} else {
clear_has_type();
- type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.TableMetadata.type)
}
// -------------------------------------------------------------------
@@ -7772,25 +9451,27 @@ inline void TableMetadata::set_allocated_type(::std::string* type) {
// optional .exec.user.RequestStatus status = 1;
inline bool GetTablesResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetTablesResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetTablesResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void GetTablesResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus GetTablesResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void GetTablesResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetTablesResp.status)
}
// repeated .exec.user.TableMetadata tables = 2;
@@ -7800,60 +9481,81 @@ inline int GetTablesResp::tables_size() const {
inline void GetTablesResp::clear_tables() {
tables_.Clear();
}
-inline const ::exec::user::TableMetadata& GetTablesResp::tables(int index) const {
- return tables_.Get(index);
-}
inline ::exec::user::TableMetadata* GetTablesResp::mutable_tables(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesResp.tables)
return tables_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >*
+GetTablesResp::mutable_tables() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.GetTablesResp.tables)
+ return &tables_;
+}
+inline const ::exec::user::TableMetadata& GetTablesResp::tables(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesResp.tables)
+ return tables_.Get(index);
+}
inline ::exec::user::TableMetadata* GetTablesResp::add_tables() {
+ // @@protoc_insertion_point(field_add:exec.user.GetTablesResp.tables)
return tables_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >&
GetTablesResp::tables() const {
+ // @@protoc_insertion_point(field_list:exec.user.GetTablesResp.tables)
return tables_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::TableMetadata >*
-GetTablesResp::mutable_tables() {
- return &tables_;
-}
// optional .exec.shared.DrillPBError error = 3;
inline bool GetTablesResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GetTablesResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void GetTablesResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void GetTablesResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& GetTablesResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& GetTablesResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* GetTablesResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.GetTablesResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* GetTablesResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.GetTablesResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* GetTablesResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetTablesResp.error)
+ return error_;
+}
inline void GetTablesResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetTablesResp.error)
}
// -------------------------------------------------------------------
@@ -7871,31 +9573,51 @@ inline void GetColumnsReq::clear_has_catalog_name_filter() {
_has_bits_[0] &= ~0x00000001u;
}
inline void GetColumnsReq::clear_catalog_name_filter() {
- if (catalog_name_filter_ != NULL) catalog_name_filter_->::exec::user::LikeFilter::Clear();
+ if (catalog_name_filter_ != NULL) catalog_name_filter_->Clear();
clear_has_catalog_name_filter();
}
-inline const ::exec::user::LikeFilter& GetColumnsReq::catalog_name_filter() const {
- return catalog_name_filter_ != NULL ? *catalog_name_filter_ : *default_instance_->catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::_internal_catalog_name_filter() const {
+ return *catalog_name_filter_;
}
-inline ::exec::user::LikeFilter* GetColumnsReq::mutable_catalog_name_filter() {
- set_has_catalog_name_filter();
- if (catalog_name_filter_ == NULL) catalog_name_filter_ = new ::exec::user::LikeFilter;
- return catalog_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::catalog_name_filter() const {
+ const ::exec::user::LikeFilter* p = catalog_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsReq.catalog_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetColumnsReq::release_catalog_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetColumnsReq.catalog_name_filter)
clear_has_catalog_name_filter();
::exec::user::LikeFilter* temp = catalog_name_filter_;
catalog_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetColumnsReq::mutable_catalog_name_filter() {
+ set_has_catalog_name_filter();
+ if (catalog_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ catalog_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsReq.catalog_name_filter)
+ return catalog_name_filter_;
+}
inline void GetColumnsReq::set_allocated_catalog_name_filter(::exec::user::LikeFilter* catalog_name_filter) {
- delete catalog_name_filter_;
- catalog_name_filter_ = catalog_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete catalog_name_filter_;
+ }
if (catalog_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ catalog_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, catalog_name_filter, submessage_arena);
+ }
set_has_catalog_name_filter();
} else {
clear_has_catalog_name_filter();
}
+ catalog_name_filter_ = catalog_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetColumnsReq.catalog_name_filter)
}
// optional .exec.user.LikeFilter schema_name_filter = 2;
@@ -7909,31 +9631,51 @@ inline void GetColumnsReq::clear_has_schema_name_filter() {
_has_bits_[0] &= ~0x00000002u;
}
inline void GetColumnsReq::clear_schema_name_filter() {
- if (schema_name_filter_ != NULL) schema_name_filter_->::exec::user::LikeFilter::Clear();
+ if (schema_name_filter_ != NULL) schema_name_filter_->Clear();
clear_has_schema_name_filter();
}
-inline const ::exec::user::LikeFilter& GetColumnsReq::schema_name_filter() const {
- return schema_name_filter_ != NULL ? *schema_name_filter_ : *default_instance_->schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::_internal_schema_name_filter() const {
+ return *schema_name_filter_;
}
-inline ::exec::user::LikeFilter* GetColumnsReq::mutable_schema_name_filter() {
- set_has_schema_name_filter();
- if (schema_name_filter_ == NULL) schema_name_filter_ = new ::exec::user::LikeFilter;
- return schema_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::schema_name_filter() const {
+ const ::exec::user::LikeFilter* p = schema_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsReq.schema_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetColumnsReq::release_schema_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetColumnsReq.schema_name_filter)
clear_has_schema_name_filter();
::exec::user::LikeFilter* temp = schema_name_filter_;
schema_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetColumnsReq::mutable_schema_name_filter() {
+ set_has_schema_name_filter();
+ if (schema_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ schema_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsReq.schema_name_filter)
+ return schema_name_filter_;
+}
inline void GetColumnsReq::set_allocated_schema_name_filter(::exec::user::LikeFilter* schema_name_filter) {
- delete schema_name_filter_;
- schema_name_filter_ = schema_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete schema_name_filter_;
+ }
if (schema_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ schema_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, schema_name_filter, submessage_arena);
+ }
set_has_schema_name_filter();
} else {
clear_has_schema_name_filter();
}
+ schema_name_filter_ = schema_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetColumnsReq.schema_name_filter)
}
// optional .exec.user.LikeFilter table_name_filter = 3;
@@ -7947,31 +9689,51 @@ inline void GetColumnsReq::clear_has_table_name_filter() {
_has_bits_[0] &= ~0x00000004u;
}
inline void GetColumnsReq::clear_table_name_filter() {
- if (table_name_filter_ != NULL) table_name_filter_->::exec::user::LikeFilter::Clear();
+ if (table_name_filter_ != NULL) table_name_filter_->Clear();
clear_has_table_name_filter();
}
-inline const ::exec::user::LikeFilter& GetColumnsReq::table_name_filter() const {
- return table_name_filter_ != NULL ? *table_name_filter_ : *default_instance_->table_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::_internal_table_name_filter() const {
+ return *table_name_filter_;
}
-inline ::exec::user::LikeFilter* GetColumnsReq::mutable_table_name_filter() {
- set_has_table_name_filter();
- if (table_name_filter_ == NULL) table_name_filter_ = new ::exec::user::LikeFilter;
- return table_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::table_name_filter() const {
+ const ::exec::user::LikeFilter* p = table_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsReq.table_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetColumnsReq::release_table_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetColumnsReq.table_name_filter)
clear_has_table_name_filter();
::exec::user::LikeFilter* temp = table_name_filter_;
table_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetColumnsReq::mutable_table_name_filter() {
+ set_has_table_name_filter();
+ if (table_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ table_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsReq.table_name_filter)
+ return table_name_filter_;
+}
inline void GetColumnsReq::set_allocated_table_name_filter(::exec::user::LikeFilter* table_name_filter) {
- delete table_name_filter_;
- table_name_filter_ = table_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete table_name_filter_;
+ }
if (table_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ table_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, table_name_filter, submessage_arena);
+ }
set_has_table_name_filter();
} else {
clear_has_table_name_filter();
}
+ table_name_filter_ = table_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetColumnsReq.table_name_filter)
}
// optional .exec.user.LikeFilter column_name_filter = 4;
@@ -7985,31 +9747,51 @@ inline void GetColumnsReq::clear_has_column_name_filter() {
_has_bits_[0] &= ~0x00000008u;
}
inline void GetColumnsReq::clear_column_name_filter() {
- if (column_name_filter_ != NULL) column_name_filter_->::exec::user::LikeFilter::Clear();
+ if (column_name_filter_ != NULL) column_name_filter_->Clear();
clear_has_column_name_filter();
}
-inline const ::exec::user::LikeFilter& GetColumnsReq::column_name_filter() const {
- return column_name_filter_ != NULL ? *column_name_filter_ : *default_instance_->column_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::_internal_column_name_filter() const {
+ return *column_name_filter_;
}
-inline ::exec::user::LikeFilter* GetColumnsReq::mutable_column_name_filter() {
- set_has_column_name_filter();
- if (column_name_filter_ == NULL) column_name_filter_ = new ::exec::user::LikeFilter;
- return column_name_filter_;
+inline const ::exec::user::LikeFilter& GetColumnsReq::column_name_filter() const {
+ const ::exec::user::LikeFilter* p = column_name_filter_;
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsReq.column_name_filter)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::LikeFilter*>(
+ &::exec::user::_LikeFilter_default_instance_);
}
inline ::exec::user::LikeFilter* GetColumnsReq::release_column_name_filter() {
+ // @@protoc_insertion_point(field_release:exec.user.GetColumnsReq.column_name_filter)
clear_has_column_name_filter();
::exec::user::LikeFilter* temp = column_name_filter_;
column_name_filter_ = NULL;
return temp;
}
+inline ::exec::user::LikeFilter* GetColumnsReq::mutable_column_name_filter() {
+ set_has_column_name_filter();
+ if (column_name_filter_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::LikeFilter>(GetArenaNoVirtual());
+ column_name_filter_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsReq.column_name_filter)
+ return column_name_filter_;
+}
inline void GetColumnsReq::set_allocated_column_name_filter(::exec::user::LikeFilter* column_name_filter) {
- delete column_name_filter_;
- column_name_filter_ = column_name_filter;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete column_name_filter_;
+ }
if (column_name_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ column_name_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, column_name_filter, submessage_arena);
+ }
set_has_column_name_filter();
} else {
clear_has_column_name_filter();
}
+ column_name_filter_ = column_name_filter;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetColumnsReq.column_name_filter)
}
// -------------------------------------------------------------------
@@ -8027,63 +9809,59 @@ inline void ColumnMetadata::clear_has_catalog_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ColumnMetadata::clear_catalog_name() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+ catalog_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_name();
}
inline const ::std::string& ColumnMetadata::catalog_name() const {
- return *catalog_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.catalog_name)
+ return catalog_name_.GetNoArena();
}
inline void ColumnMetadata::set_catalog_name(const ::std::string& value) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.catalog_name)
+}
+#if LANG_CXX11
+inline void ColumnMetadata::set_catalog_name(::std::string&& value) {
+ set_has_catalog_name();
+ catalog_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.catalog_name)
}
+#endif
inline void ColumnMetadata::set_catalog_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.catalog_name)
}
inline void ColumnMetadata::set_catalog_name(const char* value, size_t size) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.catalog_name)
}
inline ::std::string* ColumnMetadata::mutable_catalog_name() {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- return catalog_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.catalog_name)
+ return catalog_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_catalog_name() {
- clear_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.catalog_name)
+ if (!has_catalog_name()) {
return NULL;
- } else {
- ::std::string* temp = catalog_name_;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_name();
+ return catalog_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_catalog_name(::std::string* catalog_name) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (catalog_name) {
+ if (catalog_name != NULL) {
set_has_catalog_name();
- catalog_name_ = catalog_name;
} else {
clear_has_catalog_name();
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.catalog_name)
}
// optional string schema_name = 2;
@@ -8097,63 +9875,59 @@ inline void ColumnMetadata::clear_has_schema_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ColumnMetadata::clear_schema_name() {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ schema_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_schema_name();
}
inline const ::std::string& ColumnMetadata::schema_name() const {
- return *schema_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.schema_name)
+ return schema_name_.GetNoArena();
}
inline void ColumnMetadata::set_schema_name(const ::std::string& value) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.schema_name)
}
+#if LANG_CXX11
+inline void ColumnMetadata::set_schema_name(::std::string&& value) {
+ set_has_schema_name();
+ schema_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.schema_name)
+}
+#endif
inline void ColumnMetadata::set_schema_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.schema_name)
}
inline void ColumnMetadata::set_schema_name(const char* value, size_t size) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(reinterpret_cast<const char*>(value), size);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.schema_name)
}
inline ::std::string* ColumnMetadata::mutable_schema_name() {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- return schema_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.schema_name)
+ return schema_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_schema_name() {
- clear_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.schema_name)
+ if (!has_schema_name()) {
return NULL;
- } else {
- ::std::string* temp = schema_name_;
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_schema_name();
+ return schema_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_schema_name(::std::string* schema_name) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (schema_name) {
+ if (schema_name != NULL) {
set_has_schema_name();
- schema_name_ = schema_name;
} else {
clear_has_schema_name();
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ schema_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.schema_name)
}
// optional string table_name = 3;
@@ -8167,63 +9941,59 @@ inline void ColumnMetadata::clear_has_table_name() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ColumnMetadata::clear_table_name() {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_table_name();
}
inline const ::std::string& ColumnMetadata::table_name() const {
- return *table_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.table_name)
+ return table_name_.GetNoArena();
}
inline void ColumnMetadata::set_table_name(const ::std::string& value) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.table_name)
+}
+#if LANG_CXX11
+inline void ColumnMetadata::set_table_name(::std::string&& value) {
+ set_has_table_name();
+ table_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.table_name)
}
+#endif
inline void ColumnMetadata::set_table_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.table_name)
}
inline void ColumnMetadata::set_table_name(const char* value, size_t size) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(reinterpret_cast<const char*>(value), size);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.table_name)
}
inline ::std::string* ColumnMetadata::mutable_table_name() {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- return table_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.table_name)
+ return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_table_name() {
- clear_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.table_name)
+ if (!has_table_name()) {
return NULL;
- } else {
- ::std::string* temp = table_name_;
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_table_name();
+ return table_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_table_name(::std::string* table_name) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (table_name) {
+ if (table_name != NULL) {
set_has_table_name();
- table_name_ = table_name;
} else {
clear_has_table_name();
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.table_name)
}
// optional string column_name = 4;
@@ -8237,449 +10007,449 @@ inline void ColumnMetadata::clear_has_column_name() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ColumnMetadata::clear_column_name() {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- column_name_->clear();
- }
+ column_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_column_name();
}
inline const ::std::string& ColumnMetadata::column_name() const {
- return *column_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.column_name)
+ return column_name_.GetNoArena();
}
inline void ColumnMetadata::set_column_name(const ::std::string& value) {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(value);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.column_name)
+}
+#if LANG_CXX11
+inline void ColumnMetadata::set_column_name(::std::string&& value) {
+ set_has_column_name();
+ column_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.column_name)
}
+#endif
inline void ColumnMetadata::set_column_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(value);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.column_name)
}
inline void ColumnMetadata::set_column_name(const char* value, size_t size) {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(reinterpret_cast<const char*>(value), size);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.column_name)
}
inline ::std::string* ColumnMetadata::mutable_column_name() {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- return column_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.column_name)
+ return column_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_column_name() {
- clear_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.column_name)
+ if (!has_column_name()) {
return NULL;
- } else {
- ::std::string* temp = column_name_;
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_column_name();
+ return column_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_column_name(::std::string* column_name) {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- delete column_name_;
- }
- if (column_name) {
+ if (column_name != NULL) {
set_has_column_name();
- column_name_ = column_name;
} else {
clear_has_column_name();
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ column_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), column_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.column_name)
}
// optional int32 ordinal_position = 5;
inline bool ColumnMetadata::has_ordinal_position() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void ColumnMetadata::set_has_ordinal_position() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void ColumnMetadata::clear_has_ordinal_position() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void ColumnMetadata::clear_ordinal_position() {
ordinal_position_ = 0;
clear_has_ordinal_position();
}
inline ::google::protobuf::int32 ColumnMetadata::ordinal_position() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.ordinal_position)
return ordinal_position_;
}
inline void ColumnMetadata::set_ordinal_position(::google::protobuf::int32 value) {
set_has_ordinal_position();
ordinal_position_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.ordinal_position)
}
// optional string default_value = 6;
inline bool ColumnMetadata::has_default_value() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void ColumnMetadata::set_has_default_value() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void ColumnMetadata::clear_has_default_value() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void ColumnMetadata::clear_default_value() {
- if (default_value_ != &::google::protobuf::internal::kEmptyString) {
- default_value_->clear();
- }
+ default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_default_value();
}
inline const ::std::string& ColumnMetadata::default_value() const {
- return *default_value_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.default_value)
+ return default_value_.GetNoArena();
}
inline void ColumnMetadata::set_default_value(const ::std::string& value) {
set_has_default_value();
- if (default_value_ == &::google::protobuf::internal::kEmptyString) {
- default_value_ = new ::std::string;
- }
- default_value_->assign(value);
+ default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.default_value)
}
+#if LANG_CXX11
+inline void ColumnMetadata::set_default_value(::std::string&& value) {
+ set_has_default_value();
+ default_value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.default_value)
+}
+#endif
inline void ColumnMetadata::set_default_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_default_value();
- if (default_value_ == &::google::protobuf::internal::kEmptyString) {
- default_value_ = new ::std::string;
- }
- default_value_->assign(value);
+ default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.default_value)
}
inline void ColumnMetadata::set_default_value(const char* value, size_t size) {
set_has_default_value();
- if (default_value_ == &::google::protobuf::internal::kEmptyString) {
- default_value_ = new ::std::string;
- }
- default_value_->assign(reinterpret_cast<const char*>(value), size);
+ default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.default_value)
}
inline ::std::string* ColumnMetadata::mutable_default_value() {
set_has_default_value();
- if (default_value_ == &::google::protobuf::internal::kEmptyString) {
- default_value_ = new ::std::string;
- }
- return default_value_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.default_value)
+ return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_default_value() {
- clear_has_default_value();
- if (default_value_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.default_value)
+ if (!has_default_value()) {
return NULL;
- } else {
- ::std::string* temp = default_value_;
- default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_default_value();
+ return default_value_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_default_value(::std::string* default_value) {
- if (default_value_ != &::google::protobuf::internal::kEmptyString) {
- delete default_value_;
- }
- if (default_value) {
+ if (default_value != NULL) {
set_has_default_value();
- default_value_ = default_value;
} else {
clear_has_default_value();
- default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.default_value)
}
// optional bool is_nullable = 7;
inline bool ColumnMetadata::has_is_nullable() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void ColumnMetadata::set_has_is_nullable() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void ColumnMetadata::clear_has_is_nullable() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void ColumnMetadata::clear_is_nullable() {
is_nullable_ = false;
clear_has_is_nullable();
}
inline bool ColumnMetadata::is_nullable() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.is_nullable)
return is_nullable_;
}
inline void ColumnMetadata::set_is_nullable(bool value) {
set_has_is_nullable();
is_nullable_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.is_nullable)
}
// optional string data_type = 8;
inline bool ColumnMetadata::has_data_type() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void ColumnMetadata::set_has_data_type() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void ColumnMetadata::clear_has_data_type() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void ColumnMetadata::clear_data_type() {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- data_type_->clear();
- }
+ data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_data_type();
}
inline const ::std::string& ColumnMetadata::data_type() const {
- return *data_type_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.data_type)
+ return data_type_.GetNoArena();
}
inline void ColumnMetadata::set_data_type(const ::std::string& value) {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(value);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.data_type)
+}
+#if LANG_CXX11
+inline void ColumnMetadata::set_data_type(::std::string&& value) {
+ set_has_data_type();
+ data_type_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.data_type)
}
+#endif
inline void ColumnMetadata::set_data_type(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(value);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.data_type)
}
inline void ColumnMetadata::set_data_type(const char* value, size_t size) {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(reinterpret_cast<const char*>(value), size);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.data_type)
}
inline ::std::string* ColumnMetadata::mutable_data_type() {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- return data_type_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.data_type)
+ return data_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_data_type() {
- clear_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.data_type)
+ if (!has_data_type()) {
return NULL;
- } else {
- ::std::string* temp = data_type_;
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_data_type();
+ return data_type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_data_type(::std::string* data_type) {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- delete data_type_;
- }
- if (data_type) {
+ if (data_type != NULL) {
set_has_data_type();
- data_type_ = data_type;
} else {
clear_has_data_type();
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ data_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_type);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.data_type)
}
// optional int32 char_max_length = 9;
inline bool ColumnMetadata::has_char_max_length() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void ColumnMetadata::set_has_char_max_length() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void ColumnMetadata::clear_has_char_max_length() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void ColumnMetadata::clear_char_max_length() {
char_max_length_ = 0;
clear_has_char_max_length();
}
inline ::google::protobuf::int32 ColumnMetadata::char_max_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.char_max_length)
return char_max_length_;
}
inline void ColumnMetadata::set_char_max_length(::google::protobuf::int32 value) {
set_has_char_max_length();
char_max_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.char_max_length)
}
// optional int32 char_octet_length = 10;
inline bool ColumnMetadata::has_char_octet_length() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void ColumnMetadata::set_has_char_octet_length() {
- _has_bits_[0] |= 0x00000200u;
+ _has_bits_[0] |= 0x00000400u;
}
inline void ColumnMetadata::clear_has_char_octet_length() {
- _has_bits_[0] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00000400u;
}
inline void ColumnMetadata::clear_char_octet_length() {
char_octet_length_ = 0;
clear_has_char_octet_length();
}
inline ::google::protobuf::int32 ColumnMetadata::char_octet_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.char_octet_length)
return char_octet_length_;
}
inline void ColumnMetadata::set_char_octet_length(::google::protobuf::int32 value) {
set_has_char_octet_length();
char_octet_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.char_octet_length)
}
// optional int32 numeric_precision = 11;
inline bool ColumnMetadata::has_numeric_precision() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
+ return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void ColumnMetadata::set_has_numeric_precision() {
- _has_bits_[0] |= 0x00000400u;
+ _has_bits_[0] |= 0x00000800u;
}
inline void ColumnMetadata::clear_has_numeric_precision() {
- _has_bits_[0] &= ~0x00000400u;
+ _has_bits_[0] &= ~0x00000800u;
}
inline void ColumnMetadata::clear_numeric_precision() {
numeric_precision_ = 0;
clear_has_numeric_precision();
}
inline ::google::protobuf::int32 ColumnMetadata::numeric_precision() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.numeric_precision)
return numeric_precision_;
}
inline void ColumnMetadata::set_numeric_precision(::google::protobuf::int32 value) {
set_has_numeric_precision();
numeric_precision_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.numeric_precision)
}
// optional int32 numeric_precision_radix = 12;
inline bool ColumnMetadata::has_numeric_precision_radix() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
+ return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void ColumnMetadata::set_has_numeric_precision_radix() {
- _has_bits_[0] |= 0x00000800u;
+ _has_bits_[0] |= 0x00001000u;
}
inline void ColumnMetadata::clear_has_numeric_precision_radix() {
- _has_bits_[0] &= ~0x00000800u;
+ _has_bits_[0] &= ~0x00001000u;
}
inline void ColumnMetadata::clear_numeric_precision_radix() {
numeric_precision_radix_ = 0;
clear_has_numeric_precision_radix();
}
inline ::google::protobuf::int32 ColumnMetadata::numeric_precision_radix() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.numeric_precision_radix)
return numeric_precision_radix_;
}
inline void ColumnMetadata::set_numeric_precision_radix(::google::protobuf::int32 value) {
set_has_numeric_precision_radix();
numeric_precision_radix_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.numeric_precision_radix)
}
// optional int32 numeric_scale = 13;
inline bool ColumnMetadata::has_numeric_scale() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
+ return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void ColumnMetadata::set_has_numeric_scale() {
- _has_bits_[0] |= 0x00001000u;
+ _has_bits_[0] |= 0x00002000u;
}
inline void ColumnMetadata::clear_has_numeric_scale() {
- _has_bits_[0] &= ~0x00001000u;
+ _has_bits_[0] &= ~0x00002000u;
}
inline void ColumnMetadata::clear_numeric_scale() {
numeric_scale_ = 0;
clear_has_numeric_scale();
}
inline ::google::protobuf::int32 ColumnMetadata::numeric_scale() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.numeric_scale)
return numeric_scale_;
}
inline void ColumnMetadata::set_numeric_scale(::google::protobuf::int32 value) {
set_has_numeric_scale();
numeric_scale_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.numeric_scale)
}
// optional int32 date_time_precision = 14;
inline bool ColumnMetadata::has_date_time_precision() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
+ return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void ColumnMetadata::set_has_date_time_precision() {
- _has_bits_[0] |= 0x00002000u;
+ _has_bits_[0] |= 0x00004000u;
}
inline void ColumnMetadata::clear_has_date_time_precision() {
- _has_bits_[0] &= ~0x00002000u;
+ _has_bits_[0] &= ~0x00004000u;
}
inline void ColumnMetadata::clear_date_time_precision() {
date_time_precision_ = 0;
clear_has_date_time_precision();
}
inline ::google::protobuf::int32 ColumnMetadata::date_time_precision() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.date_time_precision)
return date_time_precision_;
}
inline void ColumnMetadata::set_date_time_precision(::google::protobuf::int32 value) {
set_has_date_time_precision();
date_time_precision_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.date_time_precision)
}
// optional string interval_type = 15;
inline bool ColumnMetadata::has_interval_type() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void ColumnMetadata::set_has_interval_type() {
- _has_bits_[0] |= 0x00004000u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void ColumnMetadata::clear_has_interval_type() {
- _has_bits_[0] &= ~0x00004000u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void ColumnMetadata::clear_interval_type() {
- if (interval_type_ != &::google::protobuf::internal::kEmptyString) {
- interval_type_->clear();
- }
+ interval_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_interval_type();
}
inline const ::std::string& ColumnMetadata::interval_type() const {
- return *interval_type_;
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.interval_type)
+ return interval_type_.GetNoArena();
}
inline void ColumnMetadata::set_interval_type(const ::std::string& value) {
set_has_interval_type();
- if (interval_type_ == &::google::protobuf::internal::kEmptyString) {
- interval_type_ = new ::std::string;
- }
- interval_type_->assign(value);
+ interval_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.interval_type)
+}
+#if LANG_CXX11
+inline void ColumnMetadata::set_interval_type(::std::string&& value) {
+ set_has_interval_type();
+ interval_type_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ColumnMetadata.interval_type)
}
+#endif
inline void ColumnMetadata::set_interval_type(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_interval_type();
- if (interval_type_ == &::google::protobuf::internal::kEmptyString) {
- interval_type_ = new ::std::string;
- }
- interval_type_->assign(value);
+ interval_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ColumnMetadata.interval_type)
}
inline void ColumnMetadata::set_interval_type(const char* value, size_t size) {
set_has_interval_type();
- if (interval_type_ == &::google::protobuf::internal::kEmptyString) {
- interval_type_ = new ::std::string;
- }
- interval_type_->assign(reinterpret_cast<const char*>(value), size);
+ interval_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ColumnMetadata.interval_type)
}
inline ::std::string* ColumnMetadata::mutable_interval_type() {
set_has_interval_type();
- if (interval_type_ == &::google::protobuf::internal::kEmptyString) {
- interval_type_ = new ::std::string;
- }
- return interval_type_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ColumnMetadata.interval_type)
+ return interval_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ColumnMetadata::release_interval_type() {
- clear_has_interval_type();
- if (interval_type_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ColumnMetadata.interval_type)
+ if (!has_interval_type()) {
return NULL;
- } else {
- ::std::string* temp = interval_type_;
- interval_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_interval_type();
+ return interval_type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ColumnMetadata::set_allocated_interval_type(::std::string* interval_type) {
- if (interval_type_ != &::google::protobuf::internal::kEmptyString) {
- delete interval_type_;
- }
- if (interval_type) {
+ if (interval_type != NULL) {
set_has_interval_type();
- interval_type_ = interval_type;
} else {
clear_has_interval_type();
- interval_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ interval_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), interval_type);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ColumnMetadata.interval_type)
}
// optional int32 interval_precision = 16;
@@ -8697,11 +10467,13 @@ inline void ColumnMetadata::clear_interval_precision() {
clear_has_interval_precision();
}
inline ::google::protobuf::int32 ColumnMetadata::interval_precision() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.interval_precision)
return interval_precision_;
}
inline void ColumnMetadata::set_interval_precision(::google::protobuf::int32 value) {
set_has_interval_precision();
interval_precision_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.interval_precision)
}
// optional int32 column_size = 17;
@@ -8719,11 +10491,13 @@ inline void ColumnMetadata::clear_column_size() {
clear_has_column_size();
}
inline ::google::protobuf::int32 ColumnMetadata::column_size() const {
+ // @@protoc_insertion_point(field_get:exec.user.ColumnMetadata.column_size)
return column_size_;
}
inline void ColumnMetadata::set_column_size(::google::protobuf::int32 value) {
set_has_column_size();
column_size_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ColumnMetadata.column_size)
}
// -------------------------------------------------------------------
@@ -8732,25 +10506,27 @@ inline void ColumnMetadata::set_column_size(::google::protobuf::int32 value) {
// optional .exec.user.RequestStatus status = 1;
inline bool GetColumnsResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetColumnsResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetColumnsResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void GetColumnsResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus GetColumnsResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void GetColumnsResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetColumnsResp.status)
}
// repeated .exec.user.ColumnMetadata columns = 2;
@@ -8760,60 +10536,81 @@ inline int GetColumnsResp::columns_size() const {
inline void GetColumnsResp::clear_columns() {
columns_.Clear();
}
-inline const ::exec::user::ColumnMetadata& GetColumnsResp::columns(int index) const {
- return columns_.Get(index);
-}
inline ::exec::user::ColumnMetadata* GetColumnsResp::mutable_columns(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsResp.columns)
return columns_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >*
+GetColumnsResp::mutable_columns() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.GetColumnsResp.columns)
+ return &columns_;
+}
+inline const ::exec::user::ColumnMetadata& GetColumnsResp::columns(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsResp.columns)
+ return columns_.Get(index);
+}
inline ::exec::user::ColumnMetadata* GetColumnsResp::add_columns() {
+ // @@protoc_insertion_point(field_add:exec.user.GetColumnsResp.columns)
return columns_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >&
GetColumnsResp::columns() const {
+ // @@protoc_insertion_point(field_list:exec.user.GetColumnsResp.columns)
return columns_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::ColumnMetadata >*
-GetColumnsResp::mutable_columns() {
- return &columns_;
-}
// optional .exec.shared.DrillPBError error = 3;
inline bool GetColumnsResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GetColumnsResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void GetColumnsResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
-inline void GetColumnsResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& GetColumnsResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& GetColumnsResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* GetColumnsResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.GetColumnsResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* GetColumnsResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.GetColumnsResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* GetColumnsResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetColumnsResp.error)
+ return error_;
+}
inline void GetColumnsResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetColumnsResp.error)
}
// -------------------------------------------------------------------
@@ -8831,63 +10628,59 @@ inline void CreatePreparedStatementReq::clear_has_sql_query() {
_has_bits_[0] &= ~0x00000001u;
}
inline void CreatePreparedStatementReq::clear_sql_query() {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- sql_query_->clear();
- }
+ sql_query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_sql_query();
}
inline const ::std::string& CreatePreparedStatementReq::sql_query() const {
- return *sql_query_;
+ // @@protoc_insertion_point(field_get:exec.user.CreatePreparedStatementReq.sql_query)
+ return sql_query_.GetNoArena();
}
inline void CreatePreparedStatementReq::set_sql_query(const ::std::string& value) {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(value);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.CreatePreparedStatementReq.sql_query)
}
+#if LANG_CXX11
+inline void CreatePreparedStatementReq::set_sql_query(::std::string&& value) {
+ set_has_sql_query();
+ sql_query_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.CreatePreparedStatementReq.sql_query)
+}
+#endif
inline void CreatePreparedStatementReq::set_sql_query(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(value);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.CreatePreparedStatementReq.sql_query)
}
inline void CreatePreparedStatementReq::set_sql_query(const char* value, size_t size) {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- sql_query_->assign(reinterpret_cast<const char*>(value), size);
+ sql_query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.CreatePreparedStatementReq.sql_query)
}
inline ::std::string* CreatePreparedStatementReq::mutable_sql_query() {
set_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
- sql_query_ = new ::std::string;
- }
- return sql_query_;
+ // @@protoc_insertion_point(field_mutable:exec.user.CreatePreparedStatementReq.sql_query)
+ return sql_query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* CreatePreparedStatementReq::release_sql_query() {
- clear_has_sql_query();
- if (sql_query_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.CreatePreparedStatementReq.sql_query)
+ if (!has_sql_query()) {
return NULL;
- } else {
- ::std::string* temp = sql_query_;
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_sql_query();
+ return sql_query_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void CreatePreparedStatementReq::set_allocated_sql_query(::std::string* sql_query) {
- if (sql_query_ != &::google::protobuf::internal::kEmptyString) {
- delete sql_query_;
- }
- if (sql_query) {
+ if (sql_query != NULL) {
set_has_sql_query();
- sql_query_ = sql_query;
} else {
clear_has_sql_query();
- sql_query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ sql_query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sql_query);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CreatePreparedStatementReq.sql_query)
}
// -------------------------------------------------------------------
@@ -8905,63 +10698,59 @@ inline void ResultColumnMetadata::clear_has_catalog_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ResultColumnMetadata::clear_catalog_name() {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- catalog_name_->clear();
- }
+ catalog_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_name();
}
inline const ::std::string& ResultColumnMetadata::catalog_name() const {
- return *catalog_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.catalog_name)
+ return catalog_name_.GetNoArena();
}
inline void ResultColumnMetadata::set_catalog_name(const ::std::string& value) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.catalog_name)
+}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_catalog_name(::std::string&& value) {
+ set_has_catalog_name();
+ catalog_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.catalog_name)
}
+#endif
inline void ResultColumnMetadata::set_catalog_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(value);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.catalog_name)
}
inline void ResultColumnMetadata::set_catalog_name(const char* value, size_t size) {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- catalog_name_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.catalog_name)
}
inline ::std::string* ResultColumnMetadata::mutable_catalog_name() {
set_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
- catalog_name_ = new ::std::string;
- }
- return catalog_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.catalog_name)
+ return catalog_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_catalog_name() {
- clear_has_catalog_name();
- if (catalog_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.catalog_name)
+ if (!has_catalog_name()) {
return NULL;
- } else {
- ::std::string* temp = catalog_name_;
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_name();
+ return catalog_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_catalog_name(::std::string* catalog_name) {
- if (catalog_name_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_name_;
- }
- if (catalog_name) {
+ if (catalog_name != NULL) {
set_has_catalog_name();
- catalog_name_ = catalog_name;
} else {
clear_has_catalog_name();
- catalog_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.catalog_name)
}
// optional string schema_name = 2;
@@ -8975,63 +10764,59 @@ inline void ResultColumnMetadata::clear_has_schema_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ResultColumnMetadata::clear_schema_name() {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- schema_name_->clear();
- }
+ schema_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_schema_name();
}
inline const ::std::string& ResultColumnMetadata::schema_name() const {
- return *schema_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.schema_name)
+ return schema_name_.GetNoArena();
}
inline void ResultColumnMetadata::set_schema_name(const ::std::string& value) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.schema_name)
+}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_schema_name(::std::string&& value) {
+ set_has_schema_name();
+ schema_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.schema_name)
}
+#endif
inline void ResultColumnMetadata::set_schema_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(value);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.schema_name)
}
inline void ResultColumnMetadata::set_schema_name(const char* value, size_t size) {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- schema_name_->assign(reinterpret_cast<const char*>(value), size);
+ schema_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.schema_name)
}
inline ::std::string* ResultColumnMetadata::mutable_schema_name() {
set_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
- schema_name_ = new ::std::string;
- }
- return schema_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.schema_name)
+ return schema_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_schema_name() {
- clear_has_schema_name();
- if (schema_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.schema_name)
+ if (!has_schema_name()) {
return NULL;
- } else {
- ::std::string* temp = schema_name_;
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_schema_name();
+ return schema_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_schema_name(::std::string* schema_name) {
- if (schema_name_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_name_;
- }
- if (schema_name) {
+ if (schema_name != NULL) {
set_has_schema_name();
- schema_name_ = schema_name;
} else {
clear_has_schema_name();
- schema_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ schema_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.schema_name)
}
// optional string table_name = 3;
@@ -9045,63 +10830,59 @@ inline void ResultColumnMetadata::clear_has_table_name() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ResultColumnMetadata::clear_table_name() {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- table_name_->clear();
- }
+ table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_table_name();
}
inline const ::std::string& ResultColumnMetadata::table_name() const {
- return *table_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.table_name)
+ return table_name_.GetNoArena();
}
inline void ResultColumnMetadata::set_table_name(const ::std::string& value) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.table_name)
}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_table_name(::std::string&& value) {
+ set_has_table_name();
+ table_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.table_name)
+}
+#endif
inline void ResultColumnMetadata::set_table_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(value);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.table_name)
}
inline void ResultColumnMetadata::set_table_name(const char* value, size_t size) {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- table_name_->assign(reinterpret_cast<const char*>(value), size);
+ table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.table_name)
}
inline ::std::string* ResultColumnMetadata::mutable_table_name() {
set_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
- table_name_ = new ::std::string;
- }
- return table_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.table_name)
+ return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_table_name() {
- clear_has_table_name();
- if (table_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.table_name)
+ if (!has_table_name()) {
return NULL;
- } else {
- ::std::string* temp = table_name_;
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_table_name();
+ return table_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_table_name(::std::string* table_name) {
- if (table_name_ != &::google::protobuf::internal::kEmptyString) {
- delete table_name_;
- }
- if (table_name) {
+ if (table_name != NULL) {
set_has_table_name();
- table_name_ = table_name;
} else {
clear_has_table_name();
- table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.table_name)
}
// optional string column_name = 4;
@@ -9115,63 +10896,59 @@ inline void ResultColumnMetadata::clear_has_column_name() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ResultColumnMetadata::clear_column_name() {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- column_name_->clear();
- }
+ column_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_column_name();
}
inline const ::std::string& ResultColumnMetadata::column_name() const {
- return *column_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.column_name)
+ return column_name_.GetNoArena();
}
inline void ResultColumnMetadata::set_column_name(const ::std::string& value) {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(value);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.column_name)
}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_column_name(::std::string&& value) {
+ set_has_column_name();
+ column_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.column_name)
+}
+#endif
inline void ResultColumnMetadata::set_column_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(value);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.column_name)
}
inline void ResultColumnMetadata::set_column_name(const char* value, size_t size) {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- column_name_->assign(reinterpret_cast<const char*>(value), size);
+ column_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.column_name)
}
inline ::std::string* ResultColumnMetadata::mutable_column_name() {
set_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
- column_name_ = new ::std::string;
- }
- return column_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.column_name)
+ return column_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_column_name() {
- clear_has_column_name();
- if (column_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.column_name)
+ if (!has_column_name()) {
return NULL;
- } else {
- ::std::string* temp = column_name_;
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_column_name();
+ return column_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_column_name(::std::string* column_name) {
- if (column_name_ != &::google::protobuf::internal::kEmptyString) {
- delete column_name_;
- }
- if (column_name) {
+ if (column_name != NULL) {
set_has_column_name();
- column_name_ = column_name;
} else {
clear_has_column_name();
- column_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ column_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), column_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.column_name)
}
// optional string label = 5;
@@ -9185,63 +10962,59 @@ inline void ResultColumnMetadata::clear_has_label() {
_has_bits_[0] &= ~0x00000010u;
}
inline void ResultColumnMetadata::clear_label() {
- if (label_ != &::google::protobuf::internal::kEmptyString) {
- label_->clear();
- }
+ label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_label();
}
inline const ::std::string& ResultColumnMetadata::label() const {
- return *label_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.label)
+ return label_.GetNoArena();
}
inline void ResultColumnMetadata::set_label(const ::std::string& value) {
set_has_label();
- if (label_ == &::google::protobuf::internal::kEmptyString) {
- label_ = new ::std::string;
- }
- label_->assign(value);
+ label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.label)
+}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_label(::std::string&& value) {
+ set_has_label();
+ label_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.label)
}
+#endif
inline void ResultColumnMetadata::set_label(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_label();
- if (label_ == &::google::protobuf::internal::kEmptyString) {
- label_ = new ::std::string;
- }
- label_->assign(value);
+ label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.label)
}
inline void ResultColumnMetadata::set_label(const char* value, size_t size) {
set_has_label();
- if (label_ == &::google::protobuf::internal::kEmptyString) {
- label_ = new ::std::string;
- }
- label_->assign(reinterpret_cast<const char*>(value), size);
+ label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.label)
}
inline ::std::string* ResultColumnMetadata::mutable_label() {
set_has_label();
- if (label_ == &::google::protobuf::internal::kEmptyString) {
- label_ = new ::std::string;
- }
- return label_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.label)
+ return label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_label() {
- clear_has_label();
- if (label_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.label)
+ if (!has_label()) {
return NULL;
- } else {
- ::std::string* temp = label_;
- label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_label();
+ return label_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_label(::std::string* label) {
- if (label_ != &::google::protobuf::internal::kEmptyString) {
- delete label_;
- }
- if (label) {
+ if (label != NULL) {
set_has_label();
- label_ = label;
} else {
clear_has_label();
- label_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.label)
}
// optional string data_type = 6;
@@ -9255,85 +11028,83 @@ inline void ResultColumnMetadata::clear_has_data_type() {
_has_bits_[0] &= ~0x00000020u;
}
inline void ResultColumnMetadata::clear_data_type() {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- data_type_->clear();
- }
+ data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_data_type();
}
inline const ::std::string& ResultColumnMetadata::data_type() const {
- return *data_type_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.data_type)
+ return data_type_.GetNoArena();
}
inline void ResultColumnMetadata::set_data_type(const ::std::string& value) {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(value);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.data_type)
+}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_data_type(::std::string&& value) {
+ set_has_data_type();
+ data_type_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.data_type)
}
+#endif
inline void ResultColumnMetadata::set_data_type(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(value);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.data_type)
}
inline void ResultColumnMetadata::set_data_type(const char* value, size_t size) {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- data_type_->assign(reinterpret_cast<const char*>(value), size);
+ data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.data_type)
}
inline ::std::string* ResultColumnMetadata::mutable_data_type() {
set_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
- data_type_ = new ::std::string;
- }
- return data_type_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.data_type)
+ return data_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_data_type() {
- clear_has_data_type();
- if (data_type_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.data_type)
+ if (!has_data_type()) {
return NULL;
- } else {
- ::std::string* temp = data_type_;
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_data_type();
+ return data_type_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_data_type(::std::string* data_type) {
- if (data_type_ != &::google::protobuf::internal::kEmptyString) {
- delete data_type_;
- }
- if (data_type) {
+ if (data_type != NULL) {
set_has_data_type();
- data_type_ = data_type;
} else {
clear_has_data_type();
- data_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ data_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_type);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.data_type)
}
// optional bool is_nullable = 7;
inline bool ResultColumnMetadata::has_is_nullable() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void ResultColumnMetadata::set_has_is_nullable() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000400u;
}
inline void ResultColumnMetadata::clear_has_is_nullable() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000400u;
}
inline void ResultColumnMetadata::clear_is_nullable() {
is_nullable_ = false;
clear_has_is_nullable();
}
inline bool ResultColumnMetadata::is_nullable() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.is_nullable)
return is_nullable_;
}
inline void ResultColumnMetadata::set_is_nullable(bool value) {
set_has_is_nullable();
is_nullable_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.is_nullable)
}
// optional int32 precision = 8;
@@ -9351,11 +11122,13 @@ inline void ResultColumnMetadata::clear_precision() {
clear_has_precision();
}
inline ::google::protobuf::int32 ResultColumnMetadata::precision() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.precision)
return precision_;
}
inline void ResultColumnMetadata::set_precision(::google::protobuf::int32 value) {
set_has_precision();
precision_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.precision)
}
// optional int32 scale = 9;
@@ -9373,259 +11146,273 @@ inline void ResultColumnMetadata::clear_scale() {
clear_has_scale();
}
inline ::google::protobuf::int32 ResultColumnMetadata::scale() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.scale)
return scale_;
}
inline void ResultColumnMetadata::set_scale(::google::protobuf::int32 value) {
set_has_scale();
scale_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.scale)
}
// optional bool signed = 10;
inline bool ResultColumnMetadata::has_signed_() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void ResultColumnMetadata::set_has_signed_() {
- _has_bits_[0] |= 0x00000200u;
+ _has_bits_[0] |= 0x00000800u;
}
inline void ResultColumnMetadata::clear_has_signed_() {
- _has_bits_[0] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00000800u;
}
inline void ResultColumnMetadata::clear_signed_() {
signed__ = false;
clear_has_signed_();
}
inline bool ResultColumnMetadata::signed_() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.signed)
return signed__;
}
inline void ResultColumnMetadata::set_signed_(bool value) {
set_has_signed_();
signed__ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.signed)
}
// optional int32 display_size = 11;
inline bool ResultColumnMetadata::has_display_size() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void ResultColumnMetadata::set_has_display_size() {
- _has_bits_[0] |= 0x00000400u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void ResultColumnMetadata::clear_has_display_size() {
- _has_bits_[0] &= ~0x00000400u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void ResultColumnMetadata::clear_display_size() {
display_size_ = 0;
clear_has_display_size();
}
inline ::google::protobuf::int32 ResultColumnMetadata::display_size() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.display_size)
return display_size_;
}
inline void ResultColumnMetadata::set_display_size(::google::protobuf::int32 value) {
set_has_display_size();
display_size_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.display_size)
}
// optional bool is_aliased = 12;
inline bool ResultColumnMetadata::has_is_aliased() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
+ return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void ResultColumnMetadata::set_has_is_aliased() {
- _has_bits_[0] |= 0x00000800u;
+ _has_bits_[0] |= 0x00001000u;
}
inline void ResultColumnMetadata::clear_has_is_aliased() {
- _has_bits_[0] &= ~0x00000800u;
+ _has_bits_[0] &= ~0x00001000u;
}
inline void ResultColumnMetadata::clear_is_aliased() {
is_aliased_ = false;
clear_has_is_aliased();
}
inline bool ResultColumnMetadata::is_aliased() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.is_aliased)
return is_aliased_;
}
inline void ResultColumnMetadata::set_is_aliased(bool value) {
set_has_is_aliased();
is_aliased_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.is_aliased)
}
// optional .exec.user.ColumnSearchability searchability = 13;
inline bool ResultColumnMetadata::has_searchability() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
+ return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void ResultColumnMetadata::set_has_searchability() {
- _has_bits_[0] |= 0x00001000u;
+ _has_bits_[0] |= 0x00004000u;
}
inline void ResultColumnMetadata::clear_has_searchability() {
- _has_bits_[0] &= ~0x00001000u;
+ _has_bits_[0] &= ~0x00004000u;
}
inline void ResultColumnMetadata::clear_searchability() {
searchability_ = 0;
clear_has_searchability();
}
inline ::exec::user::ColumnSearchability ResultColumnMetadata::searchability() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.searchability)
return static_cast< ::exec::user::ColumnSearchability >(searchability_);
}
inline void ResultColumnMetadata::set_searchability(::exec::user::ColumnSearchability value) {
assert(::exec::user::ColumnSearchability_IsValid(value));
set_has_searchability();
searchability_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.searchability)
}
// optional .exec.user.ColumnUpdatability updatability = 14;
inline bool ResultColumnMetadata::has_updatability() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
+ return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void ResultColumnMetadata::set_has_updatability() {
- _has_bits_[0] |= 0x00002000u;
+ _has_bits_[0] |= 0x00008000u;
}
inline void ResultColumnMetadata::clear_has_updatability() {
- _has_bits_[0] &= ~0x00002000u;
+ _has_bits_[0] &= ~0x00008000u;
}
inline void ResultColumnMetadata::clear_updatability() {
updatability_ = 0;
clear_has_updatability();
}
inline ::exec::user::ColumnUpdatability ResultColumnMetadata::updatability() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.updatability)
return static_cast< ::exec::user::ColumnUpdatability >(updatability_);
}
inline void ResultColumnMetadata::set_updatability(::exec::user::ColumnUpdatability value) {
assert(::exec::user::ColumnUpdatability_IsValid(value));
set_has_updatability();
updatability_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.updatability)
}
// optional bool auto_increment = 15;
inline bool ResultColumnMetadata::has_auto_increment() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
+ return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void ResultColumnMetadata::set_has_auto_increment() {
- _has_bits_[0] |= 0x00004000u;
+ _has_bits_[0] |= 0x00002000u;
}
inline void ResultColumnMetadata::clear_has_auto_increment() {
- _has_bits_[0] &= ~0x00004000u;
+ _has_bits_[0] &= ~0x00002000u;
}
inline void ResultColumnMetadata::clear_auto_increment() {
auto_increment_ = false;
clear_has_auto_increment();
}
inline bool ResultColumnMetadata::auto_increment() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.auto_increment)
return auto_increment_;
}
inline void ResultColumnMetadata::set_auto_increment(bool value) {
set_has_auto_increment();
auto_increment_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.auto_increment)
}
// optional bool case_sensitivity = 16;
inline bool ResultColumnMetadata::has_case_sensitivity() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
+ return (_has_bits_[0] & 0x00010000u) != 0;
}
inline void ResultColumnMetadata::set_has_case_sensitivity() {
- _has_bits_[0] |= 0x00008000u;
+ _has_bits_[0] |= 0x00010000u;
}
inline void ResultColumnMetadata::clear_has_case_sensitivity() {
- _has_bits_[0] &= ~0x00008000u;
+ _has_bits_[0] &= ~0x00010000u;
}
inline void ResultColumnMetadata::clear_case_sensitivity() {
case_sensitivity_ = false;
clear_has_case_sensitivity();
}
inline bool ResultColumnMetadata::case_sensitivity() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.case_sensitivity)
return case_sensitivity_;
}
inline void ResultColumnMetadata::set_case_sensitivity(bool value) {
set_has_case_sensitivity();
case_sensitivity_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.case_sensitivity)
}
// optional bool sortable = 17;
inline bool ResultColumnMetadata::has_sortable() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
+ return (_has_bits_[0] & 0x00020000u) != 0;
}
inline void ResultColumnMetadata::set_has_sortable() {
- _has_bits_[0] |= 0x00010000u;
+ _has_bits_[0] |= 0x00020000u;
}
inline void ResultColumnMetadata::clear_has_sortable() {
- _has_bits_[0] &= ~0x00010000u;
+ _has_bits_[0] &= ~0x00020000u;
}
inline void ResultColumnMetadata::clear_sortable() {
sortable_ = false;
clear_has_sortable();
}
inline bool ResultColumnMetadata::sortable() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.sortable)
return sortable_;
}
inline void ResultColumnMetadata::set_sortable(bool value) {
set_has_sortable();
sortable_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.sortable)
}
// optional string class_name = 18;
inline bool ResultColumnMetadata::has_class_name() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void ResultColumnMetadata::set_has_class_name() {
- _has_bits_[0] |= 0x00020000u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void ResultColumnMetadata::clear_has_class_name() {
- _has_bits_[0] &= ~0x00020000u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void ResultColumnMetadata::clear_class_name() {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- class_name_->clear();
- }
+ class_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_class_name();
}
inline const ::std::string& ResultColumnMetadata::class_name() const {
- return *class_name_;
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.class_name)
+ return class_name_.GetNoArena();
}
inline void ResultColumnMetadata::set_class_name(const ::std::string& value) {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(value);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.class_name)
}
+#if LANG_CXX11
+inline void ResultColumnMetadata::set_class_name(::std::string&& value) {
+ set_has_class_name();
+ class_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ResultColumnMetadata.class_name)
+}
+#endif
inline void ResultColumnMetadata::set_class_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(value);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ResultColumnMetadata.class_name)
}
inline void ResultColumnMetadata::set_class_name(const char* value, size_t size) {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(reinterpret_cast<const char*>(value), size);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ResultColumnMetadata.class_name)
}
inline ::std::string* ResultColumnMetadata::mutable_class_name() {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- return class_name_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ResultColumnMetadata.class_name)
+ return class_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ResultColumnMetadata::release_class_name() {
- clear_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ResultColumnMetadata.class_name)
+ if (!has_class_name()) {
return NULL;
- } else {
- ::std::string* temp = class_name_;
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_class_name();
+ return class_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ResultColumnMetadata::set_allocated_class_name(::std::string* class_name) {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- delete class_name_;
- }
- if (class_name) {
+ if (class_name != NULL) {
set_has_class_name();
- class_name_ = class_name;
} else {
clear_has_class_name();
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ class_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), class_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ResultColumnMetadata.class_name)
}
// optional bool is_currency = 20;
@@ -9643,11 +11430,13 @@ inline void ResultColumnMetadata::clear_is_currency() {
clear_has_is_currency();
}
inline bool ResultColumnMetadata::is_currency() const {
+ // @@protoc_insertion_point(field_get:exec.user.ResultColumnMetadata.is_currency)
return is_currency_;
}
inline void ResultColumnMetadata::set_is_currency(bool value) {
set_has_is_currency();
is_currency_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ResultColumnMetadata.is_currency)
}
// -------------------------------------------------------------------
@@ -9665,63 +11454,59 @@ inline void PreparedStatementHandle::clear_has_server_info() {
_has_bits_[0] &= ~0x00000001u;
}
inline void PreparedStatementHandle::clear_server_info() {
- if (server_info_ != &::google::protobuf::internal::kEmptyString) {
- server_info_->clear();
- }
+ server_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_server_info();
}
inline const ::std::string& PreparedStatementHandle::server_info() const {
- return *server_info_;
+ // @@protoc_insertion_point(field_get:exec.user.PreparedStatementHandle.server_info)
+ return server_info_.GetNoArena();
}
inline void PreparedStatementHandle::set_server_info(const ::std::string& value) {
set_has_server_info();
- if (server_info_ == &::google::protobuf::internal::kEmptyString) {
- server_info_ = new ::std::string;
- }
- server_info_->assign(value);
+ server_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.PreparedStatementHandle.server_info)
+}
+#if LANG_CXX11
+inline void PreparedStatementHandle::set_server_info(::std::string&& value) {
+ set_has_server_info();
+ server_info_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.PreparedStatementHandle.server_info)
}
+#endif
inline void PreparedStatementHandle::set_server_info(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_server_info();
- if (server_info_ == &::google::protobuf::internal::kEmptyString) {
- server_info_ = new ::std::string;
- }
- server_info_->assign(value);
+ server_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.PreparedStatementHandle.server_info)
}
inline void PreparedStatementHandle::set_server_info(const void* value, size_t size) {
set_has_server_info();
- if (server_info_ == &::google::protobuf::internal::kEmptyString) {
- server_info_ = new ::std::string;
- }
- server_info_->assign(reinterpret_cast<const char*>(value), size);
+ server_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.PreparedStatementHandle.server_info)
}
inline ::std::string* PreparedStatementHandle::mutable_server_info() {
set_has_server_info();
- if (server_info_ == &::google::protobuf::internal::kEmptyString) {
- server_info_ = new ::std::string;
- }
- return server_info_;
+ // @@protoc_insertion_point(field_mutable:exec.user.PreparedStatementHandle.server_info)
+ return server_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* PreparedStatementHandle::release_server_info() {
- clear_has_server_info();
- if (server_info_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.PreparedStatementHandle.server_info)
+ if (!has_server_info()) {
return NULL;
- } else {
- ::std::string* temp = server_info_;
- server_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_server_info();
+ return server_info_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void PreparedStatementHandle::set_allocated_server_info(::std::string* server_info) {
- if (server_info_ != &::google::protobuf::internal::kEmptyString) {
- delete server_info_;
- }
- if (server_info) {
+ if (server_info != NULL) {
set_has_server_info();
- server_info_ = server_info;
} else {
clear_has_server_info();
- server_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ server_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), server_info);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.PreparedStatementHandle.server_info)
}
// -------------------------------------------------------------------
@@ -9735,60 +11520,85 @@ inline int PreparedStatement::columns_size() const {
inline void PreparedStatement::clear_columns() {
columns_.Clear();
}
-inline const ::exec::user::ResultColumnMetadata& PreparedStatement::columns(int index) const {
- return columns_.Get(index);
-}
inline ::exec::user::ResultColumnMetadata* PreparedStatement::mutable_columns(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.PreparedStatement.columns)
return columns_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >*
+PreparedStatement::mutable_columns() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.PreparedStatement.columns)
+ return &columns_;
+}
+inline const ::exec::user::ResultColumnMetadata& PreparedStatement::columns(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.PreparedStatement.columns)
+ return columns_.Get(index);
+}
inline ::exec::user::ResultColumnMetadata* PreparedStatement::add_columns() {
+ // @@protoc_insertion_point(field_add:exec.user.PreparedStatement.columns)
return columns_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >&
PreparedStatement::columns() const {
+ // @@protoc_insertion_point(field_list:exec.user.PreparedStatement.columns)
return columns_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::ResultColumnMetadata >*
-PreparedStatement::mutable_columns() {
- return &columns_;
-}
// optional .exec.user.PreparedStatementHandle server_handle = 2;
inline bool PreparedStatement::has_server_handle() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void PreparedStatement::set_has_server_handle() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void PreparedStatement::clear_has_server_handle() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void PreparedStatement::clear_server_handle() {
- if (server_handle_ != NULL) server_handle_->::exec::user::PreparedStatementHandle::Clear();
+ if (server_handle_ != NULL) server_handle_->Clear();
clear_has_server_handle();
}
-inline const ::exec::user::PreparedStatementHandle& PreparedStatement::server_handle() const {
- return server_handle_ != NULL ? *server_handle_ : *default_instance_->server_handle_;
+inline const ::exec::user::PreparedStatementHandle& PreparedStatement::_internal_server_handle() const {
+ return *server_handle_;
}
-inline ::exec::user::PreparedStatementHandle* PreparedStatement::mutable_server_handle() {
- set_has_server_handle();
- if (server_handle_ == NULL) server_handle_ = new ::exec::user::PreparedStatementHandle;
- return server_handle_;
+inline const ::exec::user::PreparedStatementHandle& PreparedStatement::server_handle() const {
+ const ::exec::user::PreparedStatementHandle* p = server_handle_;
+ // @@protoc_insertion_point(field_get:exec.user.PreparedStatement.server_handle)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::PreparedStatementHandle*>(
+ &::exec::user::_PreparedStatementHandle_default_instance_);
}
inline ::exec::user::PreparedStatementHandle* PreparedStatement::release_server_handle() {
+ // @@protoc_insertion_point(field_release:exec.user.PreparedStatement.server_handle)
clear_has_server_handle();
::exec::user::PreparedStatementHandle* temp = server_handle_;
server_handle_ = NULL;
return temp;
}
+inline ::exec::user::PreparedStatementHandle* PreparedStatement::mutable_server_handle() {
+ set_has_server_handle();
+ if (server_handle_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::PreparedStatementHandle>(GetArenaNoVirtual());
+ server_handle_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.PreparedStatement.server_handle)
+ return server_handle_;
+}
inline void PreparedStatement::set_allocated_server_handle(::exec::user::PreparedStatementHandle* server_handle) {
- delete server_handle_;
- server_handle_ = server_handle;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete server_handle_;
+ }
if (server_handle) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ server_handle = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, server_handle, submessage_arena);
+ }
set_has_server_handle();
} else {
clear_has_server_handle();
}
+ server_handle_ = server_handle;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.PreparedStatement.server_handle)
}
// -------------------------------------------------------------------
@@ -9797,101 +11607,139 @@ inline void PreparedStatement::set_allocated_server_handle(::exec::user::Prepare
// optional .exec.user.RequestStatus status = 1;
inline bool CreatePreparedStatementResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void CreatePreparedStatementResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void CreatePreparedStatementResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void CreatePreparedStatementResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus CreatePreparedStatementResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.CreatePreparedStatementResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void CreatePreparedStatementResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.CreatePreparedStatementResp.status)
}
// optional .exec.user.PreparedStatement prepared_statement = 2;
inline bool CreatePreparedStatementResp::has_prepared_statement() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void CreatePreparedStatementResp::set_has_prepared_statement() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void CreatePreparedStatementResp::clear_has_prepared_statement() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void CreatePreparedStatementResp::clear_prepared_statement() {
- if (prepared_statement_ != NULL) prepared_statement_->::exec::user::PreparedStatement::Clear();
+ if (prepared_statement_ != NULL) prepared_statement_->Clear();
clear_has_prepared_statement();
}
-inline const ::exec::user::PreparedStatement& CreatePreparedStatementResp::prepared_statement() const {
- return prepared_statement_ != NULL ? *prepared_statement_ : *default_instance_->prepared_statement_;
+inline const ::exec::user::PreparedStatement& CreatePreparedStatementResp::_internal_prepared_statement() const {
+ return *prepared_statement_;
}
-inline ::exec::user::PreparedStatement* CreatePreparedStatementResp::mutable_prepared_statement() {
- set_has_prepared_statement();
- if (prepared_statement_ == NULL) prepared_statement_ = new ::exec::user::PreparedStatement;
- return prepared_statement_;
+inline const ::exec::user::PreparedStatement& CreatePreparedStatementResp::prepared_statement() const {
+ const ::exec::user::PreparedStatement* p = prepared_statement_;
+ // @@protoc_insertion_point(field_get:exec.user.CreatePreparedStatementResp.prepared_statement)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::PreparedStatement*>(
+ &::exec::user::_PreparedStatement_default_instance_);
}
inline ::exec::user::PreparedStatement* CreatePreparedStatementResp::release_prepared_statement() {
+ // @@protoc_insertion_point(field_release:exec.user.CreatePreparedStatementResp.prepared_statement)
clear_has_prepared_statement();
::exec::user::PreparedStatement* temp = prepared_statement_;
prepared_statement_ = NULL;
return temp;
}
+inline ::exec::user::PreparedStatement* CreatePreparedStatementResp::mutable_prepared_statement() {
+ set_has_prepared_statement();
+ if (prepared_statement_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::PreparedStatement>(GetArenaNoVirtual());
+ prepared_statement_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.CreatePreparedStatementResp.prepared_statement)
+ return prepared_statement_;
+}
inline void CreatePreparedStatementResp::set_allocated_prepared_statement(::exec::user::PreparedStatement* prepared_statement) {
- delete prepared_statement_;
- prepared_statement_ = prepared_statement;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete prepared_statement_;
+ }
if (prepared_statement) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ prepared_statement = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, prepared_statement, submessage_arena);
+ }
set_has_prepared_statement();
} else {
clear_has_prepared_statement();
}
+ prepared_statement_ = prepared_statement;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CreatePreparedStatementResp.prepared_statement)
}
// optional .exec.shared.DrillPBError error = 3;
inline bool CreatePreparedStatementResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void CreatePreparedStatementResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void CreatePreparedStatementResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void CreatePreparedStatementResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& CreatePreparedStatementResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& CreatePreparedStatementResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* CreatePreparedStatementResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.CreatePreparedStatementResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* CreatePreparedStatementResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.CreatePreparedStatementResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* CreatePreparedStatementResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.CreatePreparedStatementResp.error)
+ return error_;
+}
inline void CreatePreparedStatementResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.CreatePreparedStatementResp.error)
}
// -------------------------------------------------------------------
@@ -9917,12 +11765,14 @@ inline void ConvertSupport::clear_from() {
clear_has_from();
}
inline ::common::MinorType ConvertSupport::from() const {
+ // @@protoc_insertion_point(field_get:exec.user.ConvertSupport.from)
return static_cast< ::common::MinorType >(from_);
}
inline void ConvertSupport::set_from(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
set_has_from();
from_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ConvertSupport.from)
}
// required .common.MinorType to = 2;
@@ -9940,12 +11790,14 @@ inline void ConvertSupport::clear_to() {
clear_has_to();
}
inline ::common::MinorType ConvertSupport::to() const {
+ // @@protoc_insertion_point(field_get:exec.user.ConvertSupport.to)
return static_cast< ::common::MinorType >(to_);
}
inline void ConvertSupport::set_to(::common::MinorType value) {
assert(::common::MinorType_IsValid(value));
set_has_to();
to_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ConvertSupport.to)
}
// -------------------------------------------------------------------
@@ -9954,101 +11806,139 @@ inline void ConvertSupport::set_to(::common::MinorType value) {
// optional .exec.user.RequestStatus status = 1;
inline bool GetServerMetaResp::has_status() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void GetServerMetaResp::set_has_status() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void GetServerMetaResp::clear_has_status() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void GetServerMetaResp::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::exec::user::RequestStatus GetServerMetaResp::status() const {
+ // @@protoc_insertion_point(field_get:exec.user.GetServerMetaResp.status)
return static_cast< ::exec::user::RequestStatus >(status_);
}
inline void GetServerMetaResp::set_status(::exec::user::RequestStatus value) {
assert(::exec::user::RequestStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.GetServerMetaResp.status)
}
// optional .exec.user.ServerMeta server_meta = 2;
inline bool GetServerMetaResp::has_server_meta() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void GetServerMetaResp::set_has_server_meta() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void GetServerMetaResp::clear_has_server_meta() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void GetServerMetaResp::clear_server_meta() {
- if (server_meta_ != NULL) server_meta_->::exec::user::ServerMeta::Clear();
+ if (server_meta_ != NULL) server_meta_->Clear();
clear_has_server_meta();
}
-inline const ::exec::user::ServerMeta& GetServerMetaResp::server_meta() const {
- return server_meta_ != NULL ? *server_meta_ : *default_instance_->server_meta_;
+inline const ::exec::user::ServerMeta& GetServerMetaResp::_internal_server_meta() const {
+ return *server_meta_;
}
-inline ::exec::user::ServerMeta* GetServerMetaResp::mutable_server_meta() {
- set_has_server_meta();
- if (server_meta_ == NULL) server_meta_ = new ::exec::user::ServerMeta;
- return server_meta_;
+inline const ::exec::user::ServerMeta& GetServerMetaResp::server_meta() const {
+ const ::exec::user::ServerMeta* p = server_meta_;
+ // @@protoc_insertion_point(field_get:exec.user.GetServerMetaResp.server_meta)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::ServerMeta*>(
+ &::exec::user::_ServerMeta_default_instance_);
}
inline ::exec::user::ServerMeta* GetServerMetaResp::release_server_meta() {
+ // @@protoc_insertion_point(field_release:exec.user.GetServerMetaResp.server_meta)
clear_has_server_meta();
::exec::user::ServerMeta* temp = server_meta_;
server_meta_ = NULL;
return temp;
}
+inline ::exec::user::ServerMeta* GetServerMetaResp::mutable_server_meta() {
+ set_has_server_meta();
+ if (server_meta_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::ServerMeta>(GetArenaNoVirtual());
+ server_meta_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetServerMetaResp.server_meta)
+ return server_meta_;
+}
inline void GetServerMetaResp::set_allocated_server_meta(::exec::user::ServerMeta* server_meta) {
- delete server_meta_;
- server_meta_ = server_meta;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete server_meta_;
+ }
if (server_meta) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ server_meta = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, server_meta, submessage_arena);
+ }
set_has_server_meta();
} else {
clear_has_server_meta();
}
+ server_meta_ = server_meta;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetServerMetaResp.server_meta)
}
// optional .exec.shared.DrillPBError error = 3;
inline bool GetServerMetaResp::has_error() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void GetServerMetaResp::set_has_error() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void GetServerMetaResp::clear_has_error() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void GetServerMetaResp::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
- clear_has_error();
+inline const ::exec::shared::DrillPBError& GetServerMetaResp::_internal_error() const {
+ return *error_;
}
inline const ::exec::shared::DrillPBError& GetServerMetaResp::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
-}
-inline ::exec::shared::DrillPBError* GetServerMetaResp::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.user.GetServerMetaResp.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* GetServerMetaResp::release_error() {
+ // @@protoc_insertion_point(field_release:exec.user.GetServerMetaResp.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* GetServerMetaResp::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.GetServerMetaResp.error)
+ return error_;
+}
inline void GetServerMetaResp::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_);
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.GetServerMetaResp.error)
}
// -------------------------------------------------------------------
@@ -10057,208 +11947,206 @@ inline void GetServerMetaResp::set_allocated_error(::exec::shared::DrillPBError*
// optional bool all_tables_selectable = 1;
inline bool ServerMeta::has_all_tables_selectable() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void ServerMeta::set_has_all_tables_selectable() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void ServerMeta::clear_has_all_tables_selectable() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void ServerMeta::clear_all_tables_selectable() {
all_tables_selectable_ = false;
clear_has_all_tables_selectable();
}
inline bool ServerMeta::all_tables_selectable() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.all_tables_selectable)
return all_tables_selectable_;
}
inline void ServerMeta::set_all_tables_selectable(bool value) {
set_has_all_tables_selectable();
all_tables_selectable_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.all_tables_selectable)
}
// optional bool blob_included_in_max_row_size = 2;
inline bool ServerMeta::has_blob_included_in_max_row_size() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void ServerMeta::set_has_blob_included_in_max_row_size() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void ServerMeta::clear_has_blob_included_in_max_row_size() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void ServerMeta::clear_blob_included_in_max_row_size() {
blob_included_in_max_row_size_ = false;
clear_has_blob_included_in_max_row_size();
}
inline bool ServerMeta::blob_included_in_max_row_size() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.blob_included_in_max_row_size)
return blob_included_in_max_row_size_;
}
inline void ServerMeta::set_blob_included_in_max_row_size(bool value) {
set_has_blob_included_in_max_row_size();
blob_included_in_max_row_size_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.blob_included_in_max_row_size)
}
// optional bool catalog_at_start = 3;
inline bool ServerMeta::has_catalog_at_start() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void ServerMeta::set_has_catalog_at_start() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000400u;
}
inline void ServerMeta::clear_has_catalog_at_start() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000400u;
}
inline void ServerMeta::clear_catalog_at_start() {
catalog_at_start_ = false;
clear_has_catalog_at_start();
}
inline bool ServerMeta::catalog_at_start() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.catalog_at_start)
return catalog_at_start_;
}
inline void ServerMeta::set_catalog_at_start(bool value) {
set_has_catalog_at_start();
catalog_at_start_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.catalog_at_start)
}
// optional string catalog_separator = 4;
inline bool ServerMeta::has_catalog_separator() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ServerMeta::set_has_catalog_separator() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void ServerMeta::clear_has_catalog_separator() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void ServerMeta::clear_catalog_separator() {
- if (catalog_separator_ != &::google::protobuf::internal::kEmptyString) {
- catalog_separator_->clear();
- }
+ catalog_separator_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_separator();
}
inline const ::std::string& ServerMeta::catalog_separator() const {
- return *catalog_separator_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.catalog_separator)
+ return catalog_separator_.GetNoArena();
}
inline void ServerMeta::set_catalog_separator(const ::std::string& value) {
set_has_catalog_separator();
- if (catalog_separator_ == &::google::protobuf::internal::kEmptyString) {
- catalog_separator_ = new ::std::string;
- }
- catalog_separator_->assign(value);
+ catalog_separator_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.catalog_separator)
}
+#if LANG_CXX11
+inline void ServerMeta::set_catalog_separator(::std::string&& value) {
+ set_has_catalog_separator();
+ catalog_separator_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.catalog_separator)
+}
+#endif
inline void ServerMeta::set_catalog_separator(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_separator();
- if (catalog_separator_ == &::google::protobuf::internal::kEmptyString) {
- catalog_separator_ = new ::std::string;
- }
- catalog_separator_->assign(value);
+ catalog_separator_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.catalog_separator)
}
inline void ServerMeta::set_catalog_separator(const char* value, size_t size) {
set_has_catalog_separator();
- if (catalog_separator_ == &::google::protobuf::internal::kEmptyString) {
- catalog_separator_ = new ::std::string;
- }
- catalog_separator_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_separator_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.catalog_separator)
}
inline ::std::string* ServerMeta::mutable_catalog_separator() {
set_has_catalog_separator();
- if (catalog_separator_ == &::google::protobuf::internal::kEmptyString) {
- catalog_separator_ = new ::std::string;
- }
- return catalog_separator_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.catalog_separator)
+ return catalog_separator_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_catalog_separator() {
- clear_has_catalog_separator();
- if (catalog_separator_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.catalog_separator)
+ if (!has_catalog_separator()) {
return NULL;
- } else {
- ::std::string* temp = catalog_separator_;
- catalog_separator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_separator();
+ return catalog_separator_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_catalog_separator(::std::string* catalog_separator) {
- if (catalog_separator_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_separator_;
- }
- if (catalog_separator) {
+ if (catalog_separator != NULL) {
set_has_catalog_separator();
- catalog_separator_ = catalog_separator;
} else {
clear_has_catalog_separator();
- catalog_separator_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_separator_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_separator);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.catalog_separator)
}
// optional string catalog_term = 5;
inline bool ServerMeta::has_catalog_term() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ServerMeta::set_has_catalog_term() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void ServerMeta::clear_has_catalog_term() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void ServerMeta::clear_catalog_term() {
- if (catalog_term_ != &::google::protobuf::internal::kEmptyString) {
- catalog_term_->clear();
- }
+ catalog_term_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_catalog_term();
}
inline const ::std::string& ServerMeta::catalog_term() const {
- return *catalog_term_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.catalog_term)
+ return catalog_term_.GetNoArena();
}
inline void ServerMeta::set_catalog_term(const ::std::string& value) {
set_has_catalog_term();
- if (catalog_term_ == &::google::protobuf::internal::kEmptyString) {
- catalog_term_ = new ::std::string;
- }
- catalog_term_->assign(value);
+ catalog_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.catalog_term)
+}
+#if LANG_CXX11
+inline void ServerMeta::set_catalog_term(::std::string&& value) {
+ set_has_catalog_term();
+ catalog_term_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.catalog_term)
}
+#endif
inline void ServerMeta::set_catalog_term(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_catalog_term();
- if (catalog_term_ == &::google::protobuf::internal::kEmptyString) {
- catalog_term_ = new ::std::string;
- }
- catalog_term_->assign(value);
+ catalog_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.catalog_term)
}
inline void ServerMeta::set_catalog_term(const char* value, size_t size) {
set_has_catalog_term();
- if (catalog_term_ == &::google::protobuf::internal::kEmptyString) {
- catalog_term_ = new ::std::string;
- }
- catalog_term_->assign(reinterpret_cast<const char*>(value), size);
+ catalog_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.catalog_term)
}
inline ::std::string* ServerMeta::mutable_catalog_term() {
set_has_catalog_term();
- if (catalog_term_ == &::google::protobuf::internal::kEmptyString) {
- catalog_term_ = new ::std::string;
- }
- return catalog_term_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.catalog_term)
+ return catalog_term_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_catalog_term() {
- clear_has_catalog_term();
- if (catalog_term_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.catalog_term)
+ if (!has_catalog_term()) {
return NULL;
- } else {
- ::std::string* temp = catalog_term_;
- catalog_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_catalog_term();
+ return catalog_term_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_catalog_term(::std::string* catalog_term) {
- if (catalog_term_ != &::google::protobuf::internal::kEmptyString) {
- delete catalog_term_;
- }
- if (catalog_term) {
+ if (catalog_term != NULL) {
set_has_catalog_term();
- catalog_term_ = catalog_term;
} else {
clear_has_catalog_term();
- catalog_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ catalog_term_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog_term);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.catalog_term)
}
// repeated .exec.user.CollateSupport collate_support = 6;
@@ -10269,45 +12157,52 @@ inline void ServerMeta::clear_collate_support() {
collate_support_.Clear();
}
inline ::exec::user::CollateSupport ServerMeta::collate_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.collate_support)
return static_cast< ::exec::user::CollateSupport >(collate_support_.Get(index));
}
inline void ServerMeta::set_collate_support(int index, ::exec::user::CollateSupport value) {
assert(::exec::user::CollateSupport_IsValid(value));
collate_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.collate_support)
}
inline void ServerMeta::add_collate_support(::exec::user::CollateSupport value) {
assert(::exec::user::CollateSupport_IsValid(value));
collate_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.collate_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::collate_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.collate_support)
return collate_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_collate_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.collate_support)
return &collate_support_;
}
// optional bool column_aliasing_supported = 7;
inline bool ServerMeta::has_column_aliasing_supported() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void ServerMeta::set_has_column_aliasing_supported() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000800u;
}
inline void ServerMeta::clear_has_column_aliasing_supported() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000800u;
}
inline void ServerMeta::clear_column_aliasing_supported() {
column_aliasing_supported_ = false;
clear_has_column_aliasing_supported();
}
inline bool ServerMeta::column_aliasing_supported() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.column_aliasing_supported)
return column_aliasing_supported_;
}
inline void ServerMeta::set_column_aliasing_supported(bool value) {
set_has_column_aliasing_supported();
column_aliasing_supported_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.column_aliasing_supported)
}
// repeated .exec.user.ConvertSupport convert_support = 8;
@@ -10317,45 +12212,52 @@ inline int ServerMeta::convert_support_size() const {
inline void ServerMeta::clear_convert_support() {
convert_support_.Clear();
}
-inline const ::exec::user::ConvertSupport& ServerMeta::convert_support(int index) const {
- return convert_support_.Get(index);
-}
inline ::exec::user::ConvertSupport* ServerMeta::mutable_convert_support(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.convert_support)
return convert_support_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >*
+ServerMeta::mutable_convert_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.convert_support)
+ return &convert_support_;
+}
+inline const ::exec::user::ConvertSupport& ServerMeta::convert_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.convert_support)
+ return convert_support_.Get(index);
+}
inline ::exec::user::ConvertSupport* ServerMeta::add_convert_support() {
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.convert_support)
return convert_support_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >&
ServerMeta::convert_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.convert_support)
return convert_support_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::user::ConvertSupport >*
-ServerMeta::mutable_convert_support() {
- return &convert_support_;
-}
// optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
inline bool ServerMeta::has_correlation_names_support() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[1] & 0x00000010u) != 0;
}
inline void ServerMeta::set_has_correlation_names_support() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[1] |= 0x00000010u;
}
inline void ServerMeta::clear_has_correlation_names_support() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[1] &= ~0x00000010u;
}
inline void ServerMeta::clear_correlation_names_support() {
correlation_names_support_ = 1;
clear_has_correlation_names_support();
}
inline ::exec::user::CorrelationNamesSupport ServerMeta::correlation_names_support() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.correlation_names_support)
return static_cast< ::exec::user::CorrelationNamesSupport >(correlation_names_support_);
}
inline void ServerMeta::set_correlation_names_support(::exec::user::CorrelationNamesSupport value) {
assert(::exec::user::CorrelationNamesSupport_IsValid(value));
set_has_correlation_names_support();
correlation_names_support_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.correlation_names_support)
}
// repeated string date_time_functions = 10;
@@ -10366,39 +12268,64 @@ inline void ServerMeta::clear_date_time_functions() {
date_time_functions_.Clear();
}
inline const ::std::string& ServerMeta::date_time_functions(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.date_time_functions)
return date_time_functions_.Get(index);
}
inline ::std::string* ServerMeta::mutable_date_time_functions(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.date_time_functions)
return date_time_functions_.Mutable(index);
}
inline void ServerMeta::set_date_time_functions(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.date_time_functions)
date_time_functions_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void ServerMeta::set_date_time_functions(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.date_time_functions)
+ date_time_functions_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void ServerMeta::set_date_time_functions(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
date_time_functions_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.date_time_functions)
}
inline void ServerMeta::set_date_time_functions(int index, const char* value, size_t size) {
date_time_functions_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.date_time_functions)
}
inline ::std::string* ServerMeta::add_date_time_functions() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.ServerMeta.date_time_functions)
return date_time_functions_.Add();
}
inline void ServerMeta::add_date_time_functions(const ::std::string& value) {
date_time_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.date_time_functions)
+}
+#if LANG_CXX11
+inline void ServerMeta::add_date_time_functions(::std::string&& value) {
+ date_time_functions_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.date_time_functions)
}
+#endif
inline void ServerMeta::add_date_time_functions(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
date_time_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.ServerMeta.date_time_functions)
}
inline void ServerMeta::add_date_time_functions(const char* value, size_t size) {
date_time_functions_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.ServerMeta.date_time_functions)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ServerMeta::date_time_functions() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.date_time_functions)
return date_time_functions_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ServerMeta::mutable_date_time_functions() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.date_time_functions)
return &date_time_functions_;
}
@@ -10410,46 +12337,53 @@ inline void ServerMeta::clear_date_time_literals_support() {
date_time_literals_support_.Clear();
}
inline ::exec::user::DateTimeLiteralsSupport ServerMeta::date_time_literals_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.date_time_literals_support)
return static_cast< ::exec::user::DateTimeLiteralsSupport >(date_time_literals_support_.Get(index));
}
inline void ServerMeta::set_date_time_literals_support(int index, ::exec::user::DateTimeLiteralsSupport value) {
assert(::exec::user::DateTimeLiteralsSupport_IsValid(value));
date_time_literals_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.date_time_literals_support)
}
inline void ServerMeta::add_date_time_literals_support(::exec::user::DateTimeLiteralsSupport value) {
assert(::exec::user::DateTimeLiteralsSupport_IsValid(value));
date_time_literals_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.date_time_literals_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::date_time_literals_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.date_time_literals_support)
return date_time_literals_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_date_time_literals_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.date_time_literals_support)
return &date_time_literals_support_;
}
// optional .exec.user.GroupBySupport group_by_support = 12;
inline bool ServerMeta::has_group_by_support() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
+ return (_has_bits_[1] & 0x00000020u) != 0;
}
inline void ServerMeta::set_has_group_by_support() {
- _has_bits_[0] |= 0x00000800u;
+ _has_bits_[1] |= 0x00000020u;
}
inline void ServerMeta::clear_has_group_by_support() {
- _has_bits_[0] &= ~0x00000800u;
+ _has_bits_[1] &= ~0x00000020u;
}
inline void ServerMeta::clear_group_by_support() {
group_by_support_ = 1;
clear_has_group_by_support();
}
inline ::exec::user::GroupBySupport ServerMeta::group_by_support() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.group_by_support)
return static_cast< ::exec::user::GroupBySupport >(group_by_support_);
}
inline void ServerMeta::set_group_by_support(::exec::user::GroupBySupport value) {
assert(::exec::user::GroupBySupport_IsValid(value));
set_has_group_by_support();
group_by_support_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.group_by_support)
}
// optional .exec.user.IdentifierCasing identifier_casing = 13;
@@ -10467,501 +12401,537 @@ inline void ServerMeta::clear_identifier_casing() {
clear_has_identifier_casing();
}
inline ::exec::user::IdentifierCasing ServerMeta::identifier_casing() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.identifier_casing)
return static_cast< ::exec::user::IdentifierCasing >(identifier_casing_);
}
inline void ServerMeta::set_identifier_casing(::exec::user::IdentifierCasing value) {
assert(::exec::user::IdentifierCasing_IsValid(value));
set_has_identifier_casing();
identifier_casing_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.identifier_casing)
}
// optional string identifier_quote_string = 14;
inline bool ServerMeta::has_identifier_quote_string() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ServerMeta::set_has_identifier_quote_string() {
- _has_bits_[0] |= 0x00002000u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void ServerMeta::clear_has_identifier_quote_string() {
- _has_bits_[0] &= ~0x00002000u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void ServerMeta::clear_identifier_quote_string() {
- if (identifier_quote_string_ != &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_->clear();
- }
+ identifier_quote_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_identifier_quote_string();
}
inline const ::std::string& ServerMeta::identifier_quote_string() const {
- return *identifier_quote_string_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.identifier_quote_string)
+ return identifier_quote_string_.GetNoArena();
}
inline void ServerMeta::set_identifier_quote_string(const ::std::string& value) {
set_has_identifier_quote_string();
- if (identifier_quote_string_ == &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_ = new ::std::string;
- }
- identifier_quote_string_->assign(value);
+ identifier_quote_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.identifier_quote_string)
}
+#if LANG_CXX11
+inline void ServerMeta::set_identifier_quote_string(::std::string&& value) {
+ set_has_identifier_quote_string();
+ identifier_quote_string_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.identifier_quote_string)
+}
+#endif
inline void ServerMeta::set_identifier_quote_string(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_identifier_quote_string();
- if (identifier_quote_string_ == &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_ = new ::std::string;
- }
- identifier_quote_string_->assign(value);
+ identifier_quote_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.identifier_quote_string)
}
inline void ServerMeta::set_identifier_quote_string(const char* value, size_t size) {
set_has_identifier_quote_string();
- if (identifier_quote_string_ == &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_ = new ::std::string;
- }
- identifier_quote_string_->assign(reinterpret_cast<const char*>(value), size);
+ identifier_quote_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.identifier_quote_string)
}
inline ::std::string* ServerMeta::mutable_identifier_quote_string() {
set_has_identifier_quote_string();
- if (identifier_quote_string_ == &::google::protobuf::internal::kEmptyString) {
- identifier_quote_string_ = new ::std::string;
- }
- return identifier_quote_string_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.identifier_quote_string)
+ return identifier_quote_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_identifier_quote_string() {
- clear_has_identifier_quote_string();
- if (identifier_quote_string_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.identifier_quote_string)
+ if (!has_identifier_quote_string()) {
return NULL;
- } else {
- ::std::string* temp = identifier_quote_string_;
- identifier_quote_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_identifier_quote_string();
+ return identifier_quote_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_identifier_quote_string(::std::string* identifier_quote_string) {
- if (identifier_quote_string_ != &::google::protobuf::internal::kEmptyString) {
- delete identifier_quote_string_;
- }
- if (identifier_quote_string) {
+ if (identifier_quote_string != NULL) {
set_has_identifier_quote_string();
- identifier_quote_string_ = identifier_quote_string;
} else {
clear_has_identifier_quote_string();
- identifier_quote_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ identifier_quote_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_quote_string);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.identifier_quote_string)
}
// optional bool like_escape_clause_supported = 15;
inline bool ServerMeta::has_like_escape_clause_supported() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
+ return (_has_bits_[0] & 0x20000000u) != 0;
}
inline void ServerMeta::set_has_like_escape_clause_supported() {
- _has_bits_[0] |= 0x00004000u;
+ _has_bits_[0] |= 0x20000000u;
}
inline void ServerMeta::clear_has_like_escape_clause_supported() {
- _has_bits_[0] &= ~0x00004000u;
+ _has_bits_[0] &= ~0x20000000u;
}
inline void ServerMeta::clear_like_escape_clause_supported() {
like_escape_clause_supported_ = false;
clear_has_like_escape_clause_supported();
}
inline bool ServerMeta::like_escape_clause_supported() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.like_escape_clause_supported)
return like_escape_clause_supported_;
}
inline void ServerMeta::set_like_escape_clause_supported(bool value) {
set_has_like_escape_clause_supported();
like_escape_clause_supported_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.like_escape_clause_supported)
}
// optional uint32 max_binary_literal_length = 16;
inline bool ServerMeta::has_max_binary_literal_length() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
+ return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void ServerMeta::set_has_max_binary_literal_length() {
- _has_bits_[0] |= 0x00008000u;
+ _has_bits_[0] |= 0x00002000u;
}
inline void ServerMeta::clear_has_max_binary_literal_length() {
- _has_bits_[0] &= ~0x00008000u;
+ _has_bits_[0] &= ~0x00002000u;
}
inline void ServerMeta::clear_max_binary_literal_length() {
max_binary_literal_length_ = 0u;
clear_has_max_binary_literal_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_binary_literal_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_binary_literal_length)
return max_binary_literal_length_;
}
inline void ServerMeta::set_max_binary_literal_length(::google::protobuf::uint32 value) {
set_has_max_binary_literal_length();
max_binary_literal_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_binary_literal_length)
}
// optional uint32 max_catalog_name_length = 17;
inline bool ServerMeta::has_max_catalog_name_length() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
+ return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void ServerMeta::set_has_max_catalog_name_length() {
- _has_bits_[0] |= 0x00010000u;
+ _has_bits_[0] |= 0x00004000u;
}
inline void ServerMeta::clear_has_max_catalog_name_length() {
- _has_bits_[0] &= ~0x00010000u;
+ _has_bits_[0] &= ~0x00004000u;
}
inline void ServerMeta::clear_max_catalog_name_length() {
max_catalog_name_length_ = 0u;
clear_has_max_catalog_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_catalog_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_catalog_name_length)
return max_catalog_name_length_;
}
inline void ServerMeta::set_max_catalog_name_length(::google::protobuf::uint32 value) {
set_has_max_catalog_name_length();
max_catalog_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_catalog_name_length)
}
// optional uint32 max_char_literal_length = 18;
inline bool ServerMeta::has_max_char_literal_length() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
+ return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void ServerMeta::set_has_max_char_literal_length() {
- _has_bits_[0] |= 0x00020000u;
+ _has_bits_[0] |= 0x00008000u;
}
inline void ServerMeta::clear_has_max_char_literal_length() {
- _has_bits_[0] &= ~0x00020000u;
+ _has_bits_[0] &= ~0x00008000u;
}
inline void ServerMeta::clear_max_char_literal_length() {
max_char_literal_length_ = 0u;
clear_has_max_char_literal_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_char_literal_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_char_literal_length)
return max_char_literal_length_;
}
inline void ServerMeta::set_max_char_literal_length(::google::protobuf::uint32 value) {
set_has_max_char_literal_length();
max_char_literal_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_char_literal_length)
}
// optional uint32 max_column_name_length = 19;
inline bool ServerMeta::has_max_column_name_length() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
+ return (_has_bits_[0] & 0x00010000u) != 0;
}
inline void ServerMeta::set_has_max_column_name_length() {
- _has_bits_[0] |= 0x00040000u;
+ _has_bits_[0] |= 0x00010000u;
}
inline void ServerMeta::clear_has_max_column_name_length() {
- _has_bits_[0] &= ~0x00040000u;
+ _has_bits_[0] &= ~0x00010000u;
}
inline void ServerMeta::clear_max_column_name_length() {
max_column_name_length_ = 0u;
clear_has_max_column_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_column_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_column_name_length)
return max_column_name_length_;
}
inline void ServerMeta::set_max_column_name_length(::google::protobuf::uint32 value) {
set_has_max_column_name_length();
max_column_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_column_name_length)
}
// optional uint32 max_columns_in_group_by = 20;
inline bool ServerMeta::has_max_columns_in_group_by() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
+ return (_has_bits_[0] & 0x00020000u) != 0;
}
inline void ServerMeta::set_has_max_columns_in_group_by() {
- _has_bits_[0] |= 0x00080000u;
+ _has_bits_[0] |= 0x00020000u;
}
inline void ServerMeta::clear_has_max_columns_in_group_by() {
- _has_bits_[0] &= ~0x00080000u;
+ _has_bits_[0] &= ~0x00020000u;
}
inline void ServerMeta::clear_max_columns_in_group_by() {
max_columns_in_group_by_ = 0u;
clear_has_max_columns_in_group_by();
}
inline ::google::protobuf::uint32 ServerMeta::max_columns_in_group_by() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_columns_in_group_by)
return max_columns_in_group_by_;
}
inline void ServerMeta::set_max_columns_in_group_by(::google::protobuf::uint32 value) {
set_has_max_columns_in_group_by();
max_columns_in_group_by_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_columns_in_group_by)
}
// optional uint32 max_columns_in_order_by = 21;
inline bool ServerMeta::has_max_columns_in_order_by() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
+ return (_has_bits_[0] & 0x00040000u) != 0;
}
inline void ServerMeta::set_has_max_columns_in_order_by() {
- _has_bits_[0] |= 0x00100000u;
+ _has_bits_[0] |= 0x00040000u;
}
inline void ServerMeta::clear_has_max_columns_in_order_by() {
- _has_bits_[0] &= ~0x00100000u;
+ _has_bits_[0] &= ~0x00040000u;
}
inline void ServerMeta::clear_max_columns_in_order_by() {
max_columns_in_order_by_ = 0u;
clear_has_max_columns_in_order_by();
}
inline ::google::protobuf::uint32 ServerMeta::max_columns_in_order_by() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_columns_in_order_by)
return max_columns_in_order_by_;
}
inline void ServerMeta::set_max_columns_in_order_by(::google::protobuf::uint32 value) {
set_has_max_columns_in_order_by();
max_columns_in_order_by_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_columns_in_order_by)
}
// optional uint32 max_columns_in_select = 22;
inline bool ServerMeta::has_max_columns_in_select() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
+ return (_has_bits_[0] & 0x00080000u) != 0;
}
inline void ServerMeta::set_has_max_columns_in_select() {
- _has_bits_[0] |= 0x00200000u;
+ _has_bits_[0] |= 0x00080000u;
}
inline void ServerMeta::clear_has_max_columns_in_select() {
- _has_bits_[0] &= ~0x00200000u;
+ _has_bits_[0] &= ~0x00080000u;
}
inline void ServerMeta::clear_max_columns_in_select() {
max_columns_in_select_ = 0u;
clear_has_max_columns_in_select();
}
inline ::google::protobuf::uint32 ServerMeta::max_columns_in_select() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_columns_in_select)
return max_columns_in_select_;
}
inline void ServerMeta::set_max_columns_in_select(::google::protobuf::uint32 value) {
set_has_max_columns_in_select();
max_columns_in_select_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_columns_in_select)
}
// optional uint32 max_cursor_name_length = 23;
inline bool ServerMeta::has_max_cursor_name_length() const {
- return (_has_bits_[0] & 0x00400000u) != 0;
+ return (_has_bits_[0] & 0x00100000u) != 0;
}
inline void ServerMeta::set_has_max_cursor_name_length() {
- _has_bits_[0] |= 0x00400000u;
+ _has_bits_[0] |= 0x00100000u;
}
inline void ServerMeta::clear_has_max_cursor_name_length() {
- _has_bits_[0] &= ~0x00400000u;
+ _has_bits_[0] &= ~0x00100000u;
}
inline void ServerMeta::clear_max_cursor_name_length() {
max_cursor_name_length_ = 0u;
clear_has_max_cursor_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_cursor_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_cursor_name_length)
return max_cursor_name_length_;
}
inline void ServerMeta::set_max_cursor_name_length(::google::protobuf::uint32 value) {
set_has_max_cursor_name_length();
max_cursor_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_cursor_name_length)
}
// optional uint32 max_logical_lob_size = 24;
inline bool ServerMeta::has_max_logical_lob_size() const {
- return (_has_bits_[0] & 0x00800000u) != 0;
+ return (_has_bits_[0] & 0x00200000u) != 0;
}
inline void ServerMeta::set_has_max_logical_lob_size() {
- _has_bits_[0] |= 0x00800000u;
+ _has_bits_[0] |= 0x00200000u;
}
inline void ServerMeta::clear_has_max_logical_lob_size() {
- _has_bits_[0] &= ~0x00800000u;
+ _has_bits_[0] &= ~0x00200000u;
}
inline void ServerMeta::clear_max_logical_lob_size() {
max_logical_lob_size_ = 0u;
clear_has_max_logical_lob_size();
}
inline ::google::protobuf::uint32 ServerMeta::max_logical_lob_size() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_logical_lob_size)
return max_logical_lob_size_;
}
inline void ServerMeta::set_max_logical_lob_size(::google::protobuf::uint32 value) {
set_has_max_logical_lob_size();
max_logical_lob_size_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_logical_lob_size)
}
// optional uint32 max_row_size = 25;
inline bool ServerMeta::has_max_row_size() const {
- return (_has_bits_[0] & 0x01000000u) != 0;
+ return (_has_bits_[0] & 0x00400000u) != 0;
}
inline void ServerMeta::set_has_max_row_size() {
- _has_bits_[0] |= 0x01000000u;
+ _has_bits_[0] |= 0x00400000u;
}
inline void ServerMeta::clear_has_max_row_size() {
- _has_bits_[0] &= ~0x01000000u;
+ _has_bits_[0] &= ~0x00400000u;
}
inline void ServerMeta::clear_max_row_size() {
max_row_size_ = 0u;
clear_has_max_row_size();
}
inline ::google::protobuf::uint32 ServerMeta::max_row_size() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_row_size)
return max_row_size_;
}
inline void ServerMeta::set_max_row_size(::google::protobuf::uint32 value) {
set_has_max_row_size();
max_row_size_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_row_size)
}
// optional uint32 max_schema_name_length = 26;
inline bool ServerMeta::has_max_schema_name_length() const {
- return (_has_bits_[0] & 0x02000000u) != 0;
+ return (_has_bits_[0] & 0x00800000u) != 0;
}
inline void ServerMeta::set_has_max_schema_name_length() {
- _has_bits_[0] |= 0x02000000u;
+ _has_bits_[0] |= 0x00800000u;
}
inline void ServerMeta::clear_has_max_schema_name_length() {
- _has_bits_[0] &= ~0x02000000u;
+ _has_bits_[0] &= ~0x00800000u;
}
inline void ServerMeta::clear_max_schema_name_length() {
max_schema_name_length_ = 0u;
clear_has_max_schema_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_schema_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_schema_name_length)
return max_schema_name_length_;
}
inline void ServerMeta::set_max_schema_name_length(::google::protobuf::uint32 value) {
set_has_max_schema_name_length();
max_schema_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_schema_name_length)
}
// optional uint32 max_statement_length = 27;
inline bool ServerMeta::has_max_statement_length() const {
- return (_has_bits_[0] & 0x04000000u) != 0;
+ return (_has_bits_[0] & 0x01000000u) != 0;
}
inline void ServerMeta::set_has_max_statement_length() {
- _has_bits_[0] |= 0x04000000u;
+ _has_bits_[0] |= 0x01000000u;
}
inline void ServerMeta::clear_has_max_statement_length() {
- _has_bits_[0] &= ~0x04000000u;
+ _has_bits_[0] &= ~0x01000000u;
}
inline void ServerMeta::clear_max_statement_length() {
max_statement_length_ = 0u;
clear_has_max_statement_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_statement_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_statement_length)
return max_statement_length_;
}
inline void ServerMeta::set_max_statement_length(::google::protobuf::uint32 value) {
set_has_max_statement_length();
max_statement_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_statement_length)
}
// optional uint32 max_statements = 28;
inline bool ServerMeta::has_max_statements() const {
- return (_has_bits_[0] & 0x08000000u) != 0;
+ return (_has_bits_[0] & 0x02000000u) != 0;
}
inline void ServerMeta::set_has_max_statements() {
- _has_bits_[0] |= 0x08000000u;
+ _has_bits_[0] |= 0x02000000u;
}
inline void ServerMeta::clear_has_max_statements() {
- _has_bits_[0] &= ~0x08000000u;
+ _has_bits_[0] &= ~0x02000000u;
}
inline void ServerMeta::clear_max_statements() {
max_statements_ = 0u;
clear_has_max_statements();
}
inline ::google::protobuf::uint32 ServerMeta::max_statements() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_statements)
return max_statements_;
}
inline void ServerMeta::set_max_statements(::google::protobuf::uint32 value) {
set_has_max_statements();
max_statements_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_statements)
}
// optional uint32 max_table_name_length = 29;
inline bool ServerMeta::has_max_table_name_length() const {
- return (_has_bits_[0] & 0x10000000u) != 0;
+ return (_has_bits_[0] & 0x04000000u) != 0;
}
inline void ServerMeta::set_has_max_table_name_length() {
- _has_bits_[0] |= 0x10000000u;
+ _has_bits_[0] |= 0x04000000u;
}
inline void ServerMeta::clear_has_max_table_name_length() {
- _has_bits_[0] &= ~0x10000000u;
+ _has_bits_[0] &= ~0x04000000u;
}
inline void ServerMeta::clear_max_table_name_length() {
max_table_name_length_ = 0u;
clear_has_max_table_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_table_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_table_name_length)
return max_table_name_length_;
}
inline void ServerMeta::set_max_table_name_length(::google::protobuf::uint32 value) {
set_has_max_table_name_length();
max_table_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_table_name_length)
}
// optional uint32 max_tables_in_select = 30;
inline bool ServerMeta::has_max_tables_in_select() const {
- return (_has_bits_[0] & 0x20000000u) != 0;
+ return (_has_bits_[0] & 0x08000000u) != 0;
}
inline void ServerMeta::set_has_max_tables_in_select() {
- _has_bits_[0] |= 0x20000000u;
+ _has_bits_[0] |= 0x08000000u;
}
inline void ServerMeta::clear_has_max_tables_in_select() {
- _has_bits_[0] &= ~0x20000000u;
+ _has_bits_[0] &= ~0x08000000u;
}
inline void ServerMeta::clear_max_tables_in_select() {
max_tables_in_select_ = 0u;
clear_has_max_tables_in_select();
}
inline ::google::protobuf::uint32 ServerMeta::max_tables_in_select() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_tables_in_select)
return max_tables_in_select_;
}
inline void ServerMeta::set_max_tables_in_select(::google::protobuf::uint32 value) {
set_has_max_tables_in_select();
max_tables_in_select_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_tables_in_select)
}
// optional uint32 max_user_name_length = 31;
inline bool ServerMeta::has_max_user_name_length() const {
- return (_has_bits_[0] & 0x40000000u) != 0;
+ return (_has_bits_[0] & 0x10000000u) != 0;
}
inline void ServerMeta::set_has_max_user_name_length() {
- _has_bits_[0] |= 0x40000000u;
+ _has_bits_[0] |= 0x10000000u;
}
inline void ServerMeta::clear_has_max_user_name_length() {
- _has_bits_[0] &= ~0x40000000u;
+ _has_bits_[0] &= ~0x10000000u;
}
inline void ServerMeta::clear_max_user_name_length() {
max_user_name_length_ = 0u;
clear_has_max_user_name_length();
}
inline ::google::protobuf::uint32 ServerMeta::max_user_name_length() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.max_user_name_length)
return max_user_name_length_;
}
inline void ServerMeta::set_max_user_name_length(::google::protobuf::uint32 value) {
set_has_max_user_name_length();
max_user_name_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.max_user_name_length)
}
// optional .exec.user.NullCollation null_collation = 32;
inline bool ServerMeta::has_null_collation() const {
- return (_has_bits_[0] & 0x80000000u) != 0;
+ return (_has_bits_[1] & 0x00000002u) != 0;
}
inline void ServerMeta::set_has_null_collation() {
- _has_bits_[0] |= 0x80000000u;
+ _has_bits_[1] |= 0x00000002u;
}
inline void ServerMeta::clear_has_null_collation() {
- _has_bits_[0] &= ~0x80000000u;
+ _has_bits_[1] &= ~0x00000002u;
}
inline void ServerMeta::clear_null_collation() {
null_collation_ = 0;
clear_has_null_collation();
}
inline ::exec::user::NullCollation ServerMeta::null_collation() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.null_collation)
return static_cast< ::exec::user::NullCollation >(null_collation_);
}
inline void ServerMeta::set_null_collation(::exec::user::NullCollation value) {
assert(::exec::user::NullCollation_IsValid(value));
set_has_null_collation();
null_collation_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.null_collation)
}
// optional bool null_plus_non_null_equals_null = 33;
inline bool ServerMeta::has_null_plus_non_null_equals_null() const {
- return (_has_bits_[1] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x40000000u) != 0;
}
inline void ServerMeta::set_has_null_plus_non_null_equals_null() {
- _has_bits_[1] |= 0x00000001u;
+ _has_bits_[0] |= 0x40000000u;
}
inline void ServerMeta::clear_has_null_plus_non_null_equals_null() {
- _has_bits_[1] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x40000000u;
}
inline void ServerMeta::clear_null_plus_non_null_equals_null() {
null_plus_non_null_equals_null_ = false;
clear_has_null_plus_non_null_equals_null();
}
inline bool ServerMeta::null_plus_non_null_equals_null() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.null_plus_non_null_equals_null)
return null_plus_non_null_equals_null_;
}
inline void ServerMeta::set_null_plus_non_null_equals_null(bool value) {
set_has_null_plus_non_null_equals_null();
null_plus_non_null_equals_null_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.null_plus_non_null_equals_null)
}
// repeated string numeric_functions = 34;
@@ -10972,39 +12942,64 @@ inline void ServerMeta::clear_numeric_functions() {
numeric_functions_.Clear();
}
inline const ::std::string& ServerMeta::numeric_functions(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.numeric_functions)
return numeric_functions_.Get(index);
}
inline ::std::string* ServerMeta::mutable_numeric_functions(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.numeric_functions)
return numeric_functions_.Mutable(index);
}
inline void ServerMeta::set_numeric_functions(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.numeric_functions)
numeric_functions_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void ServerMeta::set_numeric_functions(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.numeric_functions)
+ numeric_functions_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void ServerMeta::set_numeric_functions(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
numeric_functions_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.numeric_functions)
}
inline void ServerMeta::set_numeric_functions(int index, const char* value, size_t size) {
numeric_functions_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.numeric_functions)
}
inline ::std::string* ServerMeta::add_numeric_functions() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.ServerMeta.numeric_functions)
return numeric_functions_.Add();
}
inline void ServerMeta::add_numeric_functions(const ::std::string& value) {
numeric_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.numeric_functions)
+}
+#if LANG_CXX11
+inline void ServerMeta::add_numeric_functions(::std::string&& value) {
+ numeric_functions_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.numeric_functions)
}
+#endif
inline void ServerMeta::add_numeric_functions(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
numeric_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.ServerMeta.numeric_functions)
}
inline void ServerMeta::add_numeric_functions(const char* value, size_t size) {
numeric_functions_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.ServerMeta.numeric_functions)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ServerMeta::numeric_functions() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.numeric_functions)
return numeric_functions_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ServerMeta::mutable_numeric_functions() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.numeric_functions)
return &numeric_functions_;
}
@@ -11016,22 +13011,27 @@ inline void ServerMeta::clear_order_by_support() {
order_by_support_.Clear();
}
inline ::exec::user::OrderBySupport ServerMeta::order_by_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.order_by_support)
return static_cast< ::exec::user::OrderBySupport >(order_by_support_.Get(index));
}
inline void ServerMeta::set_order_by_support(int index, ::exec::user::OrderBySupport value) {
assert(::exec::user::OrderBySupport_IsValid(value));
order_by_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.order_by_support)
}
inline void ServerMeta::add_order_by_support(::exec::user::OrderBySupport value) {
assert(::exec::user::OrderBySupport_IsValid(value));
order_by_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.order_by_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::order_by_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.order_by_support)
return order_by_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_order_by_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.order_by_support)
return &order_by_support_;
}
@@ -11043,300 +13043,299 @@ inline void ServerMeta::clear_outer_join_support() {
outer_join_support_.Clear();
}
inline ::exec::user::OuterJoinSupport ServerMeta::outer_join_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.outer_join_support)
return static_cast< ::exec::user::OuterJoinSupport >(outer_join_support_.Get(index));
}
inline void ServerMeta::set_outer_join_support(int index, ::exec::user::OuterJoinSupport value) {
assert(::exec::user::OuterJoinSupport_IsValid(value));
outer_join_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.outer_join_support)
}
inline void ServerMeta::add_outer_join_support(::exec::user::OuterJoinSupport value) {
assert(::exec::user::OuterJoinSupport_IsValid(value));
outer_join_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.outer_join_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::outer_join_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.outer_join_support)
return outer_join_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_outer_join_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.outer_join_support)
return &outer_join_support_;
}
// optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
inline bool ServerMeta::has_quoted_identifier_casing() const {
- return (_has_bits_[1] & 0x00000010u) != 0;
+ return (_has_bits_[1] & 0x00000004u) != 0;
}
inline void ServerMeta::set_has_quoted_identifier_casing() {
- _has_bits_[1] |= 0x00000010u;
+ _has_bits_[1] |= 0x00000004u;
}
inline void ServerMeta::clear_has_quoted_identifier_casing() {
- _has_bits_[1] &= ~0x00000010u;
+ _has_bits_[1] &= ~0x00000004u;
}
inline void ServerMeta::clear_quoted_identifier_casing() {
quoted_identifier_casing_ = 0;
clear_has_quoted_identifier_casing();
}
inline ::exec::user::IdentifierCasing ServerMeta::quoted_identifier_casing() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.quoted_identifier_casing)
return static_cast< ::exec::user::IdentifierCasing >(quoted_identifier_casing_);
}
inline void ServerMeta::set_quoted_identifier_casing(::exec::user::IdentifierCasing value) {
assert(::exec::user::IdentifierCasing_IsValid(value));
set_has_quoted_identifier_casing();
quoted_identifier_casing_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.quoted_identifier_casing)
}
// optional bool read_only = 38;
inline bool ServerMeta::has_read_only() const {
- return (_has_bits_[1] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x80000000u) != 0;
}
inline void ServerMeta::set_has_read_only() {
- _has_bits_[1] |= 0x00000020u;
+ _has_bits_[0] |= 0x80000000u;
}
inline void ServerMeta::clear_has_read_only() {
- _has_bits_[1] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x80000000u;
}
inline void ServerMeta::clear_read_only() {
read_only_ = false;
clear_has_read_only();
}
inline bool ServerMeta::read_only() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.read_only)
return read_only_;
}
inline void ServerMeta::set_read_only(bool value) {
set_has_read_only();
read_only_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.read_only)
}
// optional string schema_term = 39;
inline bool ServerMeta::has_schema_term() const {
- return (_has_bits_[1] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ServerMeta::set_has_schema_term() {
- _has_bits_[1] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void ServerMeta::clear_has_schema_term() {
- _has_bits_[1] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void ServerMeta::clear_schema_term() {
- if (schema_term_ != &::google::protobuf::internal::kEmptyString) {
- schema_term_->clear();
- }
+ schema_term_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_schema_term();
}
inline const ::std::string& ServerMeta::schema_term() const {
- return *schema_term_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.schema_term)
+ return schema_term_.GetNoArena();
}
inline void ServerMeta::set_schema_term(const ::std::string& value) {
set_has_schema_term();
- if (schema_term_ == &::google::protobuf::internal::kEmptyString) {
- schema_term_ = new ::std::string;
- }
- schema_term_->assign(value);
+ schema_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.schema_term)
+}
+#if LANG_CXX11
+inline void ServerMeta::set_schema_term(::std::string&& value) {
+ set_has_schema_term();
+ schema_term_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.schema_term)
}
+#endif
inline void ServerMeta::set_schema_term(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_schema_term();
- if (schema_term_ == &::google::protobuf::internal::kEmptyString) {
- schema_term_ = new ::std::string;
- }
- schema_term_->assign(value);
+ schema_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.schema_term)
}
inline void ServerMeta::set_schema_term(const char* value, size_t size) {
set_has_schema_term();
- if (schema_term_ == &::google::protobuf::internal::kEmptyString) {
- schema_term_ = new ::std::string;
- }
- schema_term_->assign(reinterpret_cast<const char*>(value), size);
+ schema_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.schema_term)
}
inline ::std::string* ServerMeta::mutable_schema_term() {
set_has_schema_term();
- if (schema_term_ == &::google::protobuf::internal::kEmptyString) {
- schema_term_ = new ::std::string;
- }
- return schema_term_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.schema_term)
+ return schema_term_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_schema_term() {
- clear_has_schema_term();
- if (schema_term_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.schema_term)
+ if (!has_schema_term()) {
return NULL;
- } else {
- ::std::string* temp = schema_term_;
- schema_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_schema_term();
+ return schema_term_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_schema_term(::std::string* schema_term) {
- if (schema_term_ != &::google::protobuf::internal::kEmptyString) {
- delete schema_term_;
- }
- if (schema_term) {
+ if (schema_term != NULL) {
set_has_schema_term();
- schema_term_ = schema_term;
} else {
clear_has_schema_term();
- schema_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ schema_term_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema_term);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.schema_term)
}
// optional string search_escape_string = 40;
inline bool ServerMeta::has_search_escape_string() const {
- return (_has_bits_[1] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void ServerMeta::set_has_search_escape_string() {
- _has_bits_[1] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void ServerMeta::clear_has_search_escape_string() {
- _has_bits_[1] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void ServerMeta::clear_search_escape_string() {
- if (search_escape_string_ != &::google::protobuf::internal::kEmptyString) {
- search_escape_string_->clear();
- }
+ search_escape_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_search_escape_string();
}
inline const ::std::string& ServerMeta::search_escape_string() const {
- return *search_escape_string_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.search_escape_string)
+ return search_escape_string_.GetNoArena();
}
inline void ServerMeta::set_search_escape_string(const ::std::string& value) {
set_has_search_escape_string();
- if (search_escape_string_ == &::google::protobuf::internal::kEmptyString) {
- search_escape_string_ = new ::std::string;
- }
- search_escape_string_->assign(value);
+ search_escape_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.search_escape_string)
}
+#if LANG_CXX11
+inline void ServerMeta::set_search_escape_string(::std::string&& value) {
+ set_has_search_escape_string();
+ search_escape_string_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.search_escape_string)
+}
+#endif
inline void ServerMeta::set_search_escape_string(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_search_escape_string();
- if (search_escape_string_ == &::google::protobuf::internal::kEmptyString) {
- search_escape_string_ = new ::std::string;
- }
- search_escape_string_->assign(value);
+ search_escape_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.search_escape_string)
}
inline void ServerMeta::set_search_escape_string(const char* value, size_t size) {
set_has_search_escape_string();
- if (search_escape_string_ == &::google::protobuf::internal::kEmptyString) {
- search_escape_string_ = new ::std::string;
- }
- search_escape_string_->assign(reinterpret_cast<const char*>(value), size);
+ search_escape_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.search_escape_string)
}
inline ::std::string* ServerMeta::mutable_search_escape_string() {
set_has_search_escape_string();
- if (search_escape_string_ == &::google::protobuf::internal::kEmptyString) {
- search_escape_string_ = new ::std::string;
- }
- return search_escape_string_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.search_escape_string)
+ return search_escape_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_search_escape_string() {
- clear_has_search_escape_string();
- if (search_escape_string_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.search_escape_string)
+ if (!has_search_escape_string()) {
return NULL;
- } else {
- ::std::string* temp = search_escape_string_;
- search_escape_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_search_escape_string();
+ return search_escape_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_search_escape_string(::std::string* search_escape_string) {
- if (search_escape_string_ != &::google::protobuf::internal::kEmptyString) {
- delete search_escape_string_;
- }
- if (search_escape_string) {
+ if (search_escape_string != NULL) {
set_has_search_escape_string();
- search_escape_string_ = search_escape_string;
} else {
clear_has_search_escape_string();
- search_escape_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ search_escape_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), search_escape_string);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.search_escape_string)
}
// optional bool select_for_update_supported = 41;
inline bool ServerMeta::has_select_for_update_supported() const {
- return (_has_bits_[1] & 0x00000100u) != 0;
+ return (_has_bits_[1] & 0x00000001u) != 0;
}
inline void ServerMeta::set_has_select_for_update_supported() {
- _has_bits_[1] |= 0x00000100u;
+ _has_bits_[1] |= 0x00000001u;
}
inline void ServerMeta::clear_has_select_for_update_supported() {
- _has_bits_[1] &= ~0x00000100u;
+ _has_bits_[1] &= ~0x00000001u;
}
inline void ServerMeta::clear_select_for_update_supported() {
select_for_update_supported_ = false;
clear_has_select_for_update_supported();
}
inline bool ServerMeta::select_for_update_supported() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.select_for_update_supported)
return select_for_update_supported_;
}
inline void ServerMeta::set_select_for_update_supported(bool value) {
set_has_select_for_update_supported();
select_for_update_supported_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.select_for_update_supported)
}
// optional string special_characters = 42;
inline bool ServerMeta::has_special_characters() const {
- return (_has_bits_[1] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void ServerMeta::set_has_special_characters() {
- _has_bits_[1] |= 0x00000200u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void ServerMeta::clear_has_special_characters() {
- _has_bits_[1] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void ServerMeta::clear_special_characters() {
- if (special_characters_ != &::google::protobuf::internal::kEmptyString) {
- special_characters_->clear();
- }
+ special_characters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_special_characters();
}
inline const ::std::string& ServerMeta::special_characters() const {
- return *special_characters_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.special_characters)
+ return special_characters_.GetNoArena();
}
inline void ServerMeta::set_special_characters(const ::std::string& value) {
set_has_special_characters();
- if (special_characters_ == &::google::protobuf::internal::kEmptyString) {
- special_characters_ = new ::std::string;
- }
- special_characters_->assign(value);
+ special_characters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.special_characters)
+}
+#if LANG_CXX11
+inline void ServerMeta::set_special_characters(::std::string&& value) {
+ set_has_special_characters();
+ special_characters_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.special_characters)
}
+#endif
inline void ServerMeta::set_special_characters(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_special_characters();
- if (special_characters_ == &::google::protobuf::internal::kEmptyString) {
- special_characters_ = new ::std::string;
- }
- special_characters_->assign(value);
+ special_characters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.special_characters)
}
inline void ServerMeta::set_special_characters(const char* value, size_t size) {
set_has_special_characters();
- if (special_characters_ == &::google::protobuf::internal::kEmptyString) {
- special_characters_ = new ::std::string;
- }
- special_characters_->assign(reinterpret_cast<const char*>(value), size);
+ special_characters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.special_characters)
}
inline ::std::string* ServerMeta::mutable_special_characters() {
set_has_special_characters();
- if (special_characters_ == &::google::protobuf::internal::kEmptyString) {
- special_characters_ = new ::std::string;
- }
- return special_characters_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.special_characters)
+ return special_characters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_special_characters() {
- clear_has_special_characters();
- if (special_characters_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.special_characters)
+ if (!has_special_characters()) {
return NULL;
- } else {
- ::std::string* temp = special_characters_;
- special_characters_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_special_characters();
+ return special_characters_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_special_characters(::std::string* special_characters) {
- if (special_characters_ != &::google::protobuf::internal::kEmptyString) {
- delete special_characters_;
- }
- if (special_characters) {
+ if (special_characters != NULL) {
set_has_special_characters();
- special_characters_ = special_characters;
} else {
clear_has_special_characters();
- special_characters_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ special_characters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), special_characters);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.special_characters)
}
// repeated string sql_keywords = 43;
@@ -11347,39 +13346,64 @@ inline void ServerMeta::clear_sql_keywords() {
sql_keywords_.Clear();
}
inline const ::std::string& ServerMeta::sql_keywords(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.sql_keywords)
return sql_keywords_.Get(index);
}
inline ::std::string* ServerMeta::mutable_sql_keywords(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.sql_keywords)
return sql_keywords_.Mutable(index);
}
inline void ServerMeta::set_sql_keywords(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.sql_keywords)
sql_keywords_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void ServerMeta::set_sql_keywords(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.sql_keywords)
+ sql_keywords_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void ServerMeta::set_sql_keywords(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
sql_keywords_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.sql_keywords)
}
inline void ServerMeta::set_sql_keywords(int index, const char* value, size_t size) {
sql_keywords_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.sql_keywords)
}
inline ::std::string* ServerMeta::add_sql_keywords() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.ServerMeta.sql_keywords)
return sql_keywords_.Add();
}
inline void ServerMeta::add_sql_keywords(const ::std::string& value) {
sql_keywords_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.sql_keywords)
+}
+#if LANG_CXX11
+inline void ServerMeta::add_sql_keywords(::std::string&& value) {
+ sql_keywords_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.sql_keywords)
}
+#endif
inline void ServerMeta::add_sql_keywords(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
sql_keywords_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.ServerMeta.sql_keywords)
}
inline void ServerMeta::add_sql_keywords(const char* value, size_t size) {
sql_keywords_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.ServerMeta.sql_keywords)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ServerMeta::sql_keywords() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.sql_keywords)
return sql_keywords_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ServerMeta::mutable_sql_keywords() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.sql_keywords)
return &sql_keywords_;
}
@@ -11391,39 +13415,64 @@ inline void ServerMeta::clear_string_functions() {
string_functions_.Clear();
}
inline const ::std::string& ServerMeta::string_functions(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.string_functions)
return string_functions_.Get(index);
}
inline ::std::string* ServerMeta::mutable_string_functions(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.string_functions)
return string_functions_.Mutable(index);
}
inline void ServerMeta::set_string_functions(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.string_functions)
string_functions_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void ServerMeta::set_string_functions(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.string_functions)
+ string_functions_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void ServerMeta::set_string_functions(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
string_functions_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.string_functions)
}
inline void ServerMeta::set_string_functions(int index, const char* value, size_t size) {
string_functions_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.string_functions)
}
inline ::std::string* ServerMeta::add_string_functions() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.ServerMeta.string_functions)
return string_functions_.Add();
}
inline void ServerMeta::add_string_functions(const ::std::string& value) {
string_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.string_functions)
+}
+#if LANG_CXX11
+inline void ServerMeta::add_string_functions(::std::string&& value) {
+ string_functions_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.string_functions)
}
+#endif
inline void ServerMeta::add_string_functions(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
string_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.ServerMeta.string_functions)
}
inline void ServerMeta::add_string_functions(const char* value, size_t size) {
string_functions_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.ServerMeta.string_functions)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ServerMeta::string_functions() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.string_functions)
return string_functions_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ServerMeta::mutable_string_functions() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.string_functions)
return &string_functions_;
}
@@ -11435,22 +13484,27 @@ inline void ServerMeta::clear_subquery_support() {
subquery_support_.Clear();
}
inline ::exec::user::SubQuerySupport ServerMeta::subquery_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.subquery_support)
return static_cast< ::exec::user::SubQuerySupport >(subquery_support_.Get(index));
}
inline void ServerMeta::set_subquery_support(int index, ::exec::user::SubQuerySupport value) {
assert(::exec::user::SubQuerySupport_IsValid(value));
subquery_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.subquery_support)
}
inline void ServerMeta::add_subquery_support(::exec::user::SubQuerySupport value) {
assert(::exec::user::SubQuerySupport_IsValid(value));
subquery_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.subquery_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::subquery_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.subquery_support)
return subquery_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_subquery_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.subquery_support)
return &subquery_support_;
}
@@ -11462,132 +13516,155 @@ inline void ServerMeta::clear_system_functions() {
system_functions_.Clear();
}
inline const ::std::string& ServerMeta::system_functions(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.system_functions)
return system_functions_.Get(index);
}
inline ::std::string* ServerMeta::mutable_system_functions(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.system_functions)
return system_functions_.Mutable(index);
}
inline void ServerMeta::set_system_functions(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.system_functions)
system_functions_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void ServerMeta::set_system_functions(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.system_functions)
+ system_functions_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void ServerMeta::set_system_functions(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
system_functions_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.system_functions)
}
inline void ServerMeta::set_system_functions(int index, const char* value, size_t size) {
system_functions_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.system_functions)
}
inline ::std::string* ServerMeta::add_system_functions() {
+ // @@protoc_insertion_point(field_add_mutable:exec.user.ServerMeta.system_functions)
return system_functions_.Add();
}
inline void ServerMeta::add_system_functions(const ::std::string& value) {
system_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.system_functions)
}
+#if LANG_CXX11
+inline void ServerMeta::add_system_functions(::std::string&& value) {
+ system_functions_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.system_functions)
+}
+#endif
inline void ServerMeta::add_system_functions(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
system_functions_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.user.ServerMeta.system_functions)
}
inline void ServerMeta::add_system_functions(const char* value, size_t size) {
system_functions_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.user.ServerMeta.system_functions)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
ServerMeta::system_functions() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.system_functions)
return system_functions_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
ServerMeta::mutable_system_functions() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.system_functions)
return &system_functions_;
}
// optional string table_term = 47;
inline bool ServerMeta::has_table_term() const {
- return (_has_bits_[1] & 0x00004000u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void ServerMeta::set_has_table_term() {
- _has_bits_[1] |= 0x00004000u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void ServerMeta::clear_has_table_term() {
- _has_bits_[1] &= ~0x00004000u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void ServerMeta::clear_table_term() {
- if (table_term_ != &::google::protobuf::internal::kEmptyString) {
- table_term_->clear();
- }
+ table_term_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_table_term();
}
inline const ::std::string& ServerMeta::table_term() const {
- return *table_term_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.table_term)
+ return table_term_.GetNoArena();
}
inline void ServerMeta::set_table_term(const ::std::string& value) {
set_has_table_term();
- if (table_term_ == &::google::protobuf::internal::kEmptyString) {
- table_term_ = new ::std::string;
- }
- table_term_->assign(value);
+ table_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.table_term)
}
+#if LANG_CXX11
+inline void ServerMeta::set_table_term(::std::string&& value) {
+ set_has_table_term();
+ table_term_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.table_term)
+}
+#endif
inline void ServerMeta::set_table_term(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_table_term();
- if (table_term_ == &::google::protobuf::internal::kEmptyString) {
- table_term_ = new ::std::string;
- }
- table_term_->assign(value);
+ table_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.table_term)
}
inline void ServerMeta::set_table_term(const char* value, size_t size) {
set_has_table_term();
- if (table_term_ == &::google::protobuf::internal::kEmptyString) {
- table_term_ = new ::std::string;
- }
- table_term_->assign(reinterpret_cast<const char*>(value), size);
+ table_term_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.table_term)
}
inline ::std::string* ServerMeta::mutable_table_term() {
set_has_table_term();
- if (table_term_ == &::google::protobuf::internal::kEmptyString) {
- table_term_ = new ::std::string;
- }
- return table_term_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.table_term)
+ return table_term_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_table_term() {
- clear_has_table_term();
- if (table_term_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.table_term)
+ if (!has_table_term()) {
return NULL;
- } else {
- ::std::string* temp = table_term_;
- table_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_table_term();
+ return table_term_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_table_term(::std::string* table_term) {
- if (table_term_ != &::google::protobuf::internal::kEmptyString) {
- delete table_term_;
- }
- if (table_term) {
+ if (table_term != NULL) {
set_has_table_term();
- table_term_ = table_term;
} else {
clear_has_table_term();
- table_term_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ table_term_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_term);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.table_term)
}
// optional bool transaction_supported = 48;
inline bool ServerMeta::has_transaction_supported() const {
- return (_has_bits_[1] & 0x00008000u) != 0;
+ return (_has_bits_[1] & 0x00000008u) != 0;
}
inline void ServerMeta::set_has_transaction_supported() {
- _has_bits_[1] |= 0x00008000u;
+ _has_bits_[1] |= 0x00000008u;
}
inline void ServerMeta::clear_has_transaction_supported() {
- _has_bits_[1] &= ~0x00008000u;
+ _has_bits_[1] &= ~0x00000008u;
}
inline void ServerMeta::clear_transaction_supported() {
transaction_supported_ = false;
clear_has_transaction_supported();
}
inline bool ServerMeta::transaction_supported() const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.transaction_supported)
return transaction_supported_;
}
inline void ServerMeta::set_transaction_supported(bool value) {
set_has_transaction_supported();
transaction_supported_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.transaction_supported)
}
// repeated .exec.user.UnionSupport union_support = 49;
@@ -11598,93 +13675,94 @@ inline void ServerMeta::clear_union_support() {
union_support_.Clear();
}
inline ::exec::user::UnionSupport ServerMeta::union_support(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.union_support)
return static_cast< ::exec::user::UnionSupport >(union_support_.Get(index));
}
inline void ServerMeta::set_union_support(int index, ::exec::user::UnionSupport value) {
assert(::exec::user::UnionSupport_IsValid(value));
union_support_.Set(index, value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.union_support)
}
inline void ServerMeta::add_union_support(::exec::user::UnionSupport value) {
assert(::exec::user::UnionSupport_IsValid(value));
union_support_.Add(value);
+ // @@protoc_insertion_point(field_add:exec.user.ServerMeta.union_support)
}
inline const ::google::protobuf::RepeatedField<int>&
ServerMeta::union_support() const {
+ // @@protoc_insertion_point(field_list:exec.user.ServerMeta.union_support)
return union_support_;
}
inline ::google::protobuf::RepeatedField<int>*
ServerMeta::mutable_union_support() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.ServerMeta.union_support)
return &union_support_;
}
// optional string current_schema = 50;
inline bool ServerMeta::has_current_schema() const {
- return (_has_bits_[1] & 0x00020000u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void ServerMeta::set_has_current_schema() {
- _has_bits_[1] |= 0x00020000u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void ServerMeta::clear_has_current_schema() {
- _has_bits_[1] &= ~0x00020000u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void ServerMeta::clear_current_schema() {
- if (current_schema_ != &::google::protobuf::internal::kEmptyString) {
- current_schema_->clear();
- }
+ current_schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_current_schema();
}
inline const ::std::string& ServerMeta::current_schema() const {
- return *current_schema_;
+ // @@protoc_insertion_point(field_get:exec.user.ServerMeta.current_schema)
+ return current_schema_.GetNoArena();
}
inline void ServerMeta::set_current_schema(const ::std::string& value) {
set_has_current_schema();
- if (current_schema_ == &::google::protobuf::internal::kEmptyString) {
- current_schema_ = new ::std::string;
- }
- current_schema_->assign(value);
+ current_schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.ServerMeta.current_schema)
+}
+#if LANG_CXX11
+inline void ServerMeta::set_current_schema(::std::string&& value) {
+ set_has_current_schema();
+ current_schema_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.ServerMeta.current_schema)
}
+#endif
inline void ServerMeta::set_current_schema(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_current_schema();
- if (current_schema_ == &::google::protobuf::internal::kEmptyString) {
- current_schema_ = new ::std::string;
- }
- current_schema_->assign(value);
+ current_schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.ServerMeta.current_schema)
}
inline void ServerMeta::set_current_schema(const char* value, size_t size) {
set_has_current_schema();
- if (current_schema_ == &::google::protobuf::internal::kEmptyString) {
- current_schema_ = new ::std::string;
- }
- current_schema_->assign(reinterpret_cast<const char*>(value), size);
+ current_schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.ServerMeta.current_schema)
}
inline ::std::string* ServerMeta::mutable_current_schema() {
set_has_current_schema();
- if (current_schema_ == &::google::protobuf::internal::kEmptyString) {
- current_schema_ = new ::std::string;
- }
- return current_schema_;
+ // @@protoc_insertion_point(field_mutable:exec.user.ServerMeta.current_schema)
+ return current_schema_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ServerMeta::release_current_schema() {
- clear_has_current_schema();
- if (current_schema_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.ServerMeta.current_schema)
+ if (!has_current_schema()) {
return NULL;
- } else {
- ::std::string* temp = current_schema_;
- current_schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_current_schema();
+ return current_schema_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ServerMeta::set_allocated_current_schema(::std::string* current_schema) {
- if (current_schema_ != &::google::protobuf::internal::kEmptyString) {
- delete current_schema_;
- }
- if (current_schema) {
+ if (current_schema != NULL) {
set_has_current_schema();
- current_schema_ = current_schema;
} else {
clear_has_current_schema();
- current_schema_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ current_schema_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_schema);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.ServerMeta.current_schema)
}
// -------------------------------------------------------------------
@@ -11693,266 +13771,366 @@ inline void ServerMeta::set_allocated_current_schema(::std::string* current_sche
// optional .exec.user.QueryResultsMode results_mode = 1;
inline bool RunQuery::has_results_mode() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void RunQuery::set_has_results_mode() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void RunQuery::clear_has_results_mode() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void RunQuery::clear_results_mode() {
results_mode_ = 1;
clear_has_results_mode();
}
inline ::exec::user::QueryResultsMode RunQuery::results_mode() const {
+ // @@protoc_insertion_point(field_get:exec.user.RunQuery.results_mode)
return static_cast< ::exec::user::QueryResultsMode >(results_mode_);
}
inline void RunQuery::set_results_mode(::exec::user::QueryResultsMode value) {
assert(::exec::user::QueryResultsMode_IsValid(value));
set_has_results_mode();
results_mode_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RunQuery.results_mode)
}
// optional .exec.shared.QueryType type = 2;
inline bool RunQuery::has_type() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void RunQuery::set_has_type() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void RunQuery::clear_has_type() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void RunQuery::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::exec::shared::QueryType RunQuery::type() const {
+ // @@protoc_insertion_point(field_get:exec.user.RunQuery.type)
return static_cast< ::exec::shared::QueryType >(type_);
}
inline void RunQuery::set_type(::exec::shared::QueryType value) {
assert(::exec::shared::QueryType_IsValid(value));
set_has_type();
type_ = value;
+ // @@protoc_insertion_point(field_set:exec.user.RunQuery.type)
}
// optional string plan = 3;
inline bool RunQuery::has_plan() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void RunQuery::set_has_plan() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void RunQuery::clear_has_plan() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void RunQuery::clear_plan() {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- plan_->clear();
- }
+ plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_plan();
}
inline const ::std::string& RunQuery::plan() const {
- return *plan_;
+ // @@protoc_insertion_point(field_get:exec.user.RunQuery.plan)
+ return plan_.GetNoArena();
}
inline void RunQuery::set_plan(const ::std::string& value) {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(value);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.user.RunQuery.plan)
}
+#if LANG_CXX11
+inline void RunQuery::set_plan(::std::string&& value) {
+ set_has_plan();
+ plan_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.user.RunQuery.plan)
+}
+#endif
inline void RunQuery::set_plan(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(value);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.user.RunQuery.plan)
}
inline void RunQuery::set_plan(const char* value, size_t size) {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(reinterpret_cast<const char*>(value), size);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.user.RunQuery.plan)
}
inline ::std::string* RunQuery::mutable_plan() {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- return plan_;
+ // @@protoc_insertion_point(field_mutable:exec.user.RunQuery.plan)
+ return plan_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* RunQuery::release_plan() {
- clear_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.user.RunQuery.plan)
+ if (!has_plan()) {
return NULL;
- } else {
- ::std::string* temp = plan_;
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_plan();
+ return plan_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void RunQuery::set_allocated_plan(::std::string* plan) {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- delete plan_;
- }
- if (plan) {
+ if (plan != NULL) {
set_has_plan();
- plan_ = plan;
} else {
clear_has_plan();
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ plan_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), plan);
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RunQuery.plan)
}
// repeated .exec.bit.control.PlanFragment fragments = 4;
inline int RunQuery::fragments_size() const {
return fragments_.size();
}
-inline void RunQuery::clear_fragments() {
- fragments_.Clear();
+inline ::exec::bit::control::PlanFragment* RunQuery::mutable_fragments(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.user.RunQuery.fragments)
+ return fragments_.Mutable(index);
+}
+inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
+RunQuery::mutable_fragments() {
+ // @@protoc_insertion_point(field_mutable_list:exec.user.RunQuery.fragments)
+ return &fragments_;
}
inline const ::exec::bit::control::PlanFragment& RunQuery::fragments(int index) const {
+ // @@protoc_insertion_point(field_get:exec.user.RunQuery.fragments)
return fragments_.Get(index);
}
-inline ::exec::bit::control::PlanFragment* RunQuery::mutable_fragments(int index) {
- return fragments_.Mutable(index);
-}
inline ::exec::bit::control::PlanFragment* RunQuery::add_fragments() {
+ // @@protoc_insertion_point(field_add:exec.user.RunQuery.fragments)
return fragments_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >&
RunQuery::fragments() const {
+ // @@protoc_insertion_point(field_list:exec.user.RunQuery.fragments)
return fragments_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::bit::control::PlanFragment >*
-RunQuery::mutable_fragments() {
- return &fragments_;
-}
// optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
inline bool RunQuery::has_prepared_statement_handle() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void RunQuery::set_has_prepared_statement_handle() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void RunQuery::clear_has_prepared_statement_handle() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void RunQuery::clear_prepared_statement_handle() {
- if (prepared_statement_handle_ != NULL) prepared_statement_handle_->::exec::user::PreparedStatementHandle::Clear();
+ if (prepared_statement_handle_ != NULL) prepared_statement_handle_->Clear();
clear_has_prepared_statement_handle();
}
-inline const ::exec::user::PreparedStatementHandle& RunQuery::prepared_statement_handle() const {
- return prepared_statement_handle_ != NULL ? *prepared_statement_handle_ : *default_instance_->prepared_statement_handle_;
+inline const ::exec::user::PreparedStatementHandle& RunQuery::_internal_prepared_statement_handle() const {
+ return *prepared_statement_handle_;
}
-inline ::exec::user::PreparedStatementHandle* RunQuery::mutable_prepared_statement_handle() {
- set_has_prepared_statement_handle();
- if (prepared_statement_handle_ == NULL) prepared_statement_handle_ = new ::exec::user::PreparedStatementHandle;
- return prepared_statement_handle_;
+inline const ::exec::user::PreparedStatementHandle& RunQuery::prepared_statement_handle() const {
+ const ::exec::user::PreparedStatementHandle* p = prepared_statement_handle_;
+ // @@protoc_insertion_point(field_get:exec.user.RunQuery.prepared_statement_handle)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::user::PreparedStatementHandle*>(
+ &::exec::user::_PreparedStatementHandle_default_instance_);
}
inline ::exec::user::PreparedStatementHandle* RunQuery::release_prepared_statement_handle() {
+ // @@protoc_insertion_point(field_release:exec.user.RunQuery.prepared_statement_handle)
clear_has_prepared_statement_handle();
::exec::user::PreparedStatementHandle* temp = prepared_statement_handle_;
prepared_statement_handle_ = NULL;
return temp;
}
+inline ::exec::user::PreparedStatementHandle* RunQuery::mutable_prepared_statement_handle() {
+ set_has_prepared_statement_handle();
+ if (prepared_statement_handle_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::user::PreparedStatementHandle>(GetArenaNoVirtual());
+ prepared_statement_handle_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.user.RunQuery.prepared_statement_handle)
+ return prepared_statement_handle_;
+}
inline void RunQuery::set_allocated_prepared_statement_handle(::exec::user::PreparedStatementHandle* prepared_statement_handle) {
- delete prepared_statement_handle_;
- prepared_statement_handle_ = prepared_statement_handle;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete prepared_statement_handle_;
+ }
if (prepared_statement_handle) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ prepared_statement_handle = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, prepared_statement_handle, submessage_arena);
+ }
set_has_prepared_statement_handle();
} else {
clear_has_prepared_statement_handle();
}
+ prepared_statement_handle_ = prepared_statement_handle;
+ // @@protoc_insertion_point(field_set_allocated:exec.user.RunQuery.prepared_statement_handle)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
} // namespace user
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::user::RpcType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::RpcType>() {
return ::exec::user::RpcType_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::SaslSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::SaslSupport>() {
return ::exec::user::SaslSupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::QueryResultsMode> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::QueryResultsMode>() {
return ::exec::user::QueryResultsMode_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::HandshakeStatus> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::HandshakeStatus>() {
return ::exec::user::HandshakeStatus_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::RequestStatus> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::RequestStatus>() {
return ::exec::user::RequestStatus_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::ColumnSearchability> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::ColumnSearchability>() {
return ::exec::user::ColumnSearchability_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::ColumnUpdatability> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::ColumnUpdatability>() {
return ::exec::user::ColumnUpdatability_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::CollateSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::CollateSupport>() {
return ::exec::user::CollateSupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::CorrelationNamesSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::CorrelationNamesSupport>() {
return ::exec::user::CorrelationNamesSupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::DateTimeLiteralsSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::DateTimeLiteralsSupport>() {
return ::exec::user::DateTimeLiteralsSupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::GroupBySupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::GroupBySupport>() {
return ::exec::user::GroupBySupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::IdentifierCasing> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::IdentifierCasing>() {
return ::exec::user::IdentifierCasing_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::NullCollation> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::NullCollation>() {
return ::exec::user::NullCollation_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::OrderBySupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::OrderBySupport>() {
return ::exec::user::OrderBySupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::OuterJoinSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::OuterJoinSupport>() {
return ::exec::user::OuterJoinSupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::SubQuerySupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::SubQuerySupport>() {
return ::exec::user::SubQuerySupport_descriptor();
}
+template <> struct is_proto_enum< ::exec::user::UnionSupport> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::user::UnionSupport>() {
return ::exec::user::UnionSupport_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_User_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_User_2eproto
diff --git a/contrib/native/client/src/protobuf/UserBitShared.pb.cc b/contrib/native/client/src/protobuf/UserBitShared.pb.cc
index 0db64d348..2e3f1e5af 100644
--- a/contrib/native/client/src/protobuf/UserBitShared.pb.cc
+++ b/contrib/native/client/src/protobuf/UserBitShared.pb.cc
@@ -1,864 +1,1203 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: UserBitShared.proto
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "UserBitShared.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
// @@protoc_insertion_point(includes)
+namespace protobuf_Coordination_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_Coordination_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DrillbitEndpoint;
+} // namespace protobuf_Coordination_2eproto
+namespace protobuf_Types_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_Types_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MajorType;
+} // namespace protobuf_Types_2eproto
+namespace protobuf_UserBitShared_2eproto {
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Jar;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MetricValue;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamePart;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ParsingError;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryId;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StackTraceElementWrapper;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StreamProfile;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExceptionWrapper;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MajorFragmentProfile;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_RecordBatchDef;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_OperatorProfile;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_SerializedField;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DrillPBError;
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_MinorFragmentProfile;
+} // namespace protobuf_UserBitShared_2eproto
namespace exec {
namespace shared {
+class UserCredentialsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UserCredentials>
+ _instance;
+} _UserCredentials_default_instance_;
+class QueryIdDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryId>
+ _instance;
+} _QueryId_default_instance_;
+class DrillPBErrorDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DrillPBError>
+ _instance;
+} _DrillPBError_default_instance_;
+class ExceptionWrapperDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ExceptionWrapper>
+ _instance;
+} _ExceptionWrapper_default_instance_;
+class StackTraceElementWrapperDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StackTraceElementWrapper>
+ _instance;
+} _StackTraceElementWrapper_default_instance_;
+class ParsingErrorDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ParsingError>
+ _instance;
+} _ParsingError_default_instance_;
+class RecordBatchDefDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RecordBatchDef>
+ _instance;
+} _RecordBatchDef_default_instance_;
+class NamePartDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<NamePart>
+ _instance;
+} _NamePart_default_instance_;
+class SerializedFieldDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<SerializedField>
+ _instance;
+} _SerializedField_default_instance_;
+class NodeStatusDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<NodeStatus>
+ _instance;
+} _NodeStatus_default_instance_;
+class QueryResultDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryResult>
+ _instance;
+} _QueryResult_default_instance_;
+class QueryDataDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryData>
+ _instance;
+} _QueryData_default_instance_;
+class QueryInfoDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryInfo>
+ _instance;
+} _QueryInfo_default_instance_;
+class QueryProfileDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<QueryProfile>
+ _instance;
+} _QueryProfile_default_instance_;
+class MajorFragmentProfileDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MajorFragmentProfile>
+ _instance;
+} _MajorFragmentProfile_default_instance_;
+class MinorFragmentProfileDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MinorFragmentProfile>
+ _instance;
+} _MinorFragmentProfile_default_instance_;
+class OperatorProfileDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<OperatorProfile>
+ _instance;
+} _OperatorProfile_default_instance_;
+class StreamProfileDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StreamProfile>
+ _instance;
+} _StreamProfile_default_instance_;
+class MetricValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MetricValue>
+ _instance;
+} _MetricValue_default_instance_;
+class RegistryDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Registry>
+ _instance;
+} _Registry_default_instance_;
+class JarDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Jar>
+ _instance;
+} _Jar_default_instance_;
+class SaslMessageDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<SaslMessage>
+ _instance;
+} _SaslMessage_default_instance_;
+} // namespace shared
+} // namespace exec
+namespace protobuf_UserBitShared_2eproto {
+static void InitDefaultsUserCredentials() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
-namespace {
-
-const ::google::protobuf::Descriptor* UserCredentials_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- UserCredentials_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryId_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryId_reflection_ = NULL;
-const ::google::protobuf::Descriptor* DrillPBError_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- DrillPBError_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* DrillPBError_ErrorType_descriptor_ = NULL;
-const ::google::protobuf::Descriptor* ExceptionWrapper_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ExceptionWrapper_reflection_ = NULL;
-const ::google::protobuf::Descriptor* StackTraceElementWrapper_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- StackTraceElementWrapper_reflection_ = NULL;
-const ::google::protobuf::Descriptor* ParsingError_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- ParsingError_reflection_ = NULL;
-const ::google::protobuf::Descriptor* RecordBatchDef_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- RecordBatchDef_reflection_ = NULL;
-const ::google::protobuf::Descriptor* NamePart_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- NamePart_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* NamePart_Type_descriptor_ = NULL;
-const ::google::protobuf::Descriptor* SerializedField_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- SerializedField_reflection_ = NULL;
-const ::google::protobuf::Descriptor* NodeStatus_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- NodeStatus_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryResult_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryResult_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* QueryResult_QueryState_descriptor_ = NULL;
-const ::google::protobuf::Descriptor* QueryData_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryData_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryInfo_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryInfo_reflection_ = NULL;
-const ::google::protobuf::Descriptor* QueryProfile_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- QueryProfile_reflection_ = NULL;
-const ::google::protobuf::Descriptor* MajorFragmentProfile_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- MajorFragmentProfile_reflection_ = NULL;
-const ::google::protobuf::Descriptor* MinorFragmentProfile_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- MinorFragmentProfile_reflection_ = NULL;
-const ::google::protobuf::Descriptor* OperatorProfile_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- OperatorProfile_reflection_ = NULL;
-const ::google::protobuf::Descriptor* StreamProfile_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- StreamProfile_reflection_ = NULL;
-const ::google::protobuf::Descriptor* MetricValue_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- MetricValue_reflection_ = NULL;
-const ::google::protobuf::Descriptor* Registry_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Registry_reflection_ = NULL;
-const ::google::protobuf::Descriptor* Jar_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- Jar_reflection_ = NULL;
-const ::google::protobuf::Descriptor* SaslMessage_descriptor_ = NULL;
-const ::google::protobuf::internal::GeneratedMessageReflection*
- SaslMessage_reflection_ = NULL;
-const ::google::protobuf::EnumDescriptor* RpcChannel_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* QueryType_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* FragmentState_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* CoreOperatorType_descriptor_ = NULL;
-const ::google::protobuf::EnumDescriptor* SaslStatus_descriptor_ = NULL;
-
-} // namespace
-
-
-void protobuf_AssignDesc_UserBitShared_2eproto() {
- protobuf_AddDesc_UserBitShared_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "UserBitShared.proto");
- GOOGLE_CHECK(file != NULL);
- UserCredentials_descriptor_ = file->message_type(0);
- static const int UserCredentials_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserCredentials, user_name_),
- };
- UserCredentials_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- UserCredentials_descriptor_,
- UserCredentials::default_instance_,
- UserCredentials_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserCredentials, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserCredentials, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(UserCredentials));
- QueryId_descriptor_ = file->message_type(1);
- static const int QueryId_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryId, part1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryId, part2_),
- };
- QueryId_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryId_descriptor_,
- QueryId::default_instance_,
- QueryId_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryId, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryId, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryId));
- DrillPBError_descriptor_ = file->message_type(2);
- static const int DrillPBError_offsets_[6] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, error_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, endpoint_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, error_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, exception_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, parsing_error_),
- };
- DrillPBError_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- DrillPBError_descriptor_,
- DrillPBError::default_instance_,
- DrillPBError_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DrillPBError, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(DrillPBError));
- DrillPBError_ErrorType_descriptor_ = DrillPBError_descriptor_->enum_type(0);
- ExceptionWrapper_descriptor_ = file->message_type(3);
- static const int ExceptionWrapper_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, exception_class_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, stack_trace_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, cause_),
- };
- ExceptionWrapper_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ExceptionWrapper_descriptor_,
- ExceptionWrapper::default_instance_,
- ExceptionWrapper_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExceptionWrapper, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ExceptionWrapper));
- StackTraceElementWrapper_descriptor_ = file->message_type(4);
- static const int StackTraceElementWrapper_offsets_[5] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, class_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, file_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, line_number_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, method_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, is_native_method_),
- };
- StackTraceElementWrapper_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StackTraceElementWrapper_descriptor_,
- StackTraceElementWrapper::default_instance_,
- StackTraceElementWrapper_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackTraceElementWrapper, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StackTraceElementWrapper));
- ParsingError_descriptor_ = file->message_type(5);
- static const int ParsingError_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, start_column_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, start_row_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, end_column_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, end_row_),
- };
- ParsingError_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- ParsingError_descriptor_,
- ParsingError::default_instance_,
- ParsingError_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParsingError, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(ParsingError));
- RecordBatchDef_descriptor_ = file->message_type(6);
- static const int RecordBatchDef_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, record_count_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, field_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, carries_two_byte_selection_vector_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, affected_rows_count_),
- };
- RecordBatchDef_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- RecordBatchDef_descriptor_,
- RecordBatchDef::default_instance_,
- RecordBatchDef_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecordBatchDef, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(RecordBatchDef));
- NamePart_descriptor_ = file->message_type(7);
- static const int NamePart_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamePart, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamePart, name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamePart, child_),
- };
- NamePart_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- NamePart_descriptor_,
- NamePart::default_instance_,
- NamePart_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamePart, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NamePart, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(NamePart));
- NamePart_Type_descriptor_ = NamePart_descriptor_->enum_type(0);
- SerializedField_descriptor_ = file->message_type(8);
- static const int SerializedField_offsets_[6] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, major_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, name_part_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, child_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, value_count_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, var_byte_length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, buffer_length_),
- };
- SerializedField_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- SerializedField_descriptor_,
- SerializedField::default_instance_,
- SerializedField_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SerializedField, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(SerializedField));
- NodeStatus_descriptor_ = file->message_type(9);
- static const int NodeStatus_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeStatus, node_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeStatus, memory_footprint_),
- };
- NodeStatus_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- NodeStatus_descriptor_,
- NodeStatus::default_instance_,
- NodeStatus_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeStatus, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeStatus, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(NodeStatus));
- QueryResult_descriptor_ = file->message_type(10);
- static const int QueryResult_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, query_state_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, error_),
- };
- QueryResult_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryResult_descriptor_,
- QueryResult::default_instance_,
- QueryResult_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryResult, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryResult));
- QueryResult_QueryState_descriptor_ = QueryResult_descriptor_->enum_type(0);
- QueryData_descriptor_ = file->message_type(11);
- static const int QueryData_offsets_[4] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, query_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, row_count_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, def_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, affected_rows_count_),
- };
- QueryData_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryData_descriptor_,
- QueryData::default_instance_,
- QueryData_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryData, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryData));
- QueryInfo_descriptor_ = file->message_type(12);
- static const int QueryInfo_offsets_[8] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, query_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, state_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, user_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, foreman_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, options_json_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, total_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, queue_name_),
- };
- QueryInfo_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryInfo_descriptor_,
- QueryInfo::default_instance_,
- QueryInfo_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryInfo, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryInfo));
- QueryProfile_descriptor_ = file->message_type(13);
- static const int QueryProfile_offsets_[22] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, start_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, end_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, query_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, plan_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, foreman_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, state_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, total_fragments_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, finished_fragments_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, fragment_profile_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, user_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, error_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, verboseerror_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, error_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, error_node_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, options_json_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, planend_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, queuewaitend_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, total_cost_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, queue_name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, queryid_),
- };
- QueryProfile_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- QueryProfile_descriptor_,
- QueryProfile::default_instance_,
- QueryProfile_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QueryProfile, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(QueryProfile));
- MajorFragmentProfile_descriptor_ = file->message_type(14);
- static const int MajorFragmentProfile_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorFragmentProfile, major_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorFragmentProfile, minor_fragment_profile_),
- };
- MajorFragmentProfile_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MajorFragmentProfile_descriptor_,
- MajorFragmentProfile::default_instance_,
- MajorFragmentProfile_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorFragmentProfile, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MajorFragmentProfile, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MajorFragmentProfile));
- MinorFragmentProfile_descriptor_ = file->message_type(15);
- static const int MinorFragmentProfile_offsets_[11] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, state_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, error_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, minor_fragment_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, operator_profile_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, start_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, end_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, memory_used_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, max_memory_used_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, endpoint_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, last_update_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, last_progress_),
- };
- MinorFragmentProfile_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MinorFragmentProfile_descriptor_,
- MinorFragmentProfile::default_instance_,
- MinorFragmentProfile_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MinorFragmentProfile, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MinorFragmentProfile));
- OperatorProfile_descriptor_ = file->message_type(16);
- static const int OperatorProfile_offsets_[8] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, input_profile_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, operator_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, operator_type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, setup_nanos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, process_nanos_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, peak_local_memory_allocated_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, metric_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, wait_nanos_),
- };
- OperatorProfile_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- OperatorProfile_descriptor_,
- OperatorProfile::default_instance_,
- OperatorProfile_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorProfile, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(OperatorProfile));
- StreamProfile_descriptor_ = file->message_type(17);
- static const int StreamProfile_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StreamProfile, records_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StreamProfile, batches_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StreamProfile, schemas_),
- };
- StreamProfile_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- StreamProfile_descriptor_,
- StreamProfile::default_instance_,
- StreamProfile_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StreamProfile, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StreamProfile, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(StreamProfile));
- MetricValue_descriptor_ = file->message_type(18);
- static const int MetricValue_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetricValue, metric_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetricValue, long_value_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetricValue, double_value_),
- };
- MetricValue_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- MetricValue_descriptor_,
- MetricValue::default_instance_,
- MetricValue_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetricValue, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MetricValue, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(MetricValue));
- Registry_descriptor_ = file->message_type(19);
- static const int Registry_offsets_[1] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Registry, jar_),
- };
- Registry_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Registry_descriptor_,
- Registry::default_instance_,
- Registry_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Registry, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Registry, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Registry));
- Jar_descriptor_ = file->message_type(20);
- static const int Jar_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Jar, name_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Jar, function_signature_),
- };
- Jar_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- Jar_descriptor_,
- Jar::default_instance_,
- Jar_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Jar, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Jar, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(Jar));
- SaslMessage_descriptor_ = file->message_type(21);
- static const int SaslMessage_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaslMessage, mechanism_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaslMessage, data_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaslMessage, status_),
- };
- SaslMessage_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- SaslMessage_descriptor_,
- SaslMessage::default_instance_,
- SaslMessage_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaslMessage, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaslMessage, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(SaslMessage));
- RpcChannel_descriptor_ = file->enum_type(0);
- QueryType_descriptor_ = file->enum_type(1);
- FragmentState_descriptor_ = file->enum_type(2);
- CoreOperatorType_descriptor_ = file->enum_type(3);
- SaslStatus_descriptor_ = file->enum_type(4);
-}
-
-namespace {
-
-GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
-inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_UserBitShared_2eproto);
+ {
+ void* ptr = &::exec::shared::_UserCredentials_default_instance_;
+ new (ptr) ::exec::shared::UserCredentials();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::UserCredentials::InitAsDefaultInstance();
}
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- UserCredentials_descriptor_, &UserCredentials::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryId_descriptor_, &QueryId::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- DrillPBError_descriptor_, &DrillPBError::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ExceptionWrapper_descriptor_, &ExceptionWrapper::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StackTraceElementWrapper_descriptor_, &StackTraceElementWrapper::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- ParsingError_descriptor_, &ParsingError::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- RecordBatchDef_descriptor_, &RecordBatchDef::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- NamePart_descriptor_, &NamePart::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- SerializedField_descriptor_, &SerializedField::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- NodeStatus_descriptor_, &NodeStatus::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryResult_descriptor_, &QueryResult::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryData_descriptor_, &QueryData::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryInfo_descriptor_, &QueryInfo::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- QueryProfile_descriptor_, &QueryProfile::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MajorFragmentProfile_descriptor_, &MajorFragmentProfile::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MinorFragmentProfile_descriptor_, &MinorFragmentProfile::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- OperatorProfile_descriptor_, &OperatorProfile::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- StreamProfile_descriptor_, &StreamProfile::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- MetricValue_descriptor_, &MetricValue::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Registry_descriptor_, &Registry::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- Jar_descriptor_, &Jar::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- SaslMessage_descriptor_, &SaslMessage::default_instance());
-}
-
-} // namespace
-
-void protobuf_ShutdownFile_UserBitShared_2eproto() {
- delete UserCredentials::default_instance_;
- delete UserCredentials_reflection_;
- delete QueryId::default_instance_;
- delete QueryId_reflection_;
- delete DrillPBError::default_instance_;
- delete DrillPBError_reflection_;
- delete ExceptionWrapper::default_instance_;
- delete ExceptionWrapper_reflection_;
- delete StackTraceElementWrapper::default_instance_;
- delete StackTraceElementWrapper_reflection_;
- delete ParsingError::default_instance_;
- delete ParsingError_reflection_;
- delete RecordBatchDef::default_instance_;
- delete RecordBatchDef_reflection_;
- delete NamePart::default_instance_;
- delete NamePart_reflection_;
- delete SerializedField::default_instance_;
- delete SerializedField_reflection_;
- delete NodeStatus::default_instance_;
- delete NodeStatus_reflection_;
- delete QueryResult::default_instance_;
- delete QueryResult_reflection_;
- delete QueryData::default_instance_;
- delete QueryData_reflection_;
- delete QueryInfo::default_instance_;
- delete QueryInfo_reflection_;
- delete QueryInfo::_default_user_;
- delete QueryInfo::_default_queue_name_;
- delete QueryProfile::default_instance_;
- delete QueryProfile_reflection_;
- delete QueryProfile::_default_user_;
- delete QueryProfile::_default_queue_name_;
- delete MajorFragmentProfile::default_instance_;
- delete MajorFragmentProfile_reflection_;
- delete MinorFragmentProfile::default_instance_;
- delete MinorFragmentProfile_reflection_;
- delete OperatorProfile::default_instance_;
- delete OperatorProfile_reflection_;
- delete StreamProfile::default_instance_;
- delete StreamProfile_reflection_;
- delete MetricValue::default_instance_;
- delete MetricValue_reflection_;
- delete Registry::default_instance_;
- delete Registry_reflection_;
- delete Jar::default_instance_;
- delete Jar_reflection_;
- delete SaslMessage::default_instance_;
- delete SaslMessage_reflection_;
-}
-
-void protobuf_AddDesc_UserBitShared_2eproto() {
- static bool already_here = false;
- if (already_here) return;
- already_here = true;
+::google::protobuf::internal::SCCInfo<0> scc_info_UserCredentials =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUserCredentials}, {}};
+
+static void InitDefaultsQueryId() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_QueryId_default_instance_;
+ new (ptr) ::exec::shared::QueryId();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::QueryId::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_QueryId =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsQueryId}, {}};
+
+static void InitDefaultsDrillPBError() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_DrillPBError_default_instance_;
+ new (ptr) ::exec::shared::DrillPBError();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::DrillPBError::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<3> scc_info_DrillPBError =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsDrillPBError}, {
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,
+ &protobuf_UserBitShared_2eproto::scc_info_ExceptionWrapper.base,
+ &protobuf_UserBitShared_2eproto::scc_info_ParsingError.base,}};
+
+static void InitDefaultsExceptionWrapper() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_ExceptionWrapper_default_instance_;
+ new (ptr) ::exec::shared::ExceptionWrapper();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::ExceptionWrapper::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_ExceptionWrapper =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExceptionWrapper}, {
+ &protobuf_UserBitShared_2eproto::scc_info_StackTraceElementWrapper.base,}};
+
+static void InitDefaultsStackTraceElementWrapper() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_StackTraceElementWrapper_default_instance_;
+ new (ptr) ::exec::shared::StackTraceElementWrapper();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::StackTraceElementWrapper::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_StackTraceElementWrapper =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStackTraceElementWrapper}, {}};
+
+static void InitDefaultsParsingError() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_ParsingError_default_instance_;
+ new (ptr) ::exec::shared::ParsingError();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::ParsingError::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_ParsingError =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsParsingError}, {}};
+
+static void InitDefaultsRecordBatchDef() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_RecordBatchDef_default_instance_;
+ new (ptr) ::exec::shared::RecordBatchDef();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::RecordBatchDef::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_RecordBatchDef =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRecordBatchDef}, {
+ &protobuf_UserBitShared_2eproto::scc_info_SerializedField.base,}};
+
+static void InitDefaultsNamePart() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_NamePart_default_instance_;
+ new (ptr) ::exec::shared::NamePart();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::NamePart::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_NamePart =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamePart}, {}};
+
+static void InitDefaultsSerializedField() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_SerializedField_default_instance_;
+ new (ptr) ::exec::shared::SerializedField();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::SerializedField::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_SerializedField =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSerializedField}, {
+ &protobuf_Types_2eproto::scc_info_MajorType.base,
+ &protobuf_UserBitShared_2eproto::scc_info_NamePart.base,}};
+
+static void InitDefaultsNodeStatus() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_NodeStatus_default_instance_;
+ new (ptr) ::exec::shared::NodeStatus();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::NodeStatus::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_NodeStatus =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeStatus}, {}};
+
+static void InitDefaultsQueryResult() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_QueryResult_default_instance_;
+ new (ptr) ::exec::shared::QueryResult();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::QueryResult::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_QueryResult =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsQueryResult}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,}};
+
+static void InitDefaultsQueryData() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_QueryData_default_instance_;
+ new (ptr) ::exec::shared::QueryData();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::QueryData::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_QueryData =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsQueryData}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,
+ &protobuf_UserBitShared_2eproto::scc_info_RecordBatchDef.base,}};
+
+static void InitDefaultsQueryInfo() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ ::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.DefaultConstruct();
+ *::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get_mutable() = ::std::string("-", 1);
+ ::google::protobuf::internal::OnShutdownDestroyString(
+ ::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get_mutable());
+ ::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.DefaultConstruct();
+ *::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get_mutable() = ::std::string("-", 1);
+ ::google::protobuf::internal::OnShutdownDestroyString(
+ ::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get_mutable());
+ {
+ void* ptr = &::exec::shared::_QueryInfo_default_instance_;
+ new (ptr) ::exec::shared::QueryInfo();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::QueryInfo::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_QueryInfo =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQueryInfo}, {
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,}};
+
+static void InitDefaultsQueryProfile() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ ::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.DefaultConstruct();
+ *::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get_mutable() = ::std::string("-", 1);
+ ::google::protobuf::internal::OnShutdownDestroyString(
+ ::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get_mutable());
+ ::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.DefaultConstruct();
+ *::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get_mutable() = ::std::string("-", 1);
+ ::google::protobuf::internal::OnShutdownDestroyString(
+ ::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get_mutable());
+ {
+ void* ptr = &::exec::shared::_QueryProfile_default_instance_;
+ new (ptr) ::exec::shared::QueryProfile();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::QueryProfile::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<3> scc_info_QueryProfile =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsQueryProfile}, {
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base,
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,
+ &protobuf_UserBitShared_2eproto::scc_info_MajorFragmentProfile.base,}};
+
+static void InitDefaultsMajorFragmentProfile() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_MajorFragmentProfile_default_instance_;
+ new (ptr) ::exec::shared::MajorFragmentProfile();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::MajorFragmentProfile::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_MajorFragmentProfile =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMajorFragmentProfile}, {
+ &protobuf_UserBitShared_2eproto::scc_info_MinorFragmentProfile.base,}};
+
+static void InitDefaultsMinorFragmentProfile() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_MinorFragmentProfile_default_instance_;
+ new (ptr) ::exec::shared::MinorFragmentProfile();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::MinorFragmentProfile::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<3> scc_info_MinorFragmentProfile =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsMinorFragmentProfile}, {
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base,
+ &protobuf_UserBitShared_2eproto::scc_info_OperatorProfile.base,
+ &protobuf_Coordination_2eproto::scc_info_DrillbitEndpoint.base,}};
+
+static void InitDefaultsOperatorProfile() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_OperatorProfile_default_instance_;
+ new (ptr) ::exec::shared::OperatorProfile();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::OperatorProfile::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<2> scc_info_OperatorProfile =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOperatorProfile}, {
+ &protobuf_UserBitShared_2eproto::scc_info_StreamProfile.base,
+ &protobuf_UserBitShared_2eproto::scc_info_MetricValue.base,}};
+
+static void InitDefaultsStreamProfile() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_StreamProfile_default_instance_;
+ new (ptr) ::exec::shared::StreamProfile();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::StreamProfile::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_StreamProfile =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStreamProfile}, {}};
+
+static void InitDefaultsMetricValue() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::common::protobuf_AddDesc_Types_2eproto();
- ::exec::protobuf_AddDesc_Coordination_2eproto();
- ::exec::protobuf_AddDesc_SchemaDef_2eproto();
+ {
+ void* ptr = &::exec::shared::_MetricValue_default_instance_;
+ new (ptr) ::exec::shared::MetricValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::MetricValue::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_MetricValue =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetricValue}, {}};
+
+static void InitDefaultsRegistry() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_Registry_default_instance_;
+ new (ptr) ::exec::shared::Registry();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::Registry::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<1> scc_info_Registry =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegistry}, {
+ &protobuf_UserBitShared_2eproto::scc_info_Jar.base,}};
+
+static void InitDefaultsJar() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_Jar_default_instance_;
+ new (ptr) ::exec::shared::Jar();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::Jar::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_Jar =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsJar}, {}};
+
+static void InitDefaultsSaslMessage() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::exec::shared::_SaslMessage_default_instance_;
+ new (ptr) ::exec::shared::SaslMessage();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::exec::shared::SaslMessage::InitAsDefaultInstance();
+}
+
+::google::protobuf::internal::SCCInfo<0> scc_info_SaslMessage =
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSaslMessage}, {}};
+
+void InitDefaults() {
+ ::google::protobuf::internal::InitSCC(&scc_info_UserCredentials.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryId.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_DrillPBError.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ExceptionWrapper.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_StackTraceElementWrapper.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_ParsingError.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_RecordBatchDef.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_NamePart.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_SerializedField.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_NodeStatus.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryResult.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryData.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryInfo.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_QueryProfile.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_MajorFragmentProfile.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_MinorFragmentProfile.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_OperatorProfile.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_StreamProfile.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_MetricValue.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_Registry.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_Jar.base);
+ ::google::protobuf::internal::InitSCC(&scc_info_SaslMessage.base);
+}
+
+::google::protobuf::Metadata file_level_metadata[22];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[8];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::UserCredentials, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::UserCredentials, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::UserCredentials, user_name_),
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryId, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryId, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryId, part1_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryId, part2_),
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, error_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, endpoint_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, error_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, message_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, exception_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::DrillPBError, parsing_error_),
+ 0,
+ 2,
+ 4,
+ 1,
+ 3,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, exception_class_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, message_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, stack_trace_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ExceptionWrapper, cause_),
+ 0,
+ 1,
+ ~0u,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, class_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, file_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, line_number_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, method_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, is_native_method_),
+ 0,
+ 1,
+ 3,
+ 2,
+ 4,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, start_column_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, start_row_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, end_column_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::ParsingError, end_row_),
+ 0,
+ 1,
+ 2,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, record_count_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, field_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, carries_two_byte_selection_vector_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::RecordBatchDef, affected_rows_count_),
+ 0,
+ ~0u,
+ 1,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NamePart, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NamePart, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NamePart, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NamePart, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NamePart, child_),
+ 2,
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, major_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, name_part_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, child_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, value_count_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, var_byte_length_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SerializedField, buffer_length_),
+ 0,
+ 1,
+ ~0u,
+ 2,
+ 3,
+ 4,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NodeStatus, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NodeStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NodeStatus, node_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::NodeStatus, memory_footprint_),
+ 1,
+ 0,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryResult, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryResult, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryResult, query_state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryResult, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryResult, error_),
+ 1,
+ 0,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, query_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, row_count_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, def_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryData, affected_rows_count_),
+ 0,
+ 2,
+ 1,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, query_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, start_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, user_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, foreman_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, options_json_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, total_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryInfo, queue_name_),
+ 0,
+ 5,
+ 7,
+ 1,
+ 4,
+ 2,
+ 6,
+ 3,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, start_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, end_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, query_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, plan_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, foreman_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, total_fragments_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, finished_fragments_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, fragment_profile_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, user_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, error_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, verboseerror_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, error_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, error_node_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, options_json_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, planend_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, queuewaitend_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, total_cost_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, queue_name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::QueryProfile, queryid_),
+ 10,
+ 20,
+ 12,
+ 13,
+ 0,
+ 1,
+ 11,
+ 14,
+ 15,
+ 19,
+ ~0u,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 16,
+ 17,
+ 18,
+ 8,
+ 9,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, major_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, minor_fragment_profile_),
+ 0,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, error_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, minor_fragment_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, operator_profile_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, start_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, end_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, memory_used_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, max_memory_used_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, endpoint_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, last_update_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, last_progress_),
+ 2,
+ 0,
+ 3,
+ ~0u,
+ 4,
+ 5,
+ 6,
+ 7,
+ 1,
+ 8,
+ 9,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, input_profile_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, operator_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, operator_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, setup_nanos_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, process_nanos_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, peak_local_memory_allocated_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, metric_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::OperatorProfile, wait_nanos_),
+ ~0u,
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ ~0u,
+ 5,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StreamProfile, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StreamProfile, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StreamProfile, records_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StreamProfile, batches_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::StreamProfile, schemas_),
+ 0,
+ 1,
+ 2,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MetricValue, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MetricValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MetricValue, metric_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MetricValue, long_value_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::MetricValue, double_value_),
+ 2,
+ 0,
+ 1,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Registry, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Registry, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Registry, jar_),
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Jar, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Jar, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Jar, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::Jar, function_signature_),
+ 0,
+ ~0u,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SaslMessage, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SaslMessage, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SaslMessage, mechanism_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SaslMessage, data_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::exec::shared::SaslMessage, status_),
+ 0,
+ 1,
+ 2,
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 6, sizeof(::exec::shared::UserCredentials)},
+ { 7, 14, sizeof(::exec::shared::QueryId)},
+ { 16, 27, sizeof(::exec::shared::DrillPBError)},
+ { 33, 42, sizeof(::exec::shared::ExceptionWrapper)},
+ { 46, 56, sizeof(::exec::shared::StackTraceElementWrapper)},
+ { 61, 70, sizeof(::exec::shared::ParsingError)},
+ { 74, 83, sizeof(::exec::shared::RecordBatchDef)},
+ { 87, 95, sizeof(::exec::shared::NamePart)},
+ { 98, 109, sizeof(::exec::shared::SerializedField)},
+ { 115, 122, sizeof(::exec::shared::NodeStatus)},
+ { 124, 132, sizeof(::exec::shared::QueryResult)},
+ { 135, 144, sizeof(::exec::shared::QueryData)},
+ { 148, 161, sizeof(::exec::shared::QueryInfo)},
+ { 169, 196, sizeof(::exec::shared::QueryProfile)},
+ { 218, 225, sizeof(::exec::shared::MajorFragmentProfile)},
+ { 227, 243, sizeof(::exec::shared::MinorFragmentProfile)},
+ { 254, 267, sizeof(::exec::shared::OperatorProfile)},
+ { 275, 283, sizeof(::exec::shared::StreamProfile)},
+ { 286, 294, sizeof(::exec::shared::MetricValue)},
+ { 297, 303, sizeof(::exec::shared::Registry)},
+ { 304, 311, sizeof(::exec::shared::Jar)},
+ { 313, 321, sizeof(::exec::shared::SaslMessage)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_UserCredentials_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_QueryId_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_DrillPBError_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_ExceptionWrapper_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_StackTraceElementWrapper_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_ParsingError_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_RecordBatchDef_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_NamePart_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_SerializedField_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_NodeStatus_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_QueryResult_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_QueryData_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_QueryInfo_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_QueryProfile_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_MajorFragmentProfile_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_MinorFragmentProfile_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_OperatorProfile_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_StreamProfile_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_MetricValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_Registry_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_Jar_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::exec::shared::_SaslMessage_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ AssignDescriptors(
+ "UserBitShared.proto", schemas, file_default_instances, TableStruct::offsets,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 22);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\023UserBitShared.proto\022\013exec.shared\032\013Type"
+ "s.proto\032\022Coordination.proto\032\017SchemaDef.p"
+ "roto\"$\n\017UserCredentials\022\021\n\tuser_name\030\001 \001"
+ "(\t\"\'\n\007QueryId\022\r\n\005part1\030\001 \001(\020\022\r\n\005part2\030\002 "
+ "\001(\020\"\355\003\n\014DrillPBError\022\020\n\010error_id\030\001 \001(\t\022("
+ "\n\010endpoint\030\002 \001(\0132\026.exec.DrillbitEndpoint"
+ "\0227\n\nerror_type\030\003 \001(\0162#.exec.shared.Drill"
+ "PBError.ErrorType\022\017\n\007message\030\004 \001(\t\0220\n\tex"
+ "ception\030\005 \001(\0132\035.exec.shared.ExceptionWra"
+ "pper\0220\n\rparsing_error\030\006 \003(\0132\031.exec.share"
+ "d.ParsingError\"\362\001\n\tErrorType\022\016\n\nCONNECTI"
+ "ON\020\000\022\r\n\tDATA_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\014\n\010F"
+ "UNCTION\020\003\022\t\n\005PARSE\020\004\022\016\n\nPERMISSION\020\005\022\010\n\004"
+ "PLAN\020\006\022\014\n\010RESOURCE\020\007\022\n\n\006SYSTEM\020\010\022\031\n\025UNSU"
+ "PPORTED_OPERATION\020\t\022\016\n\nVALIDATION\020\n\022\023\n\017E"
+ "XECUTION_ERROR\020\013\022\022\n\016INTERNAL_ERROR\020\014\022\025\n\021"
+ "UNSPECIFIED_ERROR\020\r\"\246\001\n\020ExceptionWrapper"
+ "\022\027\n\017exception_class\030\001 \001(\t\022\017\n\007message\030\002 \001"
+ "(\t\022:\n\013stack_trace\030\003 \003(\0132%.exec.shared.St"
+ "ackTraceElementWrapper\022,\n\005cause\030\004 \001(\0132\035."
+ "exec.shared.ExceptionWrapper\"\205\001\n\030StackTr"
+ "aceElementWrapper\022\022\n\nclass_name\030\001 \001(\t\022\021\n"
+ "\tfile_name\030\002 \001(\t\022\023\n\013line_number\030\003 \001(\005\022\023\n"
+ "\013method_name\030\004 \001(\t\022\030\n\020is_native_method\030\005"
+ " \001(\010\"\\\n\014ParsingError\022\024\n\014start_column\030\002 \001"
+ "(\005\022\021\n\tstart_row\030\003 \001(\005\022\022\n\nend_column\030\004 \001("
+ "\005\022\017\n\007end_row\030\005 \001(\005\"\233\001\n\016RecordBatchDef\022\024\n"
+ "\014record_count\030\001 \001(\005\022+\n\005field\030\002 \003(\0132\034.exe"
+ "c.shared.SerializedField\022)\n!carries_two_"
+ "byte_selection_vector\030\003 \001(\010\022\033\n\023affected_"
+ "rows_count\030\004 \001(\005\"\205\001\n\010NamePart\022(\n\004type\030\001 "
+ "\001(\0162\032.exec.shared.NamePart.Type\022\014\n\004name\030"
+ "\002 \001(\t\022$\n\005child\030\003 \001(\0132\025.exec.shared.NameP"
+ "art\"\033\n\004Type\022\010\n\004NAME\020\000\022\t\n\005ARRAY\020\001\"\324\001\n\017Ser"
+ "ializedField\022%\n\nmajor_type\030\001 \001(\0132\021.commo"
+ "n.MajorType\022(\n\tname_part\030\002 \001(\0132\025.exec.sh"
+ "ared.NamePart\022+\n\005child\030\003 \003(\0132\034.exec.shar"
+ "ed.SerializedField\022\023\n\013value_count\030\004 \001(\005\022"
+ "\027\n\017var_byte_length\030\005 \001(\005\022\025\n\rbuffer_lengt"
+ "h\030\007 \001(\005\"7\n\nNodeStatus\022\017\n\007node_id\030\001 \001(\005\022\030"
+ "\n\020memory_footprint\030\002 \001(\003\"\263\002\n\013QueryResult"
+ "\0228\n\013query_state\030\001 \001(\0162#.exec.shared.Quer"
+ "yResult.QueryState\022&\n\010query_id\030\002 \001(\0132\024.e"
+ "xec.shared.QueryId\022(\n\005error\030\003 \003(\0132\031.exec"
+ ".shared.DrillPBError\"\227\001\n\nQueryState\022\014\n\010S"
+ "TARTING\020\000\022\013\n\007RUNNING\020\001\022\r\n\tCOMPLETED\020\002\022\014\n"
+ "\010CANCELED\020\003\022\n\n\006FAILED\020\004\022\032\n\026CANCELLATION_"
+ "REQUESTED\020\005\022\014\n\010ENQUEUED\020\006\022\r\n\tPREPARING\020\007"
+ "\022\014\n\010PLANNING\020\010\"\215\001\n\tQueryData\022&\n\010query_id"
+ "\030\001 \001(\0132\024.exec.shared.QueryId\022\021\n\trow_coun"
+ "t\030\002 \001(\005\022(\n\003def\030\003 \001(\0132\033.exec.shared.Recor"
+ "dBatchDef\022\033\n\023affected_rows_count\030\004 \001(\005\"\330"
+ "\001\n\tQueryInfo\022\r\n\005query\030\001 \001(\t\022\r\n\005start\030\002 \001"
+ "(\003\0222\n\005state\030\003 \001(\0162#.exec.shared.QueryRes"
+ "ult.QueryState\022\017\n\004user\030\004 \001(\t:\001-\022\'\n\007forem"
+ "an\030\005 \001(\0132\026.exec.DrillbitEndpoint\022\024\n\014opti"
+ "ons_json\030\006 \001(\t\022\022\n\ntotal_cost\030\007 \001(\001\022\025\n\nqu"
+ "eue_name\030\010 \001(\t:\001-\"\263\004\n\014QueryProfile\022 \n\002id"
+ "\030\001 \001(\0132\024.exec.shared.QueryId\022$\n\004type\030\002 \001"
+ "(\0162\026.exec.shared.QueryType\022\r\n\005start\030\003 \001("
+ "\003\022\013\n\003end\030\004 \001(\003\022\r\n\005query\030\005 \001(\t\022\014\n\004plan\030\006 "
+ "\001(\t\022\'\n\007foreman\030\007 \001(\0132\026.exec.DrillbitEndp"
+ "oint\0222\n\005state\030\010 \001(\0162#.exec.shared.QueryR"
+ "esult.QueryState\022\027\n\017total_fragments\030\t \001("
+ "\005\022\032\n\022finished_fragments\030\n \001(\005\022;\n\020fragmen"
+ "t_profile\030\013 \003(\0132!.exec.shared.MajorFragm"
+ "entProfile\022\017\n\004user\030\014 \001(\t:\001-\022\r\n\005error\030\r \001"
+ "(\t\022\024\n\014verboseError\030\016 \001(\t\022\020\n\010error_id\030\017 \001"
+ "(\t\022\022\n\nerror_node\030\020 \001(\t\022\024\n\014options_json\030\021"
+ " \001(\t\022\017\n\007planEnd\030\022 \001(\003\022\024\n\014queueWaitEnd\030\023 "
+ "\001(\003\022\022\n\ntotal_cost\030\024 \001(\001\022\025\n\nqueue_name\030\025 "
+ "\001(\t:\001-\022\017\n\007queryId\030\026 \001(\t\"t\n\024MajorFragment"
+ "Profile\022\031\n\021major_fragment_id\030\001 \001(\005\022A\n\026mi"
+ "nor_fragment_profile\030\002 \003(\0132!.exec.shared"
+ ".MinorFragmentProfile\"\350\002\n\024MinorFragmentP"
+ "rofile\022)\n\005state\030\001 \001(\0162\032.exec.shared.Frag"
+ "mentState\022(\n\005error\030\002 \001(\0132\031.exec.shared.D"
+ "rillPBError\022\031\n\021minor_fragment_id\030\003 \001(\005\0226"
+ "\n\020operator_profile\030\004 \003(\0132\034.exec.shared.O"
+ "peratorProfile\022\022\n\nstart_time\030\005 \001(\003\022\020\n\010en"
+ "d_time\030\006 \001(\003\022\023\n\013memory_used\030\007 \001(\003\022\027\n\017max"
+ "_memory_used\030\010 \001(\003\022(\n\010endpoint\030\t \001(\0132\026.e"
+ "xec.DrillbitEndpoint\022\023\n\013last_update\030\n \001("
+ "\003\022\025\n\rlast_progress\030\013 \001(\003\"\377\001\n\017OperatorPro"
+ "file\0221\n\rinput_profile\030\001 \003(\0132\032.exec.share"
+ "d.StreamProfile\022\023\n\013operator_id\030\003 \001(\005\022\025\n\r"
+ "operator_type\030\004 \001(\005\022\023\n\013setup_nanos\030\005 \001(\003"
+ "\022\025\n\rprocess_nanos\030\006 \001(\003\022#\n\033peak_local_me"
+ "mory_allocated\030\007 \001(\003\022(\n\006metric\030\010 \003(\0132\030.e"
+ "xec.shared.MetricValue\022\022\n\nwait_nanos\030\t \001"
+ "(\003\"B\n\rStreamProfile\022\017\n\007records\030\001 \001(\003\022\017\n\007"
+ "batches\030\002 \001(\003\022\017\n\007schemas\030\003 \001(\003\"J\n\013Metric"
+ "Value\022\021\n\tmetric_id\030\001 \001(\005\022\022\n\nlong_value\030\002"
+ " \001(\003\022\024\n\014double_value\030\003 \001(\001\")\n\010Registry\022\035"
+ "\n\003jar\030\001 \003(\0132\020.exec.shared.Jar\"/\n\003Jar\022\014\n\004"
+ "name\030\001 \001(\t\022\032\n\022function_signature\030\002 \003(\t\"W"
+ "\n\013SaslMessage\022\021\n\tmechanism\030\001 \001(\t\022\014\n\004data"
+ "\030\002 \001(\014\022\'\n\006status\030\003 \001(\0162\027.exec.shared.Sas"
+ "lStatus*5\n\nRpcChannel\022\017\n\013BIT_CONTROL\020\000\022\014"
+ "\n\010BIT_DATA\020\001\022\010\n\004USER\020\002*V\n\tQueryType\022\007\n\003S"
+ "QL\020\001\022\013\n\007LOGICAL\020\002\022\014\n\010PHYSICAL\020\003\022\r\n\tEXECU"
+ "TION\020\004\022\026\n\022PREPARED_STATEMENT\020\005*\207\001\n\rFragm"
+ "entState\022\013\n\007SENDING\020\000\022\027\n\023AWAITING_ALLOCA"
+ "TION\020\001\022\013\n\007RUNNING\020\002\022\014\n\010FINISHED\020\003\022\r\n\tCAN"
+ "CELLED\020\004\022\n\n\006FAILED\020\005\022\032\n\026CANCELLATION_REQ"
+ "UESTED\020\006*\351\t\n\020CoreOperatorType\022\021\n\rSINGLE_"
+ "SENDER\020\000\022\024\n\020BROADCAST_SENDER\020\001\022\n\n\006FILTER"
+ "\020\002\022\022\n\016HASH_AGGREGATE\020\003\022\r\n\tHASH_JOIN\020\004\022\016\n"
+ "\nMERGE_JOIN\020\005\022\031\n\025HASH_PARTITION_SENDER\020\006"
+ "\022\t\n\005LIMIT\020\007\022\024\n\020MERGING_RECEIVER\020\010\022\034\n\030ORD"
+ "ERED_PARTITION_SENDER\020\t\022\013\n\007PROJECT\020\n\022\026\n\022"
+ "UNORDERED_RECEIVER\020\013\022\032\n\026RANGE_PARTITION_"
+ "SENDER\020\014\022\n\n\006SCREEN\020\r\022\034\n\030SELECTION_VECTOR"
+ "_REMOVER\020\016\022\027\n\023STREAMING_AGGREGATE\020\017\022\016\n\nT"
+ "OP_N_SORT\020\020\022\021\n\rEXTERNAL_SORT\020\021\022\t\n\005TRACE\020"
+ "\022\022\t\n\005UNION\020\023\022\014\n\010OLD_SORT\020\024\022\032\n\026PARQUET_RO"
+ "W_GROUP_SCAN\020\025\022\021\n\rHIVE_SUB_SCAN\020\026\022\025\n\021SYS"
+ "TEM_TABLE_SCAN\020\027\022\021\n\rMOCK_SUB_SCAN\020\030\022\022\n\016P"
+ "ARQUET_WRITER\020\031\022\023\n\017DIRECT_SUB_SCAN\020\032\022\017\n\013"
+ "TEXT_WRITER\020\033\022\021\n\rTEXT_SUB_SCAN\020\034\022\021\n\rJSON"
+ "_SUB_SCAN\020\035\022\030\n\024INFO_SCHEMA_SUB_SCAN\020\036\022\023\n"
+ "\017COMPLEX_TO_JSON\020\037\022\025\n\021PRODUCER_CONSUMER\020"
+ " \022\022\n\016HBASE_SUB_SCAN\020!\022\n\n\006WINDOW\020\"\022\024\n\020NES"
+ "TED_LOOP_JOIN\020#\022\021\n\rAVRO_SUB_SCAN\020$\022\021\n\rPC"
+ "AP_SUB_SCAN\020%\022\022\n\016KAFKA_SUB_SCAN\020&\022\021\n\rKUD"
+ "U_SUB_SCAN\020\'\022\013\n\007FLATTEN\020(\022\020\n\014LATERAL_JOI"
+ "N\020)\022\n\n\006UNNEST\020*\022,\n(HIVE_DRILL_NATIVE_PAR"
+ "QUET_ROW_GROUP_SCAN\020+\022\r\n\tJDBC_SCAN\020,\022\022\n\016"
+ "REGEX_SUB_SCAN\020-\022\023\n\017MAPRDB_SUB_SCAN\020.\022\022\n"
+ "\016MONGO_SUB_SCAN\020/\022\017\n\013KUDU_WRITER\0200\022\026\n\022OP"
+ "EN_TSDB_SUB_SCAN\0201\022\017\n\013JSON_WRITER\0202\022\026\n\022H"
+ "TPPD_LOG_SUB_SCAN\0203\022\022\n\016IMAGE_SUB_SCAN\0204\022"
+ "\025\n\021SEQUENCE_SUB_SCAN\0205\022\023\n\017PARTITION_LIMI"
+ "T\0206\022\023\n\017PCAPNG_SUB_SCAN\0207\022\022\n\016RUNTIME_FILT"
+ "ER\0208\022\017\n\013ROWKEY_JOIN\0209\022\023\n\017SYSLOG_SUB_SCAN"
+ "\020:\022\030\n\024STATISTICS_AGGREGATE\020;\022\020\n\014UNPIVOT_"
+ "MAPS\020<\022\024\n\020STATISTICS_MERGE\020=*g\n\nSaslStat"
+ "us\022\020\n\014SASL_UNKNOWN\020\000\022\016\n\nSASL_START\020\001\022\024\n\020"
+ "SASL_IN_PROGRESS\020\002\022\020\n\014SASL_SUCCESS\020\003\022\017\n\013"
+ "SASL_FAILED\020\004B.\n\033org.apache.drill.exec.p"
+ "rotoB\rUserBitSharedH\001"
+ };
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- "\n\023UserBitShared.proto\022\013exec.shared\032\013Type"
- "s.proto\032\022Coordination.proto\032\017SchemaDef.p"
- "roto\"$\n\017UserCredentials\022\021\n\tuser_name\030\001 \001"
- "(\t\"\'\n\007QueryId\022\r\n\005part1\030\001 \001(\020\022\r\n\005part2\030\002 "
- "\001(\020\"\355\003\n\014DrillPBError\022\020\n\010error_id\030\001 \001(\t\022("
- "\n\010endpoint\030\002 \001(\0132\026.exec.DrillbitEndpoint"
- "\0227\n\nerror_type\030\003 \001(\0162#.exec.shared.Drill"
- "PBError.ErrorType\022\017\n\007message\030\004 \001(\t\0220\n\tex"
- "ception\030\005 \001(\0132\035.exec.shared.ExceptionWra"
- "pper\0220\n\rparsing_error\030\006 \003(\0132\031.exec.share"
- "d.ParsingError\"\362\001\n\tErrorType\022\016\n\nCONNECTI"
- "ON\020\000\022\r\n\tDATA_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\014\n\010F"
- "UNCTION\020\003\022\t\n\005PARSE\020\004\022\016\n\nPERMISSION\020\005\022\010\n\004"
- "PLAN\020\006\022\014\n\010RESOURCE\020\007\022\n\n\006SYSTEM\020\010\022\031\n\025UNSU"
- "PPORTED_OPERATION\020\t\022\016\n\nVALIDATION\020\n\022\023\n\017E"
- "XECUTION_ERROR\020\013\022\022\n\016INTERNAL_ERROR\020\014\022\025\n\021"
- "UNSPECIFIED_ERROR\020\r\"\246\001\n\020ExceptionWrapper"
- "\022\027\n\017exception_class\030\001 \001(\t\022\017\n\007message\030\002 \001"
- "(\t\022:\n\013stack_trace\030\003 \003(\0132%.exec.shared.St"
- "ackTraceElementWrapper\022,\n\005cause\030\004 \001(\0132\035."
- "exec.shared.ExceptionWrapper\"\205\001\n\030StackTr"
- "aceElementWrapper\022\022\n\nclass_name\030\001 \001(\t\022\021\n"
- "\tfile_name\030\002 \001(\t\022\023\n\013line_number\030\003 \001(\005\022\023\n"
- "\013method_name\030\004 \001(\t\022\030\n\020is_native_method\030\005"
- " \001(\010\"\\\n\014ParsingError\022\024\n\014start_column\030\002 \001"
- "(\005\022\021\n\tstart_row\030\003 \001(\005\022\022\n\nend_column\030\004 \001("
- "\005\022\017\n\007end_row\030\005 \001(\005\"\233\001\n\016RecordBatchDef\022\024\n"
- "\014record_count\030\001 \001(\005\022+\n\005field\030\002 \003(\0132\034.exe"
- "c.shared.SerializedField\022)\n!carries_two_"
- "byte_selection_vector\030\003 \001(\010\022\033\n\023affected_"
- "rows_count\030\004 \001(\005\"\205\001\n\010NamePart\022(\n\004type\030\001 "
- "\001(\0162\032.exec.shared.NamePart.Type\022\014\n\004name\030"
- "\002 \001(\t\022$\n\005child\030\003 \001(\0132\025.exec.shared.NameP"
- "art\"\033\n\004Type\022\010\n\004NAME\020\000\022\t\n\005ARRAY\020\001\"\324\001\n\017Ser"
- "ializedField\022%\n\nmajor_type\030\001 \001(\0132\021.commo"
- "n.MajorType\022(\n\tname_part\030\002 \001(\0132\025.exec.sh"
- "ared.NamePart\022+\n\005child\030\003 \003(\0132\034.exec.shar"
- "ed.SerializedField\022\023\n\013value_count\030\004 \001(\005\022"
- "\027\n\017var_byte_length\030\005 \001(\005\022\025\n\rbuffer_lengt"
- "h\030\007 \001(\005\"7\n\nNodeStatus\022\017\n\007node_id\030\001 \001(\005\022\030"
- "\n\020memory_footprint\030\002 \001(\003\"\263\002\n\013QueryResult"
- "\0228\n\013query_state\030\001 \001(\0162#.exec.shared.Quer"
- "yResult.QueryState\022&\n\010query_id\030\002 \001(\0132\024.e"
- "xec.shared.QueryId\022(\n\005error\030\003 \003(\0132\031.exec"
- ".shared.DrillPBError\"\227\001\n\nQueryState\022\014\n\010S"
- "TARTING\020\000\022\013\n\007RUNNING\020\001\022\r\n\tCOMPLETED\020\002\022\014\n"
- "\010CANCELED\020\003\022\n\n\006FAILED\020\004\022\032\n\026CANCELLATION_"
- "REQUESTED\020\005\022\014\n\010ENQUEUED\020\006\022\r\n\tPREPARING\020\007"
- "\022\014\n\010PLANNING\020\010\"\215\001\n\tQueryData\022&\n\010query_id"
- "\030\001 \001(\0132\024.exec.shared.QueryId\022\021\n\trow_coun"
- "t\030\002 \001(\005\022(\n\003def\030\003 \001(\0132\033.exec.shared.Recor"
- "dBatchDef\022\033\n\023affected_rows_count\030\004 \001(\005\"\330"
- "\001\n\tQueryInfo\022\r\n\005query\030\001 \001(\t\022\r\n\005start\030\002 \001"
- "(\003\0222\n\005state\030\003 \001(\0162#.exec.shared.QueryRes"
- "ult.QueryState\022\017\n\004user\030\004 \001(\t:\001-\022\'\n\007forem"
- "an\030\005 \001(\0132\026.exec.DrillbitEndpoint\022\024\n\014opti"
- "ons_json\030\006 \001(\t\022\022\n\ntotal_cost\030\007 \001(\001\022\025\n\nqu"
- "eue_name\030\010 \001(\t:\001-\"\263\004\n\014QueryProfile\022 \n\002id"
- "\030\001 \001(\0132\024.exec.shared.QueryId\022$\n\004type\030\002 \001"
- "(\0162\026.exec.shared.QueryType\022\r\n\005start\030\003 \001("
- "\003\022\013\n\003end\030\004 \001(\003\022\r\n\005query\030\005 \001(\t\022\014\n\004plan\030\006 "
- "\001(\t\022\'\n\007foreman\030\007 \001(\0132\026.exec.DrillbitEndp"
- "oint\0222\n\005state\030\010 \001(\0162#.exec.shared.QueryR"
- "esult.QueryState\022\027\n\017total_fragments\030\t \001("
- "\005\022\032\n\022finished_fragments\030\n \001(\005\022;\n\020fragmen"
- "t_profile\030\013 \003(\0132!.exec.shared.MajorFragm"
- "entProfile\022\017\n\004user\030\014 \001(\t:\001-\022\r\n\005error\030\r \001"
- "(\t\022\024\n\014verboseError\030\016 \001(\t\022\020\n\010error_id\030\017 \001"
- "(\t\022\022\n\nerror_node\030\020 \001(\t\022\024\n\014options_json\030\021"
- " \001(\t\022\017\n\007planEnd\030\022 \001(\003\022\024\n\014queueWaitEnd\030\023 "
- "\001(\003\022\022\n\ntotal_cost\030\024 \001(\001\022\025\n\nqueue_name\030\025 "
- "\001(\t:\001-\022\017\n\007queryId\030\026 \001(\t\"t\n\024MajorFragment"
- "Profile\022\031\n\021major_fragment_id\030\001 \001(\005\022A\n\026mi"
- "nor_fragment_profile\030\002 \003(\0132!.exec.shared"
- ".MinorFragmentProfile\"\350\002\n\024MinorFragmentP"
- "rofile\022)\n\005state\030\001 \001(\0162\032.exec.shared.Frag"
- "mentState\022(\n\005error\030\002 \001(\0132\031.exec.shared.D"
- "rillPBError\022\031\n\021minor_fragment_id\030\003 \001(\005\0226"
- "\n\020operator_profile\030\004 \003(\0132\034.exec.shared.O"
- "peratorProfile\022\022\n\nstart_time\030\005 \001(\003\022\020\n\010en"
- "d_time\030\006 \001(\003\022\023\n\013memory_used\030\007 \001(\003\022\027\n\017max"
- "_memory_used\030\010 \001(\003\022(\n\010endpoint\030\t \001(\0132\026.e"
- "xec.DrillbitEndpoint\022\023\n\013last_update\030\n \001("
- "\003\022\025\n\rlast_progress\030\013 \001(\003\"\377\001\n\017OperatorPro"
- "file\0221\n\rinput_profile\030\001 \003(\0132\032.exec.share"
- "d.StreamProfile\022\023\n\013operator_id\030\003 \001(\005\022\025\n\r"
- "operator_type\030\004 \001(\005\022\023\n\013setup_nanos\030\005 \001(\003"
- "\022\025\n\rprocess_nanos\030\006 \001(\003\022#\n\033peak_local_me"
- "mory_allocated\030\007 \001(\003\022(\n\006metric\030\010 \003(\0132\030.e"
- "xec.shared.MetricValue\022\022\n\nwait_nanos\030\t \001"
- "(\003\"B\n\rStreamProfile\022\017\n\007records\030\001 \001(\003\022\017\n\007"
- "batches\030\002 \001(\003\022\017\n\007schemas\030\003 \001(\003\"J\n\013Metric"
- "Value\022\021\n\tmetric_id\030\001 \001(\005\022\022\n\nlong_value\030\002"
- " \001(\003\022\024\n\014double_value\030\003 \001(\001\")\n\010Registry\022\035"
- "\n\003jar\030\001 \003(\0132\020.exec.shared.Jar\"/\n\003Jar\022\014\n\004"
- "name\030\001 \001(\t\022\032\n\022function_signature\030\002 \003(\t\"W"
- "\n\013SaslMessage\022\021\n\tmechanism\030\001 \001(\t\022\014\n\004data"
- "\030\002 \001(\014\022\'\n\006status\030\003 \001(\0162\027.exec.shared.Sas"
- "lStatus*5\n\nRpcChannel\022\017\n\013BIT_CONTROL\020\000\022\014"
- "\n\010BIT_DATA\020\001\022\010\n\004USER\020\002*V\n\tQueryType\022\007\n\003S"
- "QL\020\001\022\013\n\007LOGICAL\020\002\022\014\n\010PHYSICAL\020\003\022\r\n\tEXECU"
- "TION\020\004\022\026\n\022PREPARED_STATEMENT\020\005*\207\001\n\rFragm"
- "entState\022\013\n\007SENDING\020\000\022\027\n\023AWAITING_ALLOCA"
- "TION\020\001\022\013\n\007RUNNING\020\002\022\014\n\010FINISHED\020\003\022\r\n\tCAN"
- "CELLED\020\004\022\n\n\006FAILED\020\005\022\032\n\026CANCELLATION_REQ"
- "UESTED\020\006*\351\t\n\020CoreOperatorType\022\021\n\rSINGLE_"
- "SENDER\020\000\022\024\n\020BROADCAST_SENDER\020\001\022\n\n\006FILTER"
- "\020\002\022\022\n\016HASH_AGGREGATE\020\003\022\r\n\tHASH_JOIN\020\004\022\016\n"
- "\nMERGE_JOIN\020\005\022\031\n\025HASH_PARTITION_SENDER\020\006"
- "\022\t\n\005LIMIT\020\007\022\024\n\020MERGING_RECEIVER\020\010\022\034\n\030ORD"
- "ERED_PARTITION_SENDER\020\t\022\013\n\007PROJECT\020\n\022\026\n\022"
- "UNORDERED_RECEIVER\020\013\022\032\n\026RANGE_PARTITION_"
- "SENDER\020\014\022\n\n\006SCREEN\020\r\022\034\n\030SELECTION_VECTOR"
- "_REMOVER\020\016\022\027\n\023STREAMING_AGGREGATE\020\017\022\016\n\nT"
- "OP_N_SORT\020\020\022\021\n\rEXTERNAL_SORT\020\021\022\t\n\005TRACE\020"
- "\022\022\t\n\005UNION\020\023\022\014\n\010OLD_SORT\020\024\022\032\n\026PARQUET_RO"
- "W_GROUP_SCAN\020\025\022\021\n\rHIVE_SUB_SCAN\020\026\022\025\n\021SYS"
- "TEM_TABLE_SCAN\020\027\022\021\n\rMOCK_SUB_SCAN\020\030\022\022\n\016P"
- "ARQUET_WRITER\020\031\022\023\n\017DIRECT_SUB_SCAN\020\032\022\017\n\013"
- "TEXT_WRITER\020\033\022\021\n\rTEXT_SUB_SCAN\020\034\022\021\n\rJSON"
- "_SUB_SCAN\020\035\022\030\n\024INFO_SCHEMA_SUB_SCAN\020\036\022\023\n"
- "\017COMPLEX_TO_JSON\020\037\022\025\n\021PRODUCER_CONSUMER\020"
- " \022\022\n\016HBASE_SUB_SCAN\020!\022\n\n\006WINDOW\020\"\022\024\n\020NES"
- "TED_LOOP_JOIN\020#\022\021\n\rAVRO_SUB_SCAN\020$\022\021\n\rPC"
- "AP_SUB_SCAN\020%\022\022\n\016KAFKA_SUB_SCAN\020&\022\021\n\rKUD"
- "U_SUB_SCAN\020\'\022\013\n\007FLATTEN\020(\022\020\n\014LATERAL_JOI"
- "N\020)\022\n\n\006UNNEST\020*\022,\n(HIVE_DRILL_NATIVE_PAR"
- "QUET_ROW_GROUP_SCAN\020+\022\r\n\tJDBC_SCAN\020,\022\022\n\016"
- "REGEX_SUB_SCAN\020-\022\023\n\017MAPRDB_SUB_SCAN\020.\022\022\n"
- "\016MONGO_SUB_SCAN\020/\022\017\n\013KUDU_WRITER\0200\022\026\n\022OP"
- "EN_TSDB_SUB_SCAN\0201\022\017\n\013JSON_WRITER\0202\022\026\n\022H"
- "TPPD_LOG_SUB_SCAN\0203\022\022\n\016IMAGE_SUB_SCAN\0204\022"
- "\025\n\021SEQUENCE_SUB_SCAN\0205\022\023\n\017PARTITION_LIMI"
- "T\0206\022\023\n\017PCAPNG_SUB_SCAN\0207\022\022\n\016RUNTIME_FILT"
- "ER\0208\022\017\n\013ROWKEY_JOIN\0209\022\023\n\017SYSLOG_SUB_SCAN"
- "\020:\022\030\n\024STATISTICS_AGGREGATE\020;\022\020\n\014UNPIVOT_"
- "MAPS\020<\022\024\n\020STATISTICS_MERGE\020=*g\n\nSaslStat"
- "us\022\020\n\014SASL_UNKNOWN\020\000\022\016\n\nSASL_START\020\001\022\024\n\020"
- "SASL_IN_PROGRESS\020\002\022\020\n\014SASL_SUCCESS\020\003\022\017\n\013"
- "SASL_FAILED\020\004B.\n\033org.apache.drill.exec.p"
- "rotoB\rUserBitSharedH\001", 5621);
+ descriptor, 5621);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"UserBitShared.proto", &protobuf_RegisterTypes);
- UserCredentials::default_instance_ = new UserCredentials();
- QueryId::default_instance_ = new QueryId();
- DrillPBError::default_instance_ = new DrillPBError();
- ExceptionWrapper::default_instance_ = new ExceptionWrapper();
- StackTraceElementWrapper::default_instance_ = new StackTraceElementWrapper();
- ParsingError::default_instance_ = new ParsingError();
- RecordBatchDef::default_instance_ = new RecordBatchDef();
- NamePart::default_instance_ = new NamePart();
- SerializedField::default_instance_ = new SerializedField();
- NodeStatus::default_instance_ = new NodeStatus();
- QueryResult::default_instance_ = new QueryResult();
- QueryData::default_instance_ = new QueryData();
- QueryInfo::_default_user_ =
- new ::std::string("-", 1);
- QueryInfo::_default_queue_name_ =
- new ::std::string("-", 1);
- QueryInfo::default_instance_ = new QueryInfo();
- QueryProfile::_default_user_ =
- new ::std::string("-", 1);
- QueryProfile::_default_queue_name_ =
- new ::std::string("-", 1);
- QueryProfile::default_instance_ = new QueryProfile();
- MajorFragmentProfile::default_instance_ = new MajorFragmentProfile();
- MinorFragmentProfile::default_instance_ = new MinorFragmentProfile();
- OperatorProfile::default_instance_ = new OperatorProfile();
- StreamProfile::default_instance_ = new StreamProfile();
- MetricValue::default_instance_ = new MetricValue();
- Registry::default_instance_ = new Registry();
- Jar::default_instance_ = new Jar();
- SaslMessage::default_instance_ = new SaslMessage();
- UserCredentials::default_instance_->InitAsDefaultInstance();
- QueryId::default_instance_->InitAsDefaultInstance();
- DrillPBError::default_instance_->InitAsDefaultInstance();
- ExceptionWrapper::default_instance_->InitAsDefaultInstance();
- StackTraceElementWrapper::default_instance_->InitAsDefaultInstance();
- ParsingError::default_instance_->InitAsDefaultInstance();
- RecordBatchDef::default_instance_->InitAsDefaultInstance();
- NamePart::default_instance_->InitAsDefaultInstance();
- SerializedField::default_instance_->InitAsDefaultInstance();
- NodeStatus::default_instance_->InitAsDefaultInstance();
- QueryResult::default_instance_->InitAsDefaultInstance();
- QueryData::default_instance_->InitAsDefaultInstance();
- QueryInfo::default_instance_->InitAsDefaultInstance();
- QueryProfile::default_instance_->InitAsDefaultInstance();
- MajorFragmentProfile::default_instance_->InitAsDefaultInstance();
- MinorFragmentProfile::default_instance_->InitAsDefaultInstance();
- OperatorProfile::default_instance_->InitAsDefaultInstance();
- StreamProfile::default_instance_->InitAsDefaultInstance();
- MetricValue::default_instance_->InitAsDefaultInstance();
- Registry::default_instance_->InitAsDefaultInstance();
- Jar::default_instance_->InitAsDefaultInstance();
- SaslMessage::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_UserBitShared_2eproto);
-}
-
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer_UserBitShared_2eproto {
- StaticDescriptorInitializer_UserBitShared_2eproto() {
- protobuf_AddDesc_UserBitShared_2eproto();
- }
-} static_descriptor_initializer_UserBitShared_2eproto_;
+ ::protobuf_Types_2eproto::AddDescriptors();
+ ::protobuf_Coordination_2eproto::AddDescriptors();
+ ::protobuf_SchemaDef_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static ::google::protobuf::internal::once_flag once;
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_UserBitShared_2eproto
+namespace exec {
+namespace shared {
+const ::google::protobuf::EnumDescriptor* DrillPBError_ErrorType_descriptor() {
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[0];
+}
+bool DrillPBError_ErrorType_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const DrillPBError_ErrorType DrillPBError::CONNECTION;
+const DrillPBError_ErrorType DrillPBError::DATA_READ;
+const DrillPBError_ErrorType DrillPBError::DATA_WRITE;
+const DrillPBError_ErrorType DrillPBError::FUNCTION;
+const DrillPBError_ErrorType DrillPBError::PARSE;
+const DrillPBError_ErrorType DrillPBError::PERMISSION;
+const DrillPBError_ErrorType DrillPBError::PLAN;
+const DrillPBError_ErrorType DrillPBError::RESOURCE;
+const DrillPBError_ErrorType DrillPBError::SYSTEM;
+const DrillPBError_ErrorType DrillPBError::UNSUPPORTED_OPERATION;
+const DrillPBError_ErrorType DrillPBError::VALIDATION;
+const DrillPBError_ErrorType DrillPBError::EXECUTION_ERROR;
+const DrillPBError_ErrorType DrillPBError::INTERNAL_ERROR;
+const DrillPBError_ErrorType DrillPBError::UNSPECIFIED_ERROR;
+const DrillPBError_ErrorType DrillPBError::ErrorType_MIN;
+const DrillPBError_ErrorType DrillPBError::ErrorType_MAX;
+const int DrillPBError::ErrorType_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* NamePart_Type_descriptor() {
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[1];
+}
+bool NamePart_Type_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const NamePart_Type NamePart::NAME;
+const NamePart_Type NamePart::ARRAY;
+const NamePart_Type NamePart::Type_MIN;
+const NamePart_Type NamePart::Type_MAX;
+const int NamePart::Type_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* QueryResult_QueryState_descriptor() {
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[2];
+}
+bool QueryResult_QueryState_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const QueryResult_QueryState QueryResult::STARTING;
+const QueryResult_QueryState QueryResult::RUNNING;
+const QueryResult_QueryState QueryResult::COMPLETED;
+const QueryResult_QueryState QueryResult::CANCELED;
+const QueryResult_QueryState QueryResult::FAILED;
+const QueryResult_QueryState QueryResult::CANCELLATION_REQUESTED;
+const QueryResult_QueryState QueryResult::ENQUEUED;
+const QueryResult_QueryState QueryResult::PREPARING;
+const QueryResult_QueryState QueryResult::PLANNING;
+const QueryResult_QueryState QueryResult::QueryState_MIN;
+const QueryResult_QueryState QueryResult::QueryState_MAX;
+const int QueryResult::QueryState_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
const ::google::protobuf::EnumDescriptor* RpcChannel_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RpcChannel_descriptor_;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[3];
}
bool RpcChannel_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -869,11 +1208,11 @@ bool RpcChannel_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* QueryType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryType_descriptor_;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[4];
}
bool QueryType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 1:
case 2:
case 3:
@@ -886,11 +1225,11 @@ bool QueryType_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* FragmentState_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return FragmentState_descriptor_;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[5];
}
bool FragmentState_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -905,11 +1244,11 @@ bool FragmentState_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* CoreOperatorType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return CoreOperatorType_descriptor_;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[6];
}
bool CoreOperatorType_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -979,11 +1318,11 @@ bool CoreOperatorType_IsValid(int value) {
}
const ::google::protobuf::EnumDescriptor* SaslStatus_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SaslStatus_descriptor_;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_UserBitShared_2eproto::file_level_enum_descriptors[7];
}
bool SaslStatus_IsValid(int value) {
- switch(value) {
+ switch (value) {
case 0:
case 1:
case 2:
@@ -998,390 +1337,443 @@ bool SaslStatus_IsValid(int value) {
// ===================================================================
-#ifndef _MSC_VER
+void UserCredentials::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int UserCredentials::kUserNameFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
UserCredentials::UserCredentials()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_UserCredentials.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.UserCredentials)
}
-
-void UserCredentials::InitAsDefaultInstance() {
-}
-
UserCredentials::UserCredentials(const UserCredentials& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ user_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_user_name()) {
+ user_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_name_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.shared.UserCredentials)
}
void UserCredentials::SharedCtor() {
- _cached_size_ = 0;
- user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ user_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
UserCredentials::~UserCredentials() {
+ // @@protoc_insertion_point(destructor:exec.shared.UserCredentials)
SharedDtor();
}
void UserCredentials::SharedDtor() {
- if (user_name_ != &::google::protobuf::internal::kEmptyString) {
- delete user_name_;
- }
- if (this != default_instance_) {
- }
+ user_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void UserCredentials::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* UserCredentials::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return UserCredentials_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const UserCredentials& UserCredentials::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_UserCredentials.base);
+ return *internal_default_instance();
}
-UserCredentials* UserCredentials::default_instance_ = NULL;
-
-UserCredentials* UserCredentials::New() const {
- return new UserCredentials;
-}
void UserCredentials::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_user_name()) {
- if (user_name_ != &::google::protobuf::internal::kEmptyString) {
- user_name_->clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.UserCredentials)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ user_name_.ClearNonDefaultToEmptyNoArena();
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool UserCredentials::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.UserCredentials)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string user_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_user_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user_name().data(), this->user_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user_name().data(), static_cast<int>(this->user_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.UserCredentials.user_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.UserCredentials)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.UserCredentials)
+ return false;
#undef DO_
}
void UserCredentials::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.UserCredentials)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string user_name = 1;
- if (has_user_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user_name().data(), this->user_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user_name().data(), static_cast<int>(this->user_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.UserCredentials.user_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->user_name(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.UserCredentials)
}
-::google::protobuf::uint8* UserCredentials::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* UserCredentials::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.UserCredentials)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string user_name = 1;
- if (has_user_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user_name().data(), this->user_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user_name().data(), static_cast<int>(this->user_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.UserCredentials.user_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->user_name(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.UserCredentials)
return target;
}
-int UserCredentials::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional string user_name = 1;
- if (has_user_name()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->user_name());
- }
+size_t UserCredentials::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.UserCredentials)
+ size_t total_size = 0;
- }
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
+ }
+ // optional string user_name = 1;
+ if (has_user_name()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->user_name());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void UserCredentials::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.UserCredentials)
+ GOOGLE_DCHECK_NE(&from, this);
const UserCredentials* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const UserCredentials*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const UserCredentials>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.UserCredentials)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.UserCredentials)
MergeFrom(*source);
}
}
void UserCredentials::MergeFrom(const UserCredentials& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_user_name()) {
- set_user_name(from.user_name());
- }
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.UserCredentials)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_user_name()) {
+ set_has_user_name();
+ user_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_name_);
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void UserCredentials::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.UserCredentials)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void UserCredentials::CopyFrom(const UserCredentials& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.UserCredentials)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool UserCredentials::IsInitialized() const {
-
return true;
}
void UserCredentials::Swap(UserCredentials* other) {
- if (other != this) {
- std::swap(user_name_, other->user_name_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void UserCredentials::InternalSwap(UserCredentials* other) {
+ using std::swap;
+ user_name_.Swap(&other->user_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata UserCredentials::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = UserCredentials_descriptor_;
- metadata.reflection = UserCredentials_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void QueryId::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryId::kPart1FieldNumber;
const int QueryId::kPart2FieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryId::QueryId()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_QueryId.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.QueryId)
}
-
-void QueryId::InitAsDefaultInstance() {
-}
-
QueryId::QueryId(const QueryId& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&part1_, &from.part1_,
+ static_cast<size_t>(reinterpret_cast<char*>(&part2_) -
+ reinterpret_cast<char*>(&part1_)) + sizeof(part2_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.QueryId)
}
void QueryId::SharedCtor() {
- _cached_size_ = 0;
- part1_ = GOOGLE_LONGLONG(0);
- part2_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&part1_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&part2_) -
+ reinterpret_cast<char*>(&part1_)) + sizeof(part2_));
}
QueryId::~QueryId() {
+ // @@protoc_insertion_point(destructor:exec.shared.QueryId)
SharedDtor();
}
void QueryId::SharedDtor() {
- if (this != default_instance_) {
- }
}
void QueryId::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryId::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryId_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryId& QueryId::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_QueryId.base);
+ return *internal_default_instance();
}
-QueryId* QueryId::default_instance_ = NULL;
-
-QueryId* QueryId::New() const {
- return new QueryId;
-}
void QueryId::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- part1_ = GOOGLE_LONGLONG(0);
- part2_ = GOOGLE_LONGLONG(0);
+// @@protoc_insertion_point(message_clear_start:exec.shared.QueryId)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ ::memset(&part1_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&part2_) -
+ reinterpret_cast<char*>(&part1_)) + sizeof(part2_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryId::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.QueryId)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional sfixed64 part1 = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
+ set_has_part1();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
input, &part1_)));
- set_has_part1();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(17)) goto parse_part2;
break;
}
// optional sfixed64 part2 = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
- parse_part2:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
+ set_has_part2();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
input, &part2_)));
- set_has_part2();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.QueryId)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.QueryId)
+ return false;
#undef DO_
}
void QueryId::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.QueryId)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional sfixed64 part1 = 1;
- if (has_part1()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteSFixed64(1, this->part1(), output);
}
// optional sfixed64 part2 = 2;
- if (has_part2()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteSFixed64(2, this->part2(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.QueryId)
}
-::google::protobuf::uint8* QueryId::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryId::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryId)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional sfixed64 part1 = 1;
- if (has_part1()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(1, this->part1(), target);
}
// optional sfixed64 part2 = 2;
- if (has_part2()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(2, this->part2(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.QueryId)
return target;
}
-int QueryId::ByteSize() const {
- int total_size = 0;
+size_t QueryId::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryId)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional sfixed64 part1 = 1;
if (has_part1()) {
total_size += 1 + 8;
@@ -1393,264 +1785,242 @@ int QueryId::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryId::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryId)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryId* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryId*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryId>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryId)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryId)
MergeFrom(*source);
}
}
void QueryId::MergeFrom(const QueryId& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_part1()) {
- set_part1(from.part1());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryId)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ part1_ = from.part1_;
}
- if (from.has_part2()) {
- set_part2(from.part2());
+ if (cached_has_bits & 0x00000002u) {
+ part2_ = from.part2_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryId::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryId::CopyFrom(const QueryId& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryId::IsInitialized() const {
-
return true;
}
void QueryId::Swap(QueryId* other) {
- if (other != this) {
- std::swap(part1_, other->part1_);
- std::swap(part2_, other->part2_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryId::InternalSwap(QueryId* other) {
+ using std::swap;
+ swap(part1_, other->part1_);
+ swap(part2_, other->part2_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryId::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryId_descriptor_;
- metadata.reflection = QueryId_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-const ::google::protobuf::EnumDescriptor* DrillPBError_ErrorType_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DrillPBError_ErrorType_descriptor_;
+void DrillPBError::InitAsDefaultInstance() {
+ ::exec::shared::_DrillPBError_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+ ::exec::shared::_DrillPBError_default_instance_._instance.get_mutable()->exception_ = const_cast< ::exec::shared::ExceptionWrapper*>(
+ ::exec::shared::ExceptionWrapper::internal_default_instance());
}
-bool DrillPBError_ErrorType_IsValid(int value) {
- switch(value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- return true;
- default:
- return false;
- }
+void DrillPBError::clear_endpoint() {
+ if (endpoint_ != NULL) endpoint_->Clear();
+ clear_has_endpoint();
}
-
-#ifndef _MSC_VER
-const DrillPBError_ErrorType DrillPBError::CONNECTION;
-const DrillPBError_ErrorType DrillPBError::DATA_READ;
-const DrillPBError_ErrorType DrillPBError::DATA_WRITE;
-const DrillPBError_ErrorType DrillPBError::FUNCTION;
-const DrillPBError_ErrorType DrillPBError::PARSE;
-const DrillPBError_ErrorType DrillPBError::PERMISSION;
-const DrillPBError_ErrorType DrillPBError::PLAN;
-const DrillPBError_ErrorType DrillPBError::RESOURCE;
-const DrillPBError_ErrorType DrillPBError::SYSTEM;
-const DrillPBError_ErrorType DrillPBError::UNSUPPORTED_OPERATION;
-const DrillPBError_ErrorType DrillPBError::VALIDATION;
-const DrillPBError_ErrorType DrillPBError::EXECUTION_ERROR;
-const DrillPBError_ErrorType DrillPBError::INTERNAL_ERROR;
-const DrillPBError_ErrorType DrillPBError::UNSPECIFIED_ERROR;
-const DrillPBError_ErrorType DrillPBError::ErrorType_MIN;
-const DrillPBError_ErrorType DrillPBError::ErrorType_MAX;
-const int DrillPBError::ErrorType_ARRAYSIZE;
-#endif // _MSC_VER
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DrillPBError::kErrorIdFieldNumber;
const int DrillPBError::kEndpointFieldNumber;
const int DrillPBError::kErrorTypeFieldNumber;
const int DrillPBError::kMessageFieldNumber;
const int DrillPBError::kExceptionFieldNumber;
const int DrillPBError::kParsingErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DrillPBError::DrillPBError()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.DrillPBError)
}
-
-void DrillPBError::InitAsDefaultInstance() {
- endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
- exception_ = const_cast< ::exec::shared::ExceptionWrapper*>(&::exec::shared::ExceptionWrapper::default_instance());
-}
-
DrillPBError::DrillPBError(const DrillPBError& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ parsing_error_(from.parsing_error_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ error_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_error_id()) {
+ error_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_id_);
+ }
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_message()) {
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ }
+ if (from.has_endpoint()) {
+ endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
+ } else {
+ endpoint_ = NULL;
+ }
+ if (from.has_exception()) {
+ exception_ = new ::exec::shared::ExceptionWrapper(*from.exception_);
+ } else {
+ exception_ = NULL;
+ }
+ error_type_ = from.error_type_;
+ // @@protoc_insertion_point(copy_constructor:exec.shared.DrillPBError)
}
void DrillPBError::SharedCtor() {
- _cached_size_ = 0;
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- endpoint_ = NULL;
- error_type_ = 0;
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- exception_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ error_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&endpoint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&error_type_) -
+ reinterpret_cast<char*>(&endpoint_)) + sizeof(error_type_));
}
DrillPBError::~DrillPBError() {
+ // @@protoc_insertion_point(destructor:exec.shared.DrillPBError)
SharedDtor();
}
void DrillPBError::SharedDtor() {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- delete error_id_;
- }
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (this != default_instance_) {
- delete endpoint_;
- delete exception_;
- }
+ error_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete endpoint_;
+ if (this != internal_default_instance()) delete exception_;
}
void DrillPBError::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* DrillPBError::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return DrillPBError_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const DrillPBError& DrillPBError::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_DrillPBError.base);
+ return *internal_default_instance();
}
-DrillPBError* DrillPBError::default_instance_ = NULL;
-
-DrillPBError* DrillPBError::New() const {
- return new DrillPBError;
-}
void DrillPBError::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_error_id()) {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- error_id_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.DrillPBError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parsing_error_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ error_id_.ClearNonDefaultToEmptyNoArena();
}
- if (has_endpoint()) {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ message_.ClearNonDefaultToEmptyNoArena();
}
- error_type_ = 0;
- if (has_message()) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(endpoint_ != NULL);
+ endpoint_->Clear();
}
- if (has_exception()) {
- if (exception_ != NULL) exception_->::exec::shared::ExceptionWrapper::Clear();
+ if (cached_has_bits & 0x00000008u) {
+ GOOGLE_DCHECK(exception_ != NULL);
+ exception_->Clear();
}
}
- parsing_error_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ error_type_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool DrillPBError::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.DrillPBError)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string error_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_error_id()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.DrillPBError.error_id");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_endpoint;
break;
}
// optional .exec.DrillbitEndpoint endpoint = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_endpoint:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_endpoint()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_error_type;
break;
}
// optional .exec.shared.DrillPBError.ErrorType error_type = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_error_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -1658,187 +2028,223 @@ bool DrillPBError::MergePartialFromCodedStream(
if (::exec::shared::DrillPBError_ErrorType_IsValid(value)) {
set_error_type(static_cast< ::exec::shared::DrillPBError_ErrorType >(value));
} else {
- mutable_unknown_fields()->AddVarint(3, value);
+ mutable_unknown_fields()->AddVarint(
+ 3, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_message;
break;
}
// optional string message = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_message:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_message()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.DrillPBError.message");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_exception;
break;
}
// optional .exec.shared.ExceptionWrapper exception = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_exception:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_exception()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_parsing_error;
break;
}
// repeated .exec.shared.ParsingError parsing_error = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_parsing_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_parsing_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_parsing_error;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.DrillPBError)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.DrillPBError)
+ return false;
#undef DO_
}
void DrillPBError::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.DrillPBError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string error_id = 1;
- if (has_error_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.DrillPBError.error_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->error_id(), output);
}
// optional .exec.DrillbitEndpoint endpoint = 2;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->endpoint(), output);
+ 2, this->_internal_endpoint(), output);
}
// optional .exec.shared.DrillPBError.ErrorType error_type = 3;
- if (has_error_type()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->error_type(), output);
}
// optional string message = 4;
- if (has_message()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.DrillPBError.message");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->message(), output);
}
// optional .exec.shared.ExceptionWrapper exception = 5;
- if (has_exception()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->exception(), output);
+ 5, this->_internal_exception(), output);
}
// repeated .exec.shared.ParsingError parsing_error = 6;
- for (int i = 0; i < this->parsing_error_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->parsing_error_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->parsing_error(i), output);
+ 6,
+ this->parsing_error(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.DrillPBError)
}
-::google::protobuf::uint8* DrillPBError::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* DrillPBError::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.DrillPBError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string error_id = 1;
- if (has_error_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.DrillPBError.error_id");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->error_id(), target);
}
// optional .exec.DrillbitEndpoint endpoint = 2;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->endpoint(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_endpoint(), deterministic, target);
}
// optional .exec.shared.DrillPBError.ErrorType error_type = 3;
- if (has_error_type()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->error_type(), target);
}
// optional string message = 4;
- if (has_message()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.DrillPBError.message");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->message(), target);
}
// optional .exec.shared.ExceptionWrapper exception = 5;
- if (has_exception()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->exception(), target);
+ InternalWriteMessageToArray(
+ 5, this->_internal_exception(), deterministic, target);
}
// repeated .exec.shared.ParsingError parsing_error = 6;
- for (int i = 0; i < this->parsing_error_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->parsing_error_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 6, this->parsing_error(i), target);
+ InternalWriteMessageToArray(
+ 6, this->parsing_error(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.DrillPBError)
return target;
}
-int DrillPBError::ByteSize() const {
- int total_size = 0;
+size_t DrillPBError::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.DrillPBError)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.ParsingError parsing_error = 6;
+ {
+ unsigned int count = static_cast<unsigned int>(this->parsing_error_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->parsing_error(static_cast<int>(i)));
+ }
+ }
+
+ if (_has_bits_[0 / 32] & 31u) {
// optional string error_id = 1;
if (has_error_id()) {
total_size += 1 +
@@ -1846,19 +2252,6 @@ int DrillPBError::ByteSize() const {
this->error_id());
}
- // optional .exec.DrillbitEndpoint endpoint = 2;
- if (has_endpoint()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->endpoint());
- }
-
- // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
- if (has_error_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_type());
- }
-
// optional string message = 4;
if (has_message()) {
total_size += 1 +
@@ -1866,367 +2259,426 @@ int DrillPBError::ByteSize() const {
this->message());
}
+ // optional .exec.DrillbitEndpoint endpoint = 2;
+ if (has_endpoint()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *endpoint_);
+ }
+
// optional .exec.shared.ExceptionWrapper exception = 5;
if (has_exception()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->exception());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *exception_);
}
- }
- // repeated .exec.shared.ParsingError parsing_error = 6;
- total_size += 1 * this->parsing_error_size();
- for (int i = 0; i < this->parsing_error_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->parsing_error(i));
- }
+ // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
+ if (has_error_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_type());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void DrillPBError::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.DrillPBError)
+ GOOGLE_DCHECK_NE(&from, this);
const DrillPBError* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const DrillPBError*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const DrillPBError>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.DrillPBError)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.DrillPBError)
MergeFrom(*source);
}
}
void DrillPBError::MergeFrom(const DrillPBError& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.DrillPBError)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
parsing_error_.MergeFrom(from.parsing_error_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_error_id()) {
- set_error_id(from.error_id());
- }
- if (from.has_endpoint()) {
- mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_error_id();
+ error_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_id_);
}
- if (from.has_error_type()) {
- set_error_type(from.error_type());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_message();
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
}
- if (from.has_message()) {
- set_message(from.message());
+ if (cached_has_bits & 0x00000004u) {
+ mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
}
- if (from.has_exception()) {
+ if (cached_has_bits & 0x00000008u) {
mutable_exception()->::exec::shared::ExceptionWrapper::MergeFrom(from.exception());
}
+ if (cached_has_bits & 0x00000010u) {
+ error_type_ = from.error_type_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DrillPBError::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.DrillPBError)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DrillPBError::CopyFrom(const DrillPBError& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.DrillPBError)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DrillPBError::IsInitialized() const {
-
return true;
}
void DrillPBError::Swap(DrillPBError* other) {
- if (other != this) {
- std::swap(error_id_, other->error_id_);
- std::swap(endpoint_, other->endpoint_);
- std::swap(error_type_, other->error_type_);
- std::swap(message_, other->message_);
- std::swap(exception_, other->exception_);
- parsing_error_.Swap(&other->parsing_error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DrillPBError::InternalSwap(DrillPBError* other) {
+ using std::swap;
+ CastToBase(&parsing_error_)->InternalSwap(CastToBase(&other->parsing_error_));
+ error_id_.Swap(&other->error_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(endpoint_, other->endpoint_);
+ swap(exception_, other->exception_);
+ swap(error_type_, other->error_type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata DrillPBError::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = DrillPBError_descriptor_;
- metadata.reflection = DrillPBError_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ExceptionWrapper::InitAsDefaultInstance() {
+ ::exec::shared::_ExceptionWrapper_default_instance_._instance.get_mutable()->cause_ = const_cast< ::exec::shared::ExceptionWrapper*>(
+ ::exec::shared::ExceptionWrapper::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ExceptionWrapper::kExceptionClassFieldNumber;
const int ExceptionWrapper::kMessageFieldNumber;
const int ExceptionWrapper::kStackTraceFieldNumber;
const int ExceptionWrapper::kCauseFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ExceptionWrapper::ExceptionWrapper()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_ExceptionWrapper.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.ExceptionWrapper)
}
-
-void ExceptionWrapper::InitAsDefaultInstance() {
- cause_ = const_cast< ::exec::shared::ExceptionWrapper*>(&::exec::shared::ExceptionWrapper::default_instance());
-}
-
ExceptionWrapper::ExceptionWrapper(const ExceptionWrapper& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ stack_trace_(from.stack_trace_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ exception_class_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_exception_class()) {
+ exception_class_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exception_class_);
+ }
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_message()) {
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ }
+ if (from.has_cause()) {
+ cause_ = new ::exec::shared::ExceptionWrapper(*from.cause_);
+ } else {
+ cause_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.shared.ExceptionWrapper)
}
void ExceptionWrapper::SharedCtor() {
- _cached_size_ = 0;
- exception_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+ exception_class_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
cause_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ExceptionWrapper::~ExceptionWrapper() {
+ // @@protoc_insertion_point(destructor:exec.shared.ExceptionWrapper)
SharedDtor();
}
void ExceptionWrapper::SharedDtor() {
- if (exception_class_ != &::google::protobuf::internal::kEmptyString) {
- delete exception_class_;
- }
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (this != default_instance_) {
- delete cause_;
- }
+ exception_class_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete cause_;
}
void ExceptionWrapper::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ExceptionWrapper::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ExceptionWrapper_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ExceptionWrapper& ExceptionWrapper::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_ExceptionWrapper.base);
+ return *internal_default_instance();
}
-ExceptionWrapper* ExceptionWrapper::default_instance_ = NULL;
-
-ExceptionWrapper* ExceptionWrapper::New() const {
- return new ExceptionWrapper;
-}
void ExceptionWrapper::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_exception_class()) {
- if (exception_class_ != &::google::protobuf::internal::kEmptyString) {
- exception_class_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.ExceptionWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ stack_trace_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ exception_class_.ClearNonDefaultToEmptyNoArena();
}
- if (has_message()) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ message_.ClearNonDefaultToEmptyNoArena();
}
- if (has_cause()) {
- if (cause_ != NULL) cause_->::exec::shared::ExceptionWrapper::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(cause_ != NULL);
+ cause_->Clear();
}
}
- stack_trace_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ExceptionWrapper::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.ExceptionWrapper)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string exception_class = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_exception_class()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->exception_class().data(), this->exception_class().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->exception_class().data(), static_cast<int>(this->exception_class().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.ExceptionWrapper.exception_class");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_message;
break;
}
// optional string message = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_message:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_message()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.ExceptionWrapper.message");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_stack_trace;
break;
}
// repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_stack_trace:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_stack_trace()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_stack_trace;
- if (input->ExpectTag(34)) goto parse_cause;
break;
}
// optional .exec.shared.ExceptionWrapper cause = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_cause:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_cause()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.ExceptionWrapper)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.ExceptionWrapper)
+ return false;
#undef DO_
}
void ExceptionWrapper::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.ExceptionWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string exception_class = 1;
- if (has_exception_class()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->exception_class().data(), this->exception_class().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->exception_class().data(), static_cast<int>(this->exception_class().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.ExceptionWrapper.exception_class");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->exception_class(), output);
}
// optional string message = 2;
- if (has_message()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.ExceptionWrapper.message");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->message(), output);
}
// repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
- for (int i = 0; i < this->stack_trace_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->stack_trace_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->stack_trace(i), output);
+ 3,
+ this->stack_trace(static_cast<int>(i)),
+ output);
}
// optional .exec.shared.ExceptionWrapper cause = 4;
- if (has_cause()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->cause(), output);
+ 4, this->_internal_cause(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.ExceptionWrapper)
}
-::google::protobuf::uint8* ExceptionWrapper::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ExceptionWrapper::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.ExceptionWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string exception_class = 1;
- if (has_exception_class()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->exception_class().data(), this->exception_class().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->exception_class().data(), static_cast<int>(this->exception_class().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.ExceptionWrapper.exception_class");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->exception_class(), target);
}
// optional string message = 2;
- if (has_message()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->message().data(), this->message().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.ExceptionWrapper.message");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->message(), target);
}
// repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
- for (int i = 0; i < this->stack_trace_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->stack_trace_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->stack_trace(i), target);
+ InternalWriteMessageToArray(
+ 3, this->stack_trace(static_cast<int>(i)), deterministic, target);
}
// optional .exec.shared.ExceptionWrapper cause = 4;
- if (has_cause()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->cause(), target);
+ InternalWriteMessageToArray(
+ 4, this->_internal_cause(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.ExceptionWrapper)
return target;
}
-int ExceptionWrapper::ByteSize() const {
- int total_size = 0;
+size_t ExceptionWrapper::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.ExceptionWrapper)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->stack_trace_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->stack_trace(static_cast<int>(i)));
+ }
+ }
+
+ if (_has_bits_[0 / 32] & 7u) {
// optional string exception_class = 1;
if (has_exception_class()) {
total_size += 1 +
@@ -2244,396 +2696,427 @@ int ExceptionWrapper::ByteSize() const {
// optional .exec.shared.ExceptionWrapper cause = 4;
if (has_cause()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->cause());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *cause_);
}
}
- // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
- total_size += 1 * this->stack_trace_size();
- for (int i = 0; i < this->stack_trace_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->stack_trace(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ExceptionWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.ExceptionWrapper)
+ GOOGLE_DCHECK_NE(&from, this);
const ExceptionWrapper* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ExceptionWrapper*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ExceptionWrapper>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.ExceptionWrapper)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.ExceptionWrapper)
MergeFrom(*source);
}
}
void ExceptionWrapper::MergeFrom(const ExceptionWrapper& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.ExceptionWrapper)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
stack_trace_.MergeFrom(from.stack_trace_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_exception_class()) {
- set_exception_class(from.exception_class());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_exception_class();
+ exception_class_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exception_class_);
}
- if (from.has_message()) {
- set_message(from.message());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_message();
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
}
- if (from.has_cause()) {
+ if (cached_has_bits & 0x00000004u) {
mutable_cause()->::exec::shared::ExceptionWrapper::MergeFrom(from.cause());
}
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ExceptionWrapper::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.ExceptionWrapper)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ExceptionWrapper::CopyFrom(const ExceptionWrapper& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.ExceptionWrapper)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExceptionWrapper::IsInitialized() const {
-
return true;
}
void ExceptionWrapper::Swap(ExceptionWrapper* other) {
- if (other != this) {
- std::swap(exception_class_, other->exception_class_);
- std::swap(message_, other->message_);
- stack_trace_.Swap(&other->stack_trace_);
- std::swap(cause_, other->cause_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ExceptionWrapper::InternalSwap(ExceptionWrapper* other) {
+ using std::swap;
+ CastToBase(&stack_trace_)->InternalSwap(CastToBase(&other->stack_trace_));
+ exception_class_.Swap(&other->exception_class_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(cause_, other->cause_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ExceptionWrapper::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ExceptionWrapper_descriptor_;
- metadata.reflection = ExceptionWrapper_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void StackTraceElementWrapper::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StackTraceElementWrapper::kClassNameFieldNumber;
const int StackTraceElementWrapper::kFileNameFieldNumber;
const int StackTraceElementWrapper::kLineNumberFieldNumber;
const int StackTraceElementWrapper::kMethodNameFieldNumber;
const int StackTraceElementWrapper::kIsNativeMethodFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StackTraceElementWrapper::StackTraceElementWrapper()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_StackTraceElementWrapper.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.StackTraceElementWrapper)
}
-
-void StackTraceElementWrapper::InitAsDefaultInstance() {
-}
-
StackTraceElementWrapper::StackTraceElementWrapper(const StackTraceElementWrapper& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_class_name()) {
+ class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
+ }
+ file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_file_name()) {
+ file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_);
+ }
+ method_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_method_name()) {
+ method_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.method_name_);
+ }
+ ::memcpy(&line_number_, &from.line_number_,
+ static_cast<size_t>(reinterpret_cast<char*>(&is_native_method_) -
+ reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.StackTraceElementWrapper)
}
void StackTraceElementWrapper::SharedCtor() {
- _cached_size_ = 0;
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- line_number_ = 0;
- method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- is_native_method_ = false;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ class_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ method_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&line_number_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_native_method_) -
+ reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_));
}
StackTraceElementWrapper::~StackTraceElementWrapper() {
+ // @@protoc_insertion_point(destructor:exec.shared.StackTraceElementWrapper)
SharedDtor();
}
void StackTraceElementWrapper::SharedDtor() {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- delete class_name_;
- }
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- delete file_name_;
- }
- if (method_name_ != &::google::protobuf::internal::kEmptyString) {
- delete method_name_;
- }
- if (this != default_instance_) {
- }
+ class_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ method_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void StackTraceElementWrapper::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* StackTraceElementWrapper::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StackTraceElementWrapper_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const StackTraceElementWrapper& StackTraceElementWrapper::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_StackTraceElementWrapper.base);
+ return *internal_default_instance();
}
-StackTraceElementWrapper* StackTraceElementWrapper::default_instance_ = NULL;
-
-StackTraceElementWrapper* StackTraceElementWrapper::New() const {
- return new StackTraceElementWrapper;
-}
void StackTraceElementWrapper::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_class_name()) {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- class_name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.StackTraceElementWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ class_name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_file_name()) {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- file_name_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ file_name_.ClearNonDefaultToEmptyNoArena();
}
- line_number_ = 0;
- if (has_method_name()) {
- if (method_name_ != &::google::protobuf::internal::kEmptyString) {
- method_name_->clear();
- }
+ if (cached_has_bits & 0x00000004u) {
+ method_name_.ClearNonDefaultToEmptyNoArena();
}
- is_native_method_ = false;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 24u) {
+ ::memset(&line_number_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&is_native_method_) -
+ reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool StackTraceElementWrapper::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.StackTraceElementWrapper)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string class_name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_class_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.StackTraceElementWrapper.class_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_file_name;
break;
}
// optional string file_name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_file_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_file_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->file_name().data(), this->file_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->file_name().data(), static_cast<int>(this->file_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.StackTraceElementWrapper.file_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_line_number;
break;
}
// optional int32 line_number = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_line_number:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_line_number();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &line_number_)));
- set_has_line_number();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_method_name;
break;
}
// optional string method_name = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_method_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_method_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->method_name().data(), this->method_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->method_name().data(), static_cast<int>(this->method_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.StackTraceElementWrapper.method_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_is_native_method;
break;
}
// optional bool is_native_method = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_is_native_method:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_is_native_method();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_native_method_)));
- set_has_is_native_method();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.StackTraceElementWrapper)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.StackTraceElementWrapper)
+ return false;
#undef DO_
}
void StackTraceElementWrapper::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.StackTraceElementWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string class_name = 1;
- if (has_class_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.class_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->class_name(), output);
}
// optional string file_name = 2;
- if (has_file_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->file_name().data(), this->file_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->file_name().data(), static_cast<int>(this->file_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.file_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->file_name(), output);
}
// optional int32 line_number = 3;
- if (has_line_number()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->line_number(), output);
}
// optional string method_name = 4;
- if (has_method_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->method_name().data(), this->method_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->method_name().data(), static_cast<int>(this->method_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.method_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->method_name(), output);
}
// optional bool is_native_method = 5;
- if (has_is_native_method()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_native_method(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.StackTraceElementWrapper)
}
-::google::protobuf::uint8* StackTraceElementWrapper::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* StackTraceElementWrapper::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.StackTraceElementWrapper)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string class_name = 1;
- if (has_class_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->class_name().data(), this->class_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->class_name().data(), static_cast<int>(this->class_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.class_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->class_name(), target);
}
// optional string file_name = 2;
- if (has_file_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->file_name().data(), this->file_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->file_name().data(), static_cast<int>(this->file_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.file_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->file_name(), target);
}
// optional int32 line_number = 3;
- if (has_line_number()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->line_number(), target);
}
// optional string method_name = 4;
- if (has_method_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->method_name().data(), this->method_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->method_name().data(), static_cast<int>(this->method_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.StackTraceElementWrapper.method_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->method_name(), target);
}
// optional bool is_native_method = 5;
- if (has_is_native_method()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_native_method(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.StackTraceElementWrapper)
return target;
}
-int StackTraceElementWrapper::ByteSize() const {
- int total_size = 0;
+size_t StackTraceElementWrapper::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.StackTraceElementWrapper)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 31u) {
// optional string class_name = 1;
if (has_class_name()) {
total_size += 1 +
@@ -2648,13 +3131,6 @@ int StackTraceElementWrapper::ByteSize() const {
this->file_name());
}
- // optional int32 line_number = 3;
- if (has_line_number()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->line_number());
- }
-
// optional string method_name = 4;
if (has_method_name()) {
total_size += 1 +
@@ -2662,315 +3138,351 @@ int StackTraceElementWrapper::ByteSize() const {
this->method_name());
}
+ // optional int32 line_number = 3;
+ if (has_line_number()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->line_number());
+ }
+
// optional bool is_native_method = 5;
if (has_is_native_method()) {
total_size += 1 + 1;
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void StackTraceElementWrapper::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.StackTraceElementWrapper)
+ GOOGLE_DCHECK_NE(&from, this);
const StackTraceElementWrapper* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StackTraceElementWrapper*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const StackTraceElementWrapper>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.StackTraceElementWrapper)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.StackTraceElementWrapper)
MergeFrom(*source);
}
}
void StackTraceElementWrapper::MergeFrom(const StackTraceElementWrapper& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_class_name()) {
- set_class_name(from.class_name());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.StackTraceElementWrapper)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_class_name();
+ class_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.class_name_);
}
- if (from.has_file_name()) {
- set_file_name(from.file_name());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_file_name();
+ file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_);
}
- if (from.has_line_number()) {
- set_line_number(from.line_number());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_method_name();
+ method_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.method_name_);
}
- if (from.has_method_name()) {
- set_method_name(from.method_name());
+ if (cached_has_bits & 0x00000008u) {
+ line_number_ = from.line_number_;
}
- if (from.has_is_native_method()) {
- set_is_native_method(from.is_native_method());
+ if (cached_has_bits & 0x00000010u) {
+ is_native_method_ = from.is_native_method_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StackTraceElementWrapper::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.StackTraceElementWrapper)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StackTraceElementWrapper::CopyFrom(const StackTraceElementWrapper& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.StackTraceElementWrapper)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StackTraceElementWrapper::IsInitialized() const {
-
return true;
}
void StackTraceElementWrapper::Swap(StackTraceElementWrapper* other) {
- if (other != this) {
- std::swap(class_name_, other->class_name_);
- std::swap(file_name_, other->file_name_);
- std::swap(line_number_, other->line_number_);
- std::swap(method_name_, other->method_name_);
- std::swap(is_native_method_, other->is_native_method_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StackTraceElementWrapper::InternalSwap(StackTraceElementWrapper* other) {
+ using std::swap;
+ class_name_.Swap(&other->class_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ file_name_.Swap(&other->file_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ method_name_.Swap(&other->method_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(line_number_, other->line_number_);
+ swap(is_native_method_, other->is_native_method_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata StackTraceElementWrapper::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StackTraceElementWrapper_descriptor_;
- metadata.reflection = StackTraceElementWrapper_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void ParsingError::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ParsingError::kStartColumnFieldNumber;
const int ParsingError::kStartRowFieldNumber;
const int ParsingError::kEndColumnFieldNumber;
const int ParsingError::kEndRowFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ParsingError::ParsingError()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_ParsingError.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.ParsingError)
}
-
-void ParsingError::InitAsDefaultInstance() {
-}
-
ParsingError::ParsingError(const ParsingError& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&start_column_, &from.start_column_,
+ static_cast<size_t>(reinterpret_cast<char*>(&end_row_) -
+ reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.ParsingError)
}
void ParsingError::SharedCtor() {
- _cached_size_ = 0;
- start_column_ = 0;
- start_row_ = 0;
- end_column_ = 0;
- end_row_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&start_column_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&end_row_) -
+ reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_));
}
ParsingError::~ParsingError() {
+ // @@protoc_insertion_point(destructor:exec.shared.ParsingError)
SharedDtor();
}
void ParsingError::SharedDtor() {
- if (this != default_instance_) {
- }
}
void ParsingError::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ParsingError::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return ParsingError_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ParsingError& ParsingError::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_ParsingError.base);
+ return *internal_default_instance();
}
-ParsingError* ParsingError::default_instance_ = NULL;
-
-ParsingError* ParsingError::New() const {
- return new ParsingError;
-}
void ParsingError::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- start_column_ = 0;
- start_row_ = 0;
- end_column_ = 0;
- end_row_ = 0;
+// @@protoc_insertion_point(message_clear_start:exec.shared.ParsingError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 15u) {
+ ::memset(&start_column_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&end_row_) -
+ reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool ParsingError::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.ParsingError)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 start_column = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_start_column();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &start_column_)));
- set_has_start_column();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_start_row;
break;
}
// optional int32 start_row = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_start_row:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_start_row();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &start_row_)));
- set_has_start_row();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_end_column;
break;
}
// optional int32 end_column = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_end_column:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_end_column();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &end_column_)));
- set_has_end_column();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_end_row;
break;
}
// optional int32 end_row = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_end_row:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_end_row();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &end_row_)));
- set_has_end_row();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.ParsingError)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.ParsingError)
+ return false;
#undef DO_
}
void ParsingError::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.ParsingError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 start_column = 2;
- if (has_start_column()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->start_column(), output);
}
// optional int32 start_row = 3;
- if (has_start_row()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->start_row(), output);
}
// optional int32 end_column = 4;
- if (has_end_column()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end_column(), output);
}
// optional int32 end_row = 5;
- if (has_end_row()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->end_row(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.ParsingError)
}
-::google::protobuf::uint8* ParsingError::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* ParsingError::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.ParsingError)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 start_column = 2;
- if (has_start_column()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->start_column(), target);
}
// optional int32 start_row = 3;
- if (has_start_row()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->start_row(), target);
}
// optional int32 end_column = 4;
- if (has_end_column()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->end_column(), target);
}
// optional int32 end_row = 5;
- if (has_end_row()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->end_row(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.ParsingError)
return target;
}
-int ParsingError::ByteSize() const {
- int total_size = 0;
+size_t ParsingError::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.ParsingError)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional int32 start_column = 2;
if (has_start_column()) {
total_size += 1 +
@@ -3000,306 +3512,346 @@ int ParsingError::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void ParsingError::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.ParsingError)
+ GOOGLE_DCHECK_NE(&from, this);
const ParsingError* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const ParsingError*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const ParsingError>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.ParsingError)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.ParsingError)
MergeFrom(*source);
}
}
void ParsingError::MergeFrom(const ParsingError& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_start_column()) {
- set_start_column(from.start_column());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.ParsingError)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
+ start_column_ = from.start_column_;
}
- if (from.has_start_row()) {
- set_start_row(from.start_row());
+ if (cached_has_bits & 0x00000002u) {
+ start_row_ = from.start_row_;
}
- if (from.has_end_column()) {
- set_end_column(from.end_column());
+ if (cached_has_bits & 0x00000004u) {
+ end_column_ = from.end_column_;
}
- if (from.has_end_row()) {
- set_end_row(from.end_row());
+ if (cached_has_bits & 0x00000008u) {
+ end_row_ = from.end_row_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ParsingError::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.ParsingError)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ParsingError::CopyFrom(const ParsingError& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.ParsingError)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ParsingError::IsInitialized() const {
-
return true;
}
void ParsingError::Swap(ParsingError* other) {
- if (other != this) {
- std::swap(start_column_, other->start_column_);
- std::swap(start_row_, other->start_row_);
- std::swap(end_column_, other->end_column_);
- std::swap(end_row_, other->end_row_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ParsingError::InternalSwap(ParsingError* other) {
+ using std::swap;
+ swap(start_column_, other->start_column_);
+ swap(start_row_, other->start_row_);
+ swap(end_column_, other->end_column_);
+ swap(end_row_, other->end_row_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ParsingError::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = ParsingError_descriptor_;
- metadata.reflection = ParsingError_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void RecordBatchDef::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int RecordBatchDef::kRecordCountFieldNumber;
const int RecordBatchDef::kFieldFieldNumber;
const int RecordBatchDef::kCarriesTwoByteSelectionVectorFieldNumber;
const int RecordBatchDef::kAffectedRowsCountFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
RecordBatchDef::RecordBatchDef()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_RecordBatchDef.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.RecordBatchDef)
}
-
-void RecordBatchDef::InitAsDefaultInstance() {
-}
-
RecordBatchDef::RecordBatchDef(const RecordBatchDef& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ field_(from.field_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&record_count_, &from.record_count_,
+ static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.RecordBatchDef)
}
void RecordBatchDef::SharedCtor() {
- _cached_size_ = 0;
- record_count_ = 0;
- carries_two_byte_selection_vector_ = false;
- affected_rows_count_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&record_count_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_));
}
RecordBatchDef::~RecordBatchDef() {
+ // @@protoc_insertion_point(destructor:exec.shared.RecordBatchDef)
SharedDtor();
}
void RecordBatchDef::SharedDtor() {
- if (this != default_instance_) {
- }
}
void RecordBatchDef::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* RecordBatchDef::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return RecordBatchDef_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const RecordBatchDef& RecordBatchDef::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_RecordBatchDef.base);
+ return *internal_default_instance();
}
-RecordBatchDef* RecordBatchDef::default_instance_ = NULL;
-
-RecordBatchDef* RecordBatchDef::New() const {
- return new RecordBatchDef;
-}
void RecordBatchDef::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- record_count_ = 0;
- carries_two_byte_selection_vector_ = false;
- affected_rows_count_ = 0;
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.RecordBatchDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
field_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ ::memset(&record_count_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool RecordBatchDef::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.RecordBatchDef)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 record_count = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_record_count();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &record_count_)));
- set_has_record_count();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_field;
break;
}
// repeated .exec.shared.SerializedField field = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_field:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_field()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_field;
- if (input->ExpectTag(24)) goto parse_carries_two_byte_selection_vector;
break;
}
// optional bool carries_two_byte_selection_vector = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_carries_two_byte_selection_vector:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_carries_two_byte_selection_vector();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &carries_two_byte_selection_vector_)));
- set_has_carries_two_byte_selection_vector();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_affected_rows_count;
break;
}
// optional int32 affected_rows_count = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_affected_rows_count:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_affected_rows_count();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &affected_rows_count_)));
- set_has_affected_rows_count();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.RecordBatchDef)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.RecordBatchDef)
+ return false;
#undef DO_
}
void RecordBatchDef::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.RecordBatchDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 record_count = 1;
- if (has_record_count()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->record_count(), output);
}
// repeated .exec.shared.SerializedField field = 2;
- for (int i = 0; i < this->field_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->field(i), output);
+ 2,
+ this->field(static_cast<int>(i)),
+ output);
}
// optional bool carries_two_byte_selection_vector = 3;
- if (has_carries_two_byte_selection_vector()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->carries_two_byte_selection_vector(), output);
}
// optional int32 affected_rows_count = 4;
- if (has_affected_rows_count()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->affected_rows_count(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.RecordBatchDef)
}
-::google::protobuf::uint8* RecordBatchDef::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* RecordBatchDef::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.RecordBatchDef)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 record_count = 1;
- if (has_record_count()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->record_count(), target);
}
// repeated .exec.shared.SerializedField field = 2;
- for (int i = 0; i < this->field_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->field_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->field(i), target);
+ InternalWriteMessageToArray(
+ 2, this->field(static_cast<int>(i)), deterministic, target);
}
// optional bool carries_two_byte_selection_vector = 3;
- if (has_carries_two_byte_selection_vector()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->carries_two_byte_selection_vector(), target);
}
// optional int32 affected_rows_count = 4;
- if (has_affected_rows_count()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->affected_rows_count(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.RecordBatchDef)
return target;
}
-int RecordBatchDef::ByteSize() const {
- int total_size = 0;
+size_t RecordBatchDef::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.RecordBatchDef)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.SerializedField field = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->field_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->field(static_cast<int>(i)));
+ }
+ }
+
+ if (_has_bits_[0 / 32] & 7u) {
// optional int32 record_count = 1;
if (has_record_count()) {
total_size += 1 +
@@ -3320,204 +3872,190 @@ int RecordBatchDef::ByteSize() const {
}
}
- // repeated .exec.shared.SerializedField field = 2;
- total_size += 1 * this->field_size();
- for (int i = 0; i < this->field_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->field(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void RecordBatchDef::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.RecordBatchDef)
+ GOOGLE_DCHECK_NE(&from, this);
const RecordBatchDef* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const RecordBatchDef*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const RecordBatchDef>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.RecordBatchDef)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.RecordBatchDef)
MergeFrom(*source);
}
}
void RecordBatchDef::MergeFrom(const RecordBatchDef& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.RecordBatchDef)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
field_.MergeFrom(from.field_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_record_count()) {
- set_record_count(from.record_count());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ record_count_ = from.record_count_;
}
- if (from.has_carries_two_byte_selection_vector()) {
- set_carries_two_byte_selection_vector(from.carries_two_byte_selection_vector());
+ if (cached_has_bits & 0x00000002u) {
+ carries_two_byte_selection_vector_ = from.carries_two_byte_selection_vector_;
}
- if (from.has_affected_rows_count()) {
- set_affected_rows_count(from.affected_rows_count());
+ if (cached_has_bits & 0x00000004u) {
+ affected_rows_count_ = from.affected_rows_count_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RecordBatchDef::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.RecordBatchDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RecordBatchDef::CopyFrom(const RecordBatchDef& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.RecordBatchDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RecordBatchDef::IsInitialized() const {
-
return true;
}
void RecordBatchDef::Swap(RecordBatchDef* other) {
- if (other != this) {
- std::swap(record_count_, other->record_count_);
- field_.Swap(&other->field_);
- std::swap(carries_two_byte_selection_vector_, other->carries_two_byte_selection_vector_);
- std::swap(affected_rows_count_, other->affected_rows_count_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RecordBatchDef::InternalSwap(RecordBatchDef* other) {
+ using std::swap;
+ CastToBase(&field_)->InternalSwap(CastToBase(&other->field_));
+ swap(record_count_, other->record_count_);
+ swap(carries_two_byte_selection_vector_, other->carries_two_byte_selection_vector_);
+ swap(affected_rows_count_, other->affected_rows_count_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata RecordBatchDef::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = RecordBatchDef_descriptor_;
- metadata.reflection = RecordBatchDef_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-const ::google::protobuf::EnumDescriptor* NamePart_Type_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return NamePart_Type_descriptor_;
-}
-bool NamePart_Type_IsValid(int value) {
- switch(value) {
- case 0:
- case 1:
- return true;
- default:
- return false;
- }
+void NamePart::InitAsDefaultInstance() {
+ ::exec::shared::_NamePart_default_instance_._instance.get_mutable()->child_ = const_cast< ::exec::shared::NamePart*>(
+ ::exec::shared::NamePart::internal_default_instance());
}
-
-#ifndef _MSC_VER
-const NamePart_Type NamePart::NAME;
-const NamePart_Type NamePart::ARRAY;
-const NamePart_Type NamePart::Type_MIN;
-const NamePart_Type NamePart::Type_MAX;
-const int NamePart::Type_ARRAYSIZE;
-#endif // _MSC_VER
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int NamePart::kTypeFieldNumber;
const int NamePart::kNameFieldNumber;
const int NamePart::kChildFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
NamePart::NamePart()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_NamePart.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.NamePart)
}
-
-void NamePart::InitAsDefaultInstance() {
- child_ = const_cast< ::exec::shared::NamePart*>(&::exec::shared::NamePart::default_instance());
-}
-
NamePart::NamePart(const NamePart& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_name()) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_child()) {
+ child_ = new ::exec::shared::NamePart(*from.child_);
+ } else {
+ child_ = NULL;
+ }
+ type_ = from.type_;
+ // @@protoc_insertion_point(copy_constructor:exec.shared.NamePart)
}
void NamePart::SharedCtor() {
- _cached_size_ = 0;
- type_ = 0;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- child_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&child_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&type_) -
+ reinterpret_cast<char*>(&child_)) + sizeof(type_));
}
NamePart::~NamePart() {
+ // @@protoc_insertion_point(destructor:exec.shared.NamePart)
SharedDtor();
}
void NamePart::SharedDtor() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (this != default_instance_) {
- delete child_;
- }
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete child_;
}
void NamePart::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* NamePart::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return NamePart_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const NamePart& NamePart::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_NamePart.base);
+ return *internal_default_instance();
}
-NamePart* NamePart::default_instance_ = NULL;
-
-NamePart* NamePart::New() const {
- return new NamePart;
-}
void NamePart::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- type_ = 0;
- if (has_name()) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.NamePart)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ name_.ClearNonDefaultToEmptyNoArena();
}
- if (has_child()) {
- if (child_ != NULL) child_->::exec::shared::NamePart::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(child_ != NULL);
+ child_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ type_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool NamePart::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.NamePart)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.NamePart.Type type = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -3525,133 +4063,149 @@ bool NamePart::MergePartialFromCodedStream(
if (::exec::shared::NamePart_Type_IsValid(value)) {
set_type(static_cast< ::exec::shared::NamePart_Type >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_name;
break;
}
// optional string name = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.NamePart.name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_child;
break;
}
// optional .exec.shared.NamePart child = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_child:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_child()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.NamePart)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.NamePart)
+ return false;
#undef DO_
}
void NamePart::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.NamePart)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.NamePart.Type type = 1;
- if (has_type()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->type(), output);
}
// optional string name = 2;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.NamePart.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->name(), output);
}
// optional .exec.shared.NamePart child = 3;
- if (has_child()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->child(), output);
+ 3, this->_internal_child(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.NamePart)
}
-::google::protobuf::uint8* NamePart::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* NamePart::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.NamePart)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.NamePart.Type type = 1;
- if (has_type()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->type(), target);
}
// optional string name = 2;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.NamePart.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->name(), target);
}
// optional .exec.shared.NamePart child = 3;
- if (has_child()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->child(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_child(), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.NamePart)
return target;
}
-int NamePart::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.shared.NamePart.Type type = 1;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
- }
+size_t NamePart::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.NamePart)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional string name = 2;
if (has_name()) {
total_size += 1 +
@@ -3662,387 +4216,449 @@ int NamePart::ByteSize() const {
// optional .exec.shared.NamePart child = 3;
if (has_child()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->child());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *child_);
+ }
+
+ // optional .exec.shared.NamePart.Type type = 1;
+ if (has_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void NamePart::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.NamePart)
+ GOOGLE_DCHECK_NE(&from, this);
const NamePart* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const NamePart*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const NamePart>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.NamePart)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.NamePart)
MergeFrom(*source);
}
}
void NamePart::MergeFrom(const NamePart& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_type()) {
- set_type(from.type());
- }
- if (from.has_name()) {
- set_name(from.name());
- }
- if (from.has_child()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.NamePart)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_name();
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (cached_has_bits & 0x00000002u) {
mutable_child()->::exec::shared::NamePart::MergeFrom(from.child());
}
+ if (cached_has_bits & 0x00000004u) {
+ type_ = from.type_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void NamePart::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.NamePart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void NamePart::CopyFrom(const NamePart& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.NamePart)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NamePart::IsInitialized() const {
-
return true;
}
void NamePart::Swap(NamePart* other) {
- if (other != this) {
- std::swap(type_, other->type_);
- std::swap(name_, other->name_);
- std::swap(child_, other->child_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void NamePart::InternalSwap(NamePart* other) {
+ using std::swap;
+ name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(child_, other->child_);
+ swap(type_, other->type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata NamePart::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = NamePart_descriptor_;
- metadata.reflection = NamePart_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void SerializedField::InitAsDefaultInstance() {
+ ::exec::shared::_SerializedField_default_instance_._instance.get_mutable()->major_type_ = const_cast< ::common::MajorType*>(
+ ::common::MajorType::internal_default_instance());
+ ::exec::shared::_SerializedField_default_instance_._instance.get_mutable()->name_part_ = const_cast< ::exec::shared::NamePart*>(
+ ::exec::shared::NamePart::internal_default_instance());
+}
+void SerializedField::clear_major_type() {
+ if (major_type_ != NULL) major_type_->Clear();
+ clear_has_major_type();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int SerializedField::kMajorTypeFieldNumber;
const int SerializedField::kNamePartFieldNumber;
const int SerializedField::kChildFieldNumber;
const int SerializedField::kValueCountFieldNumber;
const int SerializedField::kVarByteLengthFieldNumber;
const int SerializedField::kBufferLengthFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
SerializedField::SerializedField()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_SerializedField.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.SerializedField)
}
-
-void SerializedField::InitAsDefaultInstance() {
- major_type_ = const_cast< ::common::MajorType*>(&::common::MajorType::default_instance());
- name_part_ = const_cast< ::exec::shared::NamePart*>(&::exec::shared::NamePart::default_instance());
-}
-
SerializedField::SerializedField(const SerializedField& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ child_(from.child_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_major_type()) {
+ major_type_ = new ::common::MajorType(*from.major_type_);
+ } else {
+ major_type_ = NULL;
+ }
+ if (from.has_name_part()) {
+ name_part_ = new ::exec::shared::NamePart(*from.name_part_);
+ } else {
+ name_part_ = NULL;
+ }
+ ::memcpy(&value_count_, &from.value_count_,
+ static_cast<size_t>(reinterpret_cast<char*>(&buffer_length_) -
+ reinterpret_cast<char*>(&value_count_)) + sizeof(buffer_length_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.SerializedField)
}
void SerializedField::SharedCtor() {
- _cached_size_ = 0;
- major_type_ = NULL;
- name_part_ = NULL;
- value_count_ = 0;
- var_byte_length_ = 0;
- buffer_length_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&major_type_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&buffer_length_) -
+ reinterpret_cast<char*>(&major_type_)) + sizeof(buffer_length_));
}
SerializedField::~SerializedField() {
+ // @@protoc_insertion_point(destructor:exec.shared.SerializedField)
SharedDtor();
}
void SerializedField::SharedDtor() {
- if (this != default_instance_) {
- delete major_type_;
- delete name_part_;
- }
+ if (this != internal_default_instance()) delete major_type_;
+ if (this != internal_default_instance()) delete name_part_;
}
void SerializedField::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* SerializedField::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SerializedField_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const SerializedField& SerializedField::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_SerializedField.base);
+ return *internal_default_instance();
}
-SerializedField* SerializedField::default_instance_ = NULL;
-
-SerializedField* SerializedField::New() const {
- return new SerializedField;
-}
void SerializedField::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_major_type()) {
- if (major_type_ != NULL) major_type_->::common::MajorType::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.shared.SerializedField)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ child_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(major_type_ != NULL);
+ major_type_->Clear();
}
- if (has_name_part()) {
- if (name_part_ != NULL) name_part_->::exec::shared::NamePart::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(name_part_ != NULL);
+ name_part_->Clear();
}
- value_count_ = 0;
- var_byte_length_ = 0;
- buffer_length_ = 0;
}
- child_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 28u) {
+ ::memset(&value_count_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&buffer_length_) -
+ reinterpret_cast<char*>(&value_count_)) + sizeof(buffer_length_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool SerializedField::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.SerializedField)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .common.MajorType major_type = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_major_type()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_name_part;
break;
}
// optional .exec.shared.NamePart name_part = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_name_part:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_name_part()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_child;
break;
}
// repeated .exec.shared.SerializedField child = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_child:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_child()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_child;
- if (input->ExpectTag(32)) goto parse_value_count;
break;
}
// optional int32 value_count = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_value_count:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_value_count();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &value_count_)));
- set_has_value_count();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_var_byte_length;
break;
}
// optional int32 var_byte_length = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_var_byte_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_var_byte_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &var_byte_length_)));
- set_has_var_byte_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_buffer_length;
break;
}
// optional int32 buffer_length = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_buffer_length:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_buffer_length();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &buffer_length_)));
- set_has_buffer_length();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.SerializedField)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.SerializedField)
+ return false;
#undef DO_
}
void SerializedField::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.SerializedField)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .common.MajorType major_type = 1;
- if (has_major_type()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->major_type(), output);
+ 1, this->_internal_major_type(), output);
}
// optional .exec.shared.NamePart name_part = 2;
- if (has_name_part()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->name_part(), output);
+ 2, this->_internal_name_part(), output);
}
// repeated .exec.shared.SerializedField child = 3;
- for (int i = 0; i < this->child_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->child_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->child(i), output);
+ 3,
+ this->child(static_cast<int>(i)),
+ output);
}
// optional int32 value_count = 4;
- if (has_value_count()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->value_count(), output);
}
// optional int32 var_byte_length = 5;
- if (has_var_byte_length()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->var_byte_length(), output);
}
// optional int32 buffer_length = 7;
- if (has_buffer_length()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->buffer_length(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.SerializedField)
}
-::google::protobuf::uint8* SerializedField::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* SerializedField::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.SerializedField)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .common.MajorType major_type = 1;
- if (has_major_type()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->major_type(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_major_type(), deterministic, target);
}
// optional .exec.shared.NamePart name_part = 2;
- if (has_name_part()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->name_part(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_name_part(), deterministic, target);
}
// repeated .exec.shared.SerializedField child = 3;
- for (int i = 0; i < this->child_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->child_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->child(i), target);
+ InternalWriteMessageToArray(
+ 3, this->child(static_cast<int>(i)), deterministic, target);
}
// optional int32 value_count = 4;
- if (has_value_count()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->value_count(), target);
}
// optional int32 var_byte_length = 5;
- if (has_var_byte_length()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->var_byte_length(), target);
}
// optional int32 buffer_length = 7;
- if (has_buffer_length()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->buffer_length(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.SerializedField)
return target;
}
-int SerializedField::ByteSize() const {
- int total_size = 0;
+size_t SerializedField::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.SerializedField)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.SerializedField child = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->child_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->child(static_cast<int>(i)));
+ }
+ }
+
+ if (_has_bits_[0 / 32] & 31u) {
// optional .common.MajorType major_type = 1;
if (has_major_type()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->major_type());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *major_type_);
}
// optional .exec.shared.NamePart name_part = 2;
if (has_name_part()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->name_part());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *name_part_);
}
// optional int32 value_count = 4;
@@ -4067,268 +4683,284 @@ int SerializedField::ByteSize() const {
}
}
- // repeated .exec.shared.SerializedField child = 3;
- total_size += 1 * this->child_size();
- for (int i = 0; i < this->child_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->child(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void SerializedField::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.SerializedField)
+ GOOGLE_DCHECK_NE(&from, this);
const SerializedField* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const SerializedField*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const SerializedField>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.SerializedField)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.SerializedField)
MergeFrom(*source);
}
}
void SerializedField::MergeFrom(const SerializedField& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.SerializedField)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
child_.MergeFrom(from.child_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_major_type()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_major_type()->::common::MajorType::MergeFrom(from.major_type());
}
- if (from.has_name_part()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_name_part()->::exec::shared::NamePart::MergeFrom(from.name_part());
}
- if (from.has_value_count()) {
- set_value_count(from.value_count());
+ if (cached_has_bits & 0x00000004u) {
+ value_count_ = from.value_count_;
}
- if (from.has_var_byte_length()) {
- set_var_byte_length(from.var_byte_length());
+ if (cached_has_bits & 0x00000008u) {
+ var_byte_length_ = from.var_byte_length_;
}
- if (from.has_buffer_length()) {
- set_buffer_length(from.buffer_length());
+ if (cached_has_bits & 0x00000010u) {
+ buffer_length_ = from.buffer_length_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SerializedField::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.SerializedField)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SerializedField::CopyFrom(const SerializedField& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.SerializedField)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SerializedField::IsInitialized() const {
-
return true;
}
void SerializedField::Swap(SerializedField* other) {
- if (other != this) {
- std::swap(major_type_, other->major_type_);
- std::swap(name_part_, other->name_part_);
- child_.Swap(&other->child_);
- std::swap(value_count_, other->value_count_);
- std::swap(var_byte_length_, other->var_byte_length_);
- std::swap(buffer_length_, other->buffer_length_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void SerializedField::InternalSwap(SerializedField* other) {
+ using std::swap;
+ CastToBase(&child_)->InternalSwap(CastToBase(&other->child_));
+ swap(major_type_, other->major_type_);
+ swap(name_part_, other->name_part_);
+ swap(value_count_, other->value_count_);
+ swap(var_byte_length_, other->var_byte_length_);
+ swap(buffer_length_, other->buffer_length_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata SerializedField::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = SerializedField_descriptor_;
- metadata.reflection = SerializedField_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void NodeStatus::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int NodeStatus::kNodeIdFieldNumber;
const int NodeStatus::kMemoryFootprintFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
NodeStatus::NodeStatus()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_NodeStatus.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.NodeStatus)
}
-
-void NodeStatus::InitAsDefaultInstance() {
-}
-
NodeStatus::NodeStatus(const NodeStatus& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&memory_footprint_, &from.memory_footprint_,
+ static_cast<size_t>(reinterpret_cast<char*>(&node_id_) -
+ reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.NodeStatus)
}
void NodeStatus::SharedCtor() {
- _cached_size_ = 0;
- node_id_ = 0;
- memory_footprint_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&memory_footprint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&node_id_) -
+ reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_));
}
NodeStatus::~NodeStatus() {
+ // @@protoc_insertion_point(destructor:exec.shared.NodeStatus)
SharedDtor();
}
void NodeStatus::SharedDtor() {
- if (this != default_instance_) {
- }
}
void NodeStatus::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* NodeStatus::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return NodeStatus_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const NodeStatus& NodeStatus::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_NodeStatus.base);
+ return *internal_default_instance();
}
-NodeStatus* NodeStatus::default_instance_ = NULL;
-
-NodeStatus* NodeStatus::New() const {
- return new NodeStatus;
-}
void NodeStatus::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- node_id_ = 0;
- memory_footprint_ = GOOGLE_LONGLONG(0);
+// @@protoc_insertion_point(message_clear_start:exec.shared.NodeStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ ::memset(&memory_footprint_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&node_id_) -
+ reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool NodeStatus::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.NodeStatus)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 node_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_node_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &node_id_)));
- set_has_node_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_memory_footprint;
break;
}
// optional int64 memory_footprint = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_memory_footprint:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_memory_footprint();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &memory_footprint_)));
- set_has_memory_footprint();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.NodeStatus)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.NodeStatus)
+ return false;
#undef DO_
}
void NodeStatus::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.NodeStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 node_id = 1;
- if (has_node_id()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->node_id(), output);
}
// optional int64 memory_footprint = 2;
- if (has_memory_footprint()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->memory_footprint(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.NodeStatus)
}
-::google::protobuf::uint8* NodeStatus::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* NodeStatus::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.NodeStatus)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 node_id = 1;
- if (has_node_id()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->node_id(), target);
}
// optional int64 memory_footprint = 2;
- if (has_memory_footprint()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->memory_footprint(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.NodeStatus)
return target;
}
-int NodeStatus::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 node_id = 1;
- if (has_node_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->node_id());
- }
+size_t NodeStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.NodeStatus)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional int64 memory_footprint = 2;
if (has_memory_footprint()) {
total_size += 1 +
@@ -4336,197 +4968,183 @@ int NodeStatus::ByteSize() const {
this->memory_footprint());
}
+ // optional int32 node_id = 1;
+ if (has_node_id()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->node_id());
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void NodeStatus::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.NodeStatus)
+ GOOGLE_DCHECK_NE(&from, this);
const NodeStatus* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const NodeStatus*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const NodeStatus>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.NodeStatus)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.NodeStatus)
MergeFrom(*source);
}
}
void NodeStatus::MergeFrom(const NodeStatus& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_node_id()) {
- set_node_id(from.node_id());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.NodeStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ memory_footprint_ = from.memory_footprint_;
}
- if (from.has_memory_footprint()) {
- set_memory_footprint(from.memory_footprint());
+ if (cached_has_bits & 0x00000002u) {
+ node_id_ = from.node_id_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void NodeStatus::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.NodeStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void NodeStatus::CopyFrom(const NodeStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.NodeStatus)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NodeStatus::IsInitialized() const {
-
return true;
}
void NodeStatus::Swap(NodeStatus* other) {
- if (other != this) {
- std::swap(node_id_, other->node_id_);
- std::swap(memory_footprint_, other->memory_footprint_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void NodeStatus::InternalSwap(NodeStatus* other) {
+ using std::swap;
+ swap(memory_footprint_, other->memory_footprint_);
+ swap(node_id_, other->node_id_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata NodeStatus::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = NodeStatus_descriptor_;
- metadata.reflection = NodeStatus_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-const ::google::protobuf::EnumDescriptor* QueryResult_QueryState_descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryResult_QueryState_descriptor_;
-}
-bool QueryResult_QueryState_IsValid(int value) {
- switch(value) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- return true;
- default:
- return false;
- }
+void QueryResult::InitAsDefaultInstance() {
+ ::exec::shared::_QueryResult_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
}
-
-#ifndef _MSC_VER
-const QueryResult_QueryState QueryResult::STARTING;
-const QueryResult_QueryState QueryResult::RUNNING;
-const QueryResult_QueryState QueryResult::COMPLETED;
-const QueryResult_QueryState QueryResult::CANCELED;
-const QueryResult_QueryState QueryResult::FAILED;
-const QueryResult_QueryState QueryResult::CANCELLATION_REQUESTED;
-const QueryResult_QueryState QueryResult::ENQUEUED;
-const QueryResult_QueryState QueryResult::PREPARING;
-const QueryResult_QueryState QueryResult::PLANNING;
-const QueryResult_QueryState QueryResult::QueryState_MIN;
-const QueryResult_QueryState QueryResult::QueryState_MAX;
-const int QueryResult::QueryState_ARRAYSIZE;
-#endif // _MSC_VER
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryResult::kQueryStateFieldNumber;
const int QueryResult::kQueryIdFieldNumber;
const int QueryResult::kErrorFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryResult::QueryResult()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_QueryResult.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.QueryResult)
}
-
-void QueryResult::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
-}
-
QueryResult::QueryResult(const QueryResult& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ error_(from.error_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ query_state_ = from.query_state_;
+ // @@protoc_insertion_point(copy_constructor:exec.shared.QueryResult)
}
void QueryResult::SharedCtor() {
- _cached_size_ = 0;
- query_state_ = 0;
- query_id_ = NULL;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&query_state_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(query_state_));
}
QueryResult::~QueryResult() {
+ // @@protoc_insertion_point(destructor:exec.shared.QueryResult)
SharedDtor();
}
void QueryResult::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- }
+ if (this != internal_default_instance()) delete query_id_;
}
void QueryResult::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryResult::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryResult_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryResult& QueryResult::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_QueryResult.base);
+ return *internal_default_instance();
}
-QueryResult* QueryResult::default_instance_ = NULL;
-
-QueryResult* QueryResult::New() const {
- return new QueryResult;
-}
void QueryResult::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- query_state_ = 0;
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.QueryResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
error_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
+ }
+ query_state_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryResult::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.QueryResult)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryResult.QueryState query_state = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -4534,449 +5152,522 @@ bool QueryResult::MergePartialFromCodedStream(
if (::exec::shared::QueryResult_QueryState_IsValid(value)) {
set_query_state(static_cast< ::exec::shared::QueryResult_QueryState >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_query_id;
break;
}
// optional .exec.shared.QueryId query_id = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_query_id:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_error;
break;
}
// repeated .exec.shared.DrillPBError error = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_error;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.QueryResult)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.QueryResult)
+ return false;
#undef DO_
}
void QueryResult::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.QueryResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryResult.QueryState query_state = 1;
- if (has_query_state()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->query_state(), output);
}
// optional .exec.shared.QueryId query_id = 2;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->query_id(), output);
+ 2, this->_internal_query_id(), output);
}
// repeated .exec.shared.DrillPBError error = 3;
- for (int i = 0; i < this->error_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->error_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->error(i), output);
+ 3,
+ this->error(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.QueryResult)
}
-::google::protobuf::uint8* QueryResult::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryResult.QueryState query_state = 1;
- if (has_query_state()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->query_state(), target);
}
// optional .exec.shared.QueryId query_id = 2;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_query_id(), deterministic, target);
}
// repeated .exec.shared.DrillPBError error = 3;
- for (int i = 0; i < this->error_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->error_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->error(i), target);
+ InternalWriteMessageToArray(
+ 3, this->error(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.QueryResult)
return target;
}
-int QueryResult::ByteSize() const {
- int total_size = 0;
+size_t QueryResult::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryResult)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.shared.QueryResult.QueryState query_state = 1;
- if (has_query_state()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->query_state());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.DrillPBError error = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->error_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->error(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 3u) {
// optional .exec.shared.QueryId query_id = 2;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
}
- }
- // repeated .exec.shared.DrillPBError error = 3;
- total_size += 1 * this->error_size();
- for (int i = 0; i < this->error_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error(i));
- }
+ // optional .exec.shared.QueryResult.QueryState query_state = 1;
+ if (has_query_state()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->query_state());
+ }
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryResult::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryResult)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryResult* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryResult*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryResult>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryResult)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryResult)
MergeFrom(*source);
}
}
void QueryResult::MergeFrom(const QueryResult& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryResult)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
error_.MergeFrom(from.error_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_state()) {
- set_query_state(from.query_state());
- }
- if (from.has_query_id()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
+ if (cached_has_bits & 0x00000002u) {
+ query_state_ = from.query_state_;
+ }
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryResult::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryResult)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryResult::CopyFrom(const QueryResult& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryResult)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryResult::IsInitialized() const {
-
return true;
}
void QueryResult::Swap(QueryResult* other) {
- if (other != this) {
- std::swap(query_state_, other->query_state_);
- std::swap(query_id_, other->query_id_);
- error_.Swap(&other->error_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryResult::InternalSwap(QueryResult* other) {
+ using std::swap;
+ CastToBase(&error_)->InternalSwap(CastToBase(&other->error_));
+ swap(query_id_, other->query_id_);
+ swap(query_state_, other->query_state_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryResult::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryResult_descriptor_;
- metadata.reflection = QueryResult_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void QueryData::InitAsDefaultInstance() {
+ ::exec::shared::_QueryData_default_instance_._instance.get_mutable()->query_id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+ ::exec::shared::_QueryData_default_instance_._instance.get_mutable()->def_ = const_cast< ::exec::shared::RecordBatchDef*>(
+ ::exec::shared::RecordBatchDef::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryData::kQueryIdFieldNumber;
const int QueryData::kRowCountFieldNumber;
const int QueryData::kDefFieldNumber;
const int QueryData::kAffectedRowsCountFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryData::QueryData()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_QueryData.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.QueryData)
}
-
-void QueryData::InitAsDefaultInstance() {
- query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
- def_ = const_cast< ::exec::shared::RecordBatchDef*>(&::exec::shared::RecordBatchDef::default_instance());
-}
-
QueryData::QueryData(const QueryData& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_query_id()) {
+ query_id_ = new ::exec::shared::QueryId(*from.query_id_);
+ } else {
+ query_id_ = NULL;
+ }
+ if (from.has_def()) {
+ def_ = new ::exec::shared::RecordBatchDef(*from.def_);
+ } else {
+ def_ = NULL;
+ }
+ ::memcpy(&row_count_, &from.row_count_,
+ static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&row_count_)) + sizeof(affected_rows_count_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.QueryData)
}
void QueryData::SharedCtor() {
- _cached_size_ = 0;
- query_id_ = NULL;
- row_count_ = 0;
- def_ = NULL;
- affected_rows_count_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&query_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&query_id_)) + sizeof(affected_rows_count_));
}
QueryData::~QueryData() {
+ // @@protoc_insertion_point(destructor:exec.shared.QueryData)
SharedDtor();
}
void QueryData::SharedDtor() {
- if (this != default_instance_) {
- delete query_id_;
- delete def_;
- }
+ if (this != internal_default_instance()) delete query_id_;
+ if (this != internal_default_instance()) delete def_;
}
void QueryData::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryData::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryData_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryData& QueryData::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_QueryData.base);
+ return *internal_default_instance();
}
-QueryData* QueryData::default_instance_ = NULL;
-
-QueryData* QueryData::New() const {
- return new QueryData;
-}
void QueryData::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query_id()) {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.shared.QueryData)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(query_id_ != NULL);
+ query_id_->Clear();
}
- row_count_ = 0;
- if (has_def()) {
- if (def_ != NULL) def_->::exec::shared::RecordBatchDef::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(def_ != NULL);
+ def_->Clear();
}
- affected_rows_count_ = 0;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 12u) {
+ ::memset(&row_count_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&affected_rows_count_) -
+ reinterpret_cast<char*>(&row_count_)) + sizeof(affected_rows_count_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryData::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.QueryData)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_query_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_row_count;
break;
}
// optional int32 row_count = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_row_count:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_row_count();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &row_count_)));
- set_has_row_count();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(26)) goto parse_def;
break;
}
// optional .exec.shared.RecordBatchDef def = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_def:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_def()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_affected_rows_count;
break;
}
// optional int32 affected_rows_count = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_affected_rows_count:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_affected_rows_count();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &affected_rows_count_)));
- set_has_affected_rows_count();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.QueryData)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.QueryData)
+ return false;
#undef DO_
}
void QueryData::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.QueryData)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->query_id(), output);
+ 1, this->_internal_query_id(), output);
}
// optional int32 row_count = 2;
- if (has_row_count()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->row_count(), output);
}
// optional .exec.shared.RecordBatchDef def = 3;
- if (has_def()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->def(), output);
+ 3, this->_internal_def(), output);
}
// optional int32 affected_rows_count = 4;
- if (has_affected_rows_count()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->affected_rows_count(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.QueryData)
}
-::google::protobuf::uint8* QueryData::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryData::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryData)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId query_id = 1;
- if (has_query_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->query_id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_query_id(), deterministic, target);
}
// optional int32 row_count = 2;
- if (has_row_count()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->row_count(), target);
}
// optional .exec.shared.RecordBatchDef def = 3;
- if (has_def()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 3, this->def(), target);
+ InternalWriteMessageToArray(
+ 3, this->_internal_def(), deterministic, target);
}
// optional int32 affected_rows_count = 4;
- if (has_affected_rows_count()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->affected_rows_count(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.QueryData)
return target;
}
-int QueryData::ByteSize() const {
- int total_size = 0;
+size_t QueryData::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryData)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 15u) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->query_id());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_id_);
+ }
+
+ // optional .exec.shared.RecordBatchDef def = 3;
+ if (has_def()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *def_);
}
// optional int32 row_count = 2;
@@ -4986,13 +5677,6 @@ int QueryData::ByteSize() const {
this->row_count());
}
- // optional .exec.shared.RecordBatchDef def = 3;
- if (has_def()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->def());
- }
-
// optional int32 affected_rows_count = 4;
if (has_affected_rows_count()) {
total_size += 1 +
@@ -5001,91 +5685,102 @@ int QueryData::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryData::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryData)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryData* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryData*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryData>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryData)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryData)
MergeFrom(*source);
}
}
void QueryData::MergeFrom(const QueryData& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query_id()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryData)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 15u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
- if (from.has_row_count()) {
- set_row_count(from.row_count());
- }
- if (from.has_def()) {
+ if (cached_has_bits & 0x00000002u) {
mutable_def()->::exec::shared::RecordBatchDef::MergeFrom(from.def());
}
- if (from.has_affected_rows_count()) {
- set_affected_rows_count(from.affected_rows_count());
+ if (cached_has_bits & 0x00000004u) {
+ row_count_ = from.row_count_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ affected_rows_count_ = from.affected_rows_count_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryData::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryData::CopyFrom(const QueryData& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryData)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryData::IsInitialized() const {
-
return true;
}
void QueryData::Swap(QueryData* other) {
- if (other != this) {
- std::swap(query_id_, other->query_id_);
- std::swap(row_count_, other->row_count_);
- std::swap(def_, other->def_);
- std::swap(affected_rows_count_, other->affected_rows_count_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryData::InternalSwap(QueryData* other) {
+ using std::swap;
+ swap(query_id_, other->query_id_);
+ swap(def_, other->def_);
+ swap(row_count_, other->row_count_);
+ swap(affected_rows_count_, other->affected_rows_count_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryData::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryData_descriptor_;
- metadata.reflection = QueryData_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-::std::string* QueryInfo::_default_user_ = NULL;
-::std::string* QueryInfo::_default_queue_name_ = NULL;
-#ifndef _MSC_VER
+void QueryInfo::InitAsDefaultInstance() {
+ ::exec::shared::_QueryInfo_default_instance_._instance.get_mutable()->foreman_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> QueryInfo::_i_give_permission_to_break_this_code_default_user_;
+void QueryInfo::clear_foreman() {
+ if (foreman_ != NULL) foreman_->Clear();
+ clear_has_foreman();
+}
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_;
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryInfo::kQueryFieldNumber;
const int QueryInfo::kStartFieldNumber;
const int QueryInfo::kStateFieldNumber;
@@ -5094,155 +5789,162 @@ const int QueryInfo::kForemanFieldNumber;
const int QueryInfo::kOptionsJsonFieldNumber;
const int QueryInfo::kTotalCostFieldNumber;
const int QueryInfo::kQueueNameFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryInfo::QueryInfo()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_QueryInfo.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.QueryInfo)
}
-
-void QueryInfo::InitAsDefaultInstance() {
- foreman_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
QueryInfo::QueryInfo(const QueryInfo& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_query()) {
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
+ }
+ user_.UnsafeSetDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
+ if (from.has_user()) {
+ user_.AssignWithDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), from.user_);
+ }
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_options_json()) {
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
+ }
+ queue_name_.UnsafeSetDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ if (from.has_queue_name()) {
+ queue_name_.AssignWithDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), from.queue_name_);
+ }
+ if (from.has_foreman()) {
+ foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_);
+ } else {
+ foreman_ = NULL;
+ }
+ ::memcpy(&start_, &from.start_,
+ static_cast<size_t>(reinterpret_cast<char*>(&state_) -
+ reinterpret_cast<char*>(&start_)) + sizeof(state_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.QueryInfo)
}
void QueryInfo::SharedCtor() {
- _cached_size_ = 0;
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- start_ = GOOGLE_LONGLONG(0);
- state_ = 0;
- user_ = const_cast< ::std::string*>(_default_user_);
- foreman_ = NULL;
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- total_cost_ = 0;
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ user_.UnsafeSetDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ queue_name_.UnsafeSetDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ ::memset(&foreman_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&state_) -
+ reinterpret_cast<char*>(&foreman_)) + sizeof(state_));
}
QueryInfo::~QueryInfo() {
+ // @@protoc_insertion_point(destructor:exec.shared.QueryInfo)
SharedDtor();
}
void QueryInfo::SharedDtor() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (user_ != _default_user_) {
- delete user_;
- }
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (queue_name_ != _default_queue_name_) {
- delete queue_name_;
- }
- if (this != default_instance_) {
- delete foreman_;
- }
+ query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ user_.DestroyNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
+ options_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ queue_name_.DestroyNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ if (this != internal_default_instance()) delete foreman_;
}
void QueryInfo::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryInfo::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryInfo_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryInfo& QueryInfo::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_QueryInfo.base);
+ return *internal_default_instance();
}
-QueryInfo* QueryInfo::default_instance_ = NULL;
-
-QueryInfo* QueryInfo::New() const {
- return new QueryInfo;
-}
void QueryInfo::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_query()) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.QueryInfo)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 31u) {
+ if (cached_has_bits & 0x00000001u) {
+ query_.ClearNonDefaultToEmptyNoArena();
}
- start_ = GOOGLE_LONGLONG(0);
- state_ = 0;
- if (has_user()) {
- if (user_ != _default_user_) {
- user_->assign(*_default_user_);
- }
+ if (cached_has_bits & 0x00000002u) {
+ user_.UnsafeMutablePointer()->assign(*&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
}
- if (has_foreman()) {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ options_json_.ClearNonDefaultToEmptyNoArena();
}
- if (has_options_json()) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ if (cached_has_bits & 0x00000008u) {
+ queue_name_.UnsafeMutablePointer()->assign(*&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
- total_cost_ = 0;
- if (has_queue_name()) {
- if (queue_name_ != _default_queue_name_) {
- queue_name_->assign(*_default_queue_name_);
- }
+ if (cached_has_bits & 0x00000010u) {
+ GOOGLE_DCHECK(foreman_ != NULL);
+ foreman_->Clear();
}
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 224u) {
+ ::memset(&start_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&state_) -
+ reinterpret_cast<char*>(&start_)) + sizeof(state_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryInfo::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.QueryInfo)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string query = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_query()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryInfo.query");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_start;
break;
}
// optional int64 start = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_start:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_start();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &start_)));
- set_has_start();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_state;
break;
}
// optional .exec.shared.QueryResult.QueryState state = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_state:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -5250,254 +5952,278 @@ bool QueryInfo::MergePartialFromCodedStream(
if (::exec::shared::QueryResult_QueryState_IsValid(value)) {
set_state(static_cast< ::exec::shared::QueryResult_QueryState >(value));
} else {
- mutable_unknown_fields()->AddVarint(3, value);
+ mutable_unknown_fields()->AddVarint(
+ 3, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_user;
break;
}
// optional string user = 4 [default = "-"];
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_user:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_user()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryInfo.user");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_foreman;
break;
}
// optional .exec.DrillbitEndpoint foreman = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_foreman:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_foreman()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_options_json;
break;
}
// optional string options_json = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_options_json:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_options_json()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryInfo.options_json");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(57)) goto parse_total_cost;
break;
}
// optional double total_cost = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
- parse_total_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
+ set_has_total_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &total_cost_)));
- set_has_total_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_queue_name;
break;
}
// optional string queue_name = 8 [default = "-"];
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_queue_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_queue_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryInfo.queue_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.QueryInfo)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.QueryInfo)
+ return false;
#undef DO_
}
void QueryInfo::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.QueryInfo)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string query = 1;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.query");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->query(), output);
}
// optional int64 start = 2;
- if (has_start()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->start(), output);
}
// optional .exec.shared.QueryResult.QueryState state = 3;
- if (has_state()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->state(), output);
}
// optional string user = 4 [default = "-"];
- if (has_user()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.user");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->user(), output);
}
// optional .exec.DrillbitEndpoint foreman = 5;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->foreman(), output);
+ 5, this->_internal_foreman(), output);
}
// optional string options_json = 6;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.options_json");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->options_json(), output);
}
// optional double total_cost = 7;
- if (has_total_cost()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->total_cost(), output);
}
// optional string queue_name = 8 [default = "-"];
- if (has_queue_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.queue_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->queue_name(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.QueryInfo)
}
-::google::protobuf::uint8* QueryInfo::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryInfo::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryInfo)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string query = 1;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.query");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->query(), target);
}
// optional int64 start = 2;
- if (has_start()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->start(), target);
}
// optional .exec.shared.QueryResult.QueryState state = 3;
- if (has_state()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->state(), target);
}
// optional string user = 4 [default = "-"];
- if (has_user()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.user");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->user(), target);
}
// optional .exec.DrillbitEndpoint foreman = 5;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 5, this->foreman(), target);
+ InternalWriteMessageToArray(
+ 5, this->_internal_foreman(), deterministic, target);
}
// optional string options_json = 6;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.options_json");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->options_json(), target);
}
// optional double total_cost = 7;
- if (has_total_cost()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->total_cost(), target);
}
// optional string queue_name = 8 [default = "-"];
- if (has_queue_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryInfo.queue_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->queue_name(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.QueryInfo)
return target;
}
-int QueryInfo::ByteSize() const {
- int total_size = 0;
+size_t QueryInfo::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryInfo)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string query = 1;
if (has_query()) {
total_size += 1 +
@@ -5505,38 +6231,39 @@ int QueryInfo::ByteSize() const {
this->query());
}
- // optional int64 start = 2;
- if (has_start()) {
+ // optional string user = 4 [default = "-"];
+ if (has_user()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->start());
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->user());
}
- // optional .exec.shared.QueryResult.QueryState state = 3;
- if (has_state()) {
+ // optional string options_json = 6;
+ if (has_options_json()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->options_json());
}
- // optional string user = 4 [default = "-"];
- if (has_user()) {
+ // optional string queue_name = 8 [default = "-"];
+ if (has_queue_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
- this->user());
+ this->queue_name());
}
// optional .exec.DrillbitEndpoint foreman = 5;
if (has_foreman()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->foreman());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *foreman_);
}
- // optional string options_json = 6;
- if (has_options_json()) {
+ // optional int64 start = 2;
+ if (has_start()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->options_json());
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->start());
}
// optional double total_cost = 7;
@@ -5544,115 +6271,135 @@ int QueryInfo::ByteSize() const {
total_size += 1 + 8;
}
- // optional string queue_name = 8 [default = "-"];
- if (has_queue_name()) {
+ // optional .exec.shared.QueryResult.QueryState state = 3;
+ if (has_state()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->queue_name());
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryInfo::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryInfo)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryInfo* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryInfo*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryInfo>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryInfo)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryInfo)
MergeFrom(*source);
}
}
void QueryInfo::MergeFrom(const QueryInfo& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_query()) {
- set_query(from.query());
- }
- if (from.has_start()) {
- set_start(from.start());
- }
- if (from.has_state()) {
- set_state(from.state());
- }
- if (from.has_user()) {
- set_user(from.user());
- }
- if (from.has_foreman()) {
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryInfo)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_query();
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
+ }
+ if (cached_has_bits & 0x00000002u) {
+ set_has_user();
+ user_.AssignWithDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), from.user_);
+ }
+ if (cached_has_bits & 0x00000004u) {
+ set_has_options_json();
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
+ }
+ if (cached_has_bits & 0x00000008u) {
+ set_has_queue_name();
+ queue_name_.AssignWithDefault(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), from.queue_name_);
+ }
+ if (cached_has_bits & 0x00000010u) {
mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
}
- if (from.has_options_json()) {
- set_options_json(from.options_json());
+ if (cached_has_bits & 0x00000020u) {
+ start_ = from.start_;
}
- if (from.has_total_cost()) {
- set_total_cost(from.total_cost());
+ if (cached_has_bits & 0x00000040u) {
+ total_cost_ = from.total_cost_;
}
- if (from.has_queue_name()) {
- set_queue_name(from.queue_name());
+ if (cached_has_bits & 0x00000080u) {
+ state_ = from.state_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryInfo::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryInfo::CopyFrom(const QueryInfo& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryInfo::IsInitialized() const {
-
return true;
}
void QueryInfo::Swap(QueryInfo* other) {
- if (other != this) {
- std::swap(query_, other->query_);
- std::swap(start_, other->start_);
- std::swap(state_, other->state_);
- std::swap(user_, other->user_);
- std::swap(foreman_, other->foreman_);
- std::swap(options_json_, other->options_json_);
- std::swap(total_cost_, other->total_cost_);
- std::swap(queue_name_, other->queue_name_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryInfo::InternalSwap(QueryInfo* other) {
+ using std::swap;
+ query_.Swap(&other->query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ user_.Swap(&other->user_, &::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(),
+ GetArenaNoVirtual());
+ options_json_.Swap(&other->options_json_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ queue_name_.Swap(&other->queue_name_, &::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(),
+ GetArenaNoVirtual());
+ swap(foreman_, other->foreman_);
+ swap(start_, other->start_);
+ swap(total_cost_, other->total_cost_);
+ swap(state_, other->state_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryInfo::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryInfo_descriptor_;
- metadata.reflection = QueryInfo_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-::std::string* QueryProfile::_default_user_ = NULL;
-::std::string* QueryProfile::_default_queue_name_ = NULL;
-#ifndef _MSC_VER
+void QueryProfile::InitAsDefaultInstance() {
+ ::exec::shared::_QueryProfile_default_instance_._instance.get_mutable()->id_ = const_cast< ::exec::shared::QueryId*>(
+ ::exec::shared::QueryId::internal_default_instance());
+ ::exec::shared::_QueryProfile_default_instance_._instance.get_mutable()->foreman_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+void QueryProfile::clear_foreman() {
+ if (foreman_ != NULL) foreman_->Clear();
+ clear_has_foreman();
+}
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> QueryProfile::_i_give_permission_to_break_this_code_default_user_;
+::google::protobuf::internal::ExplicitlyConstructed<::std::string> QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_;
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int QueryProfile::kIdFieldNumber;
const int QueryProfile::kTypeFieldNumber;
const int QueryProfile::kStartFieldNumber;
@@ -5675,213 +6422,219 @@ const int QueryProfile::kQueueWaitEndFieldNumber;
const int QueryProfile::kTotalCostFieldNumber;
const int QueryProfile::kQueueNameFieldNumber;
const int QueryProfile::kQueryIdFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
QueryProfile::QueryProfile()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_QueryProfile.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.QueryProfile)
}
-
-void QueryProfile::InitAsDefaultInstance() {
- id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
- foreman_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
QueryProfile::QueryProfile(const QueryProfile& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ fragment_profile_(from.fragment_profile_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_query()) {
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
+ }
+ plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_plan()) {
+ plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plan_);
+ }
+ user_.UnsafeSetDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
+ if (from.has_user()) {
+ user_.AssignWithDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), from.user_);
+ }
+ error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_error()) {
+ error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
+ }
+ verboseerror_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_verboseerror()) {
+ verboseerror_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.verboseerror_);
+ }
+ error_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_error_id()) {
+ error_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_id_);
+ }
+ error_node_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_error_node()) {
+ error_node_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_node_);
+ }
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_options_json()) {
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
+ }
+ queue_name_.UnsafeSetDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ if (from.has_queue_name()) {
+ queue_name_.AssignWithDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), from.queue_name_);
+ }
+ queryid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_queryid()) {
+ queryid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.queryid_);
+ }
+ if (from.has_id()) {
+ id_ = new ::exec::shared::QueryId(*from.id_);
+ } else {
+ id_ = NULL;
+ }
+ if (from.has_foreman()) {
+ foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_);
+ } else {
+ foreman_ = NULL;
+ }
+ ::memcpy(&start_, &from.start_,
+ static_cast<size_t>(reinterpret_cast<char*>(&type_) -
+ reinterpret_cast<char*>(&start_)) + sizeof(type_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.QueryProfile)
}
void QueryProfile::SharedCtor() {
- _cached_size_ = 0;
- id_ = NULL;
+ query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ user_.UnsafeSetDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
+ error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ verboseerror_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ error_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ error_node_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ options_json_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ queue_name_.UnsafeSetDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ queryid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&finished_fragments_) -
+ reinterpret_cast<char*>(&id_)) + sizeof(finished_fragments_));
type_ = 1;
- start_ = GOOGLE_LONGLONG(0);
- end_ = GOOGLE_LONGLONG(0);
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- foreman_ = NULL;
- state_ = 0;
- total_fragments_ = 0;
- finished_fragments_ = 0;
- user_ = const_cast< ::std::string*>(_default_user_);
- error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- verboseerror_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- error_node_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- planend_ = GOOGLE_LONGLONG(0);
- queuewaitend_ = GOOGLE_LONGLONG(0);
- total_cost_ = 0;
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
- queryid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
QueryProfile::~QueryProfile() {
+ // @@protoc_insertion_point(destructor:exec.shared.QueryProfile)
SharedDtor();
}
void QueryProfile::SharedDtor() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- delete plan_;
- }
- if (user_ != _default_user_) {
- delete user_;
- }
- if (error_ != &::google::protobuf::internal::kEmptyString) {
- delete error_;
- }
- if (verboseerror_ != &::google::protobuf::internal::kEmptyString) {
- delete verboseerror_;
- }
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- delete error_id_;
- }
- if (error_node_ != &::google::protobuf::internal::kEmptyString) {
- delete error_node_;
- }
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (queue_name_ != _default_queue_name_) {
- delete queue_name_;
- }
- if (queryid_ != &::google::protobuf::internal::kEmptyString) {
- delete queryid_;
- }
- if (this != default_instance_) {
- delete id_;
- delete foreman_;
- }
+ query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ plan_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ user_.DestroyNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
+ error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ verboseerror_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ error_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ error_node_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ options_json_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ queue_name_.DestroyNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
+ queryid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete id_;
+ if (this != internal_default_instance()) delete foreman_;
}
void QueryProfile::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* QueryProfile::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return QueryProfile_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const QueryProfile& QueryProfile::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_QueryProfile.base);
+ return *internal_default_instance();
}
-QueryProfile* QueryProfile::default_instance_ = NULL;
-
-QueryProfile* QueryProfile::New() const {
- return new QueryProfile;
-}
void QueryProfile::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_id()) {
- if (id_ != NULL) id_->::exec::shared::QueryId::Clear();
- }
- type_ = 1;
- start_ = GOOGLE_LONGLONG(0);
- end_ = GOOGLE_LONGLONG(0);
- if (has_query()) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.QueryProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fragment_profile_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ query_.ClearNonDefaultToEmptyNoArena();
}
- if (has_plan()) {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- plan_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ plan_.ClearNonDefaultToEmptyNoArena();
}
- if (has_foreman()) {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000004u) {
+ user_.UnsafeMutablePointer()->assign(*&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
}
- state_ = 0;
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- total_fragments_ = 0;
- finished_fragments_ = 0;
- if (has_user()) {
- if (user_ != _default_user_) {
- user_->assign(*_default_user_);
- }
+ if (cached_has_bits & 0x00000008u) {
+ error_.ClearNonDefaultToEmptyNoArena();
}
- if (has_error()) {
- if (error_ != &::google::protobuf::internal::kEmptyString) {
- error_->clear();
- }
+ if (cached_has_bits & 0x00000010u) {
+ verboseerror_.ClearNonDefaultToEmptyNoArena();
}
- if (has_verboseerror()) {
- if (verboseerror_ != &::google::protobuf::internal::kEmptyString) {
- verboseerror_->clear();
- }
+ if (cached_has_bits & 0x00000020u) {
+ error_id_.ClearNonDefaultToEmptyNoArena();
}
- if (has_error_id()) {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- error_id_->clear();
- }
+ if (cached_has_bits & 0x00000040u) {
+ error_node_.ClearNonDefaultToEmptyNoArena();
}
- if (has_error_node()) {
- if (error_node_ != &::google::protobuf::internal::kEmptyString) {
- error_node_->clear();
- }
+ if (cached_has_bits & 0x00000080u) {
+ options_json_.ClearNonDefaultToEmptyNoArena();
}
}
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (has_options_json()) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ if (cached_has_bits & 3840u) {
+ if (cached_has_bits & 0x00000100u) {
+ queue_name_.UnsafeMutablePointer()->assign(*&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
- planend_ = GOOGLE_LONGLONG(0);
- queuewaitend_ = GOOGLE_LONGLONG(0);
- total_cost_ = 0;
- if (has_queue_name()) {
- if (queue_name_ != _default_queue_name_) {
- queue_name_->assign(*_default_queue_name_);
- }
+ if (cached_has_bits & 0x00000200u) {
+ queryid_.ClearNonDefaultToEmptyNoArena();
}
- if (has_queryid()) {
- if (queryid_ != &::google::protobuf::internal::kEmptyString) {
- queryid_->clear();
- }
+ if (cached_has_bits & 0x00000400u) {
+ GOOGLE_DCHECK(id_ != NULL);
+ id_->Clear();
+ }
+ if (cached_has_bits & 0x00000800u) {
+ GOOGLE_DCHECK(foreman_ != NULL);
+ foreman_->Clear();
}
}
- fragment_profile_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 61440u) {
+ ::memset(&start_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&total_fragments_) -
+ reinterpret_cast<char*>(&start_)) + sizeof(total_fragments_));
+ }
+ if (cached_has_bits & 2031616u) {
+ ::memset(&planend_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&finished_fragments_) -
+ reinterpret_cast<char*>(&planend_)) + sizeof(finished_fragments_));
+ type_ = 1;
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool QueryProfile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.QueryProfile)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_id()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_type;
break;
}
// optional .exec.shared.QueryType type = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -5889,100 +6642,91 @@ bool QueryProfile::MergePartialFromCodedStream(
if (::exec::shared::QueryType_IsValid(value)) {
set_type(static_cast< ::exec::shared::QueryType >(value));
} else {
- mutable_unknown_fields()->AddVarint(2, value);
+ mutable_unknown_fields()->AddVarint(
+ 2, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_start;
break;
}
// optional int64 start = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_start:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_start();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &start_)));
- set_has_start();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_end;
break;
}
// optional int64 end = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_end:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_end();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &end_)));
- set_has_end();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(42)) goto parse_query;
break;
}
// optional string query = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_query:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_query()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.query");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(50)) goto parse_plan;
break;
}
// optional string plan = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_plan:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_plan()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.plan");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(58)) goto parse_foreman;
break;
}
// optional .exec.DrillbitEndpoint foreman = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_foreman:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_foreman()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_state;
break;
}
// optional .exec.shared.QueryResult.QueryState state = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_state:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -5990,633 +6734,643 @@ bool QueryProfile::MergePartialFromCodedStream(
if (::exec::shared::QueryResult_QueryState_IsValid(value)) {
set_state(static_cast< ::exec::shared::QueryResult_QueryState >(value));
} else {
- mutable_unknown_fields()->AddVarint(8, value);
+ mutable_unknown_fields()->AddVarint(
+ 8, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(72)) goto parse_total_fragments;
break;
}
// optional int32 total_fragments = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_total_fragments:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_total_fragments();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &total_fragments_)));
- set_has_total_fragments();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(80)) goto parse_finished_fragments;
break;
}
// optional int32 finished_fragments = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_finished_fragments:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
+ set_has_finished_fragments();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &finished_fragments_)));
- set_has_finished_fragments();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(90)) goto parse_fragment_profile;
break;
}
// repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_fragment_profile:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_fragment_profile()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(90)) goto parse_fragment_profile;
- if (input->ExpectTag(98)) goto parse_user;
break;
}
// optional string user = 12 [default = "-"];
case 12: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_user:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_user()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.user");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(106)) goto parse_error;
break;
}
// optional string error = 13;
case 13: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_error()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error().data(), this->error().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error().data(), static_cast<int>(this->error().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.error");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(114)) goto parse_verboseError;
break;
}
// optional string verboseError = 14;
case 14: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_verboseError:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_verboseerror()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->verboseerror().data(), this->verboseerror().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->verboseerror().data(), static_cast<int>(this->verboseerror().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.verboseError");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(122)) goto parse_error_id;
break;
}
// optional string error_id = 15;
case 15: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_error_id()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.error_id");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(130)) goto parse_error_node;
break;
}
// optional string error_node = 16;
case 16: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error_node:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_error_node()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_node().data(), this->error_node().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_node().data(), static_cast<int>(this->error_node().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.error_node");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(138)) goto parse_options_json;
break;
}
// optional string options_json = 17;
case 17: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_options_json:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_options_json()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.options_json");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(144)) goto parse_planEnd;
break;
}
// optional int64 planEnd = 18;
case 18: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_planEnd:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
+ set_has_planend();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &planend_)));
- set_has_planend();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(152)) goto parse_queueWaitEnd;
break;
}
// optional int64 queueWaitEnd = 19;
case 19: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_queueWaitEnd:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
+ set_has_queuewaitend();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &queuewaitend_)));
- set_has_queuewaitend();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(161)) goto parse_total_cost;
break;
}
// optional double total_cost = 20;
case 20: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
- parse_total_cost:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(161u /* 161 & 0xFF */)) {
+ set_has_total_cost();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &total_cost_)));
- set_has_total_cost();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(170)) goto parse_queue_name;
break;
}
// optional string queue_name = 21 [default = "-"];
case 21: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_queue_name:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_queue_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.queue_name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(178)) goto parse_queryId;
break;
}
// optional string queryId = 22;
case 22: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_queryId:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_queryid()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queryid().data(), this->queryid().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queryid().data(), static_cast<int>(this->queryid().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.QueryProfile.queryId");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.QueryProfile)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.QueryProfile)
+ return false;
#undef DO_
}
void QueryProfile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.QueryProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId id = 1;
- if (has_id()) {
+ if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->id(), output);
+ 1, this->_internal_id(), output);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00100000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->type(), output);
}
// optional int64 start = 3;
- if (has_start()) {
+ if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->start(), output);
}
// optional int64 end = 4;
- if (has_end()) {
+ if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->end(), output);
}
// optional string query = 5;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.query");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->query(), output);
}
// optional string plan = 6;
- if (has_plan()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.plan");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->plan(), output);
}
// optional .exec.DrillbitEndpoint foreman = 7;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->foreman(), output);
+ 7, this->_internal_foreman(), output);
}
// optional .exec.shared.QueryResult.QueryState state = 8;
- if (has_state()) {
+ if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
8, this->state(), output);
}
// optional int32 total_fragments = 9;
- if (has_total_fragments()) {
+ if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->total_fragments(), output);
}
// optional int32 finished_fragments = 10;
- if (has_finished_fragments()) {
+ if (cached_has_bits & 0x00080000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->finished_fragments(), output);
}
// repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
- for (int i = 0; i < this->fragment_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_profile_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->fragment_profile(i), output);
+ 11,
+ this->fragment_profile(static_cast<int>(i)),
+ output);
}
// optional string user = 12 [default = "-"];
- if (has_user()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.user");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12, this->user(), output);
}
// optional string error = 13;
- if (has_error()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error().data(), this->error().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error().data(), static_cast<int>(this->error().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13, this->error(), output);
}
// optional string verboseError = 14;
- if (has_verboseerror()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->verboseerror().data(), this->verboseerror().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->verboseerror().data(), static_cast<int>(this->verboseerror().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.verboseError");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14, this->verboseerror(), output);
}
// optional string error_id = 15;
- if (has_error_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
15, this->error_id(), output);
}
// optional string error_node = 16;
- if (has_error_node()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_node().data(), this->error_node().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_node().data(), static_cast<int>(this->error_node().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error_node");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
16, this->error_node(), output);
}
// optional string options_json = 17;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000080u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.options_json");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
17, this->options_json(), output);
}
// optional int64 planEnd = 18;
- if (has_planend()) {
+ if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(18, this->planend(), output);
}
// optional int64 queueWaitEnd = 19;
- if (has_queuewaitend()) {
+ if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(19, this->queuewaitend(), output);
}
// optional double total_cost = 20;
- if (has_total_cost()) {
+ if (cached_has_bits & 0x00040000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->total_cost(), output);
}
// optional string queue_name = 21 [default = "-"];
- if (has_queue_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000100u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.queue_name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21, this->queue_name(), output);
}
// optional string queryId = 22;
- if (has_queryid()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queryid().data(), this->queryid().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000200u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queryid().data(), static_cast<int>(this->queryid().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.queryId");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
22, this->queryid(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.QueryProfile)
}
-::google::protobuf::uint8* QueryProfile::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* QueryProfile::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.QueryId id = 1;
- if (has_id()) {
+ if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->id(), target);
+ InternalWriteMessageToArray(
+ 1, this->_internal_id(), deterministic, target);
}
// optional .exec.shared.QueryType type = 2;
- if (has_type()) {
+ if (cached_has_bits & 0x00100000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->type(), target);
}
// optional int64 start = 3;
- if (has_start()) {
+ if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->start(), target);
}
// optional int64 end = 4;
- if (has_end()) {
+ if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->end(), target);
}
// optional string query = 5;
- if (has_query()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->query().data(), this->query().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->query().data(), static_cast<int>(this->query().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.query");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->query(), target);
}
// optional string plan = 6;
- if (has_plan()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->plan().data(), this->plan().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->plan().data(), static_cast<int>(this->plan().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.plan");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->plan(), target);
}
// optional .exec.DrillbitEndpoint foreman = 7;
- if (has_foreman()) {
+ if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 7, this->foreman(), target);
+ InternalWriteMessageToArray(
+ 7, this->_internal_foreman(), deterministic, target);
}
// optional .exec.shared.QueryResult.QueryState state = 8;
- if (has_state()) {
+ if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8, this->state(), target);
}
// optional int32 total_fragments = 9;
- if (has_total_fragments()) {
+ if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->total_fragments(), target);
}
// optional int32 finished_fragments = 10;
- if (has_finished_fragments()) {
+ if (cached_has_bits & 0x00080000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->finished_fragments(), target);
}
// repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
- for (int i = 0; i < this->fragment_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fragment_profile_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 11, this->fragment_profile(i), target);
+ InternalWriteMessageToArray(
+ 11, this->fragment_profile(static_cast<int>(i)), deterministic, target);
}
// optional string user = 12 [default = "-"];
- if (has_user()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->user().data(), this->user().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000004u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->user().data(), static_cast<int>(this->user().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.user");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12, this->user(), target);
}
// optional string error = 13;
- if (has_error()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error().data(), this->error().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000008u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error().data(), static_cast<int>(this->error().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13, this->error(), target);
}
// optional string verboseError = 14;
- if (has_verboseerror()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->verboseerror().data(), this->verboseerror().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000010u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->verboseerror().data(), static_cast<int>(this->verboseerror().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.verboseError");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14, this->verboseerror(), target);
}
// optional string error_id = 15;
- if (has_error_id()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_id().data(), this->error_id().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000020u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_id().data(), static_cast<int>(this->error_id().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error_id");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15, this->error_id(), target);
}
// optional string error_node = 16;
- if (has_error_node()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->error_node().data(), this->error_node().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000040u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->error_node().data(), static_cast<int>(this->error_node().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.error_node");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
16, this->error_node(), target);
}
// optional string options_json = 17;
- if (has_options_json()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->options_json().data(), this->options_json().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000080u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->options_json().data(), static_cast<int>(this->options_json().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.options_json");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
17, this->options_json(), target);
}
// optional int64 planEnd = 18;
- if (has_planend()) {
+ if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(18, this->planend(), target);
}
// optional int64 queueWaitEnd = 19;
- if (has_queuewaitend()) {
+ if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(19, this->queuewaitend(), target);
}
// optional double total_cost = 20;
- if (has_total_cost()) {
+ if (cached_has_bits & 0x00040000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->total_cost(), target);
}
// optional string queue_name = 21 [default = "-"];
- if (has_queue_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queue_name().data(), this->queue_name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000100u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queue_name().data(), static_cast<int>(this->queue_name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.queue_name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
21, this->queue_name(), target);
}
// optional string queryId = 22;
- if (has_queryid()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->queryid().data(), this->queryid().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000200u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->queryid().data(), static_cast<int>(this->queryid().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.QueryProfile.queryId");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
22, this->queryid(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.QueryProfile)
return target;
}
-int QueryProfile::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.shared.QueryId id = 1;
- if (has_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->id());
- }
-
- // optional .exec.shared.QueryType type = 2;
- if (has_type()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
- }
-
- // optional int64 start = 3;
- if (has_start()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->start());
- }
+size_t QueryProfile::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryProfile)
+ size_t total_size = 0;
- // optional int64 end = 4;
- if (has_end()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->end());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fragment_profile_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fragment_profile(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional string query = 5;
if (has_query()) {
total_size += 1 +
@@ -6631,35 +7385,6 @@ int QueryProfile::ByteSize() const {
this->plan());
}
- // optional .exec.DrillbitEndpoint foreman = 7;
- if (has_foreman()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->foreman());
- }
-
- // optional .exec.shared.QueryResult.QueryState state = 8;
- if (has_state()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
- }
-
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional int32 total_fragments = 9;
- if (has_total_fragments()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->total_fragments());
- }
-
- // optional int32 finished_fragments = 10;
- if (has_finished_fragments()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->finished_fragments());
- }
-
// optional string user = 12 [default = "-"];
if (has_user()) {
total_size += 1 +
@@ -6695,8 +7420,6 @@ int QueryProfile::ByteSize() const {
this->error_node());
}
- }
- if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional string options_json = 17;
if (has_options_json()) {
total_size += 2 +
@@ -6704,6 +7427,65 @@ int QueryProfile::ByteSize() const {
this->options_json());
}
+ }
+ if (_has_bits_[8 / 32] & 65280u) {
+ // optional string queue_name = 21 [default = "-"];
+ if (has_queue_name()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->queue_name());
+ }
+
+ // optional string queryId = 22;
+ if (has_queryid()) {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->queryid());
+ }
+
+ // optional .exec.shared.QueryId id = 1;
+ if (has_id()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *id_);
+ }
+
+ // optional .exec.DrillbitEndpoint foreman = 7;
+ if (has_foreman()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *foreman_);
+ }
+
+ // optional int64 start = 3;
+ if (has_start()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->start());
+ }
+
+ // optional int64 end = 4;
+ if (has_end()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->end());
+ }
+
+ // optional .exec.shared.QueryResult.QueryState state = 8;
+ if (has_state()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
+ }
+
+ // optional int32 total_fragments = 9;
+ if (has_total_fragments()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->total_fragments());
+ }
+
+ }
+ if (_has_bits_[16 / 32] & 2031616u) {
// optional int64 planEnd = 18;
if (has_planend()) {
total_size += 2 +
@@ -6723,434 +7505,484 @@ int QueryProfile::ByteSize() const {
total_size += 2 + 8;
}
- // optional string queue_name = 21 [default = "-"];
- if (has_queue_name()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->queue_name());
+ // optional int32 finished_fragments = 10;
+ if (has_finished_fragments()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->finished_fragments());
}
- // optional string queryId = 22;
- if (has_queryid()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->queryid());
+ // optional .exec.shared.QueryType type = 2;
+ if (has_type()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
}
- // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
- total_size += 1 * this->fragment_profile_size();
- for (int i = 0; i < this->fragment_profile_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->fragment_profile(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void QueryProfile::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryProfile)
+ GOOGLE_DCHECK_NE(&from, this);
const QueryProfile* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const QueryProfile*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const QueryProfile>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryProfile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryProfile)
MergeFrom(*source);
}
}
void QueryProfile::MergeFrom(const QueryProfile& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryProfile)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
fragment_profile_.MergeFrom(from.fragment_profile_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_id()) {
- mutable_id()->::exec::shared::QueryId::MergeFrom(from.id());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_query();
+ query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_);
}
- if (from.has_type()) {
- set_type(from.type());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_plan();
+ plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plan_);
}
- if (from.has_start()) {
- set_start(from.start());
+ if (cached_has_bits & 0x00000004u) {
+ set_has_user();
+ user_.AssignWithDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), from.user_);
}
- if (from.has_end()) {
- set_end(from.end());
+ if (cached_has_bits & 0x00000008u) {
+ set_has_error();
+ error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
}
- if (from.has_query()) {
- set_query(from.query());
+ if (cached_has_bits & 0x00000010u) {
+ set_has_verboseerror();
+ verboseerror_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.verboseerror_);
}
- if (from.has_plan()) {
- set_plan(from.plan());
+ if (cached_has_bits & 0x00000020u) {
+ set_has_error_id();
+ error_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_id_);
}
- if (from.has_foreman()) {
- mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
+ if (cached_has_bits & 0x00000040u) {
+ set_has_error_node();
+ error_node_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_node_);
}
- if (from.has_state()) {
- set_state(from.state());
+ if (cached_has_bits & 0x00000080u) {
+ set_has_options_json();
+ options_json_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.options_json_);
}
}
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_total_fragments()) {
- set_total_fragments(from.total_fragments());
+ if (cached_has_bits & 65280u) {
+ if (cached_has_bits & 0x00000100u) {
+ set_has_queue_name();
+ queue_name_.AssignWithDefault(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), from.queue_name_);
}
- if (from.has_finished_fragments()) {
- set_finished_fragments(from.finished_fragments());
+ if (cached_has_bits & 0x00000200u) {
+ set_has_queryid();
+ queryid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.queryid_);
}
- if (from.has_user()) {
- set_user(from.user());
+ if (cached_has_bits & 0x00000400u) {
+ mutable_id()->::exec::shared::QueryId::MergeFrom(from.id());
}
- if (from.has_error()) {
- set_error(from.error());
+ if (cached_has_bits & 0x00000800u) {
+ mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from.foreman());
}
- if (from.has_verboseerror()) {
- set_verboseerror(from.verboseerror());
+ if (cached_has_bits & 0x00001000u) {
+ start_ = from.start_;
}
- if (from.has_error_id()) {
- set_error_id(from.error_id());
+ if (cached_has_bits & 0x00002000u) {
+ end_ = from.end_;
}
- if (from.has_error_node()) {
- set_error_node(from.error_node());
+ if (cached_has_bits & 0x00004000u) {
+ state_ = from.state_;
}
- }
- if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
- if (from.has_options_json()) {
- set_options_json(from.options_json());
+ if (cached_has_bits & 0x00008000u) {
+ total_fragments_ = from.total_fragments_;
}
- if (from.has_planend()) {
- set_planend(from.planend());
+ _has_bits_[0] |= cached_has_bits;
+ }
+ if (cached_has_bits & 2031616u) {
+ if (cached_has_bits & 0x00010000u) {
+ planend_ = from.planend_;
}
- if (from.has_queuewaitend()) {
- set_queuewaitend(from.queuewaitend());
+ if (cached_has_bits & 0x00020000u) {
+ queuewaitend_ = from.queuewaitend_;
}
- if (from.has_total_cost()) {
- set_total_cost(from.total_cost());
+ if (cached_has_bits & 0x00040000u) {
+ total_cost_ = from.total_cost_;
}
- if (from.has_queue_name()) {
- set_queue_name(from.queue_name());
+ if (cached_has_bits & 0x00080000u) {
+ finished_fragments_ = from.finished_fragments_;
}
- if (from.has_queryid()) {
- set_queryid(from.queryid());
+ if (cached_has_bits & 0x00100000u) {
+ type_ = from.type_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void QueryProfile::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void QueryProfile::CopyFrom(const QueryProfile& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool QueryProfile::IsInitialized() const {
-
return true;
}
void QueryProfile::Swap(QueryProfile* other) {
- if (other != this) {
- std::swap(id_, other->id_);
- std::swap(type_, other->type_);
- std::swap(start_, other->start_);
- std::swap(end_, other->end_);
- std::swap(query_, other->query_);
- std::swap(plan_, other->plan_);
- std::swap(foreman_, other->foreman_);
- std::swap(state_, other->state_);
- std::swap(total_fragments_, other->total_fragments_);
- std::swap(finished_fragments_, other->finished_fragments_);
- fragment_profile_.Swap(&other->fragment_profile_);
- std::swap(user_, other->user_);
- std::swap(error_, other->error_);
- std::swap(verboseerror_, other->verboseerror_);
- std::swap(error_id_, other->error_id_);
- std::swap(error_node_, other->error_node_);
- std::swap(options_json_, other->options_json_);
- std::swap(planend_, other->planend_);
- std::swap(queuewaitend_, other->queuewaitend_);
- std::swap(total_cost_, other->total_cost_);
- std::swap(queue_name_, other->queue_name_);
- std::swap(queryid_, other->queryid_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void QueryProfile::InternalSwap(QueryProfile* other) {
+ using std::swap;
+ CastToBase(&fragment_profile_)->InternalSwap(CastToBase(&other->fragment_profile_));
+ query_.Swap(&other->query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ plan_.Swap(&other->plan_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ user_.Swap(&other->user_, &::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(),
+ GetArenaNoVirtual());
+ error_.Swap(&other->error_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ verboseerror_.Swap(&other->verboseerror_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ error_id_.Swap(&other->error_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ error_node_.Swap(&other->error_node_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ options_json_.Swap(&other->options_json_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ queue_name_.Swap(&other->queue_name_, &::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(),
+ GetArenaNoVirtual());
+ queryid_.Swap(&other->queryid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(id_, other->id_);
+ swap(foreman_, other->foreman_);
+ swap(start_, other->start_);
+ swap(end_, other->end_);
+ swap(state_, other->state_);
+ swap(total_fragments_, other->total_fragments_);
+ swap(planend_, other->planend_);
+ swap(queuewaitend_, other->queuewaitend_);
+ swap(total_cost_, other->total_cost_);
+ swap(finished_fragments_, other->finished_fragments_);
+ swap(type_, other->type_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata QueryProfile::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = QueryProfile_descriptor_;
- metadata.reflection = QueryProfile_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void MajorFragmentProfile::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MajorFragmentProfile::kMajorFragmentIdFieldNumber;
const int MajorFragmentProfile::kMinorFragmentProfileFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MajorFragmentProfile::MajorFragmentProfile()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_MajorFragmentProfile.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.MajorFragmentProfile)
}
-
-void MajorFragmentProfile::InitAsDefaultInstance() {
-}
-
MajorFragmentProfile::MajorFragmentProfile(const MajorFragmentProfile& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ minor_fragment_profile_(from.minor_fragment_profile_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ major_fragment_id_ = from.major_fragment_id_;
+ // @@protoc_insertion_point(copy_constructor:exec.shared.MajorFragmentProfile)
}
void MajorFragmentProfile::SharedCtor() {
- _cached_size_ = 0;
major_fragment_id_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
MajorFragmentProfile::~MajorFragmentProfile() {
+ // @@protoc_insertion_point(destructor:exec.shared.MajorFragmentProfile)
SharedDtor();
}
void MajorFragmentProfile::SharedDtor() {
- if (this != default_instance_) {
- }
}
void MajorFragmentProfile::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* MajorFragmentProfile::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MajorFragmentProfile_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const MajorFragmentProfile& MajorFragmentProfile::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_MajorFragmentProfile.base);
+ return *internal_default_instance();
}
-MajorFragmentProfile* MajorFragmentProfile::default_instance_ = NULL;
-
-MajorFragmentProfile* MajorFragmentProfile::New() const {
- return new MajorFragmentProfile;
-}
void MajorFragmentProfile::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- major_fragment_id_ = 0;
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.MajorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
minor_fragment_profile_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ major_fragment_id_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool MajorFragmentProfile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.MajorFragmentProfile)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 major_fragment_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_major_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &major_fragment_id_)));
- set_has_major_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_minor_fragment_profile;
break;
}
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_minor_fragment_profile:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_minor_fragment_profile()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_minor_fragment_profile;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.MajorFragmentProfile)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.MajorFragmentProfile)
+ return false;
#undef DO_
}
void MajorFragmentProfile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.MajorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 major_fragment_id = 1;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->major_fragment_id(), output);
}
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
- for (int i = 0; i < this->minor_fragment_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->minor_fragment_profile_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->minor_fragment_profile(i), output);
+ 2,
+ this->minor_fragment_profile(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.MajorFragmentProfile)
}
-::google::protobuf::uint8* MajorFragmentProfile::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* MajorFragmentProfile::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MajorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 major_fragment_id = 1;
- if (has_major_fragment_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->major_fragment_id(), target);
}
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
- for (int i = 0; i < this->minor_fragment_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->minor_fragment_profile_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->minor_fragment_profile(i), target);
+ InternalWriteMessageToArray(
+ 2, this->minor_fragment_profile(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.MajorFragmentProfile)
return target;
}
-int MajorFragmentProfile::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 major_fragment_id = 1;
- if (has_major_fragment_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->major_fragment_id());
- }
+size_t MajorFragmentProfile::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.MajorFragmentProfile)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
}
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
- total_size += 1 * this->minor_fragment_profile_size();
- for (int i = 0; i < this->minor_fragment_profile_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->minor_fragment_profile(i));
+ {
+ unsigned int count = static_cast<unsigned int>(this->minor_fragment_profile_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->minor_fragment_profile(static_cast<int>(i)));
+ }
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional int32 major_fragment_id = 1;
+ if (has_major_fragment_id()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->major_fragment_id());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void MajorFragmentProfile::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MajorFragmentProfile)
+ GOOGLE_DCHECK_NE(&from, this);
const MajorFragmentProfile* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MajorFragmentProfile*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const MajorFragmentProfile>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MajorFragmentProfile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MajorFragmentProfile)
MergeFrom(*source);
}
}
void MajorFragmentProfile::MergeFrom(const MajorFragmentProfile& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MajorFragmentProfile)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
minor_fragment_profile_.MergeFrom(from.minor_fragment_profile_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_major_fragment_id()) {
- set_major_fragment_id(from.major_fragment_id());
- }
+ if (from.has_major_fragment_id()) {
+ set_major_fragment_id(from.major_fragment_id());
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void MajorFragmentProfile::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MajorFragmentProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MajorFragmentProfile::CopyFrom(const MajorFragmentProfile& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MajorFragmentProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MajorFragmentProfile::IsInitialized() const {
-
return true;
}
void MajorFragmentProfile::Swap(MajorFragmentProfile* other) {
- if (other != this) {
- std::swap(major_fragment_id_, other->major_fragment_id_);
- minor_fragment_profile_.Swap(&other->minor_fragment_profile_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MajorFragmentProfile::InternalSwap(MajorFragmentProfile* other) {
+ using std::swap;
+ CastToBase(&minor_fragment_profile_)->InternalSwap(CastToBase(&other->minor_fragment_profile_));
+ swap(major_fragment_id_, other->major_fragment_id_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata MajorFragmentProfile::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MajorFragmentProfile_descriptor_;
- metadata.reflection = MajorFragmentProfile_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void MinorFragmentProfile::InitAsDefaultInstance() {
+ ::exec::shared::_MinorFragmentProfile_default_instance_._instance.get_mutable()->error_ = const_cast< ::exec::shared::DrillPBError*>(
+ ::exec::shared::DrillPBError::internal_default_instance());
+ ::exec::shared::_MinorFragmentProfile_default_instance_._instance.get_mutable()->endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(
+ ::exec::DrillbitEndpoint::internal_default_instance());
+}
+void MinorFragmentProfile::clear_endpoint() {
+ if (endpoint_ != NULL) endpoint_->Clear();
+ clear_has_endpoint();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MinorFragmentProfile::kStateFieldNumber;
const int MinorFragmentProfile::kErrorFieldNumber;
const int MinorFragmentProfile::kMinorFragmentIdFieldNumber;
@@ -7162,105 +7994,113 @@ const int MinorFragmentProfile::kMaxMemoryUsedFieldNumber;
const int MinorFragmentProfile::kEndpointFieldNumber;
const int MinorFragmentProfile::kLastUpdateFieldNumber;
const int MinorFragmentProfile::kLastProgressFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MinorFragmentProfile::MinorFragmentProfile()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_MinorFragmentProfile.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.MinorFragmentProfile)
}
-
-void MinorFragmentProfile::InitAsDefaultInstance() {
- error_ = const_cast< ::exec::shared::DrillPBError*>(&::exec::shared::DrillPBError::default_instance());
- endpoint_ = const_cast< ::exec::DrillbitEndpoint*>(&::exec::DrillbitEndpoint::default_instance());
-}
-
MinorFragmentProfile::MinorFragmentProfile(const MinorFragmentProfile& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ operator_profile_(from.operator_profile_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_error()) {
+ error_ = new ::exec::shared::DrillPBError(*from.error_);
+ } else {
+ error_ = NULL;
+ }
+ if (from.has_endpoint()) {
+ endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_);
+ } else {
+ endpoint_ = NULL;
+ }
+ ::memcpy(&state_, &from.state_,
+ static_cast<size_t>(reinterpret_cast<char*>(&last_progress_) -
+ reinterpret_cast<char*>(&state_)) + sizeof(last_progress_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.MinorFragmentProfile)
}
void MinorFragmentProfile::SharedCtor() {
- _cached_size_ = 0;
- state_ = 0;
- error_ = NULL;
- minor_fragment_id_ = 0;
- start_time_ = GOOGLE_LONGLONG(0);
- end_time_ = GOOGLE_LONGLONG(0);
- memory_used_ = GOOGLE_LONGLONG(0);
- max_memory_used_ = GOOGLE_LONGLONG(0);
- endpoint_ = NULL;
- last_update_ = GOOGLE_LONGLONG(0);
- last_progress_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&error_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&last_progress_) -
+ reinterpret_cast<char*>(&error_)) + sizeof(last_progress_));
}
MinorFragmentProfile::~MinorFragmentProfile() {
+ // @@protoc_insertion_point(destructor:exec.shared.MinorFragmentProfile)
SharedDtor();
}
void MinorFragmentProfile::SharedDtor() {
- if (this != default_instance_) {
- delete error_;
- delete endpoint_;
- }
+ if (this != internal_default_instance()) delete error_;
+ if (this != internal_default_instance()) delete endpoint_;
}
void MinorFragmentProfile::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* MinorFragmentProfile::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MinorFragmentProfile_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const MinorFragmentProfile& MinorFragmentProfile::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_MinorFragmentProfile.base);
+ return *internal_default_instance();
}
-MinorFragmentProfile* MinorFragmentProfile::default_instance_ = NULL;
-
-MinorFragmentProfile* MinorFragmentProfile::New() const {
- return new MinorFragmentProfile;
-}
void MinorFragmentProfile::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- state_ = 0;
- if (has_error()) {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+// @@protoc_insertion_point(message_clear_start:exec.shared.MinorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ operator_profile_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(error_ != NULL);
+ error_->Clear();
}
- minor_fragment_id_ = 0;
- start_time_ = GOOGLE_LONGLONG(0);
- end_time_ = GOOGLE_LONGLONG(0);
- memory_used_ = GOOGLE_LONGLONG(0);
- max_memory_used_ = GOOGLE_LONGLONG(0);
- }
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (has_endpoint()) {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(endpoint_ != NULL);
+ endpoint_->Clear();
}
- last_update_ = GOOGLE_LONGLONG(0);
- last_progress_ = GOOGLE_LONGLONG(0);
}
- operator_profile_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ if (cached_has_bits & 252u) {
+ ::memset(&state_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&max_memory_used_) -
+ reinterpret_cast<char*>(&state_)) + sizeof(max_memory_used_));
+ }
+ if (cached_has_bits & 768u) {
+ ::memset(&last_update_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&last_progress_) -
+ reinterpret_cast<char*>(&last_update_)) + sizeof(last_progress_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool MinorFragmentProfile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.MinorFragmentProfile)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.FragmentState state = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -7268,339 +8108,363 @@ bool MinorFragmentProfile::MergePartialFromCodedStream(
if (::exec::shared::FragmentState_IsValid(value)) {
set_state(static_cast< ::exec::shared::FragmentState >(value));
} else {
- mutable_unknown_fields()->AddVarint(1, value);
+ mutable_unknown_fields()->AddVarint(
+ 1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_error;
break;
}
// optional .exec.shared.DrillPBError error = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_error:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_error()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_minor_fragment_id;
break;
}
// optional int32 minor_fragment_id = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_minor_fragment_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_minor_fragment_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &minor_fragment_id_)));
- set_has_minor_fragment_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_operator_profile;
break;
}
// repeated .exec.shared.OperatorProfile operator_profile = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_operator_profile:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_operator_profile()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(34)) goto parse_operator_profile;
- if (input->ExpectTag(40)) goto parse_start_time;
break;
}
// optional int64 start_time = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_start_time:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_start_time();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &start_time_)));
- set_has_start_time();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_end_time;
break;
}
// optional int64 end_time = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_end_time:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ set_has_end_time();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &end_time_)));
- set_has_end_time();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_memory_used;
break;
}
// optional int64 memory_used = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_memory_used:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_memory_used();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &memory_used_)));
- set_has_memory_used();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(64)) goto parse_max_memory_used;
break;
}
// optional int64 max_memory_used = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_max_memory_used:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
+ set_has_max_memory_used();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &max_memory_used_)));
- set_has_max_memory_used();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(74)) goto parse_endpoint;
break;
}
// optional .exec.DrillbitEndpoint endpoint = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_endpoint:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_endpoint()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(80)) goto parse_last_update;
break;
}
// optional int64 last_update = 10;
case 10: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_last_update:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
+ set_has_last_update();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &last_update_)));
- set_has_last_update();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(88)) goto parse_last_progress;
break;
}
// optional int64 last_progress = 11;
case 11: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_last_progress:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
+ set_has_last_progress();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &last_progress_)));
- set_has_last_progress();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.MinorFragmentProfile)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.MinorFragmentProfile)
+ return false;
#undef DO_
}
void MinorFragmentProfile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.MinorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.FragmentState state = 1;
- if (has_state()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->state(), output);
}
// optional .exec.shared.DrillPBError error = 2;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->error(), output);
+ 2, this->_internal_error(), output);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->minor_fragment_id(), output);
}
// repeated .exec.shared.OperatorProfile operator_profile = 4;
- for (int i = 0; i < this->operator_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->operator_profile_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->operator_profile(i), output);
+ 4,
+ this->operator_profile(static_cast<int>(i)),
+ output);
}
// optional int64 start_time = 5;
- if (has_start_time()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->start_time(), output);
}
// optional int64 end_time = 6;
- if (has_end_time()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->end_time(), output);
}
// optional int64 memory_used = 7;
- if (has_memory_used()) {
+ if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->memory_used(), output);
}
// optional int64 max_memory_used = 8;
- if (has_max_memory_used()) {
+ if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->max_memory_used(), output);
}
// optional .exec.DrillbitEndpoint endpoint = 9;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, this->endpoint(), output);
+ 9, this->_internal_endpoint(), output);
}
// optional int64 last_update = 10;
- if (has_last_update()) {
+ if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->last_update(), output);
}
// optional int64 last_progress = 11;
- if (has_last_progress()) {
+ if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(11, this->last_progress(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.MinorFragmentProfile)
}
-::google::protobuf::uint8* MinorFragmentProfile::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* MinorFragmentProfile::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MinorFragmentProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional .exec.shared.FragmentState state = 1;
- if (has_state()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->state(), target);
}
// optional .exec.shared.DrillPBError error = 2;
- if (has_error()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 2, this->error(), target);
+ InternalWriteMessageToArray(
+ 2, this->_internal_error(), deterministic, target);
}
// optional int32 minor_fragment_id = 3;
- if (has_minor_fragment_id()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->minor_fragment_id(), target);
}
// repeated .exec.shared.OperatorProfile operator_profile = 4;
- for (int i = 0; i < this->operator_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->operator_profile_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 4, this->operator_profile(i), target);
+ InternalWriteMessageToArray(
+ 4, this->operator_profile(static_cast<int>(i)), deterministic, target);
}
// optional int64 start_time = 5;
- if (has_start_time()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->start_time(), target);
}
// optional int64 end_time = 6;
- if (has_end_time()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->end_time(), target);
}
// optional int64 memory_used = 7;
- if (has_memory_used()) {
+ if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->memory_used(), target);
}
// optional int64 max_memory_used = 8;
- if (has_max_memory_used()) {
+ if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->max_memory_used(), target);
}
// optional .exec.DrillbitEndpoint endpoint = 9;
- if (has_endpoint()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 9, this->endpoint(), target);
+ InternalWriteMessageToArray(
+ 9, this->_internal_endpoint(), deterministic, target);
}
// optional int64 last_update = 10;
- if (has_last_update()) {
+ if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->last_update(), target);
}
// optional int64 last_progress = 11;
- if (has_last_progress()) {
+ if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(11, this->last_progress(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.MinorFragmentProfile)
return target;
}
-int MinorFragmentProfile::ByteSize() const {
- int total_size = 0;
+size_t MinorFragmentProfile::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.MinorFragmentProfile)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional .exec.shared.FragmentState state = 1;
- if (has_state()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.OperatorProfile operator_profile = 4;
+ {
+ unsigned int count = static_cast<unsigned int>(this->operator_profile_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->operator_profile(static_cast<int>(i)));
}
+ }
+ if (_has_bits_[0 / 32] & 255u) {
// optional .exec.shared.DrillPBError error = 2;
if (has_error()) {
total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->error());
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *error_);
+ }
+
+ // optional .exec.DrillbitEndpoint endpoint = 9;
+ if (has_endpoint()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *endpoint_);
+ }
+
+ // optional .exec.shared.FragmentState state = 1;
+ if (has_state()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
}
// optional int32 minor_fragment_id = 3;
@@ -7639,14 +8503,7 @@ int MinorFragmentProfile::ByteSize() const {
}
}
- if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- // optional .exec.DrillbitEndpoint endpoint = 9;
- if (has_endpoint()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->endpoint());
- }
-
+ if (_has_bits_[8 / 32] & 768u) {
// optional int64 last_update = 10;
if (has_last_update()) {
total_size += 1 +
@@ -7662,125 +8519,123 @@ int MinorFragmentProfile::ByteSize() const {
}
}
- // repeated .exec.shared.OperatorProfile operator_profile = 4;
- total_size += 1 * this->operator_profile_size();
- for (int i = 0; i < this->operator_profile_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->operator_profile(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void MinorFragmentProfile::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MinorFragmentProfile)
+ GOOGLE_DCHECK_NE(&from, this);
const MinorFragmentProfile* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MinorFragmentProfile*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const MinorFragmentProfile>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MinorFragmentProfile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MinorFragmentProfile)
MergeFrom(*source);
}
}
void MinorFragmentProfile::MergeFrom(const MinorFragmentProfile& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MinorFragmentProfile)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
operator_profile_.MergeFrom(from.operator_profile_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_state()) {
- set_state(from.state());
- }
- if (from.has_error()) {
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 255u) {
+ if (cached_has_bits & 0x00000001u) {
mutable_error()->::exec::shared::DrillPBError::MergeFrom(from.error());
}
- if (from.has_minor_fragment_id()) {
- set_minor_fragment_id(from.minor_fragment_id());
+ if (cached_has_bits & 0x00000002u) {
+ mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
}
- if (from.has_start_time()) {
- set_start_time(from.start_time());
+ if (cached_has_bits & 0x00000004u) {
+ state_ = from.state_;
}
- if (from.has_end_time()) {
- set_end_time(from.end_time());
+ if (cached_has_bits & 0x00000008u) {
+ minor_fragment_id_ = from.minor_fragment_id_;
}
- if (from.has_memory_used()) {
- set_memory_used(from.memory_used());
+ if (cached_has_bits & 0x00000010u) {
+ start_time_ = from.start_time_;
}
- if (from.has_max_memory_used()) {
- set_max_memory_used(from.max_memory_used());
+ if (cached_has_bits & 0x00000020u) {
+ end_time_ = from.end_time_;
}
- }
- if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
- if (from.has_endpoint()) {
- mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from.endpoint());
+ if (cached_has_bits & 0x00000040u) {
+ memory_used_ = from.memory_used_;
+ }
+ if (cached_has_bits & 0x00000080u) {
+ max_memory_used_ = from.max_memory_used_;
}
- if (from.has_last_update()) {
- set_last_update(from.last_update());
+ _has_bits_[0] |= cached_has_bits;
+ }
+ if (cached_has_bits & 768u) {
+ if (cached_has_bits & 0x00000100u) {
+ last_update_ = from.last_update_;
}
- if (from.has_last_progress()) {
- set_last_progress(from.last_progress());
+ if (cached_has_bits & 0x00000200u) {
+ last_progress_ = from.last_progress_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void MinorFragmentProfile::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MinorFragmentProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MinorFragmentProfile::CopyFrom(const MinorFragmentProfile& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MinorFragmentProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MinorFragmentProfile::IsInitialized() const {
-
return true;
}
void MinorFragmentProfile::Swap(MinorFragmentProfile* other) {
- if (other != this) {
- std::swap(state_, other->state_);
- std::swap(error_, other->error_);
- std::swap(minor_fragment_id_, other->minor_fragment_id_);
- operator_profile_.Swap(&other->operator_profile_);
- std::swap(start_time_, other->start_time_);
- std::swap(end_time_, other->end_time_);
- std::swap(memory_used_, other->memory_used_);
- std::swap(max_memory_used_, other->max_memory_used_);
- std::swap(endpoint_, other->endpoint_);
- std::swap(last_update_, other->last_update_);
- std::swap(last_progress_, other->last_progress_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MinorFragmentProfile::InternalSwap(MinorFragmentProfile* other) {
+ using std::swap;
+ CastToBase(&operator_profile_)->InternalSwap(CastToBase(&other->operator_profile_));
+ swap(error_, other->error_);
+ swap(endpoint_, other->endpoint_);
+ swap(state_, other->state_);
+ swap(minor_fragment_id_, other->minor_fragment_id_);
+ swap(start_time_, other->start_time_);
+ swap(end_time_, other->end_time_);
+ swap(memory_used_, other->memory_used_);
+ swap(max_memory_used_, other->max_memory_used_);
+ swap(last_update_, other->last_update_);
+ swap(last_progress_, other->last_progress_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata MinorFragmentProfile::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MinorFragmentProfile_descriptor_;
- metadata.reflection = MinorFragmentProfile_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void OperatorProfile::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int OperatorProfile::kInputProfileFieldNumber;
const int OperatorProfile::kOperatorIdFieldNumber;
const int OperatorProfile::kOperatorTypeFieldNumber;
@@ -7789,333 +8644,368 @@ const int OperatorProfile::kProcessNanosFieldNumber;
const int OperatorProfile::kPeakLocalMemoryAllocatedFieldNumber;
const int OperatorProfile::kMetricFieldNumber;
const int OperatorProfile::kWaitNanosFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
OperatorProfile::OperatorProfile()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_OperatorProfile.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.OperatorProfile)
}
-
-void OperatorProfile::InitAsDefaultInstance() {
-}
-
OperatorProfile::OperatorProfile(const OperatorProfile& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ input_profile_(from.input_profile_),
+ metric_(from.metric_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&operator_id_, &from.operator_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&wait_nanos_) -
+ reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.OperatorProfile)
}
void OperatorProfile::SharedCtor() {
- _cached_size_ = 0;
- operator_id_ = 0;
- operator_type_ = 0;
- setup_nanos_ = GOOGLE_LONGLONG(0);
- process_nanos_ = GOOGLE_LONGLONG(0);
- peak_local_memory_allocated_ = GOOGLE_LONGLONG(0);
- wait_nanos_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&operator_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&wait_nanos_) -
+ reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_));
}
OperatorProfile::~OperatorProfile() {
+ // @@protoc_insertion_point(destructor:exec.shared.OperatorProfile)
SharedDtor();
}
void OperatorProfile::SharedDtor() {
- if (this != default_instance_) {
- }
}
void OperatorProfile::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* OperatorProfile::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return OperatorProfile_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const OperatorProfile& OperatorProfile::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_OperatorProfile.base);
+ return *internal_default_instance();
}
-OperatorProfile* OperatorProfile::default_instance_ = NULL;
-
-OperatorProfile* OperatorProfile::New() const {
- return new OperatorProfile;
-}
void OperatorProfile::Clear() {
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
- operator_id_ = 0;
- operator_type_ = 0;
- setup_nanos_ = GOOGLE_LONGLONG(0);
- process_nanos_ = GOOGLE_LONGLONG(0);
- peak_local_memory_allocated_ = GOOGLE_LONGLONG(0);
- wait_nanos_ = GOOGLE_LONGLONG(0);
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.OperatorProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
input_profile_.Clear();
metric_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 63u) {
+ ::memset(&operator_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&wait_nanos_) -
+ reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool OperatorProfile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.OperatorProfile)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.shared.StreamProfile input_profile = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_input_profile:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_input_profile()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_input_profile;
- if (input->ExpectTag(24)) goto parse_operator_id;
break;
}
// optional int32 operator_id = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_operator_id:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_operator_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &operator_id_)));
- set_has_operator_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(32)) goto parse_operator_type;
break;
}
// optional int32 operator_type = 4;
case 4: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_operator_type:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ set_has_operator_type();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &operator_type_)));
- set_has_operator_type();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(40)) goto parse_setup_nanos;
break;
}
// optional int64 setup_nanos = 5;
case 5: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_setup_nanos:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ set_has_setup_nanos();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &setup_nanos_)));
- set_has_setup_nanos();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(48)) goto parse_process_nanos;
break;
}
// optional int64 process_nanos = 6;
case 6: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_process_nanos:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ set_has_process_nanos();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &process_nanos_)));
- set_has_process_nanos();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(56)) goto parse_peak_local_memory_allocated;
break;
}
// optional int64 peak_local_memory_allocated = 7;
case 7: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_peak_local_memory_allocated:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
+ set_has_peak_local_memory_allocated();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &peak_local_memory_allocated_)));
- set_has_peak_local_memory_allocated();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_metric;
break;
}
// repeated .exec.shared.MetricValue metric = 8;
case 8: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_metric:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_metric()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(66)) goto parse_metric;
- if (input->ExpectTag(72)) goto parse_wait_nanos;
break;
}
// optional int64 wait_nanos = 9;
case 9: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_wait_nanos:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
+ set_has_wait_nanos();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &wait_nanos_)));
- set_has_wait_nanos();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.OperatorProfile)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.OperatorProfile)
+ return false;
#undef DO_
}
void OperatorProfile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.OperatorProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.shared.StreamProfile input_profile = 1;
- for (int i = 0; i < this->input_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->input_profile_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->input_profile(i), output);
+ 1,
+ this->input_profile(static_cast<int>(i)),
+ output);
}
+ cached_has_bits = _has_bits_[0];
// optional int32 operator_id = 3;
- if (has_operator_id()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->operator_id(), output);
}
// optional int32 operator_type = 4;
- if (has_operator_type()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->operator_type(), output);
}
// optional int64 setup_nanos = 5;
- if (has_setup_nanos()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->setup_nanos(), output);
}
// optional int64 process_nanos = 6;
- if (has_process_nanos()) {
+ if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->process_nanos(), output);
}
// optional int64 peak_local_memory_allocated = 7;
- if (has_peak_local_memory_allocated()) {
+ if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->peak_local_memory_allocated(), output);
}
// repeated .exec.shared.MetricValue metric = 8;
- for (int i = 0; i < this->metric_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->metric_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->metric(i), output);
+ 8,
+ this->metric(static_cast<int>(i)),
+ output);
}
// optional int64 wait_nanos = 9;
- if (has_wait_nanos()) {
+ if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->wait_nanos(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.OperatorProfile)
}
-::google::protobuf::uint8* OperatorProfile::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* OperatorProfile::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.OperatorProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.shared.StreamProfile input_profile = 1;
- for (int i = 0; i < this->input_profile_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->input_profile_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->input_profile(i), target);
+ InternalWriteMessageToArray(
+ 1, this->input_profile(static_cast<int>(i)), deterministic, target);
}
+ cached_has_bits = _has_bits_[0];
// optional int32 operator_id = 3;
- if (has_operator_id()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->operator_id(), target);
}
// optional int32 operator_type = 4;
- if (has_operator_type()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->operator_type(), target);
}
// optional int64 setup_nanos = 5;
- if (has_setup_nanos()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->setup_nanos(), target);
}
// optional int64 process_nanos = 6;
- if (has_process_nanos()) {
+ if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->process_nanos(), target);
}
// optional int64 peak_local_memory_allocated = 7;
- if (has_peak_local_memory_allocated()) {
+ if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->peak_local_memory_allocated(), target);
}
// repeated .exec.shared.MetricValue metric = 8;
- for (int i = 0; i < this->metric_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->metric_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 8, this->metric(i), target);
+ InternalWriteMessageToArray(
+ 8, this->metric(static_cast<int>(i)), deterministic, target);
}
// optional int64 wait_nanos = 9;
- if (has_wait_nanos()) {
+ if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->wait_nanos(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.OperatorProfile)
return target;
}
-int OperatorProfile::ByteSize() const {
- int total_size = 0;
+size_t OperatorProfile::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.OperatorProfile)
+ size_t total_size = 0;
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ // repeated .exec.shared.StreamProfile input_profile = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->input_profile_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->input_profile(static_cast<int>(i)));
+ }
+ }
+
+ // repeated .exec.shared.MetricValue metric = 8;
+ {
+ unsigned int count = static_cast<unsigned int>(this->metric_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->metric(static_cast<int>(i)));
+ }
+ }
- if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
+ if (_has_bits_[0 / 32] & 63u) {
// optional int32 operator_id = 3;
if (has_operator_id()) {
total_size += 1 +
@@ -8159,304 +9049,315 @@ int OperatorProfile::ByteSize() const {
}
}
- // repeated .exec.shared.StreamProfile input_profile = 1;
- total_size += 1 * this->input_profile_size();
- for (int i = 0; i < this->input_profile_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->input_profile(i));
- }
-
- // repeated .exec.shared.MetricValue metric = 8;
- total_size += 1 * this->metric_size();
- for (int i = 0; i < this->metric_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->metric(i));
- }
-
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void OperatorProfile::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.OperatorProfile)
+ GOOGLE_DCHECK_NE(&from, this);
const OperatorProfile* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const OperatorProfile*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const OperatorProfile>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.OperatorProfile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.OperatorProfile)
MergeFrom(*source);
}
}
void OperatorProfile::MergeFrom(const OperatorProfile& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.OperatorProfile)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
input_profile_.MergeFrom(from.input_profile_);
metric_.MergeFrom(from.metric_);
- if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
- if (from.has_operator_id()) {
- set_operator_id(from.operator_id());
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 63u) {
+ if (cached_has_bits & 0x00000001u) {
+ operator_id_ = from.operator_id_;
}
- if (from.has_operator_type()) {
- set_operator_type(from.operator_type());
+ if (cached_has_bits & 0x00000002u) {
+ operator_type_ = from.operator_type_;
}
- if (from.has_setup_nanos()) {
- set_setup_nanos(from.setup_nanos());
+ if (cached_has_bits & 0x00000004u) {
+ setup_nanos_ = from.setup_nanos_;
}
- if (from.has_process_nanos()) {
- set_process_nanos(from.process_nanos());
+ if (cached_has_bits & 0x00000008u) {
+ process_nanos_ = from.process_nanos_;
}
- if (from.has_peak_local_memory_allocated()) {
- set_peak_local_memory_allocated(from.peak_local_memory_allocated());
+ if (cached_has_bits & 0x00000010u) {
+ peak_local_memory_allocated_ = from.peak_local_memory_allocated_;
}
- if (from.has_wait_nanos()) {
- set_wait_nanos(from.wait_nanos());
+ if (cached_has_bits & 0x00000020u) {
+ wait_nanos_ = from.wait_nanos_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void OperatorProfile::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.OperatorProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OperatorProfile::CopyFrom(const OperatorProfile& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.OperatorProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OperatorProfile::IsInitialized() const {
-
return true;
}
void OperatorProfile::Swap(OperatorProfile* other) {
- if (other != this) {
- input_profile_.Swap(&other->input_profile_);
- std::swap(operator_id_, other->operator_id_);
- std::swap(operator_type_, other->operator_type_);
- std::swap(setup_nanos_, other->setup_nanos_);
- std::swap(process_nanos_, other->process_nanos_);
- std::swap(peak_local_memory_allocated_, other->peak_local_memory_allocated_);
- metric_.Swap(&other->metric_);
- std::swap(wait_nanos_, other->wait_nanos_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void OperatorProfile::InternalSwap(OperatorProfile* other) {
+ using std::swap;
+ CastToBase(&input_profile_)->InternalSwap(CastToBase(&other->input_profile_));
+ CastToBase(&metric_)->InternalSwap(CastToBase(&other->metric_));
+ swap(operator_id_, other->operator_id_);
+ swap(operator_type_, other->operator_type_);
+ swap(setup_nanos_, other->setup_nanos_);
+ swap(process_nanos_, other->process_nanos_);
+ swap(peak_local_memory_allocated_, other->peak_local_memory_allocated_);
+ swap(wait_nanos_, other->wait_nanos_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata OperatorProfile::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = OperatorProfile_descriptor_;
- metadata.reflection = OperatorProfile_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void StreamProfile::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StreamProfile::kRecordsFieldNumber;
const int StreamProfile::kBatchesFieldNumber;
const int StreamProfile::kSchemasFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StreamProfile::StreamProfile()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_StreamProfile.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.StreamProfile)
}
-
-void StreamProfile::InitAsDefaultInstance() {
-}
-
StreamProfile::StreamProfile(const StreamProfile& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&records_, &from.records_,
+ static_cast<size_t>(reinterpret_cast<char*>(&schemas_) -
+ reinterpret_cast<char*>(&records_)) + sizeof(schemas_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.StreamProfile)
}
void StreamProfile::SharedCtor() {
- _cached_size_ = 0;
- records_ = GOOGLE_LONGLONG(0);
- batches_ = GOOGLE_LONGLONG(0);
- schemas_ = GOOGLE_LONGLONG(0);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&records_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&schemas_) -
+ reinterpret_cast<char*>(&records_)) + sizeof(schemas_));
}
StreamProfile::~StreamProfile() {
+ // @@protoc_insertion_point(destructor:exec.shared.StreamProfile)
SharedDtor();
}
void StreamProfile::SharedDtor() {
- if (this != default_instance_) {
- }
}
void StreamProfile::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* StreamProfile::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return StreamProfile_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const StreamProfile& StreamProfile::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_StreamProfile.base);
+ return *internal_default_instance();
}
-StreamProfile* StreamProfile::default_instance_ = NULL;
-
-StreamProfile* StreamProfile::New() const {
- return new StreamProfile;
-}
void StreamProfile::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- records_ = GOOGLE_LONGLONG(0);
- batches_ = GOOGLE_LONGLONG(0);
- schemas_ = GOOGLE_LONGLONG(0);
+// @@protoc_insertion_point(message_clear_start:exec.shared.StreamProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ ::memset(&records_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&schemas_) -
+ reinterpret_cast<char*>(&records_)) + sizeof(schemas_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool StreamProfile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.StreamProfile)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int64 records = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_records();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &records_)));
- set_has_records();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_batches;
break;
}
// optional int64 batches = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_batches:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_batches();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &batches_)));
- set_has_batches();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_schemas;
break;
}
// optional int64 schemas = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_schemas:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ set_has_schemas();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &schemas_)));
- set_has_schemas();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.StreamProfile)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.StreamProfile)
+ return false;
#undef DO_
}
void StreamProfile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.StreamProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int64 records = 1;
- if (has_records()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->records(), output);
}
// optional int64 batches = 2;
- if (has_batches()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->batches(), output);
}
// optional int64 schemas = 3;
- if (has_schemas()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->schemas(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.StreamProfile)
}
-::google::protobuf::uint8* StreamProfile::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* StreamProfile::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.StreamProfile)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int64 records = 1;
- if (has_records()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->records(), target);
}
// optional int64 batches = 2;
- if (has_batches()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->batches(), target);
}
// optional int64 schemas = 3;
- if (has_schemas()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->schemas(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.StreamProfile)
return target;
}
-int StreamProfile::ByteSize() const {
- int total_size = 0;
+size_t StreamProfile::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.StreamProfile)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional int64 records = 1;
if (has_records()) {
total_size += 1 +
@@ -8479,279 +9380,299 @@ int StreamProfile::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void StreamProfile::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.StreamProfile)
+ GOOGLE_DCHECK_NE(&from, this);
const StreamProfile* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const StreamProfile*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const StreamProfile>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.StreamProfile)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.StreamProfile)
MergeFrom(*source);
}
}
void StreamProfile::MergeFrom(const StreamProfile& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_records()) {
- set_records(from.records());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.StreamProfile)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ records_ = from.records_;
}
- if (from.has_batches()) {
- set_batches(from.batches());
+ if (cached_has_bits & 0x00000002u) {
+ batches_ = from.batches_;
}
- if (from.has_schemas()) {
- set_schemas(from.schemas());
+ if (cached_has_bits & 0x00000004u) {
+ schemas_ = from.schemas_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StreamProfile::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.StreamProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StreamProfile::CopyFrom(const StreamProfile& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.StreamProfile)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StreamProfile::IsInitialized() const {
-
return true;
}
void StreamProfile::Swap(StreamProfile* other) {
- if (other != this) {
- std::swap(records_, other->records_);
- std::swap(batches_, other->batches_);
- std::swap(schemas_, other->schemas_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StreamProfile::InternalSwap(StreamProfile* other) {
+ using std::swap;
+ swap(records_, other->records_);
+ swap(batches_, other->batches_);
+ swap(schemas_, other->schemas_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata StreamProfile::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = StreamProfile_descriptor_;
- metadata.reflection = StreamProfile_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void MetricValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int MetricValue::kMetricIdFieldNumber;
const int MetricValue::kLongValueFieldNumber;
const int MetricValue::kDoubleValueFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
MetricValue::MetricValue()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_MetricValue.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.MetricValue)
}
-
-void MetricValue::InitAsDefaultInstance() {
-}
-
MetricValue::MetricValue(const MetricValue& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&long_value_, &from.long_value_,
+ static_cast<size_t>(reinterpret_cast<char*>(&metric_id_) -
+ reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_));
+ // @@protoc_insertion_point(copy_constructor:exec.shared.MetricValue)
}
void MetricValue::SharedCtor() {
- _cached_size_ = 0;
- metric_id_ = 0;
- long_value_ = GOOGLE_LONGLONG(0);
- double_value_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ ::memset(&long_value_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&metric_id_) -
+ reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_));
}
MetricValue::~MetricValue() {
+ // @@protoc_insertion_point(destructor:exec.shared.MetricValue)
SharedDtor();
}
void MetricValue::SharedDtor() {
- if (this != default_instance_) {
- }
}
void MetricValue::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* MetricValue::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return MetricValue_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const MetricValue& MetricValue::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_MetricValue.base);
+ return *internal_default_instance();
}
-MetricValue* MetricValue::default_instance_ = NULL;
-
-MetricValue* MetricValue::New() const {
- return new MetricValue;
-}
void MetricValue::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- metric_id_ = 0;
- long_value_ = GOOGLE_LONGLONG(0);
- double_value_ = 0;
+// @@protoc_insertion_point(message_clear_start:exec.shared.MetricValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 7u) {
+ ::memset(&long_value_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&metric_id_) -
+ reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_));
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool MetricValue::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.MetricValue)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 metric_id = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ set_has_metric_id();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &metric_id_)));
- set_has_metric_id();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(16)) goto parse_long_value;
break;
}
// optional int64 long_value = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_long_value:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ set_has_long_value();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &long_value_)));
- set_has_long_value();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(25)) goto parse_double_value;
break;
}
// optional double double_value = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
- parse_double_value:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
+ set_has_double_value();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &double_value_)));
- set_has_double_value();
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.MetricValue)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.MetricValue)
+ return false;
#undef DO_
}
void MetricValue::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.MetricValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 metric_id = 1;
- if (has_metric_id()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->metric_id(), output);
}
// optional int64 long_value = 2;
- if (has_long_value()) {
+ if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->long_value(), output);
}
// optional double double_value = 3;
- if (has_double_value()) {
+ if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->double_value(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.MetricValue)
}
-::google::protobuf::uint8* MetricValue::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* MetricValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MetricValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional int32 metric_id = 1;
- if (has_metric_id()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->metric_id(), target);
}
// optional int64 long_value = 2;
- if (has_long_value()) {
+ if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->long_value(), target);
}
// optional double double_value = 3;
- if (has_double_value()) {
+ if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->double_value(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.MetricValue)
return target;
}
-int MetricValue::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional int32 metric_id = 1;
- if (has_metric_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->metric_id());
- }
+size_t MetricValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.MetricValue)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional int64 long_value = 2;
if (has_long_value()) {
total_size += 1 +
@@ -8764,684 +9685,751 @@ int MetricValue::ByteSize() const {
total_size += 1 + 8;
}
+ // optional int32 metric_id = 1;
+ if (has_metric_id()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->metric_id());
+ }
+
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void MetricValue::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MetricValue)
+ GOOGLE_DCHECK_NE(&from, this);
const MetricValue* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const MetricValue*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const MetricValue>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MetricValue)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MetricValue)
MergeFrom(*source);
}
}
void MetricValue::MergeFrom(const MetricValue& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_metric_id()) {
- set_metric_id(from.metric_id());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MetricValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ long_value_ = from.long_value_;
}
- if (from.has_long_value()) {
- set_long_value(from.long_value());
+ if (cached_has_bits & 0x00000002u) {
+ double_value_ = from.double_value_;
}
- if (from.has_double_value()) {
- set_double_value(from.double_value());
+ if (cached_has_bits & 0x00000004u) {
+ metric_id_ = from.metric_id_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void MetricValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MetricValue)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MetricValue::CopyFrom(const MetricValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MetricValue)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MetricValue::IsInitialized() const {
-
return true;
}
void MetricValue::Swap(MetricValue* other) {
- if (other != this) {
- std::swap(metric_id_, other->metric_id_);
- std::swap(long_value_, other->long_value_);
- std::swap(double_value_, other->double_value_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MetricValue::InternalSwap(MetricValue* other) {
+ using std::swap;
+ swap(long_value_, other->long_value_);
+ swap(double_value_, other->double_value_);
+ swap(metric_id_, other->metric_id_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata MetricValue::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = MetricValue_descriptor_;
- metadata.reflection = MetricValue_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void Registry::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Registry::kJarFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Registry::Registry()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_Registry.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.Registry)
}
-
-void Registry::InitAsDefaultInstance() {
-}
-
Registry::Registry(const Registry& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ jar_(from.jar_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:exec.shared.Registry)
}
void Registry::SharedCtor() {
- _cached_size_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Registry::~Registry() {
+ // @@protoc_insertion_point(destructor:exec.shared.Registry)
SharedDtor();
}
void Registry::SharedDtor() {
- if (this != default_instance_) {
- }
}
void Registry::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Registry::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Registry_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Registry& Registry::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_Registry.base);
+ return *internal_default_instance();
}
-Registry* Registry::default_instance_ = NULL;
-
-Registry* Registry::New() const {
- return new Registry;
-}
void Registry::Clear() {
+// @@protoc_insertion_point(message_clear_start:exec.shared.Registry)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
jar_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Registry::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.Registry)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .exec.shared.Jar jar = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_jar:
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, add_jar()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(10)) goto parse_jar;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.Registry)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.Registry)
+ return false;
#undef DO_
}
void Registry::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.Registry)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.shared.Jar jar = 1;
- for (int i = 0; i < this->jar_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->jar_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->jar(i), output);
+ 1,
+ this->jar(static_cast<int>(i)),
+ output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.Registry)
}
-::google::protobuf::uint8* Registry::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Registry::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.Registry)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
// repeated .exec.shared.Jar jar = 1;
- for (int i = 0; i < this->jar_size(); i++) {
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->jar_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
- WriteMessageNoVirtualToArray(
- 1, this->jar(i), target);
+ InternalWriteMessageToArray(
+ 1, this->jar(static_cast<int>(i)), deterministic, target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.Registry)
return target;
}
-int Registry::ByteSize() const {
- int total_size = 0;
-
- // repeated .exec.shared.Jar jar = 1;
- total_size += 1 * this->jar_size();
- for (int i = 0; i < this->jar_size(); i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
- this->jar(i));
- }
+size_t Registry::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.Registry)
+ size_t total_size = 0;
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ _internal_metadata_.unknown_fields());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ // repeated .exec.shared.Jar jar = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->jar_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->jar(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Registry::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.Registry)
+ GOOGLE_DCHECK_NE(&from, this);
const Registry* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Registry*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Registry>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.Registry)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.Registry)
MergeFrom(*source);
}
}
void Registry::MergeFrom(const Registry& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.Registry)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
jar_.MergeFrom(from.jar_);
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Registry::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.Registry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Registry::CopyFrom(const Registry& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.Registry)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Registry::IsInitialized() const {
-
return true;
}
void Registry::Swap(Registry* other) {
- if (other != this) {
- jar_.Swap(&other->jar_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Registry::InternalSwap(Registry* other) {
+ using std::swap;
+ CastToBase(&jar_)->InternalSwap(CastToBase(&other->jar_));
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Registry::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Registry_descriptor_;
- metadata.reflection = Registry_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void Jar::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Jar::kNameFieldNumber;
const int Jar::kFunctionSignatureFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Jar::Jar()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_Jar.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.Jar)
}
-
-void Jar::InitAsDefaultInstance() {
-}
-
Jar::Jar(const Jar& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_),
+ function_signature_(from.function_signature_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_name()) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ // @@protoc_insertion_point(copy_constructor:exec.shared.Jar)
}
void Jar::SharedCtor() {
- _cached_size_ = 0;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
Jar::~Jar() {
+ // @@protoc_insertion_point(destructor:exec.shared.Jar)
SharedDtor();
}
void Jar::SharedDtor() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (this != default_instance_) {
- }
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Jar::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* Jar::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return Jar_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Jar& Jar::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_Jar.base);
+ return *internal_default_instance();
}
-Jar* Jar::default_instance_ = NULL;
-
-Jar* Jar::New() const {
- return new Jar;
-}
void Jar::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_name()) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
- }
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.Jar)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
function_signature_.Clear();
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ name_.ClearNonDefaultToEmptyNoArena();
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool Jar::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.Jar)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string name = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.Jar.name");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_function_signature;
break;
}
// repeated string function_signature = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_function_signature:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_function_signature()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->function_signature(this->function_signature_size() - 1).data(),
- this->function_signature(this->function_signature_size() - 1).length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ static_cast<int>(this->function_signature(this->function_signature_size() - 1).length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.Jar.function_signature");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_function_signature;
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.Jar)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.Jar)
+ return false;
#undef DO_
}
void Jar::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.Jar)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string name = 1;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.Jar.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->name(), output);
}
// repeated string function_signature = 2;
- for (int i = 0; i < this->function_signature_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->function_signature(i).data(), this->function_signature(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->function_signature_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->function_signature(i).data(), static_cast<int>(this->function_signature(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.Jar.function_signature");
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->function_signature(i), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.Jar)
}
-::google::protobuf::uint8* Jar::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* Jar::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.Jar)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string name = 1;
- if (has_name()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->name().data(), this->name().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.Jar.name");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->name(), target);
}
// repeated string function_signature = 2;
- for (int i = 0; i < this->function_signature_size(); i++) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->function_signature(i).data(), this->function_signature(i).length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ for (int i = 0, n = this->function_signature_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->function_signature(i).data(), static_cast<int>(this->function_signature(i).length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.Jar.function_signature");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(2, this->function_signature(i), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.Jar)
return target;
}
-int Jar::ByteSize() const {
- int total_size = 0;
-
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- // optional string name = 1;
- if (has_name()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->name());
- }
+size_t Jar::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.Jar)
+ size_t total_size = 0;
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
}
// repeated string function_signature = 2;
- total_size += 1 * this->function_signature_size();
- for (int i = 0; i < this->function_signature_size(); i++) {
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->function_signature_size());
+ for (int i = 0, n = this->function_signature_size(); i < n; i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->function_signature(i));
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
+ // optional string name = 1;
+ if (has_name()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
}
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void Jar::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.Jar)
+ GOOGLE_DCHECK_NE(&from, this);
const Jar* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const Jar*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const Jar>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.Jar)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.Jar)
MergeFrom(*source);
}
}
void Jar::MergeFrom(const Jar& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.Jar)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
function_signature_.MergeFrom(from.function_signature_);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_name()) {
- set_name(from.name());
- }
+ if (from.has_name()) {
+ set_has_name();
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Jar::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.Jar)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Jar::CopyFrom(const Jar& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.Jar)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Jar::IsInitialized() const {
-
return true;
}
void Jar::Swap(Jar* other) {
- if (other != this) {
- std::swap(name_, other->name_);
- function_signature_.Swap(&other->function_signature_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Jar::InternalSwap(Jar* other) {
+ using std::swap;
+ function_signature_.InternalSwap(CastToBase(&other->function_signature_));
+ name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata Jar::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = Jar_descriptor_;
- metadata.reflection = Jar_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
-#ifndef _MSC_VER
+void SaslMessage::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int SaslMessage::kMechanismFieldNumber;
const int SaslMessage::kDataFieldNumber;
const int SaslMessage::kStatusFieldNumber;
-#endif // !_MSC_VER
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
SaslMessage::SaslMessage()
- : ::google::protobuf::Message() {
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ ::google::protobuf::internal::InitSCC(
+ &protobuf_UserBitShared_2eproto::scc_info_SaslMessage.base);
SharedCtor();
+ // @@protoc_insertion_point(constructor:exec.shared.SaslMessage)
}
-
-void SaslMessage::InitAsDefaultInstance() {
-}
-
SaslMessage::SaslMessage(const SaslMessage& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ mechanism_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_mechanism()) {
+ mechanism_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mechanism_);
+ }
+ data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.has_data()) {
+ data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
+ }
+ status_ = from.status_;
+ // @@protoc_insertion_point(copy_constructor:exec.shared.SaslMessage)
}
void SaslMessage::SharedCtor() {
- _cached_size_ = 0;
- mechanism_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
+ mechanism_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
status_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
}
SaslMessage::~SaslMessage() {
+ // @@protoc_insertion_point(destructor:exec.shared.SaslMessage)
SharedDtor();
}
void SaslMessage::SharedDtor() {
- if (mechanism_ != &::google::protobuf::internal::kEmptyString) {
- delete mechanism_;
- }
- if (data_ != &::google::protobuf::internal::kEmptyString) {
- delete data_;
- }
- if (this != default_instance_) {
- }
+ mechanism_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void SaslMessage::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* SaslMessage::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return SaslMessage_descriptor_;
+ ::protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const SaslMessage& SaslMessage::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_UserBitShared_2eproto();
- return *default_instance_;
+ ::google::protobuf::internal::InitSCC(&protobuf_UserBitShared_2eproto::scc_info_SaslMessage.base);
+ return *internal_default_instance();
}
-SaslMessage* SaslMessage::default_instance_ = NULL;
-
-SaslMessage* SaslMessage::New() const {
- return new SaslMessage;
-}
void SaslMessage::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (has_mechanism()) {
- if (mechanism_ != &::google::protobuf::internal::kEmptyString) {
- mechanism_->clear();
- }
+// @@protoc_insertion_point(message_clear_start:exec.shared.SaslMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 3u) {
+ if (cached_has_bits & 0x00000001u) {
+ mechanism_.ClearNonDefaultToEmptyNoArena();
}
- if (has_data()) {
- if (data_ != &::google::protobuf::internal::kEmptyString) {
- data_->clear();
- }
+ if (cached_has_bits & 0x00000002u) {
+ data_.ClearNonDefaultToEmptyNoArena();
}
- status_ = 0;
}
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
+ status_ = 0;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
}
bool SaslMessage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
- while ((tag = input->ReadTag()) != 0) {
+ // @@protoc_insertion_point(parse_start:exec.shared.SaslMessage)
+ for (;;) {
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string mechanism = 1;
case 1: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_mechanism()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mechanism().data(), this->mechanism().length(),
- ::google::protobuf::internal::WireFormat::PARSE);
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mechanism().data(), static_cast<int>(this->mechanism().length()),
+ ::google::protobuf::internal::WireFormat::PARSE,
+ "exec.shared.SaslMessage.mechanism");
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(18)) goto parse_data;
break;
}
// optional bytes data = 2;
case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
- parse_data:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_data()));
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectTag(24)) goto parse_status;
break;
}
// optional .exec.shared.SaslStatus status = 3;
case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_status:
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
@@ -9449,96 +10437,121 @@ bool SaslMessage::MergePartialFromCodedStream(
if (::exec::shared::SaslStatus_IsValid(value)) {
set_status(static_cast< ::exec::shared::SaslStatus >(value));
} else {
- mutable_unknown_fields()->AddVarint(3, value);
+ mutable_unknown_fields()->AddVarint(
+ 3, static_cast< ::google::protobuf::uint64>(value));
}
} else {
- goto handle_uninterpreted;
+ goto handle_unusual;
}
- if (input->ExpectAtEnd()) return true;
break;
}
default: {
- handle_uninterpreted:
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
- return true;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, mutable_unknown_fields()));
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
+success:
+ // @@protoc_insertion_point(parse_success:exec.shared.SaslMessage)
return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:exec.shared.SaslMessage)
+ return false;
#undef DO_
}
void SaslMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:exec.shared.SaslMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string mechanism = 1;
- if (has_mechanism()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mechanism().data(), this->mechanism().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
- ::google::protobuf::internal::WireFormatLite::WriteString(
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mechanism().data(), static_cast<int>(this->mechanism().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.SaslMessage.mechanism");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->mechanism(), output);
}
// optional bytes data = 2;
- if (has_data()) {
- ::google::protobuf::internal::WireFormatLite::WriteBytes(
+ if (cached_has_bits & 0x00000002u) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2, this->data(), output);
}
// optional .exec.shared.SaslStatus status = 3;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->status(), output);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
+ _internal_metadata_.unknown_fields(), output);
}
+ // @@protoc_insertion_point(serialize_end:exec.shared.SaslMessage)
}
-::google::protobuf::uint8* SaslMessage::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
+::google::protobuf::uint8* SaslMessage::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:exec.shared.SaslMessage)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
// optional string mechanism = 1;
- if (has_mechanism()) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8String(
- this->mechanism().data(), this->mechanism().length(),
- ::google::protobuf::internal::WireFormat::SERIALIZE);
+ if (cached_has_bits & 0x00000001u) {
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
+ this->mechanism().data(), static_cast<int>(this->mechanism().length()),
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
+ "exec.shared.SaslMessage.mechanism");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->mechanism(), target);
}
// optional bytes data = 2;
- if (has_data()) {
+ if (cached_has_bits & 0x00000002u) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2, this->data(), target);
}
// optional .exec.shared.SaslStatus status = 3;
- if (has_status()) {
+ if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->status(), target);
}
- if (!unknown_fields().empty()) {
+ if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
+ _internal_metadata_.unknown_fields(), target);
}
+ // @@protoc_insertion_point(serialize_to_array_end:exec.shared.SaslMessage)
return target;
}
-int SaslMessage::ByteSize() const {
- int total_size = 0;
+size_t SaslMessage::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:exec.shared.SaslMessage)
+ size_t total_size = 0;
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ _internal_metadata_.unknown_fields());
+ }
+ if (_has_bits_[0 / 32] & 7u) {
// optional string mechanism = 1;
if (has_mechanism()) {
total_size += 1 +
@@ -9560,85 +10573,161 @@ int SaslMessage::ByteSize() const {
}
}
- if (!unknown_fields().empty()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- unknown_fields());
- }
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = total_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
return total_size;
}
void SaslMessage::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
+// @@protoc_insertion_point(generalized_merge_from_start:exec.shared.SaslMessage)
+ GOOGLE_DCHECK_NE(&from, this);
const SaslMessage* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const SaslMessage*>(
- &from);
+ ::google::protobuf::internal::DynamicCastToGenerated<const SaslMessage>(
+ &from);
if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.SaslMessage)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.SaslMessage)
MergeFrom(*source);
}
}
void SaslMessage::MergeFrom(const SaslMessage& from) {
- GOOGLE_CHECK_NE(&from, this);
- if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- if (from.has_mechanism()) {
- set_mechanism(from.mechanism());
+// @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.SaslMessage)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 7u) {
+ if (cached_has_bits & 0x00000001u) {
+ set_has_mechanism();
+ mechanism_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mechanism_);
}
- if (from.has_data()) {
- set_data(from.data());
+ if (cached_has_bits & 0x00000002u) {
+ set_has_data();
+ data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
}
- if (from.has_status()) {
- set_status(from.status());
+ if (cached_has_bits & 0x00000004u) {
+ status_ = from.status_;
}
+ _has_bits_[0] |= cached_has_bits;
}
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SaslMessage::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:exec.shared.SaslMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SaslMessage::CopyFrom(const SaslMessage& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.SaslMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SaslMessage::IsInitialized() const {
-
return true;
}
void SaslMessage::Swap(SaslMessage* other) {
- if (other != this) {
- std::swap(mechanism_, other->mechanism_);
- std::swap(data_, other->data_);
- std::swap(status_, other->status_);
- std::swap(_has_bits_[0], other->_has_bits_[0]);
- _unknown_fields_.Swap(&other->_unknown_fields_);
- std::swap(_cached_size_, other->_cached_size_);
- }
+ if (other == this) return;
+ InternalSwap(other);
+}
+void SaslMessage::InternalSwap(SaslMessage* other) {
+ using std::swap;
+ mechanism_.Swap(&other->mechanism_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ data_.Swap(&other->data_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(status_, other->status_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata SaslMessage::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = SaslMessage_descriptor_;
- metadata.reflection = SaslMessage_reflection_;
- return metadata;
+ protobuf_UserBitShared_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_UserBitShared_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
-
} // namespace shared
} // namespace exec
+namespace google {
+namespace protobuf {
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::UserCredentials* Arena::CreateMaybeMessage< ::exec::shared::UserCredentials >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::UserCredentials >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::QueryId* Arena::CreateMaybeMessage< ::exec::shared::QueryId >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::QueryId >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::DrillPBError* Arena::CreateMaybeMessage< ::exec::shared::DrillPBError >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::DrillPBError >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::ExceptionWrapper* Arena::CreateMaybeMessage< ::exec::shared::ExceptionWrapper >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::ExceptionWrapper >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::StackTraceElementWrapper* Arena::CreateMaybeMessage< ::exec::shared::StackTraceElementWrapper >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::StackTraceElementWrapper >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::ParsingError* Arena::CreateMaybeMessage< ::exec::shared::ParsingError >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::ParsingError >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::RecordBatchDef* Arena::CreateMaybeMessage< ::exec::shared::RecordBatchDef >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::RecordBatchDef >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::NamePart* Arena::CreateMaybeMessage< ::exec::shared::NamePart >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::NamePart >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::SerializedField* Arena::CreateMaybeMessage< ::exec::shared::SerializedField >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::SerializedField >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::NodeStatus* Arena::CreateMaybeMessage< ::exec::shared::NodeStatus >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::NodeStatus >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::QueryResult* Arena::CreateMaybeMessage< ::exec::shared::QueryResult >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::QueryResult >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::QueryData* Arena::CreateMaybeMessage< ::exec::shared::QueryData >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::QueryData >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::QueryInfo* Arena::CreateMaybeMessage< ::exec::shared::QueryInfo >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::QueryInfo >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::QueryProfile* Arena::CreateMaybeMessage< ::exec::shared::QueryProfile >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::QueryProfile >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::MajorFragmentProfile* Arena::CreateMaybeMessage< ::exec::shared::MajorFragmentProfile >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::MajorFragmentProfile >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::MinorFragmentProfile* Arena::CreateMaybeMessage< ::exec::shared::MinorFragmentProfile >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::MinorFragmentProfile >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::OperatorProfile* Arena::CreateMaybeMessage< ::exec::shared::OperatorProfile >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::OperatorProfile >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::StreamProfile* Arena::CreateMaybeMessage< ::exec::shared::StreamProfile >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::StreamProfile >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::MetricValue* Arena::CreateMaybeMessage< ::exec::shared::MetricValue >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::MetricValue >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::Registry* Arena::CreateMaybeMessage< ::exec::shared::Registry >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::Registry >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::Jar* Arena::CreateMaybeMessage< ::exec::shared::Jar >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::Jar >(arena);
+}
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::exec::shared::SaslMessage* Arena::CreateMaybeMessage< ::exec::shared::SaslMessage >(Arena* arena) {
+ return Arena::CreateInternal< ::exec::shared::SaslMessage >(arena);
+}
+} // namespace protobuf
+} // namespace google
// @@protoc_insertion_point(global_scope)
diff --git a/contrib/native/client/src/protobuf/UserBitShared.pb.h b/contrib/native/client/src/protobuf/UserBitShared.pb.h
index a8e6ccba6..15926cd05 100644
--- a/contrib/native/client/src/protobuf/UserBitShared.pb.h
+++ b/contrib/native/client/src/protobuf/UserBitShared.pb.h
@@ -1,65 +1,152 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: UserBitShared.proto
-#ifndef PROTOBUF_UserBitShared_2eproto__INCLUDED
-#define PROTOBUF_UserBitShared_2eproto__INCLUDED
+#ifndef PROTOBUF_INCLUDED_UserBitShared_2eproto
+#define PROTOBUF_INCLUDED_UserBitShared_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
-#if GOOGLE_PROTOBUF_VERSION < 2005000
+#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
-#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>
-#include <google/protobuf/extension_set.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "Types.pb.h"
#include "Coordination.pb.h"
#include "SchemaDef.pb.h"
// @@protoc_insertion_point(includes)
-
+#define PROTOBUF_INTERNAL_EXPORT_protobuf_UserBitShared_2eproto
+
+namespace protobuf_UserBitShared_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[22];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+} // namespace protobuf_UserBitShared_2eproto
namespace exec {
namespace shared {
-
-// Internal implementation detail -- do not call these.
-void protobuf_AddDesc_UserBitShared_2eproto();
-void protobuf_AssignDesc_UserBitShared_2eproto();
-void protobuf_ShutdownFile_UserBitShared_2eproto();
-
-class UserCredentials;
-class QueryId;
class DrillPBError;
+class DrillPBErrorDefaultTypeInternal;
+extern DrillPBErrorDefaultTypeInternal _DrillPBError_default_instance_;
class ExceptionWrapper;
-class StackTraceElementWrapper;
-class ParsingError;
-class RecordBatchDef;
+class ExceptionWrapperDefaultTypeInternal;
+extern ExceptionWrapperDefaultTypeInternal _ExceptionWrapper_default_instance_;
+class Jar;
+class JarDefaultTypeInternal;
+extern JarDefaultTypeInternal _Jar_default_instance_;
+class MajorFragmentProfile;
+class MajorFragmentProfileDefaultTypeInternal;
+extern MajorFragmentProfileDefaultTypeInternal _MajorFragmentProfile_default_instance_;
+class MetricValue;
+class MetricValueDefaultTypeInternal;
+extern MetricValueDefaultTypeInternal _MetricValue_default_instance_;
+class MinorFragmentProfile;
+class MinorFragmentProfileDefaultTypeInternal;
+extern MinorFragmentProfileDefaultTypeInternal _MinorFragmentProfile_default_instance_;
class NamePart;
-class SerializedField;
+class NamePartDefaultTypeInternal;
+extern NamePartDefaultTypeInternal _NamePart_default_instance_;
class NodeStatus;
-class QueryResult;
+class NodeStatusDefaultTypeInternal;
+extern NodeStatusDefaultTypeInternal _NodeStatus_default_instance_;
+class OperatorProfile;
+class OperatorProfileDefaultTypeInternal;
+extern OperatorProfileDefaultTypeInternal _OperatorProfile_default_instance_;
+class ParsingError;
+class ParsingErrorDefaultTypeInternal;
+extern ParsingErrorDefaultTypeInternal _ParsingError_default_instance_;
class QueryData;
+class QueryDataDefaultTypeInternal;
+extern QueryDataDefaultTypeInternal _QueryData_default_instance_;
+class QueryId;
+class QueryIdDefaultTypeInternal;
+extern QueryIdDefaultTypeInternal _QueryId_default_instance_;
class QueryInfo;
+class QueryInfoDefaultTypeInternal;
+extern QueryInfoDefaultTypeInternal _QueryInfo_default_instance_;
class QueryProfile;
-class MajorFragmentProfile;
-class MinorFragmentProfile;
-class OperatorProfile;
-class StreamProfile;
-class MetricValue;
+class QueryProfileDefaultTypeInternal;
+extern QueryProfileDefaultTypeInternal _QueryProfile_default_instance_;
+class QueryResult;
+class QueryResultDefaultTypeInternal;
+extern QueryResultDefaultTypeInternal _QueryResult_default_instance_;
+class RecordBatchDef;
+class RecordBatchDefDefaultTypeInternal;
+extern RecordBatchDefDefaultTypeInternal _RecordBatchDef_default_instance_;
class Registry;
-class Jar;
+class RegistryDefaultTypeInternal;
+extern RegistryDefaultTypeInternal _Registry_default_instance_;
class SaslMessage;
+class SaslMessageDefaultTypeInternal;
+extern SaslMessageDefaultTypeInternal _SaslMessage_default_instance_;
+class SerializedField;
+class SerializedFieldDefaultTypeInternal;
+extern SerializedFieldDefaultTypeInternal _SerializedField_default_instance_;
+class StackTraceElementWrapper;
+class StackTraceElementWrapperDefaultTypeInternal;
+extern StackTraceElementWrapperDefaultTypeInternal _StackTraceElementWrapper_default_instance_;
+class StreamProfile;
+class StreamProfileDefaultTypeInternal;
+extern StreamProfileDefaultTypeInternal _StreamProfile_default_instance_;
+class UserCredentials;
+class UserCredentialsDefaultTypeInternal;
+extern UserCredentialsDefaultTypeInternal _UserCredentials_default_instance_;
+} // namespace shared
+} // namespace exec
+namespace google {
+namespace protobuf {
+template<> ::exec::shared::DrillPBError* Arena::CreateMaybeMessage<::exec::shared::DrillPBError>(Arena*);
+template<> ::exec::shared::ExceptionWrapper* Arena::CreateMaybeMessage<::exec::shared::ExceptionWrapper>(Arena*);
+template<> ::exec::shared::Jar* Arena::CreateMaybeMessage<::exec::shared::Jar>(Arena*);
+template<> ::exec::shared::MajorFragmentProfile* Arena::CreateMaybeMessage<::exec::shared::MajorFragmentProfile>(Arena*);
+template<> ::exec::shared::MetricValue* Arena::CreateMaybeMessage<::exec::shared::MetricValue>(Arena*);
+template<> ::exec::shared::MinorFragmentProfile* Arena::CreateMaybeMessage<::exec::shared::MinorFragmentProfile>(Arena*);
+template<> ::exec::shared::NamePart* Arena::CreateMaybeMessage<::exec::shared::NamePart>(Arena*);
+template<> ::exec::shared::NodeStatus* Arena::CreateMaybeMessage<::exec::shared::NodeStatus>(Arena*);
+template<> ::exec::shared::OperatorProfile* Arena::CreateMaybeMessage<::exec::shared::OperatorProfile>(Arena*);
+template<> ::exec::shared::ParsingError* Arena::CreateMaybeMessage<::exec::shared::ParsingError>(Arena*);
+template<> ::exec::shared::QueryData* Arena::CreateMaybeMessage<::exec::shared::QueryData>(Arena*);
+template<> ::exec::shared::QueryId* Arena::CreateMaybeMessage<::exec::shared::QueryId>(Arena*);
+template<> ::exec::shared::QueryInfo* Arena::CreateMaybeMessage<::exec::shared::QueryInfo>(Arena*);
+template<> ::exec::shared::QueryProfile* Arena::CreateMaybeMessage<::exec::shared::QueryProfile>(Arena*);
+template<> ::exec::shared::QueryResult* Arena::CreateMaybeMessage<::exec::shared::QueryResult>(Arena*);
+template<> ::exec::shared::RecordBatchDef* Arena::CreateMaybeMessage<::exec::shared::RecordBatchDef>(Arena*);
+template<> ::exec::shared::Registry* Arena::CreateMaybeMessage<::exec::shared::Registry>(Arena*);
+template<> ::exec::shared::SaslMessage* Arena::CreateMaybeMessage<::exec::shared::SaslMessage>(Arena*);
+template<> ::exec::shared::SerializedField* Arena::CreateMaybeMessage<::exec::shared::SerializedField>(Arena*);
+template<> ::exec::shared::StackTraceElementWrapper* Arena::CreateMaybeMessage<::exec::shared::StackTraceElementWrapper>(Arena*);
+template<> ::exec::shared::StreamProfile* Arena::CreateMaybeMessage<::exec::shared::StreamProfile>(Arena*);
+template<> ::exec::shared::UserCredentials* Arena::CreateMaybeMessage<::exec::shared::UserCredentials>(Arena*);
+} // namespace protobuf
+} // namespace google
+namespace exec {
+namespace shared {
enum DrillPBError_ErrorType {
DrillPBError_ErrorType_CONNECTION = 0,
@@ -306,7 +393,7 @@ inline bool SaslStatus_Parse(
}
// ===================================================================
-class UserCredentials : public ::google::protobuf::Message {
+class UserCredentials : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.UserCredentials) */ {
public:
UserCredentials();
virtual ~UserCredentials();
@@ -317,83 +404,118 @@ class UserCredentials : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ UserCredentials(UserCredentials&& from) noexcept
+ : UserCredentials() {
+ *this = ::std::move(from);
+ }
+ inline UserCredentials& operator=(UserCredentials&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const UserCredentials& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UserCredentials* internal_default_instance() {
+ return reinterpret_cast<const UserCredentials*>(
+ &_UserCredentials_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
void Swap(UserCredentials* other);
+ friend void swap(UserCredentials& a, UserCredentials& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- UserCredentials* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline UserCredentials* New() const final {
+ return CreateMaybeMessage<UserCredentials>(NULL);
+ }
+
+ UserCredentials* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<UserCredentials>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const UserCredentials& from);
void MergeFrom(const UserCredentials& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(UserCredentials* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string user_name = 1;
- inline bool has_user_name() const;
- inline void clear_user_name();
+ bool has_user_name() const;
+ void clear_user_name();
static const int kUserNameFieldNumber = 1;
- inline const ::std::string& user_name() const;
- inline void set_user_name(const ::std::string& value);
- inline void set_user_name(const char* value);
- inline void set_user_name(const char* value, size_t size);
- inline ::std::string* mutable_user_name();
- inline ::std::string* release_user_name();
- inline void set_allocated_user_name(::std::string* user_name);
+ const ::std::string& user_name() const;
+ void set_user_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_user_name(::std::string&& value);
+ #endif
+ void set_user_name(const char* value);
+ void set_user_name(const char* value, size_t size);
+ ::std::string* mutable_user_name();
+ ::std::string* release_user_name();
+ void set_allocated_user_name(::std::string* user_name);
// @@protoc_insertion_point(class_scope:exec.shared.UserCredentials)
private:
- inline void set_has_user_name();
- inline void clear_has_user_name();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* user_name_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static UserCredentials* default_instance_;
+ void set_has_user_name();
+ void clear_has_user_name();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr user_name_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryId : public ::google::protobuf::Message {
+class QueryId : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.QueryId) */ {
public:
QueryId();
virtual ~QueryId();
@@ -404,88 +526,120 @@ class QueryId : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryId(QueryId&& from) noexcept
+ : QueryId() {
+ *this = ::std::move(from);
+ }
+ inline QueryId& operator=(QueryId&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryId& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryId* internal_default_instance() {
+ return reinterpret_cast<const QueryId*>(
+ &_QueryId_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
void Swap(QueryId* other);
+ friend void swap(QueryId& a, QueryId& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryId* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryId* New() const final {
+ return CreateMaybeMessage<QueryId>(NULL);
+ }
+
+ QueryId* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryId>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryId& from);
void MergeFrom(const QueryId& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryId* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional sfixed64 part1 = 1;
- inline bool has_part1() const;
- inline void clear_part1();
+ bool has_part1() const;
+ void clear_part1();
static const int kPart1FieldNumber = 1;
- inline ::google::protobuf::int64 part1() const;
- inline void set_part1(::google::protobuf::int64 value);
+ ::google::protobuf::int64 part1() const;
+ void set_part1(::google::protobuf::int64 value);
// optional sfixed64 part2 = 2;
- inline bool has_part2() const;
- inline void clear_part2();
+ bool has_part2() const;
+ void clear_part2();
static const int kPart2FieldNumber = 2;
- inline ::google::protobuf::int64 part2() const;
- inline void set_part2(::google::protobuf::int64 value);
+ ::google::protobuf::int64 part2() const;
+ void set_part2(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.shared.QueryId)
private:
- inline void set_has_part1();
- inline void clear_has_part1();
- inline void set_has_part2();
- inline void clear_has_part2();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_part1();
+ void clear_has_part1();
+ void set_has_part2();
+ void clear_has_part2();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int64 part1_;
::google::protobuf::int64 part2_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static QueryId* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class DrillPBError : public ::google::protobuf::Message {
+class DrillPBError : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.DrillPBError) */ {
public:
DrillPBError();
virtual ~DrillPBError();
@@ -496,62 +650,116 @@ class DrillPBError : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ DrillPBError(DrillPBError&& from) noexcept
+ : DrillPBError() {
+ *this = ::std::move(from);
+ }
+ inline DrillPBError& operator=(DrillPBError&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const DrillPBError& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DrillPBError* internal_default_instance() {
+ return reinterpret_cast<const DrillPBError*>(
+ &_DrillPBError_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
void Swap(DrillPBError* other);
+ friend void swap(DrillPBError& a, DrillPBError& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- DrillPBError* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline DrillPBError* New() const final {
+ return CreateMaybeMessage<DrillPBError>(NULL);
+ }
+
+ DrillPBError* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<DrillPBError>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const DrillPBError& from);
void MergeFrom(const DrillPBError& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(DrillPBError* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef DrillPBError_ErrorType ErrorType;
- static const ErrorType CONNECTION = DrillPBError_ErrorType_CONNECTION;
- static const ErrorType DATA_READ = DrillPBError_ErrorType_DATA_READ;
- static const ErrorType DATA_WRITE = DrillPBError_ErrorType_DATA_WRITE;
- static const ErrorType FUNCTION = DrillPBError_ErrorType_FUNCTION;
- static const ErrorType PARSE = DrillPBError_ErrorType_PARSE;
- static const ErrorType PERMISSION = DrillPBError_ErrorType_PERMISSION;
- static const ErrorType PLAN = DrillPBError_ErrorType_PLAN;
- static const ErrorType RESOURCE = DrillPBError_ErrorType_RESOURCE;
- static const ErrorType SYSTEM = DrillPBError_ErrorType_SYSTEM;
- static const ErrorType UNSUPPORTED_OPERATION = DrillPBError_ErrorType_UNSUPPORTED_OPERATION;
- static const ErrorType VALIDATION = DrillPBError_ErrorType_VALIDATION;
- static const ErrorType EXECUTION_ERROR = DrillPBError_ErrorType_EXECUTION_ERROR;
- static const ErrorType INTERNAL_ERROR = DrillPBError_ErrorType_INTERNAL_ERROR;
- static const ErrorType UNSPECIFIED_ERROR = DrillPBError_ErrorType_UNSPECIFIED_ERROR;
+ static const ErrorType CONNECTION =
+ DrillPBError_ErrorType_CONNECTION;
+ static const ErrorType DATA_READ =
+ DrillPBError_ErrorType_DATA_READ;
+ static const ErrorType DATA_WRITE =
+ DrillPBError_ErrorType_DATA_WRITE;
+ static const ErrorType FUNCTION =
+ DrillPBError_ErrorType_FUNCTION;
+ static const ErrorType PARSE =
+ DrillPBError_ErrorType_PARSE;
+ static const ErrorType PERMISSION =
+ DrillPBError_ErrorType_PERMISSION;
+ static const ErrorType PLAN =
+ DrillPBError_ErrorType_PLAN;
+ static const ErrorType RESOURCE =
+ DrillPBError_ErrorType_RESOURCE;
+ static const ErrorType SYSTEM =
+ DrillPBError_ErrorType_SYSTEM;
+ static const ErrorType UNSUPPORTED_OPERATION =
+ DrillPBError_ErrorType_UNSUPPORTED_OPERATION;
+ static const ErrorType VALIDATION =
+ DrillPBError_ErrorType_VALIDATION;
+ static const ErrorType EXECUTION_ERROR =
+ DrillPBError_ErrorType_EXECUTION_ERROR;
+ static const ErrorType INTERNAL_ERROR =
+ DrillPBError_ErrorType_INTERNAL_ERROR;
+ static const ErrorType UNSPECIFIED_ERROR =
+ DrillPBError_ErrorType_UNSPECIFIED_ERROR;
static inline bool ErrorType_IsValid(int value) {
return DrillPBError_ErrorType_IsValid(value);
}
@@ -575,102 +783,106 @@ class DrillPBError : public ::google::protobuf::Message {
// accessors -------------------------------------------------------
+ // repeated .exec.shared.ParsingError parsing_error = 6;
+ int parsing_error_size() const;
+ void clear_parsing_error();
+ static const int kParsingErrorFieldNumber = 6;
+ ::exec::shared::ParsingError* mutable_parsing_error(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >*
+ mutable_parsing_error();
+ const ::exec::shared::ParsingError& parsing_error(int index) const;
+ ::exec::shared::ParsingError* add_parsing_error();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >&
+ parsing_error() const;
+
// optional string error_id = 1;
- inline bool has_error_id() const;
- inline void clear_error_id();
+ bool has_error_id() const;
+ void clear_error_id();
static const int kErrorIdFieldNumber = 1;
- inline const ::std::string& error_id() const;
- inline void set_error_id(const ::std::string& value);
- inline void set_error_id(const char* value);
- inline void set_error_id(const char* value, size_t size);
- inline ::std::string* mutable_error_id();
- inline ::std::string* release_error_id();
- inline void set_allocated_error_id(::std::string* error_id);
-
- // optional .exec.DrillbitEndpoint endpoint = 2;
- inline bool has_endpoint() const;
- inline void clear_endpoint();
- static const int kEndpointFieldNumber = 2;
- inline const ::exec::DrillbitEndpoint& endpoint() const;
- inline ::exec::DrillbitEndpoint* mutable_endpoint();
- inline ::exec::DrillbitEndpoint* release_endpoint();
- inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
-
- // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
- inline bool has_error_type() const;
- inline void clear_error_type();
- static const int kErrorTypeFieldNumber = 3;
- inline ::exec::shared::DrillPBError_ErrorType error_type() const;
- inline void set_error_type(::exec::shared::DrillPBError_ErrorType value);
+ const ::std::string& error_id() const;
+ void set_error_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_error_id(::std::string&& value);
+ #endif
+ void set_error_id(const char* value);
+ void set_error_id(const char* value, size_t size);
+ ::std::string* mutable_error_id();
+ ::std::string* release_error_id();
+ void set_allocated_error_id(::std::string* error_id);
// optional string message = 4;
- inline bool has_message() const;
- inline void clear_message();
+ bool has_message() const;
+ void clear_message();
static const int kMessageFieldNumber = 4;
- inline const ::std::string& message() const;
- inline void set_message(const ::std::string& value);
- inline void set_message(const char* value);
- inline void set_message(const char* value, size_t size);
- inline ::std::string* mutable_message();
- inline ::std::string* release_message();
- inline void set_allocated_message(::std::string* message);
+ const ::std::string& message() const;
+ void set_message(const ::std::string& value);
+ #if LANG_CXX11
+ void set_message(::std::string&& value);
+ #endif
+ void set_message(const char* value);
+ void set_message(const char* value, size_t size);
+ ::std::string* mutable_message();
+ ::std::string* release_message();
+ void set_allocated_message(::std::string* message);
+
+ // optional .exec.DrillbitEndpoint endpoint = 2;
+ bool has_endpoint() const;
+ void clear_endpoint();
+ static const int kEndpointFieldNumber = 2;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ public:
+ const ::exec::DrillbitEndpoint& endpoint() const;
+ ::exec::DrillbitEndpoint* release_endpoint();
+ ::exec::DrillbitEndpoint* mutable_endpoint();
+ void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
// optional .exec.shared.ExceptionWrapper exception = 5;
- inline bool has_exception() const;
- inline void clear_exception();
+ bool has_exception() const;
+ void clear_exception();
static const int kExceptionFieldNumber = 5;
- inline const ::exec::shared::ExceptionWrapper& exception() const;
- inline ::exec::shared::ExceptionWrapper* mutable_exception();
- inline ::exec::shared::ExceptionWrapper* release_exception();
- inline void set_allocated_exception(::exec::shared::ExceptionWrapper* exception);
+ private:
+ const ::exec::shared::ExceptionWrapper& _internal_exception() const;
+ public:
+ const ::exec::shared::ExceptionWrapper& exception() const;
+ ::exec::shared::ExceptionWrapper* release_exception();
+ ::exec::shared::ExceptionWrapper* mutable_exception();
+ void set_allocated_exception(::exec::shared::ExceptionWrapper* exception);
- // repeated .exec.shared.ParsingError parsing_error = 6;
- inline int parsing_error_size() const;
- inline void clear_parsing_error();
- static const int kParsingErrorFieldNumber = 6;
- inline const ::exec::shared::ParsingError& parsing_error(int index) const;
- inline ::exec::shared::ParsingError* mutable_parsing_error(int index);
- inline ::exec::shared::ParsingError* add_parsing_error();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >&
- parsing_error() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >*
- mutable_parsing_error();
+ // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
+ bool has_error_type() const;
+ void clear_error_type();
+ static const int kErrorTypeFieldNumber = 3;
+ ::exec::shared::DrillPBError_ErrorType error_type() const;
+ void set_error_type(::exec::shared::DrillPBError_ErrorType value);
// @@protoc_insertion_point(class_scope:exec.shared.DrillPBError)
private:
- inline void set_has_error_id();
- inline void clear_has_error_id();
- inline void set_has_endpoint();
- inline void clear_has_endpoint();
- inline void set_has_error_type();
- inline void clear_has_error_type();
- inline void set_has_message();
- inline void clear_has_message();
- inline void set_has_exception();
- inline void clear_has_exception();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* error_id_;
+ void set_has_error_id();
+ void clear_has_error_id();
+ void set_has_endpoint();
+ void clear_has_endpoint();
+ void set_has_error_type();
+ void clear_has_error_type();
+ void set_has_message();
+ void clear_has_message();
+ void set_has_exception();
+ void clear_has_exception();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError > parsing_error_;
+ ::google::protobuf::internal::ArenaStringPtr error_id_;
+ ::google::protobuf::internal::ArenaStringPtr message_;
::exec::DrillbitEndpoint* endpoint_;
- ::std::string* message_;
::exec::shared::ExceptionWrapper* exception_;
- ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError > parsing_error_;
int error_type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static DrillPBError* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ExceptionWrapper : public ::google::protobuf::Message {
+class ExceptionWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.ExceptionWrapper) */ {
public:
ExceptionWrapper();
virtual ~ExceptionWrapper();
@@ -681,123 +893,164 @@ class ExceptionWrapper : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ExceptionWrapper(ExceptionWrapper&& from) noexcept
+ : ExceptionWrapper() {
+ *this = ::std::move(from);
+ }
+ inline ExceptionWrapper& operator=(ExceptionWrapper&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ExceptionWrapper& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ExceptionWrapper* internal_default_instance() {
+ return reinterpret_cast<const ExceptionWrapper*>(
+ &_ExceptionWrapper_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 3;
+
void Swap(ExceptionWrapper* other);
+ friend void swap(ExceptionWrapper& a, ExceptionWrapper& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ExceptionWrapper* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ExceptionWrapper* New() const final {
+ return CreateMaybeMessage<ExceptionWrapper>(NULL);
+ }
+
+ ExceptionWrapper* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ExceptionWrapper>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ExceptionWrapper& from);
void MergeFrom(const ExceptionWrapper& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ExceptionWrapper* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
+ int stack_trace_size() const;
+ void clear_stack_trace();
+ static const int kStackTraceFieldNumber = 3;
+ ::exec::shared::StackTraceElementWrapper* mutable_stack_trace(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >*
+ mutable_stack_trace();
+ const ::exec::shared::StackTraceElementWrapper& stack_trace(int index) const;
+ ::exec::shared::StackTraceElementWrapper* add_stack_trace();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >&
+ stack_trace() const;
+
// optional string exception_class = 1;
- inline bool has_exception_class() const;
- inline void clear_exception_class();
+ bool has_exception_class() const;
+ void clear_exception_class();
static const int kExceptionClassFieldNumber = 1;
- inline const ::std::string& exception_class() const;
- inline void set_exception_class(const ::std::string& value);
- inline void set_exception_class(const char* value);
- inline void set_exception_class(const char* value, size_t size);
- inline ::std::string* mutable_exception_class();
- inline ::std::string* release_exception_class();
- inline void set_allocated_exception_class(::std::string* exception_class);
+ const ::std::string& exception_class() const;
+ void set_exception_class(const ::std::string& value);
+ #if LANG_CXX11
+ void set_exception_class(::std::string&& value);
+ #endif
+ void set_exception_class(const char* value);
+ void set_exception_class(const char* value, size_t size);
+ ::std::string* mutable_exception_class();
+ ::std::string* release_exception_class();
+ void set_allocated_exception_class(::std::string* exception_class);
// optional string message = 2;
- inline bool has_message() const;
- inline void clear_message();
+ bool has_message() const;
+ void clear_message();
static const int kMessageFieldNumber = 2;
- inline const ::std::string& message() const;
- inline void set_message(const ::std::string& value);
- inline void set_message(const char* value);
- inline void set_message(const char* value, size_t size);
- inline ::std::string* mutable_message();
- inline ::std::string* release_message();
- inline void set_allocated_message(::std::string* message);
-
- // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
- inline int stack_trace_size() const;
- inline void clear_stack_trace();
- static const int kStackTraceFieldNumber = 3;
- inline const ::exec::shared::StackTraceElementWrapper& stack_trace(int index) const;
- inline ::exec::shared::StackTraceElementWrapper* mutable_stack_trace(int index);
- inline ::exec::shared::StackTraceElementWrapper* add_stack_trace();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >&
- stack_trace() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >*
- mutable_stack_trace();
+ const ::std::string& message() const;
+ void set_message(const ::std::string& value);
+ #if LANG_CXX11
+ void set_message(::std::string&& value);
+ #endif
+ void set_message(const char* value);
+ void set_message(const char* value, size_t size);
+ ::std::string* mutable_message();
+ ::std::string* release_message();
+ void set_allocated_message(::std::string* message);
// optional .exec.shared.ExceptionWrapper cause = 4;
- inline bool has_cause() const;
- inline void clear_cause();
+ bool has_cause() const;
+ void clear_cause();
static const int kCauseFieldNumber = 4;
- inline const ::exec::shared::ExceptionWrapper& cause() const;
- inline ::exec::shared::ExceptionWrapper* mutable_cause();
- inline ::exec::shared::ExceptionWrapper* release_cause();
- inline void set_allocated_cause(::exec::shared::ExceptionWrapper* cause);
+ private:
+ const ::exec::shared::ExceptionWrapper& _internal_cause() const;
+ public:
+ const ::exec::shared::ExceptionWrapper& cause() const;
+ ::exec::shared::ExceptionWrapper* release_cause();
+ ::exec::shared::ExceptionWrapper* mutable_cause();
+ void set_allocated_cause(::exec::shared::ExceptionWrapper* cause);
// @@protoc_insertion_point(class_scope:exec.shared.ExceptionWrapper)
private:
- inline void set_has_exception_class();
- inline void clear_has_exception_class();
- inline void set_has_message();
- inline void clear_has_message();
- inline void set_has_cause();
- inline void clear_has_cause();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* exception_class_;
- ::std::string* message_;
+ void set_has_exception_class();
+ void clear_has_exception_class();
+ void set_has_message();
+ void clear_has_message();
+ void set_has_cause();
+ void clear_has_cause();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper > stack_trace_;
+ ::google::protobuf::internal::ArenaStringPtr exception_class_;
+ ::google::protobuf::internal::ArenaStringPtr message_;
::exec::shared::ExceptionWrapper* cause_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static ExceptionWrapper* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class StackTraceElementWrapper : public ::google::protobuf::Message {
+class StackTraceElementWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.StackTraceElementWrapper) */ {
public:
StackTraceElementWrapper();
virtual ~StackTraceElementWrapper();
@@ -808,133 +1061,174 @@ class StackTraceElementWrapper : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ StackTraceElementWrapper(StackTraceElementWrapper&& from) noexcept
+ : StackTraceElementWrapper() {
+ *this = ::std::move(from);
+ }
+ inline StackTraceElementWrapper& operator=(StackTraceElementWrapper&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const StackTraceElementWrapper& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StackTraceElementWrapper* internal_default_instance() {
+ return reinterpret_cast<const StackTraceElementWrapper*>(
+ &_StackTraceElementWrapper_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 4;
+
void Swap(StackTraceElementWrapper* other);
+ friend void swap(StackTraceElementWrapper& a, StackTraceElementWrapper& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- StackTraceElementWrapper* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline StackTraceElementWrapper* New() const final {
+ return CreateMaybeMessage<StackTraceElementWrapper>(NULL);
+ }
+
+ StackTraceElementWrapper* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<StackTraceElementWrapper>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const StackTraceElementWrapper& from);
void MergeFrom(const StackTraceElementWrapper& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(StackTraceElementWrapper* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string class_name = 1;
- inline bool has_class_name() const;
- inline void clear_class_name();
+ bool has_class_name() const;
+ void clear_class_name();
static const int kClassNameFieldNumber = 1;
- inline const ::std::string& class_name() const;
- inline void set_class_name(const ::std::string& value);
- inline void set_class_name(const char* value);
- inline void set_class_name(const char* value, size_t size);
- inline ::std::string* mutable_class_name();
- inline ::std::string* release_class_name();
- inline void set_allocated_class_name(::std::string* class_name);
+ const ::std::string& class_name() const;
+ void set_class_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_class_name(::std::string&& value);
+ #endif
+ void set_class_name(const char* value);
+ void set_class_name(const char* value, size_t size);
+ ::std::string* mutable_class_name();
+ ::std::string* release_class_name();
+ void set_allocated_class_name(::std::string* class_name);
// optional string file_name = 2;
- inline bool has_file_name() const;
- inline void clear_file_name();
+ bool has_file_name() const;
+ void clear_file_name();
static const int kFileNameFieldNumber = 2;
- inline const ::std::string& file_name() const;
- inline void set_file_name(const ::std::string& value);
- inline void set_file_name(const char* value);
- inline void set_file_name(const char* value, size_t size);
- inline ::std::string* mutable_file_name();
- inline ::std::string* release_file_name();
- inline void set_allocated_file_name(::std::string* file_name);
-
- // optional int32 line_number = 3;
- inline bool has_line_number() const;
- inline void clear_line_number();
- static const int kLineNumberFieldNumber = 3;
- inline ::google::protobuf::int32 line_number() const;
- inline void set_line_number(::google::protobuf::int32 value);
+ const ::std::string& file_name() const;
+ void set_file_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_file_name(::std::string&& value);
+ #endif
+ void set_file_name(const char* value);
+ void set_file_name(const char* value, size_t size);
+ ::std::string* mutable_file_name();
+ ::std::string* release_file_name();
+ void set_allocated_file_name(::std::string* file_name);
// optional string method_name = 4;
- inline bool has_method_name() const;
- inline void clear_method_name();
+ bool has_method_name() const;
+ void clear_method_name();
static const int kMethodNameFieldNumber = 4;
- inline const ::std::string& method_name() const;
- inline void set_method_name(const ::std::string& value);
- inline void set_method_name(const char* value);
- inline void set_method_name(const char* value, size_t size);
- inline ::std::string* mutable_method_name();
- inline ::std::string* release_method_name();
- inline void set_allocated_method_name(::std::string* method_name);
+ const ::std::string& method_name() const;
+ void set_method_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_method_name(::std::string&& value);
+ #endif
+ void set_method_name(const char* value);
+ void set_method_name(const char* value, size_t size);
+ ::std::string* mutable_method_name();
+ ::std::string* release_method_name();
+ void set_allocated_method_name(::std::string* method_name);
+
+ // optional int32 line_number = 3;
+ bool has_line_number() const;
+ void clear_line_number();
+ static const int kLineNumberFieldNumber = 3;
+ ::google::protobuf::int32 line_number() const;
+ void set_line_number(::google::protobuf::int32 value);
// optional bool is_native_method = 5;
- inline bool has_is_native_method() const;
- inline void clear_is_native_method();
+ bool has_is_native_method() const;
+ void clear_is_native_method();
static const int kIsNativeMethodFieldNumber = 5;
- inline bool is_native_method() const;
- inline void set_is_native_method(bool value);
+ bool is_native_method() const;
+ void set_is_native_method(bool value);
// @@protoc_insertion_point(class_scope:exec.shared.StackTraceElementWrapper)
private:
- inline void set_has_class_name();
- inline void clear_has_class_name();
- inline void set_has_file_name();
- inline void clear_has_file_name();
- inline void set_has_line_number();
- inline void clear_has_line_number();
- inline void set_has_method_name();
- inline void clear_has_method_name();
- inline void set_has_is_native_method();
- inline void clear_has_is_native_method();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* class_name_;
- ::std::string* file_name_;
- ::std::string* method_name_;
+ void set_has_class_name();
+ void clear_has_class_name();
+ void set_has_file_name();
+ void clear_has_file_name();
+ void set_has_line_number();
+ void clear_has_line_number();
+ void set_has_method_name();
+ void clear_has_method_name();
+ void set_has_is_native_method();
+ void clear_has_is_native_method();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr class_name_;
+ ::google::protobuf::internal::ArenaStringPtr file_name_;
+ ::google::protobuf::internal::ArenaStringPtr method_name_;
::google::protobuf::int32 line_number_;
bool is_native_method_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static StackTraceElementWrapper* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class ParsingError : public ::google::protobuf::Message {
+class ParsingError : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.ParsingError) */ {
public:
ParsingError();
virtual ~ParsingError();
@@ -945,108 +1239,140 @@ class ParsingError : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ ParsingError(ParsingError&& from) noexcept
+ : ParsingError() {
+ *this = ::std::move(from);
+ }
+ inline ParsingError& operator=(ParsingError&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const ParsingError& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ParsingError* internal_default_instance() {
+ return reinterpret_cast<const ParsingError*>(
+ &_ParsingError_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 5;
+
void Swap(ParsingError* other);
+ friend void swap(ParsingError& a, ParsingError& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- ParsingError* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline ParsingError* New() const final {
+ return CreateMaybeMessage<ParsingError>(NULL);
+ }
+
+ ParsingError* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<ParsingError>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ParsingError& from);
void MergeFrom(const ParsingError& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(ParsingError* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int32 start_column = 2;
- inline bool has_start_column() const;
- inline void clear_start_column();
+ bool has_start_column() const;
+ void clear_start_column();
static const int kStartColumnFieldNumber = 2;
- inline ::google::protobuf::int32 start_column() const;
- inline void set_start_column(::google::protobuf::int32 value);
+ ::google::protobuf::int32 start_column() const;
+ void set_start_column(::google::protobuf::int32 value);
// optional int32 start_row = 3;
- inline bool has_start_row() const;
- inline void clear_start_row();
+ bool has_start_row() const;
+ void clear_start_row();
static const int kStartRowFieldNumber = 3;
- inline ::google::protobuf::int32 start_row() const;
- inline void set_start_row(::google::protobuf::int32 value);
+ ::google::protobuf::int32 start_row() const;
+ void set_start_row(::google::protobuf::int32 value);
// optional int32 end_column = 4;
- inline bool has_end_column() const;
- inline void clear_end_column();
+ bool has_end_column() const;
+ void clear_end_column();
static const int kEndColumnFieldNumber = 4;
- inline ::google::protobuf::int32 end_column() const;
- inline void set_end_column(::google::protobuf::int32 value);
+ ::google::protobuf::int32 end_column() const;
+ void set_end_column(::google::protobuf::int32 value);
// optional int32 end_row = 5;
- inline bool has_end_row() const;
- inline void clear_end_row();
+ bool has_end_row() const;
+ void clear_end_row();
static const int kEndRowFieldNumber = 5;
- inline ::google::protobuf::int32 end_row() const;
- inline void set_end_row(::google::protobuf::int32 value);
+ ::google::protobuf::int32 end_row() const;
+ void set_end_row(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.ParsingError)
private:
- inline void set_has_start_column();
- inline void clear_has_start_column();
- inline void set_has_start_row();
- inline void clear_has_start_row();
- inline void set_has_end_column();
- inline void clear_has_end_column();
- inline void set_has_end_row();
- inline void clear_has_end_row();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_start_column();
+ void clear_has_start_column();
+ void set_has_start_row();
+ void clear_has_start_row();
+ void set_has_end_column();
+ void clear_has_end_column();
+ void set_has_end_row();
+ void clear_has_end_row();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int32 start_column_;
::google::protobuf::int32 start_row_;
::google::protobuf::int32 end_column_;
::google::protobuf::int32 end_row_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static ParsingError* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class RecordBatchDef : public ::google::protobuf::Message {
+class RecordBatchDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.RecordBatchDef) */ {
public:
RecordBatchDef();
virtual ~RecordBatchDef();
@@ -1057,111 +1383,143 @@ class RecordBatchDef : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ RecordBatchDef(RecordBatchDef&& from) noexcept
+ : RecordBatchDef() {
+ *this = ::std::move(from);
+ }
+ inline RecordBatchDef& operator=(RecordBatchDef&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const RecordBatchDef& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RecordBatchDef* internal_default_instance() {
+ return reinterpret_cast<const RecordBatchDef*>(
+ &_RecordBatchDef_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 6;
+
void Swap(RecordBatchDef* other);
+ friend void swap(RecordBatchDef& a, RecordBatchDef& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- RecordBatchDef* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline RecordBatchDef* New() const final {
+ return CreateMaybeMessage<RecordBatchDef>(NULL);
+ }
+
+ RecordBatchDef* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<RecordBatchDef>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const RecordBatchDef& from);
void MergeFrom(const RecordBatchDef& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(RecordBatchDef* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 record_count = 1;
- inline bool has_record_count() const;
- inline void clear_record_count();
- static const int kRecordCountFieldNumber = 1;
- inline ::google::protobuf::int32 record_count() const;
- inline void set_record_count(::google::protobuf::int32 value);
-
// repeated .exec.shared.SerializedField field = 2;
- inline int field_size() const;
- inline void clear_field();
+ int field_size() const;
+ void clear_field();
static const int kFieldFieldNumber = 2;
- inline const ::exec::shared::SerializedField& field(int index) const;
- inline ::exec::shared::SerializedField* mutable_field(int index);
- inline ::exec::shared::SerializedField* add_field();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
- field() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
+ ::exec::shared::SerializedField* mutable_field(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
mutable_field();
+ const ::exec::shared::SerializedField& field(int index) const;
+ ::exec::shared::SerializedField* add_field();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
+ field() const;
+
+ // optional int32 record_count = 1;
+ bool has_record_count() const;
+ void clear_record_count();
+ static const int kRecordCountFieldNumber = 1;
+ ::google::protobuf::int32 record_count() const;
+ void set_record_count(::google::protobuf::int32 value);
// optional bool carries_two_byte_selection_vector = 3;
- inline bool has_carries_two_byte_selection_vector() const;
- inline void clear_carries_two_byte_selection_vector();
+ bool has_carries_two_byte_selection_vector() const;
+ void clear_carries_two_byte_selection_vector();
static const int kCarriesTwoByteSelectionVectorFieldNumber = 3;
- inline bool carries_two_byte_selection_vector() const;
- inline void set_carries_two_byte_selection_vector(bool value);
+ bool carries_two_byte_selection_vector() const;
+ void set_carries_two_byte_selection_vector(bool value);
// optional int32 affected_rows_count = 4;
- inline bool has_affected_rows_count() const;
- inline void clear_affected_rows_count();
+ bool has_affected_rows_count() const;
+ void clear_affected_rows_count();
static const int kAffectedRowsCountFieldNumber = 4;
- inline ::google::protobuf::int32 affected_rows_count() const;
- inline void set_affected_rows_count(::google::protobuf::int32 value);
+ ::google::protobuf::int32 affected_rows_count() const;
+ void set_affected_rows_count(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.RecordBatchDef)
private:
- inline void set_has_record_count();
- inline void clear_has_record_count();
- inline void set_has_carries_two_byte_selection_vector();
- inline void clear_has_carries_two_byte_selection_vector();
- inline void set_has_affected_rows_count();
- inline void clear_has_affected_rows_count();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_record_count();
+ void clear_has_record_count();
+ void set_has_carries_two_byte_selection_vector();
+ void clear_has_carries_two_byte_selection_vector();
+ void set_has_affected_rows_count();
+ void clear_has_affected_rows_count();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField > field_;
::google::protobuf::int32 record_count_;
bool carries_two_byte_selection_vector_;
::google::protobuf::int32 affected_rows_count_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static RecordBatchDef* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class NamePart : public ::google::protobuf::Message {
+class NamePart : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.NamePart) */ {
public:
NamePart();
virtual ~NamePart();
@@ -1172,50 +1530,92 @@ class NamePart : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ NamePart(NamePart&& from) noexcept
+ : NamePart() {
+ *this = ::std::move(from);
+ }
+ inline NamePart& operator=(NamePart&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const NamePart& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const NamePart* internal_default_instance() {
+ return reinterpret_cast<const NamePart*>(
+ &_NamePart_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 7;
+
void Swap(NamePart* other);
+ friend void swap(NamePart& a, NamePart& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- NamePart* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline NamePart* New() const final {
+ return CreateMaybeMessage<NamePart>(NULL);
+ }
+
+ NamePart* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<NamePart>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const NamePart& from);
void MergeFrom(const NamePart& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(NamePart* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef NamePart_Type Type;
- static const Type NAME = NamePart_Type_NAME;
- static const Type ARRAY = NamePart_Type_ARRAY;
+ static const Type NAME =
+ NamePart_Type_NAME;
+ static const Type ARRAY =
+ NamePart_Type_ARRAY;
static inline bool Type_IsValid(int value) {
return NamePart_Type_IsValid(value);
}
@@ -1239,62 +1639,60 @@ class NamePart : public ::google::protobuf::Message {
// accessors -------------------------------------------------------
- // optional .exec.shared.NamePart.Type type = 1;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 1;
- inline ::exec::shared::NamePart_Type type() const;
- inline void set_type(::exec::shared::NamePart_Type value);
-
// optional string name = 2;
- inline bool has_name() const;
- inline void clear_name();
+ bool has_name() const;
+ void clear_name();
static const int kNameFieldNumber = 2;
- inline const ::std::string& name() const;
- inline void set_name(const ::std::string& value);
- inline void set_name(const char* value);
- inline void set_name(const char* value, size_t size);
- inline ::std::string* mutable_name();
- inline ::std::string* release_name();
- inline void set_allocated_name(::std::string* name);
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
// optional .exec.shared.NamePart child = 3;
- inline bool has_child() const;
- inline void clear_child();
+ bool has_child() const;
+ void clear_child();
static const int kChildFieldNumber = 3;
- inline const ::exec::shared::NamePart& child() const;
- inline ::exec::shared::NamePart* mutable_child();
- inline ::exec::shared::NamePart* release_child();
- inline void set_allocated_child(::exec::shared::NamePart* child);
+ private:
+ const ::exec::shared::NamePart& _internal_child() const;
+ public:
+ const ::exec::shared::NamePart& child() const;
+ ::exec::shared::NamePart* release_child();
+ ::exec::shared::NamePart* mutable_child();
+ void set_allocated_child(::exec::shared::NamePart* child);
+
+ // optional .exec.shared.NamePart.Type type = 1;
+ bool has_type() const;
+ void clear_type();
+ static const int kTypeFieldNumber = 1;
+ ::exec::shared::NamePart_Type type() const;
+ void set_type(::exec::shared::NamePart_Type value);
// @@protoc_insertion_point(class_scope:exec.shared.NamePart)
private:
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_name();
- inline void clear_has_name();
- inline void set_has_child();
- inline void clear_has_child();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* name_;
+ void set_has_type();
+ void clear_has_type();
+ void set_has_name();
+ void clear_has_name();
+ void set_has_child();
+ void clear_has_child();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
::exec::shared::NamePart* child_;
int type_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static NamePart* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class SerializedField : public ::google::protobuf::Message {
+class SerializedField : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.SerializedField) */ {
public:
SerializedField();
virtual ~SerializedField();
@@ -1305,135 +1703,173 @@ class SerializedField : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ SerializedField(SerializedField&& from) noexcept
+ : SerializedField() {
+ *this = ::std::move(from);
+ }
+ inline SerializedField& operator=(SerializedField&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const SerializedField& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const SerializedField* internal_default_instance() {
+ return reinterpret_cast<const SerializedField*>(
+ &_SerializedField_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 8;
+
void Swap(SerializedField* other);
+ friend void swap(SerializedField& a, SerializedField& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- SerializedField* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline SerializedField* New() const final {
+ return CreateMaybeMessage<SerializedField>(NULL);
+ }
+
+ SerializedField* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<SerializedField>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const SerializedField& from);
void MergeFrom(const SerializedField& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(SerializedField* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
+ // repeated .exec.shared.SerializedField child = 3;
+ int child_size() const;
+ void clear_child();
+ static const int kChildFieldNumber = 3;
+ ::exec::shared::SerializedField* mutable_child(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
+ mutable_child();
+ const ::exec::shared::SerializedField& child(int index) const;
+ ::exec::shared::SerializedField* add_child();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
+ child() const;
+
// optional .common.MajorType major_type = 1;
- inline bool has_major_type() const;
- inline void clear_major_type();
+ bool has_major_type() const;
+ void clear_major_type();
static const int kMajorTypeFieldNumber = 1;
- inline const ::common::MajorType& major_type() const;
- inline ::common::MajorType* mutable_major_type();
- inline ::common::MajorType* release_major_type();
- inline void set_allocated_major_type(::common::MajorType* major_type);
+ private:
+ const ::common::MajorType& _internal_major_type() const;
+ public:
+ const ::common::MajorType& major_type() const;
+ ::common::MajorType* release_major_type();
+ ::common::MajorType* mutable_major_type();
+ void set_allocated_major_type(::common::MajorType* major_type);
// optional .exec.shared.NamePart name_part = 2;
- inline bool has_name_part() const;
- inline void clear_name_part();
+ bool has_name_part() const;
+ void clear_name_part();
static const int kNamePartFieldNumber = 2;
- inline const ::exec::shared::NamePart& name_part() const;
- inline ::exec::shared::NamePart* mutable_name_part();
- inline ::exec::shared::NamePart* release_name_part();
- inline void set_allocated_name_part(::exec::shared::NamePart* name_part);
-
- // repeated .exec.shared.SerializedField child = 3;
- inline int child_size() const;
- inline void clear_child();
- static const int kChildFieldNumber = 3;
- inline const ::exec::shared::SerializedField& child(int index) const;
- inline ::exec::shared::SerializedField* mutable_child(int index);
- inline ::exec::shared::SerializedField* add_child();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
- child() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
- mutable_child();
+ private:
+ const ::exec::shared::NamePart& _internal_name_part() const;
+ public:
+ const ::exec::shared::NamePart& name_part() const;
+ ::exec::shared::NamePart* release_name_part();
+ ::exec::shared::NamePart* mutable_name_part();
+ void set_allocated_name_part(::exec::shared::NamePart* name_part);
// optional int32 value_count = 4;
- inline bool has_value_count() const;
- inline void clear_value_count();
+ bool has_value_count() const;
+ void clear_value_count();
static const int kValueCountFieldNumber = 4;
- inline ::google::protobuf::int32 value_count() const;
- inline void set_value_count(::google::protobuf::int32 value);
+ ::google::protobuf::int32 value_count() const;
+ void set_value_count(::google::protobuf::int32 value);
// optional int32 var_byte_length = 5;
- inline bool has_var_byte_length() const;
- inline void clear_var_byte_length();
+ bool has_var_byte_length() const;
+ void clear_var_byte_length();
static const int kVarByteLengthFieldNumber = 5;
- inline ::google::protobuf::int32 var_byte_length() const;
- inline void set_var_byte_length(::google::protobuf::int32 value);
+ ::google::protobuf::int32 var_byte_length() const;
+ void set_var_byte_length(::google::protobuf::int32 value);
// optional int32 buffer_length = 7;
- inline bool has_buffer_length() const;
- inline void clear_buffer_length();
+ bool has_buffer_length() const;
+ void clear_buffer_length();
static const int kBufferLengthFieldNumber = 7;
- inline ::google::protobuf::int32 buffer_length() const;
- inline void set_buffer_length(::google::protobuf::int32 value);
+ ::google::protobuf::int32 buffer_length() const;
+ void set_buffer_length(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.SerializedField)
private:
- inline void set_has_major_type();
- inline void clear_has_major_type();
- inline void set_has_name_part();
- inline void clear_has_name_part();
- inline void set_has_value_count();
- inline void clear_has_value_count();
- inline void set_has_var_byte_length();
- inline void clear_has_var_byte_length();
- inline void set_has_buffer_length();
- inline void clear_has_buffer_length();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_major_type();
+ void clear_has_major_type();
+ void set_has_name_part();
+ void clear_has_name_part();
+ void set_has_value_count();
+ void clear_has_value_count();
+ void set_has_var_byte_length();
+ void clear_has_var_byte_length();
+ void set_has_buffer_length();
+ void clear_has_buffer_length();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField > child_;
::common::MajorType* major_type_;
::exec::shared::NamePart* name_part_;
- ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField > child_;
::google::protobuf::int32 value_count_;
::google::protobuf::int32 var_byte_length_;
::google::protobuf::int32 buffer_length_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static SerializedField* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class NodeStatus : public ::google::protobuf::Message {
+class NodeStatus : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.NodeStatus) */ {
public:
NodeStatus();
virtual ~NodeStatus();
@@ -1444,88 +1880,120 @@ class NodeStatus : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ NodeStatus(NodeStatus&& from) noexcept
+ : NodeStatus() {
+ *this = ::std::move(from);
+ }
+ inline NodeStatus& operator=(NodeStatus&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const NodeStatus& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const NodeStatus* internal_default_instance() {
+ return reinterpret_cast<const NodeStatus*>(
+ &_NodeStatus_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 9;
+
void Swap(NodeStatus* other);
+ friend void swap(NodeStatus& a, NodeStatus& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- NodeStatus* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline NodeStatus* New() const final {
+ return CreateMaybeMessage<NodeStatus>(NULL);
+ }
+
+ NodeStatus* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<NodeStatus>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const NodeStatus& from);
void MergeFrom(const NodeStatus& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(NodeStatus* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 node_id = 1;
- inline bool has_node_id() const;
- inline void clear_node_id();
- static const int kNodeIdFieldNumber = 1;
- inline ::google::protobuf::int32 node_id() const;
- inline void set_node_id(::google::protobuf::int32 value);
-
// optional int64 memory_footprint = 2;
- inline bool has_memory_footprint() const;
- inline void clear_memory_footprint();
+ bool has_memory_footprint() const;
+ void clear_memory_footprint();
static const int kMemoryFootprintFieldNumber = 2;
- inline ::google::protobuf::int64 memory_footprint() const;
- inline void set_memory_footprint(::google::protobuf::int64 value);
+ ::google::protobuf::int64 memory_footprint() const;
+ void set_memory_footprint(::google::protobuf::int64 value);
+
+ // optional int32 node_id = 1;
+ bool has_node_id() const;
+ void clear_node_id();
+ static const int kNodeIdFieldNumber = 1;
+ ::google::protobuf::int32 node_id() const;
+ void set_node_id(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.NodeStatus)
private:
- inline void set_has_node_id();
- inline void clear_has_node_id();
- inline void set_has_memory_footprint();
- inline void clear_has_memory_footprint();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_node_id();
+ void clear_has_node_id();
+ void set_has_memory_footprint();
+ void clear_has_memory_footprint();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int64 memory_footprint_;
::google::protobuf::int32 node_id_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static NodeStatus* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryResult : public ::google::protobuf::Message {
+class QueryResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.QueryResult) */ {
public:
QueryResult();
virtual ~QueryResult();
@@ -1536,57 +2004,106 @@ class QueryResult : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryResult(QueryResult&& from) noexcept
+ : QueryResult() {
+ *this = ::std::move(from);
+ }
+ inline QueryResult& operator=(QueryResult&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryResult& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryResult* internal_default_instance() {
+ return reinterpret_cast<const QueryResult*>(
+ &_QueryResult_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 10;
+
void Swap(QueryResult* other);
+ friend void swap(QueryResult& a, QueryResult& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryResult* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryResult* New() const final {
+ return CreateMaybeMessage<QueryResult>(NULL);
+ }
+
+ QueryResult* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryResult>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryResult& from);
void MergeFrom(const QueryResult& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryResult* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef QueryResult_QueryState QueryState;
- static const QueryState STARTING = QueryResult_QueryState_STARTING;
- static const QueryState RUNNING = QueryResult_QueryState_RUNNING;
- static const QueryState COMPLETED = QueryResult_QueryState_COMPLETED;
- static const QueryState CANCELED = QueryResult_QueryState_CANCELED;
- static const QueryState FAILED = QueryResult_QueryState_FAILED;
- static const QueryState CANCELLATION_REQUESTED = QueryResult_QueryState_CANCELLATION_REQUESTED;
- static const QueryState ENQUEUED = QueryResult_QueryState_ENQUEUED;
- static const QueryState PREPARING = QueryResult_QueryState_PREPARING;
- static const QueryState PLANNING = QueryResult_QueryState_PLANNING;
+ static const QueryState STARTING =
+ QueryResult_QueryState_STARTING;
+ static const QueryState RUNNING =
+ QueryResult_QueryState_RUNNING;
+ static const QueryState COMPLETED =
+ QueryResult_QueryState_COMPLETED;
+ static const QueryState CANCELED =
+ QueryResult_QueryState_CANCELED;
+ static const QueryState FAILED =
+ QueryResult_QueryState_FAILED;
+ static const QueryState CANCELLATION_REQUESTED =
+ QueryResult_QueryState_CANCELLATION_REQUESTED;
+ static const QueryState ENQUEUED =
+ QueryResult_QueryState_ENQUEUED;
+ static const QueryState PREPARING =
+ QueryResult_QueryState_PREPARING;
+ static const QueryState PLANNING =
+ QueryResult_QueryState_PLANNING;
static inline bool QueryState_IsValid(int value) {
return QueryResult_QueryState_IsValid(value);
}
@@ -1610,60 +2127,55 @@ class QueryResult : public ::google::protobuf::Message {
// accessors -------------------------------------------------------
- // optional .exec.shared.QueryResult.QueryState query_state = 1;
- inline bool has_query_state() const;
- inline void clear_query_state();
- static const int kQueryStateFieldNumber = 1;
- inline ::exec::shared::QueryResult_QueryState query_state() const;
- inline void set_query_state(::exec::shared::QueryResult_QueryState value);
+ // repeated .exec.shared.DrillPBError error = 3;
+ int error_size() const;
+ void clear_error();
+ static const int kErrorFieldNumber = 3;
+ ::exec::shared::DrillPBError* mutable_error(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >*
+ mutable_error();
+ const ::exec::shared::DrillPBError& error(int index) const;
+ ::exec::shared::DrillPBError* add_error();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >&
+ error() const;
// optional .exec.shared.QueryId query_id = 2;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 2;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
- // repeated .exec.shared.DrillPBError error = 3;
- inline int error_size() const;
- inline void clear_error();
- static const int kErrorFieldNumber = 3;
- inline const ::exec::shared::DrillPBError& error(int index) const;
- inline ::exec::shared::DrillPBError* mutable_error(int index);
- inline ::exec::shared::DrillPBError* add_error();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >&
- error() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >*
- mutable_error();
+ // optional .exec.shared.QueryResult.QueryState query_state = 1;
+ bool has_query_state() const;
+ void clear_query_state();
+ static const int kQueryStateFieldNumber = 1;
+ ::exec::shared::QueryResult_QueryState query_state() const;
+ void set_query_state(::exec::shared::QueryResult_QueryState value);
// @@protoc_insertion_point(class_scope:exec.shared.QueryResult)
private:
- inline void set_has_query_state();
- inline void clear_has_query_state();
- inline void set_has_query_id();
- inline void clear_has_query_id();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::exec::shared::QueryId* query_id_;
+ void set_has_query_state();
+ void clear_has_query_state();
+ void set_has_query_id();
+ void clear_has_query_id();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError > error_;
+ ::exec::shared::QueryId* query_id_;
int query_state_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static QueryResult* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryData : public ::google::protobuf::Message {
+class QueryData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.QueryData) */ {
public:
QueryData();
virtual ~QueryData();
@@ -1674,112 +2186,150 @@ class QueryData : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryData(QueryData&& from) noexcept
+ : QueryData() {
+ *this = ::std::move(from);
+ }
+ inline QueryData& operator=(QueryData&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryData& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryData* internal_default_instance() {
+ return reinterpret_cast<const QueryData*>(
+ &_QueryData_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 11;
+
void Swap(QueryData* other);
+ friend void swap(QueryData& a, QueryData& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryData* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryData* New() const final {
+ return CreateMaybeMessage<QueryData>(NULL);
+ }
+
+ QueryData* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryData>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryData& from);
void MergeFrom(const QueryData& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryData* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional .exec.shared.QueryId query_id = 1;
- inline bool has_query_id() const;
- inline void clear_query_id();
+ bool has_query_id() const;
+ void clear_query_id();
static const int kQueryIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& query_id() const;
- inline ::exec::shared::QueryId* mutable_query_id();
- inline ::exec::shared::QueryId* release_query_id();
- inline void set_allocated_query_id(::exec::shared::QueryId* query_id);
-
- // optional int32 row_count = 2;
- inline bool has_row_count() const;
- inline void clear_row_count();
- static const int kRowCountFieldNumber = 2;
- inline ::google::protobuf::int32 row_count() const;
- inline void set_row_count(::google::protobuf::int32 value);
+ private:
+ const ::exec::shared::QueryId& _internal_query_id() const;
+ public:
+ const ::exec::shared::QueryId& query_id() const;
+ ::exec::shared::QueryId* release_query_id();
+ ::exec::shared::QueryId* mutable_query_id();
+ void set_allocated_query_id(::exec::shared::QueryId* query_id);
// optional .exec.shared.RecordBatchDef def = 3;
- inline bool has_def() const;
- inline void clear_def();
+ bool has_def() const;
+ void clear_def();
static const int kDefFieldNumber = 3;
- inline const ::exec::shared::RecordBatchDef& def() const;
- inline ::exec::shared::RecordBatchDef* mutable_def();
- inline ::exec::shared::RecordBatchDef* release_def();
- inline void set_allocated_def(::exec::shared::RecordBatchDef* def);
+ private:
+ const ::exec::shared::RecordBatchDef& _internal_def() const;
+ public:
+ const ::exec::shared::RecordBatchDef& def() const;
+ ::exec::shared::RecordBatchDef* release_def();
+ ::exec::shared::RecordBatchDef* mutable_def();
+ void set_allocated_def(::exec::shared::RecordBatchDef* def);
+
+ // optional int32 row_count = 2;
+ bool has_row_count() const;
+ void clear_row_count();
+ static const int kRowCountFieldNumber = 2;
+ ::google::protobuf::int32 row_count() const;
+ void set_row_count(::google::protobuf::int32 value);
// optional int32 affected_rows_count = 4;
- inline bool has_affected_rows_count() const;
- inline void clear_affected_rows_count();
+ bool has_affected_rows_count() const;
+ void clear_affected_rows_count();
static const int kAffectedRowsCountFieldNumber = 4;
- inline ::google::protobuf::int32 affected_rows_count() const;
- inline void set_affected_rows_count(::google::protobuf::int32 value);
+ ::google::protobuf::int32 affected_rows_count() const;
+ void set_affected_rows_count(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.QueryData)
private:
- inline void set_has_query_id();
- inline void clear_has_query_id();
- inline void set_has_row_count();
- inline void clear_has_row_count();
- inline void set_has_def();
- inline void clear_has_def();
- inline void set_has_affected_rows_count();
- inline void clear_has_affected_rows_count();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_query_id();
+ void clear_has_query_id();
+ void set_has_row_count();
+ void clear_has_row_count();
+ void set_has_def();
+ void clear_has_def();
+ void set_has_affected_rows_count();
+ void clear_has_affected_rows_count();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::exec::shared::QueryId* query_id_;
::exec::shared::RecordBatchDef* def_;
::google::protobuf::int32 row_count_;
::google::protobuf::int32 affected_rows_count_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static QueryData* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryInfo : public ::google::protobuf::Message {
+class QueryInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.QueryInfo) */ {
public:
QueryInfo();
virtual ~QueryInfo();
@@ -1790,172 +2340,223 @@ class QueryInfo : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryInfo(QueryInfo&& from) noexcept
+ : QueryInfo() {
+ *this = ::std::move(from);
+ }
+ inline QueryInfo& operator=(QueryInfo&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryInfo& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryInfo* internal_default_instance() {
+ return reinterpret_cast<const QueryInfo*>(
+ &_QueryInfo_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 12;
+
void Swap(QueryInfo* other);
+ friend void swap(QueryInfo& a, QueryInfo& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryInfo* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryInfo* New() const final {
+ return CreateMaybeMessage<QueryInfo>(NULL);
+ }
+
+ QueryInfo* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryInfo>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryInfo& from);
void MergeFrom(const QueryInfo& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryInfo* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string query = 1;
- inline bool has_query() const;
- inline void clear_query();
+ bool has_query() const;
+ void clear_query();
static const int kQueryFieldNumber = 1;
- inline const ::std::string& query() const;
- inline void set_query(const ::std::string& value);
- inline void set_query(const char* value);
- inline void set_query(const char* value, size_t size);
- inline ::std::string* mutable_query();
- inline ::std::string* release_query();
- inline void set_allocated_query(::std::string* query);
-
- // optional int64 start = 2;
- inline bool has_start() const;
- inline void clear_start();
- static const int kStartFieldNumber = 2;
- inline ::google::protobuf::int64 start() const;
- inline void set_start(::google::protobuf::int64 value);
-
- // optional .exec.shared.QueryResult.QueryState state = 3;
- inline bool has_state() const;
- inline void clear_state();
- static const int kStateFieldNumber = 3;
- inline ::exec::shared::QueryResult_QueryState state() const;
- inline void set_state(::exec::shared::QueryResult_QueryState value);
+ const ::std::string& query() const;
+ void set_query(const ::std::string& value);
+ #if LANG_CXX11
+ void set_query(::std::string&& value);
+ #endif
+ void set_query(const char* value);
+ void set_query(const char* value, size_t size);
+ ::std::string* mutable_query();
+ ::std::string* release_query();
+ void set_allocated_query(::std::string* query);
// optional string user = 4 [default = "-"];
- inline bool has_user() const;
- inline void clear_user();
+ bool has_user() const;
+ void clear_user();
static const int kUserFieldNumber = 4;
- inline const ::std::string& user() const;
- inline void set_user(const ::std::string& value);
- inline void set_user(const char* value);
- inline void set_user(const char* value, size_t size);
- inline ::std::string* mutable_user();
- inline ::std::string* release_user();
- inline void set_allocated_user(::std::string* user);
+ const ::std::string& user() const;
+ void set_user(const ::std::string& value);
+ #if LANG_CXX11
+ void set_user(::std::string&& value);
+ #endif
+ void set_user(const char* value);
+ void set_user(const char* value, size_t size);
+ ::std::string* mutable_user();
+ ::std::string* release_user();
+ void set_allocated_user(::std::string* user);
+
+ // optional string options_json = 6;
+ bool has_options_json() const;
+ void clear_options_json();
+ static const int kOptionsJsonFieldNumber = 6;
+ const ::std::string& options_json() const;
+ void set_options_json(const ::std::string& value);
+ #if LANG_CXX11
+ void set_options_json(::std::string&& value);
+ #endif
+ void set_options_json(const char* value);
+ void set_options_json(const char* value, size_t size);
+ ::std::string* mutable_options_json();
+ ::std::string* release_options_json();
+ void set_allocated_options_json(::std::string* options_json);
+
+ // optional string queue_name = 8 [default = "-"];
+ bool has_queue_name() const;
+ void clear_queue_name();
+ static const int kQueueNameFieldNumber = 8;
+ const ::std::string& queue_name() const;
+ void set_queue_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_queue_name(::std::string&& value);
+ #endif
+ void set_queue_name(const char* value);
+ void set_queue_name(const char* value, size_t size);
+ ::std::string* mutable_queue_name();
+ ::std::string* release_queue_name();
+ void set_allocated_queue_name(::std::string* queue_name);
// optional .exec.DrillbitEndpoint foreman = 5;
- inline bool has_foreman() const;
- inline void clear_foreman();
+ bool has_foreman() const;
+ void clear_foreman();
static const int kForemanFieldNumber = 5;
- inline const ::exec::DrillbitEndpoint& foreman() const;
- inline ::exec::DrillbitEndpoint* mutable_foreman();
- inline ::exec::DrillbitEndpoint* release_foreman();
- inline void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+ private:
+ const ::exec::DrillbitEndpoint& _internal_foreman() const;
+ public:
+ const ::exec::DrillbitEndpoint& foreman() const;
+ ::exec::DrillbitEndpoint* release_foreman();
+ ::exec::DrillbitEndpoint* mutable_foreman();
+ void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
- // optional string options_json = 6;
- inline bool has_options_json() const;
- inline void clear_options_json();
- static const int kOptionsJsonFieldNumber = 6;
- inline const ::std::string& options_json() const;
- inline void set_options_json(const ::std::string& value);
- inline void set_options_json(const char* value);
- inline void set_options_json(const char* value, size_t size);
- inline ::std::string* mutable_options_json();
- inline ::std::string* release_options_json();
- inline void set_allocated_options_json(::std::string* options_json);
+ // optional int64 start = 2;
+ bool has_start() const;
+ void clear_start();
+ static const int kStartFieldNumber = 2;
+ ::google::protobuf::int64 start() const;
+ void set_start(::google::protobuf::int64 value);
// optional double total_cost = 7;
- inline bool has_total_cost() const;
- inline void clear_total_cost();
+ bool has_total_cost() const;
+ void clear_total_cost();
static const int kTotalCostFieldNumber = 7;
- inline double total_cost() const;
- inline void set_total_cost(double value);
+ double total_cost() const;
+ void set_total_cost(double value);
- // optional string queue_name = 8 [default = "-"];
- inline bool has_queue_name() const;
- inline void clear_queue_name();
- static const int kQueueNameFieldNumber = 8;
- inline const ::std::string& queue_name() const;
- inline void set_queue_name(const ::std::string& value);
- inline void set_queue_name(const char* value);
- inline void set_queue_name(const char* value, size_t size);
- inline ::std::string* mutable_queue_name();
- inline ::std::string* release_queue_name();
- inline void set_allocated_queue_name(::std::string* queue_name);
+ // optional .exec.shared.QueryResult.QueryState state = 3;
+ bool has_state() const;
+ void clear_state();
+ static const int kStateFieldNumber = 3;
+ ::exec::shared::QueryResult_QueryState state() const;
+ void set_state(::exec::shared::QueryResult_QueryState value);
// @@protoc_insertion_point(class_scope:exec.shared.QueryInfo)
private:
- inline void set_has_query();
- inline void clear_has_query();
- inline void set_has_start();
- inline void clear_has_start();
- inline void set_has_state();
- inline void clear_has_state();
- inline void set_has_user();
- inline void clear_has_user();
- inline void set_has_foreman();
- inline void clear_has_foreman();
- inline void set_has_options_json();
- inline void clear_has_options_json();
- inline void set_has_total_cost();
- inline void clear_has_total_cost();
- inline void set_has_queue_name();
- inline void clear_has_queue_name();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* query_;
- ::google::protobuf::int64 start_;
- ::std::string* user_;
- static ::std::string* _default_user_;
+ void set_has_query();
+ void clear_has_query();
+ void set_has_start();
+ void clear_has_start();
+ void set_has_state();
+ void clear_has_state();
+ void set_has_user();
+ void clear_has_user();
+ void set_has_foreman();
+ void clear_has_foreman();
+ void set_has_options_json();
+ void clear_has_options_json();
+ void set_has_total_cost();
+ void clear_has_total_cost();
+ void set_has_queue_name();
+ void clear_has_queue_name();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr query_;
+ public:
+ static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_user_;
+ private:
+ ::google::protobuf::internal::ArenaStringPtr user_;
+ ::google::protobuf::internal::ArenaStringPtr options_json_;
+ public:
+ static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_queue_name_;
+ private:
+ ::google::protobuf::internal::ArenaStringPtr queue_name_;
::exec::DrillbitEndpoint* foreman_;
- ::std::string* options_json_;
+ ::google::protobuf::int64 start_;
double total_cost_;
- ::std::string* queue_name_;
- static ::std::string* _default_queue_name_;
int state_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static QueryInfo* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class QueryProfile : public ::google::protobuf::Message {
+class QueryProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.QueryProfile) */ {
public:
QueryProfile();
virtual ~QueryProfile();
@@ -1966,347 +2567,419 @@ class QueryProfile : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ QueryProfile(QueryProfile&& from) noexcept
+ : QueryProfile() {
+ *this = ::std::move(from);
+ }
+ inline QueryProfile& operator=(QueryProfile&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const QueryProfile& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const QueryProfile* internal_default_instance() {
+ return reinterpret_cast<const QueryProfile*>(
+ &_QueryProfile_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 13;
+
void Swap(QueryProfile* other);
+ friend void swap(QueryProfile& a, QueryProfile& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- QueryProfile* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline QueryProfile* New() const final {
+ return CreateMaybeMessage<QueryProfile>(NULL);
+ }
+
+ QueryProfile* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<QueryProfile>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const QueryProfile& from);
void MergeFrom(const QueryProfile& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(QueryProfile* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.shared.QueryId id = 1;
- inline bool has_id() const;
- inline void clear_id();
- static const int kIdFieldNumber = 1;
- inline const ::exec::shared::QueryId& id() const;
- inline ::exec::shared::QueryId* mutable_id();
- inline ::exec::shared::QueryId* release_id();
- inline void set_allocated_id(::exec::shared::QueryId* id);
-
- // optional .exec.shared.QueryType type = 2;
- inline bool has_type() const;
- inline void clear_type();
- static const int kTypeFieldNumber = 2;
- inline ::exec::shared::QueryType type() const;
- inline void set_type(::exec::shared::QueryType value);
-
- // optional int64 start = 3;
- inline bool has_start() const;
- inline void clear_start();
- static const int kStartFieldNumber = 3;
- inline ::google::protobuf::int64 start() const;
- inline void set_start(::google::protobuf::int64 value);
-
- // optional int64 end = 4;
- inline bool has_end() const;
- inline void clear_end();
- static const int kEndFieldNumber = 4;
- inline ::google::protobuf::int64 end() const;
- inline void set_end(::google::protobuf::int64 value);
+ // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
+ int fragment_profile_size() const;
+ void clear_fragment_profile();
+ static const int kFragmentProfileFieldNumber = 11;
+ ::exec::shared::MajorFragmentProfile* mutable_fragment_profile(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >*
+ mutable_fragment_profile();
+ const ::exec::shared::MajorFragmentProfile& fragment_profile(int index) const;
+ ::exec::shared::MajorFragmentProfile* add_fragment_profile();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >&
+ fragment_profile() const;
// optional string query = 5;
- inline bool has_query() const;
- inline void clear_query();
+ bool has_query() const;
+ void clear_query();
static const int kQueryFieldNumber = 5;
- inline const ::std::string& query() const;
- inline void set_query(const ::std::string& value);
- inline void set_query(const char* value);
- inline void set_query(const char* value, size_t size);
- inline ::std::string* mutable_query();
- inline ::std::string* release_query();
- inline void set_allocated_query(::std::string* query);
+ const ::std::string& query() const;
+ void set_query(const ::std::string& value);
+ #if LANG_CXX11
+ void set_query(::std::string&& value);
+ #endif
+ void set_query(const char* value);
+ void set_query(const char* value, size_t size);
+ ::std::string* mutable_query();
+ ::std::string* release_query();
+ void set_allocated_query(::std::string* query);
// optional string plan = 6;
- inline bool has_plan() const;
- inline void clear_plan();
+ bool has_plan() const;
+ void clear_plan();
static const int kPlanFieldNumber = 6;
- inline const ::std::string& plan() const;
- inline void set_plan(const ::std::string& value);
- inline void set_plan(const char* value);
- inline void set_plan(const char* value, size_t size);
- inline ::std::string* mutable_plan();
- inline ::std::string* release_plan();
- inline void set_allocated_plan(::std::string* plan);
-
- // optional .exec.DrillbitEndpoint foreman = 7;
- inline bool has_foreman() const;
- inline void clear_foreman();
- static const int kForemanFieldNumber = 7;
- inline const ::exec::DrillbitEndpoint& foreman() const;
- inline ::exec::DrillbitEndpoint* mutable_foreman();
- inline ::exec::DrillbitEndpoint* release_foreman();
- inline void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
-
- // optional .exec.shared.QueryResult.QueryState state = 8;
- inline bool has_state() const;
- inline void clear_state();
- static const int kStateFieldNumber = 8;
- inline ::exec::shared::QueryResult_QueryState state() const;
- inline void set_state(::exec::shared::QueryResult_QueryState value);
-
- // optional int32 total_fragments = 9;
- inline bool has_total_fragments() const;
- inline void clear_total_fragments();
- static const int kTotalFragmentsFieldNumber = 9;
- inline ::google::protobuf::int32 total_fragments() const;
- inline void set_total_fragments(::google::protobuf::int32 value);
-
- // optional int32 finished_fragments = 10;
- inline bool has_finished_fragments() const;
- inline void clear_finished_fragments();
- static const int kFinishedFragmentsFieldNumber = 10;
- inline ::google::protobuf::int32 finished_fragments() const;
- inline void set_finished_fragments(::google::protobuf::int32 value);
-
- // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
- inline int fragment_profile_size() const;
- inline void clear_fragment_profile();
- static const int kFragmentProfileFieldNumber = 11;
- inline const ::exec::shared::MajorFragmentProfile& fragment_profile(int index) const;
- inline ::exec::shared::MajorFragmentProfile* mutable_fragment_profile(int index);
- inline ::exec::shared::MajorFragmentProfile* add_fragment_profile();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >&
- fragment_profile() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >*
- mutable_fragment_profile();
+ const ::std::string& plan() const;
+ void set_plan(const ::std::string& value);
+ #if LANG_CXX11
+ void set_plan(::std::string&& value);
+ #endif
+ void set_plan(const char* value);
+ void set_plan(const char* value, size_t size);
+ ::std::string* mutable_plan();
+ ::std::string* release_plan();
+ void set_allocated_plan(::std::string* plan);
// optional string user = 12 [default = "-"];
- inline bool has_user() const;
- inline void clear_user();
+ bool has_user() const;
+ void clear_user();
static const int kUserFieldNumber = 12;
- inline const ::std::string& user() const;
- inline void set_user(const ::std::string& value);
- inline void set_user(const char* value);
- inline void set_user(const char* value, size_t size);
- inline ::std::string* mutable_user();
- inline ::std::string* release_user();
- inline void set_allocated_user(::std::string* user);
+ const ::std::string& user() const;
+ void set_user(const ::std::string& value);
+ #if LANG_CXX11
+ void set_user(::std::string&& value);
+ #endif
+ void set_user(const char* value);
+ void set_user(const char* value, size_t size);
+ ::std::string* mutable_user();
+ ::std::string* release_user();
+ void set_allocated_user(::std::string* user);
// optional string error = 13;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 13;
- inline const ::std::string& error() const;
- inline void set_error(const ::std::string& value);
- inline void set_error(const char* value);
- inline void set_error(const char* value, size_t size);
- inline ::std::string* mutable_error();
- inline ::std::string* release_error();
- inline void set_allocated_error(::std::string* error);
+ const ::std::string& error() const;
+ void set_error(const ::std::string& value);
+ #if LANG_CXX11
+ void set_error(::std::string&& value);
+ #endif
+ void set_error(const char* value);
+ void set_error(const char* value, size_t size);
+ ::std::string* mutable_error();
+ ::std::string* release_error();
+ void set_allocated_error(::std::string* error);
// optional string verboseError = 14;
- inline bool has_verboseerror() const;
- inline void clear_verboseerror();
+ bool has_verboseerror() const;
+ void clear_verboseerror();
static const int kVerboseErrorFieldNumber = 14;
- inline const ::std::string& verboseerror() const;
- inline void set_verboseerror(const ::std::string& value);
- inline void set_verboseerror(const char* value);
- inline void set_verboseerror(const char* value, size_t size);
- inline ::std::string* mutable_verboseerror();
- inline ::std::string* release_verboseerror();
- inline void set_allocated_verboseerror(::std::string* verboseerror);
+ const ::std::string& verboseerror() const;
+ void set_verboseerror(const ::std::string& value);
+ #if LANG_CXX11
+ void set_verboseerror(::std::string&& value);
+ #endif
+ void set_verboseerror(const char* value);
+ void set_verboseerror(const char* value, size_t size);
+ ::std::string* mutable_verboseerror();
+ ::std::string* release_verboseerror();
+ void set_allocated_verboseerror(::std::string* verboseerror);
// optional string error_id = 15;
- inline bool has_error_id() const;
- inline void clear_error_id();
+ bool has_error_id() const;
+ void clear_error_id();
static const int kErrorIdFieldNumber = 15;
- inline const ::std::string& error_id() const;
- inline void set_error_id(const ::std::string& value);
- inline void set_error_id(const char* value);
- inline void set_error_id(const char* value, size_t size);
- inline ::std::string* mutable_error_id();
- inline ::std::string* release_error_id();
- inline void set_allocated_error_id(::std::string* error_id);
+ const ::std::string& error_id() const;
+ void set_error_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_error_id(::std::string&& value);
+ #endif
+ void set_error_id(const char* value);
+ void set_error_id(const char* value, size_t size);
+ ::std::string* mutable_error_id();
+ ::std::string* release_error_id();
+ void set_allocated_error_id(::std::string* error_id);
// optional string error_node = 16;
- inline bool has_error_node() const;
- inline void clear_error_node();
+ bool has_error_node() const;
+ void clear_error_node();
static const int kErrorNodeFieldNumber = 16;
- inline const ::std::string& error_node() const;
- inline void set_error_node(const ::std::string& value);
- inline void set_error_node(const char* value);
- inline void set_error_node(const char* value, size_t size);
- inline ::std::string* mutable_error_node();
- inline ::std::string* release_error_node();
- inline void set_allocated_error_node(::std::string* error_node);
+ const ::std::string& error_node() const;
+ void set_error_node(const ::std::string& value);
+ #if LANG_CXX11
+ void set_error_node(::std::string&& value);
+ #endif
+ void set_error_node(const char* value);
+ void set_error_node(const char* value, size_t size);
+ ::std::string* mutable_error_node();
+ ::std::string* release_error_node();
+ void set_allocated_error_node(::std::string* error_node);
// optional string options_json = 17;
- inline bool has_options_json() const;
- inline void clear_options_json();
+ bool has_options_json() const;
+ void clear_options_json();
static const int kOptionsJsonFieldNumber = 17;
- inline const ::std::string& options_json() const;
- inline void set_options_json(const ::std::string& value);
- inline void set_options_json(const char* value);
- inline void set_options_json(const char* value, size_t size);
- inline ::std::string* mutable_options_json();
- inline ::std::string* release_options_json();
- inline void set_allocated_options_json(::std::string* options_json);
+ const ::std::string& options_json() const;
+ void set_options_json(const ::std::string& value);
+ #if LANG_CXX11
+ void set_options_json(::std::string&& value);
+ #endif
+ void set_options_json(const char* value);
+ void set_options_json(const char* value, size_t size);
+ ::std::string* mutable_options_json();
+ ::std::string* release_options_json();
+ void set_allocated_options_json(::std::string* options_json);
+
+ // optional string queue_name = 21 [default = "-"];
+ bool has_queue_name() const;
+ void clear_queue_name();
+ static const int kQueueNameFieldNumber = 21;
+ const ::std::string& queue_name() const;
+ void set_queue_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_queue_name(::std::string&& value);
+ #endif
+ void set_queue_name(const char* value);
+ void set_queue_name(const char* value, size_t size);
+ ::std::string* mutable_queue_name();
+ ::std::string* release_queue_name();
+ void set_allocated_queue_name(::std::string* queue_name);
+
+ // optional string queryId = 22;
+ bool has_queryid() const;
+ void clear_queryid();
+ static const int kQueryIdFieldNumber = 22;
+ const ::std::string& queryid() const;
+ void set_queryid(const ::std::string& value);
+ #if LANG_CXX11
+ void set_queryid(::std::string&& value);
+ #endif
+ void set_queryid(const char* value);
+ void set_queryid(const char* value, size_t size);
+ ::std::string* mutable_queryid();
+ ::std::string* release_queryid();
+ void set_allocated_queryid(::std::string* queryid);
+
+ // optional .exec.shared.QueryId id = 1;
+ bool has_id() const;
+ void clear_id();
+ static const int kIdFieldNumber = 1;
+ private:
+ const ::exec::shared::QueryId& _internal_id() const;
+ public:
+ const ::exec::shared::QueryId& id() const;
+ ::exec::shared::QueryId* release_id();
+ ::exec::shared::QueryId* mutable_id();
+ void set_allocated_id(::exec::shared::QueryId* id);
+
+ // optional .exec.DrillbitEndpoint foreman = 7;
+ bool has_foreman() const;
+ void clear_foreman();
+ static const int kForemanFieldNumber = 7;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_foreman() const;
+ public:
+ const ::exec::DrillbitEndpoint& foreman() const;
+ ::exec::DrillbitEndpoint* release_foreman();
+ ::exec::DrillbitEndpoint* mutable_foreman();
+ void set_allocated_foreman(::exec::DrillbitEndpoint* foreman);
+
+ // optional int64 start = 3;
+ bool has_start() const;
+ void clear_start();
+ static const int kStartFieldNumber = 3;
+ ::google::protobuf::int64 start() const;
+ void set_start(::google::protobuf::int64 value);
+
+ // optional int64 end = 4;
+ bool has_end() const;
+ void clear_end();
+ static const int kEndFieldNumber = 4;
+ ::google::protobuf::int64 end() const;
+ void set_end(::google::protobuf::int64 value);
+
+ // optional .exec.shared.QueryResult.QueryState state = 8;
+ bool has_state() const;
+ void clear_state();
+ static const int kStateFieldNumber = 8;
+ ::exec::shared::QueryResult_QueryState state() const;
+ void set_state(::exec::shared::QueryResult_QueryState value);
+
+ // optional int32 total_fragments = 9;
+ bool has_total_fragments() const;
+ void clear_total_fragments();
+ static const int kTotalFragmentsFieldNumber = 9;
+ ::google::protobuf::int32 total_fragments() const;
+ void set_total_fragments(::google::protobuf::int32 value);
// optional int64 planEnd = 18;
- inline bool has_planend() const;
- inline void clear_planend();
+ bool has_planend() const;
+ void clear_planend();
static const int kPlanEndFieldNumber = 18;
- inline ::google::protobuf::int64 planend() const;
- inline void set_planend(::google::protobuf::int64 value);
+ ::google::protobuf::int64 planend() const;
+ void set_planend(::google::protobuf::int64 value);
// optional int64 queueWaitEnd = 19;
- inline bool has_queuewaitend() const;
- inline void clear_queuewaitend();
+ bool has_queuewaitend() const;
+ void clear_queuewaitend();
static const int kQueueWaitEndFieldNumber = 19;
- inline ::google::protobuf::int64 queuewaitend() const;
- inline void set_queuewaitend(::google::protobuf::int64 value);
+ ::google::protobuf::int64 queuewaitend() const;
+ void set_queuewaitend(::google::protobuf::int64 value);
// optional double total_cost = 20;
- inline bool has_total_cost() const;
- inline void clear_total_cost();
+ bool has_total_cost() const;
+ void clear_total_cost();
static const int kTotalCostFieldNumber = 20;
- inline double total_cost() const;
- inline void set_total_cost(double value);
+ double total_cost() const;
+ void set_total_cost(double value);
- // optional string queue_name = 21 [default = "-"];
- inline bool has_queue_name() const;
- inline void clear_queue_name();
- static const int kQueueNameFieldNumber = 21;
- inline const ::std::string& queue_name() const;
- inline void set_queue_name(const ::std::string& value);
- inline void set_queue_name(const char* value);
- inline void set_queue_name(const char* value, size_t size);
- inline ::std::string* mutable_queue_name();
- inline ::std::string* release_queue_name();
- inline void set_allocated_queue_name(::std::string* queue_name);
+ // optional int32 finished_fragments = 10;
+ bool has_finished_fragments() const;
+ void clear_finished_fragments();
+ static const int kFinishedFragmentsFieldNumber = 10;
+ ::google::protobuf::int32 finished_fragments() const;
+ void set_finished_fragments(::google::protobuf::int32 value);
- // optional string queryId = 22;
- inline bool has_queryid() const;
- inline void clear_queryid();
- static const int kQueryIdFieldNumber = 22;
- inline const ::std::string& queryid() const;
- inline void set_queryid(const ::std::string& value);
- inline void set_queryid(const char* value);
- inline void set_queryid(const char* value, size_t size);
- inline ::std::string* mutable_queryid();
- inline ::std::string* release_queryid();
- inline void set_allocated_queryid(::std::string* queryid);
+ // optional .exec.shared.QueryType type = 2;
+ bool has_type() const;
+ void clear_type();
+ static const int kTypeFieldNumber = 2;
+ ::exec::shared::QueryType type() const;
+ void set_type(::exec::shared::QueryType value);
// @@protoc_insertion_point(class_scope:exec.shared.QueryProfile)
private:
- inline void set_has_id();
- inline void clear_has_id();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_start();
- inline void clear_has_start();
- inline void set_has_end();
- inline void clear_has_end();
- inline void set_has_query();
- inline void clear_has_query();
- inline void set_has_plan();
- inline void clear_has_plan();
- inline void set_has_foreman();
- inline void clear_has_foreman();
- inline void set_has_state();
- inline void clear_has_state();
- inline void set_has_total_fragments();
- inline void clear_has_total_fragments();
- inline void set_has_finished_fragments();
- inline void clear_has_finished_fragments();
- inline void set_has_user();
- inline void clear_has_user();
- inline void set_has_error();
- inline void clear_has_error();
- inline void set_has_verboseerror();
- inline void clear_has_verboseerror();
- inline void set_has_error_id();
- inline void clear_has_error_id();
- inline void set_has_error_node();
- inline void clear_has_error_node();
- inline void set_has_options_json();
- inline void clear_has_options_json();
- inline void set_has_planend();
- inline void clear_has_planend();
- inline void set_has_queuewaitend();
- inline void clear_has_queuewaitend();
- inline void set_has_total_cost();
- inline void clear_has_total_cost();
- inline void set_has_queue_name();
- inline void clear_has_queue_name();
- inline void set_has_queryid();
- inline void clear_has_queryid();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_id();
+ void clear_has_id();
+ void set_has_type();
+ void clear_has_type();
+ void set_has_start();
+ void clear_has_start();
+ void set_has_end();
+ void clear_has_end();
+ void set_has_query();
+ void clear_has_query();
+ void set_has_plan();
+ void clear_has_plan();
+ void set_has_foreman();
+ void clear_has_foreman();
+ void set_has_state();
+ void clear_has_state();
+ void set_has_total_fragments();
+ void clear_has_total_fragments();
+ void set_has_finished_fragments();
+ void clear_has_finished_fragments();
+ void set_has_user();
+ void clear_has_user();
+ void set_has_error();
+ void clear_has_error();
+ void set_has_verboseerror();
+ void clear_has_verboseerror();
+ void set_has_error_id();
+ void clear_has_error_id();
+ void set_has_error_node();
+ void clear_has_error_node();
+ void set_has_options_json();
+ void clear_has_options_json();
+ void set_has_planend();
+ void clear_has_planend();
+ void set_has_queuewaitend();
+ void clear_has_queuewaitend();
+ void set_has_total_cost();
+ void clear_has_total_cost();
+ void set_has_queue_name();
+ void clear_has_queue_name();
+ void set_has_queryid();
+ void clear_has_queryid();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile > fragment_profile_;
+ ::google::protobuf::internal::ArenaStringPtr query_;
+ ::google::protobuf::internal::ArenaStringPtr plan_;
+ public:
+ static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_user_;
+ private:
+ ::google::protobuf::internal::ArenaStringPtr user_;
+ ::google::protobuf::internal::ArenaStringPtr error_;
+ ::google::protobuf::internal::ArenaStringPtr verboseerror_;
+ ::google::protobuf::internal::ArenaStringPtr error_id_;
+ ::google::protobuf::internal::ArenaStringPtr error_node_;
+ ::google::protobuf::internal::ArenaStringPtr options_json_;
+ public:
+ static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_queue_name_;
+ private:
+ ::google::protobuf::internal::ArenaStringPtr queue_name_;
+ ::google::protobuf::internal::ArenaStringPtr queryid_;
::exec::shared::QueryId* id_;
+ ::exec::DrillbitEndpoint* foreman_;
::google::protobuf::int64 start_;
::google::protobuf::int64 end_;
- ::std::string* query_;
- int type_;
int state_;
- ::std::string* plan_;
- ::exec::DrillbitEndpoint* foreman_;
::google::protobuf::int32 total_fragments_;
- ::google::protobuf::int32 finished_fragments_;
- ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile > fragment_profile_;
- ::std::string* user_;
- static ::std::string* _default_user_;
- ::std::string* error_;
- ::std::string* verboseerror_;
- ::std::string* error_id_;
- ::std::string* error_node_;
- ::std::string* options_json_;
::google::protobuf::int64 planend_;
::google::protobuf::int64 queuewaitend_;
double total_cost_;
- ::std::string* queue_name_;
- static ::std::string* _default_queue_name_;
- ::std::string* queryid_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(22 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static QueryProfile* default_instance_;
+ ::google::protobuf::int32 finished_fragments_;
+ int type_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class MajorFragmentProfile : public ::google::protobuf::Message {
+class MajorFragmentProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.MajorFragmentProfile) */ {
public:
MajorFragmentProfile();
virtual ~MajorFragmentProfile();
@@ -2317,91 +2990,123 @@ class MajorFragmentProfile : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ MajorFragmentProfile(MajorFragmentProfile&& from) noexcept
+ : MajorFragmentProfile() {
+ *this = ::std::move(from);
+ }
+ inline MajorFragmentProfile& operator=(MajorFragmentProfile&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const MajorFragmentProfile& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MajorFragmentProfile* internal_default_instance() {
+ return reinterpret_cast<const MajorFragmentProfile*>(
+ &_MajorFragmentProfile_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 14;
+
void Swap(MajorFragmentProfile* other);
+ friend void swap(MajorFragmentProfile& a, MajorFragmentProfile& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- MajorFragmentProfile* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline MajorFragmentProfile* New() const final {
+ return CreateMaybeMessage<MajorFragmentProfile>(NULL);
+ }
+
+ MajorFragmentProfile* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<MajorFragmentProfile>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const MajorFragmentProfile& from);
void MergeFrom(const MajorFragmentProfile& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(MajorFragmentProfile* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 major_fragment_id = 1;
- inline bool has_major_fragment_id() const;
- inline void clear_major_fragment_id();
- static const int kMajorFragmentIdFieldNumber = 1;
- inline ::google::protobuf::int32 major_fragment_id() const;
- inline void set_major_fragment_id(::google::protobuf::int32 value);
-
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
- inline int minor_fragment_profile_size() const;
- inline void clear_minor_fragment_profile();
+ int minor_fragment_profile_size() const;
+ void clear_minor_fragment_profile();
static const int kMinorFragmentProfileFieldNumber = 2;
- inline const ::exec::shared::MinorFragmentProfile& minor_fragment_profile(int index) const;
- inline ::exec::shared::MinorFragmentProfile* mutable_minor_fragment_profile(int index);
- inline ::exec::shared::MinorFragmentProfile* add_minor_fragment_profile();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >&
- minor_fragment_profile() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >*
+ ::exec::shared::MinorFragmentProfile* mutable_minor_fragment_profile(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >*
mutable_minor_fragment_profile();
+ const ::exec::shared::MinorFragmentProfile& minor_fragment_profile(int index) const;
+ ::exec::shared::MinorFragmentProfile* add_minor_fragment_profile();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >&
+ minor_fragment_profile() const;
+
+ // optional int32 major_fragment_id = 1;
+ bool has_major_fragment_id() const;
+ void clear_major_fragment_id();
+ static const int kMajorFragmentIdFieldNumber = 1;
+ ::google::protobuf::int32 major_fragment_id() const;
+ void set_major_fragment_id(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.MajorFragmentProfile)
private:
- inline void set_has_major_fragment_id();
- inline void clear_has_major_fragment_id();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_major_fragment_id();
+ void clear_has_major_fragment_id();
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile > minor_fragment_profile_;
::google::protobuf::int32 major_fragment_id_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static MajorFragmentProfile* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class MinorFragmentProfile : public ::google::protobuf::Message {
+class MinorFragmentProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.MinorFragmentProfile) */ {
public:
MinorFragmentProfile();
virtual ~MinorFragmentProfile();
@@ -2412,185 +3117,223 @@ class MinorFragmentProfile : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ MinorFragmentProfile(MinorFragmentProfile&& from) noexcept
+ : MinorFragmentProfile() {
+ *this = ::std::move(from);
+ }
+ inline MinorFragmentProfile& operator=(MinorFragmentProfile&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const MinorFragmentProfile& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MinorFragmentProfile* internal_default_instance() {
+ return reinterpret_cast<const MinorFragmentProfile*>(
+ &_MinorFragmentProfile_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 15;
+
void Swap(MinorFragmentProfile* other);
+ friend void swap(MinorFragmentProfile& a, MinorFragmentProfile& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- MinorFragmentProfile* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline MinorFragmentProfile* New() const final {
+ return CreateMaybeMessage<MinorFragmentProfile>(NULL);
+ }
+
+ MinorFragmentProfile* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<MinorFragmentProfile>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const MinorFragmentProfile& from);
void MergeFrom(const MinorFragmentProfile& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(MinorFragmentProfile* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional .exec.shared.FragmentState state = 1;
- inline bool has_state() const;
- inline void clear_state();
- static const int kStateFieldNumber = 1;
- inline ::exec::shared::FragmentState state() const;
- inline void set_state(::exec::shared::FragmentState value);
+ // repeated .exec.shared.OperatorProfile operator_profile = 4;
+ int operator_profile_size() const;
+ void clear_operator_profile();
+ static const int kOperatorProfileFieldNumber = 4;
+ ::exec::shared::OperatorProfile* mutable_operator_profile(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >*
+ mutable_operator_profile();
+ const ::exec::shared::OperatorProfile& operator_profile(int index) const;
+ ::exec::shared::OperatorProfile* add_operator_profile();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >&
+ operator_profile() const;
// optional .exec.shared.DrillPBError error = 2;
- inline bool has_error() const;
- inline void clear_error();
+ bool has_error() const;
+ void clear_error();
static const int kErrorFieldNumber = 2;
- inline const ::exec::shared::DrillPBError& error() const;
- inline ::exec::shared::DrillPBError* mutable_error();
- inline ::exec::shared::DrillPBError* release_error();
- inline void set_allocated_error(::exec::shared::DrillPBError* error);
+ private:
+ const ::exec::shared::DrillPBError& _internal_error() const;
+ public:
+ const ::exec::shared::DrillPBError& error() const;
+ ::exec::shared::DrillPBError* release_error();
+ ::exec::shared::DrillPBError* mutable_error();
+ void set_allocated_error(::exec::shared::DrillPBError* error);
+
+ // optional .exec.DrillbitEndpoint endpoint = 9;
+ bool has_endpoint() const;
+ void clear_endpoint();
+ static const int kEndpointFieldNumber = 9;
+ private:
+ const ::exec::DrillbitEndpoint& _internal_endpoint() const;
+ public:
+ const ::exec::DrillbitEndpoint& endpoint() const;
+ ::exec::DrillbitEndpoint* release_endpoint();
+ ::exec::DrillbitEndpoint* mutable_endpoint();
+ void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+
+ // optional .exec.shared.FragmentState state = 1;
+ bool has_state() const;
+ void clear_state();
+ static const int kStateFieldNumber = 1;
+ ::exec::shared::FragmentState state() const;
+ void set_state(::exec::shared::FragmentState value);
// optional int32 minor_fragment_id = 3;
- inline bool has_minor_fragment_id() const;
- inline void clear_minor_fragment_id();
+ bool has_minor_fragment_id() const;
+ void clear_minor_fragment_id();
static const int kMinorFragmentIdFieldNumber = 3;
- inline ::google::protobuf::int32 minor_fragment_id() const;
- inline void set_minor_fragment_id(::google::protobuf::int32 value);
-
- // repeated .exec.shared.OperatorProfile operator_profile = 4;
- inline int operator_profile_size() const;
- inline void clear_operator_profile();
- static const int kOperatorProfileFieldNumber = 4;
- inline const ::exec::shared::OperatorProfile& operator_profile(int index) const;
- inline ::exec::shared::OperatorProfile* mutable_operator_profile(int index);
- inline ::exec::shared::OperatorProfile* add_operator_profile();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >&
- operator_profile() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >*
- mutable_operator_profile();
+ ::google::protobuf::int32 minor_fragment_id() const;
+ void set_minor_fragment_id(::google::protobuf::int32 value);
// optional int64 start_time = 5;
- inline bool has_start_time() const;
- inline void clear_start_time();
+ bool has_start_time() const;
+ void clear_start_time();
static const int kStartTimeFieldNumber = 5;
- inline ::google::protobuf::int64 start_time() const;
- inline void set_start_time(::google::protobuf::int64 value);
+ ::google::protobuf::int64 start_time() const;
+ void set_start_time(::google::protobuf::int64 value);
// optional int64 end_time = 6;
- inline bool has_end_time() const;
- inline void clear_end_time();
+ bool has_end_time() const;
+ void clear_end_time();
static const int kEndTimeFieldNumber = 6;
- inline ::google::protobuf::int64 end_time() const;
- inline void set_end_time(::google::protobuf::int64 value);
+ ::google::protobuf::int64 end_time() const;
+ void set_end_time(::google::protobuf::int64 value);
// optional int64 memory_used = 7;
- inline bool has_memory_used() const;
- inline void clear_memory_used();
+ bool has_memory_used() const;
+ void clear_memory_used();
static const int kMemoryUsedFieldNumber = 7;
- inline ::google::protobuf::int64 memory_used() const;
- inline void set_memory_used(::google::protobuf::int64 value);
+ ::google::protobuf::int64 memory_used() const;
+ void set_memory_used(::google::protobuf::int64 value);
// optional int64 max_memory_used = 8;
- inline bool has_max_memory_used() const;
- inline void clear_max_memory_used();
+ bool has_max_memory_used() const;
+ void clear_max_memory_used();
static const int kMaxMemoryUsedFieldNumber = 8;
- inline ::google::protobuf::int64 max_memory_used() const;
- inline void set_max_memory_used(::google::protobuf::int64 value);
-
- // optional .exec.DrillbitEndpoint endpoint = 9;
- inline bool has_endpoint() const;
- inline void clear_endpoint();
- static const int kEndpointFieldNumber = 9;
- inline const ::exec::DrillbitEndpoint& endpoint() const;
- inline ::exec::DrillbitEndpoint* mutable_endpoint();
- inline ::exec::DrillbitEndpoint* release_endpoint();
- inline void set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint);
+ ::google::protobuf::int64 max_memory_used() const;
+ void set_max_memory_used(::google::protobuf::int64 value);
// optional int64 last_update = 10;
- inline bool has_last_update() const;
- inline void clear_last_update();
+ bool has_last_update() const;
+ void clear_last_update();
static const int kLastUpdateFieldNumber = 10;
- inline ::google::protobuf::int64 last_update() const;
- inline void set_last_update(::google::protobuf::int64 value);
+ ::google::protobuf::int64 last_update() const;
+ void set_last_update(::google::protobuf::int64 value);
// optional int64 last_progress = 11;
- inline bool has_last_progress() const;
- inline void clear_last_progress();
+ bool has_last_progress() const;
+ void clear_last_progress();
static const int kLastProgressFieldNumber = 11;
- inline ::google::protobuf::int64 last_progress() const;
- inline void set_last_progress(::google::protobuf::int64 value);
+ ::google::protobuf::int64 last_progress() const;
+ void set_last_progress(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.shared.MinorFragmentProfile)
private:
- inline void set_has_state();
- inline void clear_has_state();
- inline void set_has_error();
- inline void clear_has_error();
- inline void set_has_minor_fragment_id();
- inline void clear_has_minor_fragment_id();
- inline void set_has_start_time();
- inline void clear_has_start_time();
- inline void set_has_end_time();
- inline void clear_has_end_time();
- inline void set_has_memory_used();
- inline void clear_has_memory_used();
- inline void set_has_max_memory_used();
- inline void clear_has_max_memory_used();
- inline void set_has_endpoint();
- inline void clear_has_endpoint();
- inline void set_has_last_update();
- inline void clear_has_last_update();
- inline void set_has_last_progress();
- inline void clear_has_last_progress();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_state();
+ void clear_has_state();
+ void set_has_error();
+ void clear_has_error();
+ void set_has_minor_fragment_id();
+ void clear_has_minor_fragment_id();
+ void set_has_start_time();
+ void clear_has_start_time();
+ void set_has_end_time();
+ void clear_has_end_time();
+ void set_has_memory_used();
+ void clear_has_memory_used();
+ void set_has_max_memory_used();
+ void clear_has_max_memory_used();
+ void set_has_endpoint();
+ void clear_has_endpoint();
+ void set_has_last_update();
+ void clear_has_last_update();
+ void set_has_last_progress();
+ void clear_has_last_progress();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile > operator_profile_;
::exec::shared::DrillPBError* error_;
+ ::exec::DrillbitEndpoint* endpoint_;
int state_;
::google::protobuf::int32 minor_fragment_id_;
- ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile > operator_profile_;
::google::protobuf::int64 start_time_;
::google::protobuf::int64 end_time_;
::google::protobuf::int64 memory_used_;
::google::protobuf::int64 max_memory_used_;
- ::exec::DrillbitEndpoint* endpoint_;
::google::protobuf::int64 last_update_;
::google::protobuf::int64 last_progress_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(11 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static MinorFragmentProfile* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class OperatorProfile : public ::google::protobuf::Message {
+class OperatorProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.OperatorProfile) */ {
public:
OperatorProfile();
virtual ~OperatorProfile();
@@ -2601,154 +3344,186 @@ class OperatorProfile : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ OperatorProfile(OperatorProfile&& from) noexcept
+ : OperatorProfile() {
+ *this = ::std::move(from);
+ }
+ inline OperatorProfile& operator=(OperatorProfile&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const OperatorProfile& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const OperatorProfile* internal_default_instance() {
+ return reinterpret_cast<const OperatorProfile*>(
+ &_OperatorProfile_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 16;
+
void Swap(OperatorProfile* other);
+ friend void swap(OperatorProfile& a, OperatorProfile& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- OperatorProfile* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline OperatorProfile* New() const final {
+ return CreateMaybeMessage<OperatorProfile>(NULL);
+ }
+
+ OperatorProfile* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<OperatorProfile>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const OperatorProfile& from);
void MergeFrom(const OperatorProfile& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(OperatorProfile* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.shared.StreamProfile input_profile = 1;
- inline int input_profile_size() const;
- inline void clear_input_profile();
+ int input_profile_size() const;
+ void clear_input_profile();
static const int kInputProfileFieldNumber = 1;
- inline const ::exec::shared::StreamProfile& input_profile(int index) const;
- inline ::exec::shared::StreamProfile* mutable_input_profile(int index);
- inline ::exec::shared::StreamProfile* add_input_profile();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >&
- input_profile() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >*
+ ::exec::shared::StreamProfile* mutable_input_profile(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >*
mutable_input_profile();
+ const ::exec::shared::StreamProfile& input_profile(int index) const;
+ ::exec::shared::StreamProfile* add_input_profile();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >&
+ input_profile() const;
+
+ // repeated .exec.shared.MetricValue metric = 8;
+ int metric_size() const;
+ void clear_metric();
+ static const int kMetricFieldNumber = 8;
+ ::exec::shared::MetricValue* mutable_metric(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >*
+ mutable_metric();
+ const ::exec::shared::MetricValue& metric(int index) const;
+ ::exec::shared::MetricValue* add_metric();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >&
+ metric() const;
// optional int32 operator_id = 3;
- inline bool has_operator_id() const;
- inline void clear_operator_id();
+ bool has_operator_id() const;
+ void clear_operator_id();
static const int kOperatorIdFieldNumber = 3;
- inline ::google::protobuf::int32 operator_id() const;
- inline void set_operator_id(::google::protobuf::int32 value);
+ ::google::protobuf::int32 operator_id() const;
+ void set_operator_id(::google::protobuf::int32 value);
// optional int32 operator_type = 4;
- inline bool has_operator_type() const;
- inline void clear_operator_type();
+ bool has_operator_type() const;
+ void clear_operator_type();
static const int kOperatorTypeFieldNumber = 4;
- inline ::google::protobuf::int32 operator_type() const;
- inline void set_operator_type(::google::protobuf::int32 value);
+ ::google::protobuf::int32 operator_type() const;
+ void set_operator_type(::google::protobuf::int32 value);
// optional int64 setup_nanos = 5;
- inline bool has_setup_nanos() const;
- inline void clear_setup_nanos();
+ bool has_setup_nanos() const;
+ void clear_setup_nanos();
static const int kSetupNanosFieldNumber = 5;
- inline ::google::protobuf::int64 setup_nanos() const;
- inline void set_setup_nanos(::google::protobuf::int64 value);
+ ::google::protobuf::int64 setup_nanos() const;
+ void set_setup_nanos(::google::protobuf::int64 value);
// optional int64 process_nanos = 6;
- inline bool has_process_nanos() const;
- inline void clear_process_nanos();
+ bool has_process_nanos() const;
+ void clear_process_nanos();
static const int kProcessNanosFieldNumber = 6;
- inline ::google::protobuf::int64 process_nanos() const;
- inline void set_process_nanos(::google::protobuf::int64 value);
+ ::google::protobuf::int64 process_nanos() const;
+ void set_process_nanos(::google::protobuf::int64 value);
// optional int64 peak_local_memory_allocated = 7;
- inline bool has_peak_local_memory_allocated() const;
- inline void clear_peak_local_memory_allocated();
+ bool has_peak_local_memory_allocated() const;
+ void clear_peak_local_memory_allocated();
static const int kPeakLocalMemoryAllocatedFieldNumber = 7;
- inline ::google::protobuf::int64 peak_local_memory_allocated() const;
- inline void set_peak_local_memory_allocated(::google::protobuf::int64 value);
-
- // repeated .exec.shared.MetricValue metric = 8;
- inline int metric_size() const;
- inline void clear_metric();
- static const int kMetricFieldNumber = 8;
- inline const ::exec::shared::MetricValue& metric(int index) const;
- inline ::exec::shared::MetricValue* mutable_metric(int index);
- inline ::exec::shared::MetricValue* add_metric();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >&
- metric() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >*
- mutable_metric();
+ ::google::protobuf::int64 peak_local_memory_allocated() const;
+ void set_peak_local_memory_allocated(::google::protobuf::int64 value);
// optional int64 wait_nanos = 9;
- inline bool has_wait_nanos() const;
- inline void clear_wait_nanos();
+ bool has_wait_nanos() const;
+ void clear_wait_nanos();
static const int kWaitNanosFieldNumber = 9;
- inline ::google::protobuf::int64 wait_nanos() const;
- inline void set_wait_nanos(::google::protobuf::int64 value);
+ ::google::protobuf::int64 wait_nanos() const;
+ void set_wait_nanos(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.shared.OperatorProfile)
private:
- inline void set_has_operator_id();
- inline void clear_has_operator_id();
- inline void set_has_operator_type();
- inline void clear_has_operator_type();
- inline void set_has_setup_nanos();
- inline void clear_has_setup_nanos();
- inline void set_has_process_nanos();
- inline void clear_has_process_nanos();
- inline void set_has_peak_local_memory_allocated();
- inline void clear_has_peak_local_memory_allocated();
- inline void set_has_wait_nanos();
- inline void clear_has_wait_nanos();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_operator_id();
+ void clear_has_operator_id();
+ void set_has_operator_type();
+ void clear_has_operator_type();
+ void set_has_setup_nanos();
+ void clear_has_setup_nanos();
+ void set_has_process_nanos();
+ void clear_has_process_nanos();
+ void set_has_peak_local_memory_allocated();
+ void clear_has_peak_local_memory_allocated();
+ void set_has_wait_nanos();
+ void clear_has_wait_nanos();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile > input_profile_;
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue > metric_;
::google::protobuf::int32 operator_id_;
::google::protobuf::int32 operator_type_;
::google::protobuf::int64 setup_nanos_;
::google::protobuf::int64 process_nanos_;
::google::protobuf::int64 peak_local_memory_allocated_;
- ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue > metric_;
::google::protobuf::int64 wait_nanos_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static OperatorProfile* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class StreamProfile : public ::google::protobuf::Message {
+class StreamProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.StreamProfile) */ {
public:
StreamProfile();
virtual ~StreamProfile();
@@ -2759,98 +3534,130 @@ class StreamProfile : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ StreamProfile(StreamProfile&& from) noexcept
+ : StreamProfile() {
+ *this = ::std::move(from);
+ }
+ inline StreamProfile& operator=(StreamProfile&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const StreamProfile& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StreamProfile* internal_default_instance() {
+ return reinterpret_cast<const StreamProfile*>(
+ &_StreamProfile_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 17;
+
void Swap(StreamProfile* other);
+ friend void swap(StreamProfile& a, StreamProfile& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- StreamProfile* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline StreamProfile* New() const final {
+ return CreateMaybeMessage<StreamProfile>(NULL);
+ }
+
+ StreamProfile* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<StreamProfile>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const StreamProfile& from);
void MergeFrom(const StreamProfile& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(StreamProfile* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional int64 records = 1;
- inline bool has_records() const;
- inline void clear_records();
+ bool has_records() const;
+ void clear_records();
static const int kRecordsFieldNumber = 1;
- inline ::google::protobuf::int64 records() const;
- inline void set_records(::google::protobuf::int64 value);
+ ::google::protobuf::int64 records() const;
+ void set_records(::google::protobuf::int64 value);
// optional int64 batches = 2;
- inline bool has_batches() const;
- inline void clear_batches();
+ bool has_batches() const;
+ void clear_batches();
static const int kBatchesFieldNumber = 2;
- inline ::google::protobuf::int64 batches() const;
- inline void set_batches(::google::protobuf::int64 value);
+ ::google::protobuf::int64 batches() const;
+ void set_batches(::google::protobuf::int64 value);
// optional int64 schemas = 3;
- inline bool has_schemas() const;
- inline void clear_schemas();
+ bool has_schemas() const;
+ void clear_schemas();
static const int kSchemasFieldNumber = 3;
- inline ::google::protobuf::int64 schemas() const;
- inline void set_schemas(::google::protobuf::int64 value);
+ ::google::protobuf::int64 schemas() const;
+ void set_schemas(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:exec.shared.StreamProfile)
private:
- inline void set_has_records();
- inline void clear_has_records();
- inline void set_has_batches();
- inline void clear_has_batches();
- inline void set_has_schemas();
- inline void clear_has_schemas();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_records();
+ void clear_has_records();
+ void set_has_batches();
+ void clear_has_batches();
+ void set_has_schemas();
+ void clear_has_schemas();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int64 records_;
::google::protobuf::int64 batches_;
::google::protobuf::int64 schemas_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static StreamProfile* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class MetricValue : public ::google::protobuf::Message {
+class MetricValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.MetricValue) */ {
public:
MetricValue();
virtual ~MetricValue();
@@ -2861,98 +3668,130 @@ class MetricValue : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ MetricValue(MetricValue&& from) noexcept
+ : MetricValue() {
+ *this = ::std::move(from);
+ }
+ inline MetricValue& operator=(MetricValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const MetricValue& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MetricValue* internal_default_instance() {
+ return reinterpret_cast<const MetricValue*>(
+ &_MetricValue_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 18;
+
void Swap(MetricValue* other);
+ friend void swap(MetricValue& a, MetricValue& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- MetricValue* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline MetricValue* New() const final {
+ return CreateMaybeMessage<MetricValue>(NULL);
+ }
+
+ MetricValue* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<MetricValue>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const MetricValue& from);
void MergeFrom(const MetricValue& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(MetricValue* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional int32 metric_id = 1;
- inline bool has_metric_id() const;
- inline void clear_metric_id();
- static const int kMetricIdFieldNumber = 1;
- inline ::google::protobuf::int32 metric_id() const;
- inline void set_metric_id(::google::protobuf::int32 value);
-
// optional int64 long_value = 2;
- inline bool has_long_value() const;
- inline void clear_long_value();
+ bool has_long_value() const;
+ void clear_long_value();
static const int kLongValueFieldNumber = 2;
- inline ::google::protobuf::int64 long_value() const;
- inline void set_long_value(::google::protobuf::int64 value);
+ ::google::protobuf::int64 long_value() const;
+ void set_long_value(::google::protobuf::int64 value);
// optional double double_value = 3;
- inline bool has_double_value() const;
- inline void clear_double_value();
+ bool has_double_value() const;
+ void clear_double_value();
static const int kDoubleValueFieldNumber = 3;
- inline double double_value() const;
- inline void set_double_value(double value);
+ double double_value() const;
+ void set_double_value(double value);
+
+ // optional int32 metric_id = 1;
+ bool has_metric_id() const;
+ void clear_metric_id();
+ static const int kMetricIdFieldNumber = 1;
+ ::google::protobuf::int32 metric_id() const;
+ void set_metric_id(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:exec.shared.MetricValue)
private:
- inline void set_has_metric_id();
- inline void clear_has_metric_id();
- inline void set_has_long_value();
- inline void clear_has_long_value();
- inline void set_has_double_value();
- inline void clear_has_double_value();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ void set_has_metric_id();
+ void clear_has_metric_id();
+ void set_has_long_value();
+ void clear_has_long_value();
+ void set_has_double_value();
+ void clear_has_double_value();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::int64 long_value_;
double double_value_;
::google::protobuf::int32 metric_id_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static MetricValue* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class Registry : public ::google::protobuf::Message {
+class Registry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.Registry) */ {
public:
Registry();
virtual ~Registry();
@@ -2963,81 +3802,113 @@ class Registry : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Registry(Registry&& from) noexcept
+ : Registry() {
+ *this = ::std::move(from);
+ }
+ inline Registry& operator=(Registry&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Registry& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Registry* internal_default_instance() {
+ return reinterpret_cast<const Registry*>(
+ &_Registry_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 19;
+
void Swap(Registry* other);
+ friend void swap(Registry& a, Registry& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Registry* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Registry* New() const final {
+ return CreateMaybeMessage<Registry>(NULL);
+ }
+
+ Registry* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Registry>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Registry& from);
void MergeFrom(const Registry& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Registry* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .exec.shared.Jar jar = 1;
- inline int jar_size() const;
- inline void clear_jar();
+ int jar_size() const;
+ void clear_jar();
static const int kJarFieldNumber = 1;
- inline const ::exec::shared::Jar& jar(int index) const;
- inline ::exec::shared::Jar* mutable_jar(int index);
- inline ::exec::shared::Jar* add_jar();
- inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >&
- jar() const;
- inline ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >*
+ ::exec::shared::Jar* mutable_jar(int index);
+ ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >*
mutable_jar();
+ const ::exec::shared::Jar& jar(int index) const;
+ ::exec::shared::Jar* add_jar();
+ const ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >&
+ jar() const;
// @@protoc_insertion_point(class_scope:exec.shared.Registry)
private:
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::exec::shared::Jar > jar_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static Registry* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class Jar : public ::google::protobuf::Message {
+class Jar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.Jar) */ {
public:
Jar();
virtual ~Jar();
@@ -3048,100 +3919,141 @@ class Jar : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ Jar(Jar&& from) noexcept
+ : Jar() {
+ *this = ::std::move(from);
+ }
+ inline Jar& operator=(Jar&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Jar& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Jar* internal_default_instance() {
+ return reinterpret_cast<const Jar*>(
+ &_Jar_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 20;
+
void Swap(Jar* other);
+ friend void swap(Jar& a, Jar& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- Jar* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline Jar* New() const final {
+ return CreateMaybeMessage<Jar>(NULL);
+ }
+
+ Jar* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<Jar>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const Jar& from);
void MergeFrom(const Jar& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(Jar* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
- // optional string name = 1;
- inline bool has_name() const;
- inline void clear_name();
- static const int kNameFieldNumber = 1;
- inline const ::std::string& name() const;
- inline void set_name(const ::std::string& value);
- inline void set_name(const char* value);
- inline void set_name(const char* value, size_t size);
- inline ::std::string* mutable_name();
- inline ::std::string* release_name();
- inline void set_allocated_name(::std::string* name);
-
// repeated string function_signature = 2;
- inline int function_signature_size() const;
- inline void clear_function_signature();
+ int function_signature_size() const;
+ void clear_function_signature();
static const int kFunctionSignatureFieldNumber = 2;
- inline const ::std::string& function_signature(int index) const;
- inline ::std::string* mutable_function_signature(int index);
- inline void set_function_signature(int index, const ::std::string& value);
- inline void set_function_signature(int index, const char* value);
- inline void set_function_signature(int index, const char* value, size_t size);
- inline ::std::string* add_function_signature();
- inline void add_function_signature(const ::std::string& value);
- inline void add_function_signature(const char* value);
- inline void add_function_signature(const char* value, size_t size);
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>& function_signature() const;
- inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_function_signature();
+ const ::std::string& function_signature(int index) const;
+ ::std::string* mutable_function_signature(int index);
+ void set_function_signature(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_function_signature(int index, ::std::string&& value);
+ #endif
+ void set_function_signature(int index, const char* value);
+ void set_function_signature(int index, const char* value, size_t size);
+ ::std::string* add_function_signature();
+ void add_function_signature(const ::std::string& value);
+ #if LANG_CXX11
+ void add_function_signature(::std::string&& value);
+ #endif
+ void add_function_signature(const char* value);
+ void add_function_signature(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& function_signature() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_function_signature();
+
+ // optional string name = 1;
+ bool has_name() const;
+ void clear_name();
+ static const int kNameFieldNumber = 1;
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
// @@protoc_insertion_point(class_scope:exec.shared.Jar)
private:
- inline void set_has_name();
- inline void clear_has_name();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
+ void set_has_name();
+ void clear_has_name();
- ::std::string* name_;
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::std::string> function_signature_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static Jar* default_instance_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// -------------------------------------------------------------------
-class SaslMessage : public ::google::protobuf::Message {
+class SaslMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:exec.shared.SaslMessage) */ {
public:
SaslMessage();
virtual ~SaslMessage();
@@ -3152,110 +4064,152 @@ class SaslMessage : public ::google::protobuf::Message {
CopyFrom(from);
return *this;
}
+ #if LANG_CXX11
+ SaslMessage(SaslMessage&& from) noexcept
+ : SaslMessage() {
+ *this = ::std::move(from);
+ }
+ inline SaslMessage& operator=(SaslMessage&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _unknown_fields_;
+ return _internal_metadata_.unknown_fields();
}
-
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return &_unknown_fields_;
+ return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const SaslMessage& default_instance();
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const SaslMessage* internal_default_instance() {
+ return reinterpret_cast<const SaslMessage*>(
+ &_SaslMessage_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 21;
+
void Swap(SaslMessage* other);
+ friend void swap(SaslMessage& a, SaslMessage& b) {
+ a.Swap(&b);
+ }
// implements Message ----------------------------------------------
- SaslMessage* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
+ inline SaslMessage* New() const final {
+ return CreateMaybeMessage<SaslMessage>(NULL);
+ }
+
+ SaslMessage* New(::google::protobuf::Arena* arena) const final {
+ return CreateMaybeMessage<SaslMessage>(arena);
+ }
+ void CopyFrom(const ::google::protobuf::Message& from) final;
+ void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const SaslMessage& from);
void MergeFrom(const SaslMessage& from);
- void Clear();
- bool IsInitialized() const;
+ void Clear() final;
+ bool IsInitialized() const final;
- int ByteSize() const;
+ size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
+ ::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
- int GetCachedSize() const { return _cached_size_; }
+ ::google::protobuf::io::CodedOutputStream* output) const final;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const final;
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
private:
void SharedCtor();
void SharedDtor();
- void SetCachedSize(int size) const;
+ void SetCachedSize(int size) const final;
+ void InternalSwap(SaslMessage* other);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return NULL;
+ }
+ inline void* MaybeArenaPtr() const {
+ return NULL;
+ }
public:
- ::google::protobuf::Metadata GetMetadata() const;
+ ::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string mechanism = 1;
- inline bool has_mechanism() const;
- inline void clear_mechanism();
+ bool has_mechanism() const;
+ void clear_mechanism();
static const int kMechanismFieldNumber = 1;
- inline const ::std::string& mechanism() const;
- inline void set_mechanism(const ::std::string& value);
- inline void set_mechanism(const char* value);
- inline void set_mechanism(const char* value, size_t size);
- inline ::std::string* mutable_mechanism();
- inline ::std::string* release_mechanism();
- inline void set_allocated_mechanism(::std::string* mechanism);
+ const ::std::string& mechanism() const;
+ void set_mechanism(const ::std::string& value);
+ #if LANG_CXX11
+ void set_mechanism(::std::string&& value);
+ #endif
+ void set_mechanism(const char* value);
+ void set_mechanism(const char* value, size_t size);
+ ::std::string* mutable_mechanism();
+ ::std::string* release_mechanism();
+ void set_allocated_mechanism(::std::string* mechanism);
// optional bytes data = 2;
- inline bool has_data() const;
- inline void clear_data();
+ bool has_data() const;
+ void clear_data();
static const int kDataFieldNumber = 2;
- inline const ::std::string& data() const;
- inline void set_data(const ::std::string& value);
- inline void set_data(const char* value);
- inline void set_data(const void* value, size_t size);
- inline ::std::string* mutable_data();
- inline ::std::string* release_data();
- inline void set_allocated_data(::std::string* data);
+ const ::std::string& data() const;
+ void set_data(const ::std::string& value);
+ #if LANG_CXX11
+ void set_data(::std::string&& value);
+ #endif
+ void set_data(const char* value);
+ void set_data(const void* value, size_t size);
+ ::std::string* mutable_data();
+ ::std::string* release_data();
+ void set_allocated_data(::std::string* data);
// optional .exec.shared.SaslStatus status = 3;
- inline bool has_status() const;
- inline void clear_status();
+ bool has_status() const;
+ void clear_status();
static const int kStatusFieldNumber = 3;
- inline ::exec::shared::SaslStatus status() const;
- inline void set_status(::exec::shared::SaslStatus value);
+ ::exec::shared::SaslStatus status() const;
+ void set_status(::exec::shared::SaslStatus value);
// @@protoc_insertion_point(class_scope:exec.shared.SaslMessage)
private:
- inline void set_has_mechanism();
- inline void clear_has_mechanism();
- inline void set_has_data();
- inline void clear_has_data();
- inline void set_has_status();
- inline void clear_has_status();
-
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
-
- ::std::string* mechanism_;
- ::std::string* data_;
+ void set_has_mechanism();
+ void clear_has_mechanism();
+ void set_has_data();
+ void clear_has_data();
+ void set_has_status();
+ void clear_has_status();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
+ mutable ::google::protobuf::internal::CachedSize _cached_size_;
+ ::google::protobuf::internal::ArenaStringPtr mechanism_;
+ ::google::protobuf::internal::ArenaStringPtr data_;
int status_;
-
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
-
- friend void protobuf_AddDesc_UserBitShared_2eproto();
- friend void protobuf_AssignDesc_UserBitShared_2eproto();
- friend void protobuf_ShutdownFile_UserBitShared_2eproto();
-
- void InitAsDefaultInstance();
- static SaslMessage* default_instance_;
+ friend struct ::protobuf_UserBitShared_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
// UserCredentials
// optional string user_name = 1;
@@ -3269,63 +4223,59 @@ inline void UserCredentials::clear_has_user_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void UserCredentials::clear_user_name() {
- if (user_name_ != &::google::protobuf::internal::kEmptyString) {
- user_name_->clear();
- }
+ user_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_user_name();
}
inline const ::std::string& UserCredentials::user_name() const {
- return *user_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.UserCredentials.user_name)
+ return user_name_.GetNoArena();
}
inline void UserCredentials::set_user_name(const ::std::string& value) {
set_has_user_name();
- if (user_name_ == &::google::protobuf::internal::kEmptyString) {
- user_name_ = new ::std::string;
- }
- user_name_->assign(value);
+ user_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.UserCredentials.user_name)
+}
+#if LANG_CXX11
+inline void UserCredentials::set_user_name(::std::string&& value) {
+ set_has_user_name();
+ user_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.UserCredentials.user_name)
}
+#endif
inline void UserCredentials::set_user_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_user_name();
- if (user_name_ == &::google::protobuf::internal::kEmptyString) {
- user_name_ = new ::std::string;
- }
- user_name_->assign(value);
+ user_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.UserCredentials.user_name)
}
inline void UserCredentials::set_user_name(const char* value, size_t size) {
set_has_user_name();
- if (user_name_ == &::google::protobuf::internal::kEmptyString) {
- user_name_ = new ::std::string;
- }
- user_name_->assign(reinterpret_cast<const char*>(value), size);
+ user_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.UserCredentials.user_name)
}
inline ::std::string* UserCredentials::mutable_user_name() {
set_has_user_name();
- if (user_name_ == &::google::protobuf::internal::kEmptyString) {
- user_name_ = new ::std::string;
- }
- return user_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.UserCredentials.user_name)
+ return user_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* UserCredentials::release_user_name() {
- clear_has_user_name();
- if (user_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.UserCredentials.user_name)
+ if (!has_user_name()) {
return NULL;
- } else {
- ::std::string* temp = user_name_;
- user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_user_name();
+ return user_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void UserCredentials::set_allocated_user_name(::std::string* user_name) {
- if (user_name_ != &::google::protobuf::internal::kEmptyString) {
- delete user_name_;
- }
- if (user_name) {
+ if (user_name != NULL) {
set_has_user_name();
- user_name_ = user_name;
} else {
clear_has_user_name();
- user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ user_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.UserCredentials.user_name)
}
// -------------------------------------------------------------------
@@ -3347,11 +4297,13 @@ inline void QueryId::clear_part1() {
clear_has_part1();
}
inline ::google::protobuf::int64 QueryId::part1() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryId.part1)
return part1_;
}
inline void QueryId::set_part1(::google::protobuf::int64 value) {
set_has_part1();
part1_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryId.part1)
}
// optional sfixed64 part2 = 2;
@@ -3369,11 +4321,13 @@ inline void QueryId::clear_part2() {
clear_has_part2();
}
inline ::google::protobuf::int64 QueryId::part2() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryId.part2)
return part2_;
}
inline void QueryId::set_part2(::google::protobuf::int64 value) {
set_has_part2();
part2_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryId.part2)
}
// -------------------------------------------------------------------
@@ -3391,232 +4345,262 @@ inline void DrillPBError::clear_has_error_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DrillPBError::clear_error_id() {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- error_id_->clear();
- }
+ error_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_error_id();
}
inline const ::std::string& DrillPBError::error_id() const {
- return *error_id_;
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.error_id)
+ return error_id_.GetNoArena();
}
inline void DrillPBError::set_error_id(const ::std::string& value) {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(value);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.DrillPBError.error_id)
}
+#if LANG_CXX11
+inline void DrillPBError::set_error_id(::std::string&& value) {
+ set_has_error_id();
+ error_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.DrillPBError.error_id)
+}
+#endif
inline void DrillPBError::set_error_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(value);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.DrillPBError.error_id)
}
inline void DrillPBError::set_error_id(const char* value, size_t size) {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(reinterpret_cast<const char*>(value), size);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.DrillPBError.error_id)
}
inline ::std::string* DrillPBError::mutable_error_id() {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- return error_id_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.DrillPBError.error_id)
+ return error_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DrillPBError::release_error_id() {
- clear_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.DrillPBError.error_id)
+ if (!has_error_id()) {
return NULL;
- } else {
- ::std::string* temp = error_id_;
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_error_id();
+ return error_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DrillPBError::set_allocated_error_id(::std::string* error_id) {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- delete error_id_;
- }
- if (error_id) {
+ if (error_id != NULL) {
set_has_error_id();
- error_id_ = error_id;
} else {
clear_has_error_id();
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ error_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_id);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.DrillPBError.error_id)
}
// optional .exec.DrillbitEndpoint endpoint = 2;
inline bool DrillPBError::has_endpoint() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DrillPBError::set_has_endpoint() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void DrillPBError::clear_has_endpoint() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
-inline void DrillPBError::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- clear_has_endpoint();
+inline const ::exec::DrillbitEndpoint& DrillPBError::_internal_endpoint() const {
+ return *endpoint_;
}
inline const ::exec::DrillbitEndpoint& DrillPBError::endpoint() const {
- return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
-}
-inline ::exec::DrillbitEndpoint* DrillPBError::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
- return endpoint_;
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.endpoint)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* DrillPBError::release_endpoint() {
+ // @@protoc_insertion_point(field_release:exec.shared.DrillPBError.endpoint)
clear_has_endpoint();
::exec::DrillbitEndpoint* temp = endpoint_;
endpoint_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* DrillPBError::mutable_endpoint() {
+ set_has_endpoint();
+ if (endpoint_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ endpoint_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.DrillPBError.endpoint)
+ return endpoint_;
+}
inline void DrillPBError::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- delete endpoint_;
- endpoint_ = endpoint;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(endpoint_);
+ }
if (endpoint) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, endpoint, submessage_arena);
+ }
set_has_endpoint();
} else {
clear_has_endpoint();
}
+ endpoint_ = endpoint;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.DrillPBError.endpoint)
}
// optional .exec.shared.DrillPBError.ErrorType error_type = 3;
inline bool DrillPBError::has_error_type() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void DrillPBError::set_has_error_type() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void DrillPBError::clear_has_error_type() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void DrillPBError::clear_error_type() {
error_type_ = 0;
clear_has_error_type();
}
inline ::exec::shared::DrillPBError_ErrorType DrillPBError::error_type() const {
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.error_type)
return static_cast< ::exec::shared::DrillPBError_ErrorType >(error_type_);
}
inline void DrillPBError::set_error_type(::exec::shared::DrillPBError_ErrorType value) {
assert(::exec::shared::DrillPBError_ErrorType_IsValid(value));
set_has_error_type();
error_type_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.DrillPBError.error_type)
}
// optional string message = 4;
inline bool DrillPBError::has_message() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DrillPBError::set_has_message() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void DrillPBError::clear_has_message() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void DrillPBError::clear_message() {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
+ message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_message();
}
inline const ::std::string& DrillPBError::message() const {
- return *message_;
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.message)
+ return message_.GetNoArena();
}
inline void DrillPBError::set_message(const ::std::string& value) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.DrillPBError.message)
}
+#if LANG_CXX11
+inline void DrillPBError::set_message(::std::string&& value) {
+ set_has_message();
+ message_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.DrillPBError.message)
+}
+#endif
inline void DrillPBError::set_message(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.DrillPBError.message)
}
inline void DrillPBError::set_message(const char* value, size_t size) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(reinterpret_cast<const char*>(value), size);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.DrillPBError.message)
}
inline ::std::string* DrillPBError::mutable_message() {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- return message_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.DrillPBError.message)
+ return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DrillPBError::release_message() {
- clear_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.DrillPBError.message)
+ if (!has_message()) {
return NULL;
- } else {
- ::std::string* temp = message_;
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_message();
+ return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DrillPBError::set_allocated_message(::std::string* message) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (message) {
+ if (message != NULL) {
set_has_message();
- message_ = message;
} else {
clear_has_message();
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.DrillPBError.message)
}
// optional .exec.shared.ExceptionWrapper exception = 5;
inline bool DrillPBError::has_exception() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DrillPBError::set_has_exception() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void DrillPBError::clear_has_exception() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void DrillPBError::clear_exception() {
- if (exception_ != NULL) exception_->::exec::shared::ExceptionWrapper::Clear();
+ if (exception_ != NULL) exception_->Clear();
clear_has_exception();
}
-inline const ::exec::shared::ExceptionWrapper& DrillPBError::exception() const {
- return exception_ != NULL ? *exception_ : *default_instance_->exception_;
+inline const ::exec::shared::ExceptionWrapper& DrillPBError::_internal_exception() const {
+ return *exception_;
}
-inline ::exec::shared::ExceptionWrapper* DrillPBError::mutable_exception() {
- set_has_exception();
- if (exception_ == NULL) exception_ = new ::exec::shared::ExceptionWrapper;
- return exception_;
+inline const ::exec::shared::ExceptionWrapper& DrillPBError::exception() const {
+ const ::exec::shared::ExceptionWrapper* p = exception_;
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.exception)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::ExceptionWrapper*>(
+ &::exec::shared::_ExceptionWrapper_default_instance_);
}
inline ::exec::shared::ExceptionWrapper* DrillPBError::release_exception() {
+ // @@protoc_insertion_point(field_release:exec.shared.DrillPBError.exception)
clear_has_exception();
::exec::shared::ExceptionWrapper* temp = exception_;
exception_ = NULL;
return temp;
}
+inline ::exec::shared::ExceptionWrapper* DrillPBError::mutable_exception() {
+ set_has_exception();
+ if (exception_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::ExceptionWrapper>(GetArenaNoVirtual());
+ exception_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.DrillPBError.exception)
+ return exception_;
+}
inline void DrillPBError::set_allocated_exception(::exec::shared::ExceptionWrapper* exception) {
- delete exception_;
- exception_ = exception;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete exception_;
+ }
if (exception) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ exception = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, exception, submessage_arena);
+ }
set_has_exception();
} else {
clear_has_exception();
}
+ exception_ = exception;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.DrillPBError.exception)
}
// repeated .exec.shared.ParsingError parsing_error = 6;
@@ -3626,23 +4610,28 @@ inline int DrillPBError::parsing_error_size() const {
inline void DrillPBError::clear_parsing_error() {
parsing_error_.Clear();
}
-inline const ::exec::shared::ParsingError& DrillPBError::parsing_error(int index) const {
- return parsing_error_.Get(index);
-}
inline ::exec::shared::ParsingError* DrillPBError::mutable_parsing_error(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.DrillPBError.parsing_error)
return parsing_error_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >*
+DrillPBError::mutable_parsing_error() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.DrillPBError.parsing_error)
+ return &parsing_error_;
+}
+inline const ::exec::shared::ParsingError& DrillPBError::parsing_error(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.DrillPBError.parsing_error)
+ return parsing_error_.Get(index);
+}
inline ::exec::shared::ParsingError* DrillPBError::add_parsing_error() {
+ // @@protoc_insertion_point(field_add:exec.shared.DrillPBError.parsing_error)
return parsing_error_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >&
DrillPBError::parsing_error() const {
+ // @@protoc_insertion_point(field_list:exec.shared.DrillPBError.parsing_error)
return parsing_error_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::ParsingError >*
-DrillPBError::mutable_parsing_error() {
- return &parsing_error_;
-}
// -------------------------------------------------------------------
@@ -3659,63 +4648,59 @@ inline void ExceptionWrapper::clear_has_exception_class() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ExceptionWrapper::clear_exception_class() {
- if (exception_class_ != &::google::protobuf::internal::kEmptyString) {
- exception_class_->clear();
- }
+ exception_class_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_exception_class();
}
inline const ::std::string& ExceptionWrapper::exception_class() const {
- return *exception_class_;
+ // @@protoc_insertion_point(field_get:exec.shared.ExceptionWrapper.exception_class)
+ return exception_class_.GetNoArena();
}
inline void ExceptionWrapper::set_exception_class(const ::std::string& value) {
set_has_exception_class();
- if (exception_class_ == &::google::protobuf::internal::kEmptyString) {
- exception_class_ = new ::std::string;
- }
- exception_class_->assign(value);
+ exception_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.ExceptionWrapper.exception_class)
}
+#if LANG_CXX11
+inline void ExceptionWrapper::set_exception_class(::std::string&& value) {
+ set_has_exception_class();
+ exception_class_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.ExceptionWrapper.exception_class)
+}
+#endif
inline void ExceptionWrapper::set_exception_class(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_exception_class();
- if (exception_class_ == &::google::protobuf::internal::kEmptyString) {
- exception_class_ = new ::std::string;
- }
- exception_class_->assign(value);
+ exception_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.ExceptionWrapper.exception_class)
}
inline void ExceptionWrapper::set_exception_class(const char* value, size_t size) {
set_has_exception_class();
- if (exception_class_ == &::google::protobuf::internal::kEmptyString) {
- exception_class_ = new ::std::string;
- }
- exception_class_->assign(reinterpret_cast<const char*>(value), size);
+ exception_class_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.ExceptionWrapper.exception_class)
}
inline ::std::string* ExceptionWrapper::mutable_exception_class() {
set_has_exception_class();
- if (exception_class_ == &::google::protobuf::internal::kEmptyString) {
- exception_class_ = new ::std::string;
- }
- return exception_class_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.ExceptionWrapper.exception_class)
+ return exception_class_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ExceptionWrapper::release_exception_class() {
- clear_has_exception_class();
- if (exception_class_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.ExceptionWrapper.exception_class)
+ if (!has_exception_class()) {
return NULL;
- } else {
- ::std::string* temp = exception_class_;
- exception_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_exception_class();
+ return exception_class_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ExceptionWrapper::set_allocated_exception_class(::std::string* exception_class) {
- if (exception_class_ != &::google::protobuf::internal::kEmptyString) {
- delete exception_class_;
- }
- if (exception_class) {
+ if (exception_class != NULL) {
set_has_exception_class();
- exception_class_ = exception_class;
} else {
clear_has_exception_class();
- exception_class_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ exception_class_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), exception_class);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.ExceptionWrapper.exception_class)
}
// optional string message = 2;
@@ -3729,63 +4714,59 @@ inline void ExceptionWrapper::clear_has_message() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ExceptionWrapper::clear_message() {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- message_->clear();
- }
+ message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_message();
}
inline const ::std::string& ExceptionWrapper::message() const {
- return *message_;
+ // @@protoc_insertion_point(field_get:exec.shared.ExceptionWrapper.message)
+ return message_.GetNoArena();
}
inline void ExceptionWrapper::set_message(const ::std::string& value) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.ExceptionWrapper.message)
}
+#if LANG_CXX11
+inline void ExceptionWrapper::set_message(::std::string&& value) {
+ set_has_message();
+ message_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.ExceptionWrapper.message)
+}
+#endif
inline void ExceptionWrapper::set_message(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(value);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.ExceptionWrapper.message)
}
inline void ExceptionWrapper::set_message(const char* value, size_t size) {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- message_->assign(reinterpret_cast<const char*>(value), size);
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.ExceptionWrapper.message)
}
inline ::std::string* ExceptionWrapper::mutable_message() {
set_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
- message_ = new ::std::string;
- }
- return message_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.ExceptionWrapper.message)
+ return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ExceptionWrapper::release_message() {
- clear_has_message();
- if (message_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.ExceptionWrapper.message)
+ if (!has_message()) {
return NULL;
- } else {
- ::std::string* temp = message_;
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_message();
+ return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ExceptionWrapper::set_allocated_message(::std::string* message) {
- if (message_ != &::google::protobuf::internal::kEmptyString) {
- delete message_;
- }
- if (message) {
+ if (message != NULL) {
set_has_message();
- message_ = message;
} else {
clear_has_message();
- message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.ExceptionWrapper.message)
}
// repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
@@ -3795,60 +4776,85 @@ inline int ExceptionWrapper::stack_trace_size() const {
inline void ExceptionWrapper::clear_stack_trace() {
stack_trace_.Clear();
}
-inline const ::exec::shared::StackTraceElementWrapper& ExceptionWrapper::stack_trace(int index) const {
- return stack_trace_.Get(index);
-}
inline ::exec::shared::StackTraceElementWrapper* ExceptionWrapper::mutable_stack_trace(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.ExceptionWrapper.stack_trace)
return stack_trace_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >*
+ExceptionWrapper::mutable_stack_trace() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.ExceptionWrapper.stack_trace)
+ return &stack_trace_;
+}
+inline const ::exec::shared::StackTraceElementWrapper& ExceptionWrapper::stack_trace(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.ExceptionWrapper.stack_trace)
+ return stack_trace_.Get(index);
+}
inline ::exec::shared::StackTraceElementWrapper* ExceptionWrapper::add_stack_trace() {
+ // @@protoc_insertion_point(field_add:exec.shared.ExceptionWrapper.stack_trace)
return stack_trace_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >&
ExceptionWrapper::stack_trace() const {
+ // @@protoc_insertion_point(field_list:exec.shared.ExceptionWrapper.stack_trace)
return stack_trace_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StackTraceElementWrapper >*
-ExceptionWrapper::mutable_stack_trace() {
- return &stack_trace_;
-}
// optional .exec.shared.ExceptionWrapper cause = 4;
inline bool ExceptionWrapper::has_cause() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ExceptionWrapper::set_has_cause() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void ExceptionWrapper::clear_has_cause() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void ExceptionWrapper::clear_cause() {
- if (cause_ != NULL) cause_->::exec::shared::ExceptionWrapper::Clear();
+ if (cause_ != NULL) cause_->Clear();
clear_has_cause();
}
-inline const ::exec::shared::ExceptionWrapper& ExceptionWrapper::cause() const {
- return cause_ != NULL ? *cause_ : *default_instance_->cause_;
+inline const ::exec::shared::ExceptionWrapper& ExceptionWrapper::_internal_cause() const {
+ return *cause_;
}
-inline ::exec::shared::ExceptionWrapper* ExceptionWrapper::mutable_cause() {
- set_has_cause();
- if (cause_ == NULL) cause_ = new ::exec::shared::ExceptionWrapper;
- return cause_;
+inline const ::exec::shared::ExceptionWrapper& ExceptionWrapper::cause() const {
+ const ::exec::shared::ExceptionWrapper* p = cause_;
+ // @@protoc_insertion_point(field_get:exec.shared.ExceptionWrapper.cause)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::ExceptionWrapper*>(
+ &::exec::shared::_ExceptionWrapper_default_instance_);
}
inline ::exec::shared::ExceptionWrapper* ExceptionWrapper::release_cause() {
+ // @@protoc_insertion_point(field_release:exec.shared.ExceptionWrapper.cause)
clear_has_cause();
::exec::shared::ExceptionWrapper* temp = cause_;
cause_ = NULL;
return temp;
}
+inline ::exec::shared::ExceptionWrapper* ExceptionWrapper::mutable_cause() {
+ set_has_cause();
+ if (cause_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::ExceptionWrapper>(GetArenaNoVirtual());
+ cause_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.ExceptionWrapper.cause)
+ return cause_;
+}
inline void ExceptionWrapper::set_allocated_cause(::exec::shared::ExceptionWrapper* cause) {
- delete cause_;
- cause_ = cause;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete cause_;
+ }
if (cause) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ cause = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, cause, submessage_arena);
+ }
set_has_cause();
} else {
clear_has_cause();
}
+ cause_ = cause;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.ExceptionWrapper.cause)
}
// -------------------------------------------------------------------
@@ -3866,63 +4872,59 @@ inline void StackTraceElementWrapper::clear_has_class_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void StackTraceElementWrapper::clear_class_name() {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- class_name_->clear();
- }
+ class_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_class_name();
}
inline const ::std::string& StackTraceElementWrapper::class_name() const {
- return *class_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.StackTraceElementWrapper.class_name)
+ return class_name_.GetNoArena();
}
inline void StackTraceElementWrapper::set_class_name(const ::std::string& value) {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(value);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.StackTraceElementWrapper.class_name)
}
+#if LANG_CXX11
+inline void StackTraceElementWrapper::set_class_name(::std::string&& value) {
+ set_has_class_name();
+ class_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.StackTraceElementWrapper.class_name)
+}
+#endif
inline void StackTraceElementWrapper::set_class_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(value);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.StackTraceElementWrapper.class_name)
}
inline void StackTraceElementWrapper::set_class_name(const char* value, size_t size) {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- class_name_->assign(reinterpret_cast<const char*>(value), size);
+ class_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.StackTraceElementWrapper.class_name)
}
inline ::std::string* StackTraceElementWrapper::mutable_class_name() {
set_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
- class_name_ = new ::std::string;
- }
- return class_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.StackTraceElementWrapper.class_name)
+ return class_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* StackTraceElementWrapper::release_class_name() {
- clear_has_class_name();
- if (class_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.StackTraceElementWrapper.class_name)
+ if (!has_class_name()) {
return NULL;
- } else {
- ::std::string* temp = class_name_;
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_class_name();
+ return class_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void StackTraceElementWrapper::set_allocated_class_name(::std::string* class_name) {
- if (class_name_ != &::google::protobuf::internal::kEmptyString) {
- delete class_name_;
- }
- if (class_name) {
+ if (class_name != NULL) {
set_has_class_name();
- class_name_ = class_name;
} else {
clear_has_class_name();
- class_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ class_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), class_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.StackTraceElementWrapper.class_name)
}
// optional string file_name = 2;
@@ -3936,155 +4938,149 @@ inline void StackTraceElementWrapper::clear_has_file_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void StackTraceElementWrapper::clear_file_name() {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- file_name_->clear();
- }
+ file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_file_name();
}
inline const ::std::string& StackTraceElementWrapper::file_name() const {
- return *file_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.StackTraceElementWrapper.file_name)
+ return file_name_.GetNoArena();
}
inline void StackTraceElementWrapper::set_file_name(const ::std::string& value) {
set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
+ file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.StackTraceElementWrapper.file_name)
}
+#if LANG_CXX11
+inline void StackTraceElementWrapper::set_file_name(::std::string&& value) {
+ set_has_file_name();
+ file_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.StackTraceElementWrapper.file_name)
+}
+#endif
inline void StackTraceElementWrapper::set_file_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
+ file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.StackTraceElementWrapper.file_name)
}
inline void StackTraceElementWrapper::set_file_name(const char* value, size_t size) {
set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(reinterpret_cast<const char*>(value), size);
+ file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.StackTraceElementWrapper.file_name)
}
inline ::std::string* StackTraceElementWrapper::mutable_file_name() {
set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- return file_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.StackTraceElementWrapper.file_name)
+ return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* StackTraceElementWrapper::release_file_name() {
- clear_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.StackTraceElementWrapper.file_name)
+ if (!has_file_name()) {
return NULL;
- } else {
- ::std::string* temp = file_name_;
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_file_name();
+ return file_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void StackTraceElementWrapper::set_allocated_file_name(::std::string* file_name) {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- delete file_name_;
- }
- if (file_name) {
+ if (file_name != NULL) {
set_has_file_name();
- file_name_ = file_name;
} else {
clear_has_file_name();
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.StackTraceElementWrapper.file_name)
}
// optional int32 line_number = 3;
inline bool StackTraceElementWrapper::has_line_number() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void StackTraceElementWrapper::set_has_line_number() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void StackTraceElementWrapper::clear_has_line_number() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void StackTraceElementWrapper::clear_line_number() {
line_number_ = 0;
clear_has_line_number();
}
inline ::google::protobuf::int32 StackTraceElementWrapper::line_number() const {
+ // @@protoc_insertion_point(field_get:exec.shared.StackTraceElementWrapper.line_number)
return line_number_;
}
inline void StackTraceElementWrapper::set_line_number(::google::protobuf::int32 value) {
set_has_line_number();
line_number_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.StackTraceElementWrapper.line_number)
}
// optional string method_name = 4;
inline bool StackTraceElementWrapper::has_method_name() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void StackTraceElementWrapper::set_has_method_name() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void StackTraceElementWrapper::clear_has_method_name() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void StackTraceElementWrapper::clear_method_name() {
- if (method_name_ != &::google::protobuf::internal::kEmptyString) {
- method_name_->clear();
- }
+ method_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_method_name();
}
inline const ::std::string& StackTraceElementWrapper::method_name() const {
- return *method_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.StackTraceElementWrapper.method_name)
+ return method_name_.GetNoArena();
}
inline void StackTraceElementWrapper::set_method_name(const ::std::string& value) {
set_has_method_name();
- if (method_name_ == &::google::protobuf::internal::kEmptyString) {
- method_name_ = new ::std::string;
- }
- method_name_->assign(value);
+ method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.StackTraceElementWrapper.method_name)
}
+#if LANG_CXX11
+inline void StackTraceElementWrapper::set_method_name(::std::string&& value) {
+ set_has_method_name();
+ method_name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.StackTraceElementWrapper.method_name)
+}
+#endif
inline void StackTraceElementWrapper::set_method_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_method_name();
- if (method_name_ == &::google::protobuf::internal::kEmptyString) {
- method_name_ = new ::std::string;
- }
- method_name_->assign(value);
+ method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.StackTraceElementWrapper.method_name)
}
inline void StackTraceElementWrapper::set_method_name(const char* value, size_t size) {
set_has_method_name();
- if (method_name_ == &::google::protobuf::internal::kEmptyString) {
- method_name_ = new ::std::string;
- }
- method_name_->assign(reinterpret_cast<const char*>(value), size);
+ method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.StackTraceElementWrapper.method_name)
}
inline ::std::string* StackTraceElementWrapper::mutable_method_name() {
set_has_method_name();
- if (method_name_ == &::google::protobuf::internal::kEmptyString) {
- method_name_ = new ::std::string;
- }
- return method_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.StackTraceElementWrapper.method_name)
+ return method_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* StackTraceElementWrapper::release_method_name() {
- clear_has_method_name();
- if (method_name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.StackTraceElementWrapper.method_name)
+ if (!has_method_name()) {
return NULL;
- } else {
- ::std::string* temp = method_name_;
- method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_method_name();
+ return method_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void StackTraceElementWrapper::set_allocated_method_name(::std::string* method_name) {
- if (method_name_ != &::google::protobuf::internal::kEmptyString) {
- delete method_name_;
- }
- if (method_name) {
+ if (method_name != NULL) {
set_has_method_name();
- method_name_ = method_name;
} else {
clear_has_method_name();
- method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ method_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.StackTraceElementWrapper.method_name)
}
// optional bool is_native_method = 5;
@@ -4102,11 +5098,13 @@ inline void StackTraceElementWrapper::clear_is_native_method() {
clear_has_is_native_method();
}
inline bool StackTraceElementWrapper::is_native_method() const {
+ // @@protoc_insertion_point(field_get:exec.shared.StackTraceElementWrapper.is_native_method)
return is_native_method_;
}
inline void StackTraceElementWrapper::set_is_native_method(bool value) {
set_has_is_native_method();
is_native_method_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.StackTraceElementWrapper.is_native_method)
}
// -------------------------------------------------------------------
@@ -4128,11 +5126,13 @@ inline void ParsingError::clear_start_column() {
clear_has_start_column();
}
inline ::google::protobuf::int32 ParsingError::start_column() const {
+ // @@protoc_insertion_point(field_get:exec.shared.ParsingError.start_column)
return start_column_;
}
inline void ParsingError::set_start_column(::google::protobuf::int32 value) {
set_has_start_column();
start_column_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.ParsingError.start_column)
}
// optional int32 start_row = 3;
@@ -4150,11 +5150,13 @@ inline void ParsingError::clear_start_row() {
clear_has_start_row();
}
inline ::google::protobuf::int32 ParsingError::start_row() const {
+ // @@protoc_insertion_point(field_get:exec.shared.ParsingError.start_row)
return start_row_;
}
inline void ParsingError::set_start_row(::google::protobuf::int32 value) {
set_has_start_row();
start_row_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.ParsingError.start_row)
}
// optional int32 end_column = 4;
@@ -4172,11 +5174,13 @@ inline void ParsingError::clear_end_column() {
clear_has_end_column();
}
inline ::google::protobuf::int32 ParsingError::end_column() const {
+ // @@protoc_insertion_point(field_get:exec.shared.ParsingError.end_column)
return end_column_;
}
inline void ParsingError::set_end_column(::google::protobuf::int32 value) {
set_has_end_column();
end_column_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.ParsingError.end_column)
}
// optional int32 end_row = 5;
@@ -4194,11 +5198,13 @@ inline void ParsingError::clear_end_row() {
clear_has_end_row();
}
inline ::google::protobuf::int32 ParsingError::end_row() const {
+ // @@protoc_insertion_point(field_get:exec.shared.ParsingError.end_row)
return end_row_;
}
inline void ParsingError::set_end_row(::google::protobuf::int32 value) {
set_has_end_row();
end_row_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.ParsingError.end_row)
}
// -------------------------------------------------------------------
@@ -4220,11 +5226,13 @@ inline void RecordBatchDef::clear_record_count() {
clear_has_record_count();
}
inline ::google::protobuf::int32 RecordBatchDef::record_count() const {
+ // @@protoc_insertion_point(field_get:exec.shared.RecordBatchDef.record_count)
return record_count_;
}
inline void RecordBatchDef::set_record_count(::google::protobuf::int32 value) {
set_has_record_count();
record_count_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.RecordBatchDef.record_count)
}
// repeated .exec.shared.SerializedField field = 2;
@@ -4234,66 +5242,75 @@ inline int RecordBatchDef::field_size() const {
inline void RecordBatchDef::clear_field() {
field_.Clear();
}
-inline const ::exec::shared::SerializedField& RecordBatchDef::field(int index) const {
- return field_.Get(index);
-}
inline ::exec::shared::SerializedField* RecordBatchDef::mutable_field(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.RecordBatchDef.field)
return field_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
+RecordBatchDef::mutable_field() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.RecordBatchDef.field)
+ return &field_;
+}
+inline const ::exec::shared::SerializedField& RecordBatchDef::field(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.RecordBatchDef.field)
+ return field_.Get(index);
+}
inline ::exec::shared::SerializedField* RecordBatchDef::add_field() {
+ // @@protoc_insertion_point(field_add:exec.shared.RecordBatchDef.field)
return field_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
RecordBatchDef::field() const {
+ // @@protoc_insertion_point(field_list:exec.shared.RecordBatchDef.field)
return field_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
-RecordBatchDef::mutable_field() {
- return &field_;
-}
// optional bool carries_two_byte_selection_vector = 3;
inline bool RecordBatchDef::has_carries_two_byte_selection_vector() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void RecordBatchDef::set_has_carries_two_byte_selection_vector() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void RecordBatchDef::clear_has_carries_two_byte_selection_vector() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void RecordBatchDef::clear_carries_two_byte_selection_vector() {
carries_two_byte_selection_vector_ = false;
clear_has_carries_two_byte_selection_vector();
}
inline bool RecordBatchDef::carries_two_byte_selection_vector() const {
+ // @@protoc_insertion_point(field_get:exec.shared.RecordBatchDef.carries_two_byte_selection_vector)
return carries_two_byte_selection_vector_;
}
inline void RecordBatchDef::set_carries_two_byte_selection_vector(bool value) {
set_has_carries_two_byte_selection_vector();
carries_two_byte_selection_vector_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.RecordBatchDef.carries_two_byte_selection_vector)
}
// optional int32 affected_rows_count = 4;
inline bool RecordBatchDef::has_affected_rows_count() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void RecordBatchDef::set_has_affected_rows_count() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void RecordBatchDef::clear_has_affected_rows_count() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void RecordBatchDef::clear_affected_rows_count() {
affected_rows_count_ = 0;
clear_has_affected_rows_count();
}
inline ::google::protobuf::int32 RecordBatchDef::affected_rows_count() const {
+ // @@protoc_insertion_point(field_get:exec.shared.RecordBatchDef.affected_rows_count)
return affected_rows_count_;
}
inline void RecordBatchDef::set_affected_rows_count(::google::protobuf::int32 value) {
set_has_affected_rows_count();
affected_rows_count_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.RecordBatchDef.affected_rows_count)
}
// -------------------------------------------------------------------
@@ -4302,133 +5319,151 @@ inline void RecordBatchDef::set_affected_rows_count(::google::protobuf::int32 va
// optional .exec.shared.NamePart.Type type = 1;
inline bool NamePart::has_type() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void NamePart::set_has_type() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void NamePart::clear_has_type() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void NamePart::clear_type() {
type_ = 0;
clear_has_type();
}
inline ::exec::shared::NamePart_Type NamePart::type() const {
+ // @@protoc_insertion_point(field_get:exec.shared.NamePart.type)
return static_cast< ::exec::shared::NamePart_Type >(type_);
}
inline void NamePart::set_type(::exec::shared::NamePart_Type value) {
assert(::exec::shared::NamePart_Type_IsValid(value));
set_has_type();
type_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.NamePart.type)
}
// optional string name = 2;
inline bool NamePart::has_name() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void NamePart::set_has_name() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void NamePart::clear_has_name() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void NamePart::clear_name() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
}
inline const ::std::string& NamePart::name() const {
- return *name_;
+ // @@protoc_insertion_point(field_get:exec.shared.NamePart.name)
+ return name_.GetNoArena();
}
inline void NamePart::set_name(const ::std::string& value) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.NamePart.name)
+}
+#if LANG_CXX11
+inline void NamePart::set_name(::std::string&& value) {
+ set_has_name();
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.NamePart.name)
}
+#endif
inline void NamePart::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.NamePart.name)
}
inline void NamePart::set_name(const char* value, size_t size) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(reinterpret_cast<const char*>(value), size);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.NamePart.name)
}
inline ::std::string* NamePart::mutable_name() {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- return name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.NamePart.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* NamePart::release_name() {
- clear_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.NamePart.name)
+ if (!has_name()) {
return NULL;
- } else {
- ::std::string* temp = name_;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_name();
+ return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void NamePart::set_allocated_name(::std::string* name) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (name) {
+ if (name != NULL) {
set_has_name();
- name_ = name;
} else {
clear_has_name();
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.NamePart.name)
}
// optional .exec.shared.NamePart child = 3;
inline bool NamePart::has_child() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void NamePart::set_has_child() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void NamePart::clear_has_child() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void NamePart::clear_child() {
- if (child_ != NULL) child_->::exec::shared::NamePart::Clear();
+ if (child_ != NULL) child_->Clear();
clear_has_child();
}
-inline const ::exec::shared::NamePart& NamePart::child() const {
- return child_ != NULL ? *child_ : *default_instance_->child_;
+inline const ::exec::shared::NamePart& NamePart::_internal_child() const {
+ return *child_;
}
-inline ::exec::shared::NamePart* NamePart::mutable_child() {
- set_has_child();
- if (child_ == NULL) child_ = new ::exec::shared::NamePart;
- return child_;
+inline const ::exec::shared::NamePart& NamePart::child() const {
+ const ::exec::shared::NamePart* p = child_;
+ // @@protoc_insertion_point(field_get:exec.shared.NamePart.child)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::NamePart*>(
+ &::exec::shared::_NamePart_default_instance_);
}
inline ::exec::shared::NamePart* NamePart::release_child() {
+ // @@protoc_insertion_point(field_release:exec.shared.NamePart.child)
clear_has_child();
::exec::shared::NamePart* temp = child_;
child_ = NULL;
return temp;
}
+inline ::exec::shared::NamePart* NamePart::mutable_child() {
+ set_has_child();
+ if (child_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::NamePart>(GetArenaNoVirtual());
+ child_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.NamePart.child)
+ return child_;
+}
inline void NamePart::set_allocated_child(::exec::shared::NamePart* child) {
- delete child_;
- child_ = child;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete child_;
+ }
if (child) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ child = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, child, submessage_arena);
+ }
set_has_child();
} else {
clear_has_child();
}
+ child_ = child;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.NamePart.child)
}
// -------------------------------------------------------------------
@@ -4445,32 +5480,48 @@ inline void SerializedField::set_has_major_type() {
inline void SerializedField::clear_has_major_type() {
_has_bits_[0] &= ~0x00000001u;
}
-inline void SerializedField::clear_major_type() {
- if (major_type_ != NULL) major_type_->::common::MajorType::Clear();
- clear_has_major_type();
+inline const ::common::MajorType& SerializedField::_internal_major_type() const {
+ return *major_type_;
}
inline const ::common::MajorType& SerializedField::major_type() const {
- return major_type_ != NULL ? *major_type_ : *default_instance_->major_type_;
-}
-inline ::common::MajorType* SerializedField::mutable_major_type() {
- set_has_major_type();
- if (major_type_ == NULL) major_type_ = new ::common::MajorType;
- return major_type_;
+ const ::common::MajorType* p = major_type_;
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.major_type)
+ return p != NULL ? *p : *reinterpret_cast<const ::common::MajorType*>(
+ &::common::_MajorType_default_instance_);
}
inline ::common::MajorType* SerializedField::release_major_type() {
+ // @@protoc_insertion_point(field_release:exec.shared.SerializedField.major_type)
clear_has_major_type();
::common::MajorType* temp = major_type_;
major_type_ = NULL;
return temp;
}
+inline ::common::MajorType* SerializedField::mutable_major_type() {
+ set_has_major_type();
+ if (major_type_ == NULL) {
+ auto* p = CreateMaybeMessage<::common::MajorType>(GetArenaNoVirtual());
+ major_type_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.SerializedField.major_type)
+ return major_type_;
+}
inline void SerializedField::set_allocated_major_type(::common::MajorType* major_type) {
- delete major_type_;
- major_type_ = major_type;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(major_type_);
+ }
if (major_type) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ major_type = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, major_type, submessage_arena);
+ }
set_has_major_type();
} else {
clear_has_major_type();
}
+ major_type_ = major_type;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.SerializedField.major_type)
}
// optional .exec.shared.NamePart name_part = 2;
@@ -4484,31 +5535,51 @@ inline void SerializedField::clear_has_name_part() {
_has_bits_[0] &= ~0x00000002u;
}
inline void SerializedField::clear_name_part() {
- if (name_part_ != NULL) name_part_->::exec::shared::NamePart::Clear();
+ if (name_part_ != NULL) name_part_->Clear();
clear_has_name_part();
}
-inline const ::exec::shared::NamePart& SerializedField::name_part() const {
- return name_part_ != NULL ? *name_part_ : *default_instance_->name_part_;
+inline const ::exec::shared::NamePart& SerializedField::_internal_name_part() const {
+ return *name_part_;
}
-inline ::exec::shared::NamePart* SerializedField::mutable_name_part() {
- set_has_name_part();
- if (name_part_ == NULL) name_part_ = new ::exec::shared::NamePart;
- return name_part_;
+inline const ::exec::shared::NamePart& SerializedField::name_part() const {
+ const ::exec::shared::NamePart* p = name_part_;
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.name_part)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::NamePart*>(
+ &::exec::shared::_NamePart_default_instance_);
}
inline ::exec::shared::NamePart* SerializedField::release_name_part() {
+ // @@protoc_insertion_point(field_release:exec.shared.SerializedField.name_part)
clear_has_name_part();
::exec::shared::NamePart* temp = name_part_;
name_part_ = NULL;
return temp;
}
+inline ::exec::shared::NamePart* SerializedField::mutable_name_part() {
+ set_has_name_part();
+ if (name_part_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::NamePart>(GetArenaNoVirtual());
+ name_part_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.SerializedField.name_part)
+ return name_part_;
+}
inline void SerializedField::set_allocated_name_part(::exec::shared::NamePart* name_part) {
- delete name_part_;
- name_part_ = name_part;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete name_part_;
+ }
if (name_part) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ name_part = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, name_part, submessage_arena);
+ }
set_has_name_part();
} else {
clear_has_name_part();
}
+ name_part_ = name_part;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.SerializedField.name_part)
}
// repeated .exec.shared.SerializedField child = 3;
@@ -4518,88 +5589,99 @@ inline int SerializedField::child_size() const {
inline void SerializedField::clear_child() {
child_.Clear();
}
-inline const ::exec::shared::SerializedField& SerializedField::child(int index) const {
- return child_.Get(index);
-}
inline ::exec::shared::SerializedField* SerializedField::mutable_child(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.SerializedField.child)
return child_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
+SerializedField::mutable_child() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.SerializedField.child)
+ return &child_;
+}
+inline const ::exec::shared::SerializedField& SerializedField::child(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.child)
+ return child_.Get(index);
+}
inline ::exec::shared::SerializedField* SerializedField::add_child() {
+ // @@protoc_insertion_point(field_add:exec.shared.SerializedField.child)
return child_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >&
SerializedField::child() const {
+ // @@protoc_insertion_point(field_list:exec.shared.SerializedField.child)
return child_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::SerializedField >*
-SerializedField::mutable_child() {
- return &child_;
-}
// optional int32 value_count = 4;
inline bool SerializedField::has_value_count() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void SerializedField::set_has_value_count() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void SerializedField::clear_has_value_count() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void SerializedField::clear_value_count() {
value_count_ = 0;
clear_has_value_count();
}
inline ::google::protobuf::int32 SerializedField::value_count() const {
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.value_count)
return value_count_;
}
inline void SerializedField::set_value_count(::google::protobuf::int32 value) {
set_has_value_count();
value_count_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.SerializedField.value_count)
}
// optional int32 var_byte_length = 5;
inline bool SerializedField::has_var_byte_length() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void SerializedField::set_has_var_byte_length() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void SerializedField::clear_has_var_byte_length() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void SerializedField::clear_var_byte_length() {
var_byte_length_ = 0;
clear_has_var_byte_length();
}
inline ::google::protobuf::int32 SerializedField::var_byte_length() const {
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.var_byte_length)
return var_byte_length_;
}
inline void SerializedField::set_var_byte_length(::google::protobuf::int32 value) {
set_has_var_byte_length();
var_byte_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.SerializedField.var_byte_length)
}
// optional int32 buffer_length = 7;
inline bool SerializedField::has_buffer_length() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void SerializedField::set_has_buffer_length() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void SerializedField::clear_has_buffer_length() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void SerializedField::clear_buffer_length() {
buffer_length_ = 0;
clear_has_buffer_length();
}
inline ::google::protobuf::int32 SerializedField::buffer_length() const {
+ // @@protoc_insertion_point(field_get:exec.shared.SerializedField.buffer_length)
return buffer_length_;
}
inline void SerializedField::set_buffer_length(::google::protobuf::int32 value) {
set_has_buffer_length();
buffer_length_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.SerializedField.buffer_length)
}
// -------------------------------------------------------------------
@@ -4608,46 +5690,50 @@ inline void SerializedField::set_buffer_length(::google::protobuf::int32 value)
// optional int32 node_id = 1;
inline bool NodeStatus::has_node_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void NodeStatus::set_has_node_id() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void NodeStatus::clear_has_node_id() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void NodeStatus::clear_node_id() {
node_id_ = 0;
clear_has_node_id();
}
inline ::google::protobuf::int32 NodeStatus::node_id() const {
+ // @@protoc_insertion_point(field_get:exec.shared.NodeStatus.node_id)
return node_id_;
}
inline void NodeStatus::set_node_id(::google::protobuf::int32 value) {
set_has_node_id();
node_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.NodeStatus.node_id)
}
// optional int64 memory_footprint = 2;
inline bool NodeStatus::has_memory_footprint() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void NodeStatus::set_has_memory_footprint() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void NodeStatus::clear_has_memory_footprint() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void NodeStatus::clear_memory_footprint() {
memory_footprint_ = GOOGLE_LONGLONG(0);
clear_has_memory_footprint();
}
inline ::google::protobuf::int64 NodeStatus::memory_footprint() const {
+ // @@protoc_insertion_point(field_get:exec.shared.NodeStatus.memory_footprint)
return memory_footprint_;
}
inline void NodeStatus::set_memory_footprint(::google::protobuf::int64 value) {
set_has_memory_footprint();
memory_footprint_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.NodeStatus.memory_footprint)
}
// -------------------------------------------------------------------
@@ -4656,63 +5742,85 @@ inline void NodeStatus::set_memory_footprint(::google::protobuf::int64 value) {
// optional .exec.shared.QueryResult.QueryState query_state = 1;
inline bool QueryResult::has_query_state() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryResult::set_has_query_state() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryResult::clear_has_query_state() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void QueryResult::clear_query_state() {
query_state_ = 0;
clear_has_query_state();
}
inline ::exec::shared::QueryResult_QueryState QueryResult::query_state() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryResult.query_state)
return static_cast< ::exec::shared::QueryResult_QueryState >(query_state_);
}
inline void QueryResult::set_query_state(::exec::shared::QueryResult_QueryState value) {
assert(::exec::shared::QueryResult_QueryState_IsValid(value));
set_has_query_state();
query_state_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryResult.query_state)
}
// optional .exec.shared.QueryId query_id = 2;
inline bool QueryResult::has_query_id() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void QueryResult::set_has_query_id() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void QueryResult::clear_has_query_id() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void QueryResult::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+ if (query_id_ != NULL) query_id_->Clear();
clear_has_query_id();
}
-inline const ::exec::shared::QueryId& QueryResult::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
+inline const ::exec::shared::QueryId& QueryResult::_internal_query_id() const {
+ return *query_id_;
}
-inline ::exec::shared::QueryId* QueryResult::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+inline const ::exec::shared::QueryId& QueryResult::query_id() const {
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryResult.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* QueryResult::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryResult.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* QueryResult::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryResult.query_id)
+ return query_id_;
+}
inline void QueryResult::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete query_id_;
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryResult.query_id)
}
// repeated .exec.shared.DrillPBError error = 3;
@@ -4722,23 +5830,28 @@ inline int QueryResult::error_size() const {
inline void QueryResult::clear_error() {
error_.Clear();
}
-inline const ::exec::shared::DrillPBError& QueryResult::error(int index) const {
- return error_.Get(index);
-}
inline ::exec::shared::DrillPBError* QueryResult::mutable_error(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryResult.error)
return error_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >*
+QueryResult::mutable_error() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.QueryResult.error)
+ return &error_;
+}
+inline const ::exec::shared::DrillPBError& QueryResult::error(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryResult.error)
+ return error_.Get(index);
+}
inline ::exec::shared::DrillPBError* QueryResult::add_error() {
+ // @@protoc_insertion_point(field_add:exec.shared.QueryResult.error)
return error_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >&
QueryResult::error() const {
+ // @@protoc_insertion_point(field_list:exec.shared.QueryResult.error)
return error_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::DrillPBError >*
-QueryResult::mutable_error() {
- return &error_;
-}
// -------------------------------------------------------------------
@@ -4755,91 +5868,133 @@ inline void QueryData::clear_has_query_id() {
_has_bits_[0] &= ~0x00000001u;
}
inline void QueryData::clear_query_id() {
- if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
+ if (query_id_ != NULL) query_id_->Clear();
clear_has_query_id();
}
-inline const ::exec::shared::QueryId& QueryData::query_id() const {
- return query_id_ != NULL ? *query_id_ : *default_instance_->query_id_;
+inline const ::exec::shared::QueryId& QueryData::_internal_query_id() const {
+ return *query_id_;
}
-inline ::exec::shared::QueryId* QueryData::mutable_query_id() {
- set_has_query_id();
- if (query_id_ == NULL) query_id_ = new ::exec::shared::QueryId;
- return query_id_;
+inline const ::exec::shared::QueryId& QueryData::query_id() const {
+ const ::exec::shared::QueryId* p = query_id_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryData.query_id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* QueryData::release_query_id() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryData.query_id)
clear_has_query_id();
::exec::shared::QueryId* temp = query_id_;
query_id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* QueryData::mutable_query_id() {
+ set_has_query_id();
+ if (query_id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ query_id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryData.query_id)
+ return query_id_;
+}
inline void QueryData::set_allocated_query_id(::exec::shared::QueryId* query_id) {
- delete query_id_;
- query_id_ = query_id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete query_id_;
+ }
if (query_id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query_id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query_id, submessage_arena);
+ }
set_has_query_id();
} else {
clear_has_query_id();
}
+ query_id_ = query_id;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryData.query_id)
}
// optional int32 row_count = 2;
inline bool QueryData::has_row_count() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void QueryData::set_has_row_count() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void QueryData::clear_has_row_count() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void QueryData::clear_row_count() {
row_count_ = 0;
clear_has_row_count();
}
inline ::google::protobuf::int32 QueryData::row_count() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryData.row_count)
return row_count_;
}
inline void QueryData::set_row_count(::google::protobuf::int32 value) {
set_has_row_count();
row_count_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryData.row_count)
}
// optional .exec.shared.RecordBatchDef def = 3;
inline bool QueryData::has_def() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryData::set_has_def() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryData::clear_has_def() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void QueryData::clear_def() {
- if (def_ != NULL) def_->::exec::shared::RecordBatchDef::Clear();
+ if (def_ != NULL) def_->Clear();
clear_has_def();
}
-inline const ::exec::shared::RecordBatchDef& QueryData::def() const {
- return def_ != NULL ? *def_ : *default_instance_->def_;
+inline const ::exec::shared::RecordBatchDef& QueryData::_internal_def() const {
+ return *def_;
}
-inline ::exec::shared::RecordBatchDef* QueryData::mutable_def() {
- set_has_def();
- if (def_ == NULL) def_ = new ::exec::shared::RecordBatchDef;
- return def_;
+inline const ::exec::shared::RecordBatchDef& QueryData::def() const {
+ const ::exec::shared::RecordBatchDef* p = def_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryData.def)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::RecordBatchDef*>(
+ &::exec::shared::_RecordBatchDef_default_instance_);
}
inline ::exec::shared::RecordBatchDef* QueryData::release_def() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryData.def)
clear_has_def();
::exec::shared::RecordBatchDef* temp = def_;
def_ = NULL;
return temp;
}
+inline ::exec::shared::RecordBatchDef* QueryData::mutable_def() {
+ set_has_def();
+ if (def_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::RecordBatchDef>(GetArenaNoVirtual());
+ def_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryData.def)
+ return def_;
+}
inline void QueryData::set_allocated_def(::exec::shared::RecordBatchDef* def) {
- delete def_;
- def_ = def;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete def_;
+ }
if (def) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ def = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, def, submessage_arena);
+ }
set_has_def();
} else {
clear_has_def();
}
+ def_ = def;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryData.def)
}
// optional int32 affected_rows_count = 4;
@@ -4857,11 +6012,13 @@ inline void QueryData::clear_affected_rows_count() {
clear_has_affected_rows_count();
}
inline ::google::protobuf::int32 QueryData::affected_rows_count() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryData.affected_rows_count)
return affected_rows_count_;
}
inline void QueryData::set_affected_rows_count(::google::protobuf::int32 value) {
set_has_affected_rows_count();
affected_rows_count_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryData.affected_rows_count)
}
// -------------------------------------------------------------------
@@ -4879,178 +6036,174 @@ inline void QueryInfo::clear_has_query() {
_has_bits_[0] &= ~0x00000001u;
}
inline void QueryInfo::clear_query() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
+ query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_query();
}
inline const ::std::string& QueryInfo::query() const {
- return *query_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.query)
+ return query_.GetNoArena();
}
inline void QueryInfo::set_query(const ::std::string& value) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.query)
}
+#if LANG_CXX11
+inline void QueryInfo::set_query(::std::string&& value) {
+ set_has_query();
+ query_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryInfo.query)
+}
+#endif
inline void QueryInfo::set_query(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryInfo.query)
}
inline void QueryInfo::set_query(const char* value, size_t size) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(reinterpret_cast<const char*>(value), size);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryInfo.query)
}
inline ::std::string* QueryInfo::mutable_query() {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- return query_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryInfo.query)
+ return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryInfo::release_query() {
- clear_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryInfo.query)
+ if (!has_query()) {
return NULL;
- } else {
- ::std::string* temp = query_;
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_query();
+ return query_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryInfo::set_allocated_query(::std::string* query) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (query) {
+ if (query != NULL) {
set_has_query();
- query_ = query;
} else {
clear_has_query();
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryInfo.query)
}
// optional int64 start = 2;
inline bool QueryInfo::has_start() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void QueryInfo::set_has_start() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void QueryInfo::clear_has_start() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void QueryInfo::clear_start() {
start_ = GOOGLE_LONGLONG(0);
clear_has_start();
}
inline ::google::protobuf::int64 QueryInfo::start() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.start)
return start_;
}
inline void QueryInfo::set_start(::google::protobuf::int64 value) {
set_has_start();
start_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.start)
}
// optional .exec.shared.QueryResult.QueryState state = 3;
inline bool QueryInfo::has_state() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void QueryInfo::set_has_state() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void QueryInfo::clear_has_state() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void QueryInfo::clear_state() {
state_ = 0;
clear_has_state();
}
inline ::exec::shared::QueryResult_QueryState QueryInfo::state() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.state)
return static_cast< ::exec::shared::QueryResult_QueryState >(state_);
}
inline void QueryInfo::set_state(::exec::shared::QueryResult_QueryState value) {
assert(::exec::shared::QueryResult_QueryState_IsValid(value));
set_has_state();
state_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.state)
}
// optional string user = 4 [default = "-"];
inline bool QueryInfo::has_user() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryInfo::set_has_user() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryInfo::clear_has_user() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void QueryInfo::clear_user() {
- if (user_ != _default_user_) {
- user_->assign(*_default_user_);
- }
+ user_.ClearToDefaultNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
clear_has_user();
}
inline const ::std::string& QueryInfo::user() const {
- return *user_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.user)
+ return user_.GetNoArena();
}
inline void QueryInfo::set_user(const ::std::string& value) {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(value);
+ user_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.user)
+}
+#if LANG_CXX11
+inline void QueryInfo::set_user(::std::string&& value) {
+ set_has_user();
+ user_.SetNoArena(
+ &::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryInfo.user)
}
+#endif
inline void QueryInfo::set_user(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(value);
+ user_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryInfo.user)
}
inline void QueryInfo::set_user(const char* value, size_t size) {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(reinterpret_cast<const char*>(value), size);
+ user_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryInfo.user)
}
inline ::std::string* QueryInfo::mutable_user() {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string(*_default_user_);
- }
- return user_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryInfo.user)
+ return user_.MutableNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
}
inline ::std::string* QueryInfo::release_user() {
- clear_has_user();
- if (user_ == _default_user_) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryInfo.user)
+ if (!has_user()) {
return NULL;
- } else {
- ::std::string* temp = user_;
- user_ = const_cast< ::std::string*>(_default_user_);
- return temp;
}
+ clear_has_user();
+ return user_.ReleaseNonDefaultNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get());
}
inline void QueryInfo::set_allocated_user(::std::string* user) {
- if (user_ != _default_user_) {
- delete user_;
- }
- if (user) {
+ if (user != NULL) {
set_has_user();
- user_ = user;
} else {
clear_has_user();
- user_ = const_cast< ::std::string*>(_default_user_);
}
+ user_.SetAllocatedNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_.get(), user);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryInfo.user)
}
// optional .exec.DrillbitEndpoint foreman = 5;
@@ -5063,102 +6216,114 @@ inline void QueryInfo::set_has_foreman() {
inline void QueryInfo::clear_has_foreman() {
_has_bits_[0] &= ~0x00000010u;
}
-inline void QueryInfo::clear_foreman() {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
- clear_has_foreman();
+inline const ::exec::DrillbitEndpoint& QueryInfo::_internal_foreman() const {
+ return *foreman_;
}
inline const ::exec::DrillbitEndpoint& QueryInfo::foreman() const {
- return foreman_ != NULL ? *foreman_ : *default_instance_->foreman_;
-}
-inline ::exec::DrillbitEndpoint* QueryInfo::mutable_foreman() {
- set_has_foreman();
- if (foreman_ == NULL) foreman_ = new ::exec::DrillbitEndpoint;
- return foreman_;
+ const ::exec::DrillbitEndpoint* p = foreman_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.foreman)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* QueryInfo::release_foreman() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryInfo.foreman)
clear_has_foreman();
::exec::DrillbitEndpoint* temp = foreman_;
foreman_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* QueryInfo::mutable_foreman() {
+ set_has_foreman();
+ if (foreman_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ foreman_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryInfo.foreman)
+ return foreman_;
+}
inline void QueryInfo::set_allocated_foreman(::exec::DrillbitEndpoint* foreman) {
- delete foreman_;
- foreman_ = foreman;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(foreman_);
+ }
if (foreman) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ foreman = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, foreman, submessage_arena);
+ }
set_has_foreman();
} else {
clear_has_foreman();
}
+ foreman_ = foreman;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryInfo.foreman)
}
// optional string options_json = 6;
inline bool QueryInfo::has_options_json() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void QueryInfo::set_has_options_json() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void QueryInfo::clear_has_options_json() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void QueryInfo::clear_options_json() {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ options_json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_options_json();
}
inline const ::std::string& QueryInfo::options_json() const {
- return *options_json_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.options_json)
+ return options_json_.GetNoArena();
}
inline void QueryInfo::set_options_json(const ::std::string& value) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.options_json)
+}
+#if LANG_CXX11
+inline void QueryInfo::set_options_json(::std::string&& value) {
+ set_has_options_json();
+ options_json_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryInfo.options_json)
}
+#endif
inline void QueryInfo::set_options_json(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryInfo.options_json)
}
inline void QueryInfo::set_options_json(const char* value, size_t size) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(reinterpret_cast<const char*>(value), size);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryInfo.options_json)
}
inline ::std::string* QueryInfo::mutable_options_json() {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- return options_json_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryInfo.options_json)
+ return options_json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryInfo::release_options_json() {
- clear_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryInfo.options_json)
+ if (!has_options_json()) {
return NULL;
- } else {
- ::std::string* temp = options_json_;
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_options_json();
+ return options_json_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryInfo::set_allocated_options_json(::std::string* options_json) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (options_json) {
+ if (options_json != NULL) {
set_has_options_json();
- options_json_ = options_json;
} else {
clear_has_options_json();
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ options_json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), options_json);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryInfo.options_json)
}
// optional double total_cost = 7;
@@ -5176,81 +6341,79 @@ inline void QueryInfo::clear_total_cost() {
clear_has_total_cost();
}
inline double QueryInfo::total_cost() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.total_cost)
return total_cost_;
}
inline void QueryInfo::set_total_cost(double value) {
set_has_total_cost();
total_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.total_cost)
}
// optional string queue_name = 8 [default = "-"];
inline bool QueryInfo::has_queue_name() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void QueryInfo::set_has_queue_name() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void QueryInfo::clear_has_queue_name() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void QueryInfo::clear_queue_name() {
- if (queue_name_ != _default_queue_name_) {
- queue_name_->assign(*_default_queue_name_);
- }
+ queue_name_.ClearToDefaultNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
clear_has_queue_name();
}
inline const ::std::string& QueryInfo::queue_name() const {
- return *queue_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryInfo.queue_name)
+ return queue_name_.GetNoArena();
}
inline void QueryInfo::set_queue_name(const ::std::string& value) {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(value);
+ queue_name_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryInfo.queue_name)
+}
+#if LANG_CXX11
+inline void QueryInfo::set_queue_name(::std::string&& value) {
+ set_has_queue_name();
+ queue_name_.SetNoArena(
+ &::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryInfo.queue_name)
}
+#endif
inline void QueryInfo::set_queue_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(value);
+ queue_name_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryInfo.queue_name)
}
inline void QueryInfo::set_queue_name(const char* value, size_t size) {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(reinterpret_cast<const char*>(value), size);
+ queue_name_.SetNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryInfo.queue_name)
}
inline ::std::string* QueryInfo::mutable_queue_name() {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string(*_default_queue_name_);
- }
- return queue_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryInfo.queue_name)
+ return queue_name_.MutableNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
inline ::std::string* QueryInfo::release_queue_name() {
- clear_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryInfo.queue_name)
+ if (!has_queue_name()) {
return NULL;
- } else {
- ::std::string* temp = queue_name_;
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
- return temp;
}
+ clear_has_queue_name();
+ return queue_name_.ReleaseNonDefaultNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
inline void QueryInfo::set_allocated_queue_name(::std::string* queue_name) {
- if (queue_name_ != _default_queue_name_) {
- delete queue_name_;
- }
- if (queue_name) {
+ if (queue_name != NULL) {
set_has_queue_name();
- queue_name_ = queue_name;
} else {
clear_has_queue_name();
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
}
+ queue_name_.SetAllocatedNoArena(&::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_.get(), queue_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryInfo.queue_name)
}
// -------------------------------------------------------------------
@@ -5259,352 +6422,392 @@ inline void QueryInfo::set_allocated_queue_name(::std::string* queue_name) {
// optional .exec.shared.QueryId id = 1;
inline bool QueryProfile::has_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void QueryProfile::set_has_id() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000400u;
}
inline void QueryProfile::clear_has_id() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000400u;
}
inline void QueryProfile::clear_id() {
- if (id_ != NULL) id_->::exec::shared::QueryId::Clear();
+ if (id_ != NULL) id_->Clear();
clear_has_id();
}
-inline const ::exec::shared::QueryId& QueryProfile::id() const {
- return id_ != NULL ? *id_ : *default_instance_->id_;
+inline const ::exec::shared::QueryId& QueryProfile::_internal_id() const {
+ return *id_;
}
-inline ::exec::shared::QueryId* QueryProfile::mutable_id() {
- set_has_id();
- if (id_ == NULL) id_ = new ::exec::shared::QueryId;
- return id_;
+inline const ::exec::shared::QueryId& QueryProfile::id() const {
+ const ::exec::shared::QueryId* p = id_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.id)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::QueryId*>(
+ &::exec::shared::_QueryId_default_instance_);
}
inline ::exec::shared::QueryId* QueryProfile::release_id() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.id)
clear_has_id();
::exec::shared::QueryId* temp = id_;
id_ = NULL;
return temp;
}
+inline ::exec::shared::QueryId* QueryProfile::mutable_id() {
+ set_has_id();
+ if (id_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::QueryId>(GetArenaNoVirtual());
+ id_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.id)
+ return id_;
+}
inline void QueryProfile::set_allocated_id(::exec::shared::QueryId* id) {
- delete id_;
- id_ = id;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete id_;
+ }
if (id) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ id = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, id, submessage_arena);
+ }
set_has_id();
} else {
clear_has_id();
}
+ id_ = id;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.id)
}
// optional .exec.shared.QueryType type = 2;
inline bool QueryProfile::has_type() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00100000u) != 0;
}
inline void QueryProfile::set_has_type() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00100000u;
}
inline void QueryProfile::clear_has_type() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00100000u;
}
inline void QueryProfile::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::exec::shared::QueryType QueryProfile::type() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.type)
return static_cast< ::exec::shared::QueryType >(type_);
}
inline void QueryProfile::set_type(::exec::shared::QueryType value) {
assert(::exec::shared::QueryType_IsValid(value));
set_has_type();
type_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.type)
}
// optional int64 start = 3;
inline bool QueryProfile::has_start() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void QueryProfile::set_has_start() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00001000u;
}
inline void QueryProfile::clear_has_start() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00001000u;
}
inline void QueryProfile::clear_start() {
start_ = GOOGLE_LONGLONG(0);
clear_has_start();
}
inline ::google::protobuf::int64 QueryProfile::start() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.start)
return start_;
}
inline void QueryProfile::set_start(::google::protobuf::int64 value) {
set_has_start();
start_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.start)
}
// optional int64 end = 4;
inline bool QueryProfile::has_end() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void QueryProfile::set_has_end() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00002000u;
}
inline void QueryProfile::clear_has_end() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00002000u;
}
inline void QueryProfile::clear_end() {
end_ = GOOGLE_LONGLONG(0);
clear_has_end();
}
inline ::google::protobuf::int64 QueryProfile::end() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.end)
return end_;
}
inline void QueryProfile::set_end(::google::protobuf::int64 value) {
set_has_end();
end_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.end)
}
// optional string query = 5;
inline bool QueryProfile::has_query() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void QueryProfile::set_has_query() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void QueryProfile::clear_has_query() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void QueryProfile::clear_query() {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- query_->clear();
- }
+ query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_query();
}
inline const ::std::string& QueryProfile::query() const {
- return *query_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.query)
+ return query_.GetNoArena();
}
inline void QueryProfile::set_query(const ::std::string& value) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.query)
+}
+#if LANG_CXX11
+inline void QueryProfile::set_query(::std::string&& value) {
+ set_has_query();
+ query_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.query)
}
+#endif
inline void QueryProfile::set_query(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(value);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.query)
}
inline void QueryProfile::set_query(const char* value, size_t size) {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- query_->assign(reinterpret_cast<const char*>(value), size);
+ query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.query)
}
inline ::std::string* QueryProfile::mutable_query() {
set_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
- query_ = new ::std::string;
- }
- return query_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.query)
+ return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_query() {
- clear_has_query();
- if (query_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.query)
+ if (!has_query()) {
return NULL;
- } else {
- ::std::string* temp = query_;
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_query();
+ return query_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_query(::std::string* query) {
- if (query_ != &::google::protobuf::internal::kEmptyString) {
- delete query_;
- }
- if (query) {
+ if (query != NULL) {
set_has_query();
- query_ = query;
} else {
clear_has_query();
- query_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.query)
}
// optional string plan = 6;
inline bool QueryProfile::has_plan() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void QueryProfile::set_has_plan() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void QueryProfile::clear_has_plan() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void QueryProfile::clear_plan() {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- plan_->clear();
- }
+ plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_plan();
}
inline const ::std::string& QueryProfile::plan() const {
- return *plan_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.plan)
+ return plan_.GetNoArena();
}
inline void QueryProfile::set_plan(const ::std::string& value) {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(value);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.plan)
+}
+#if LANG_CXX11
+inline void QueryProfile::set_plan(::std::string&& value) {
+ set_has_plan();
+ plan_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.plan)
}
+#endif
inline void QueryProfile::set_plan(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(value);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.plan)
}
inline void QueryProfile::set_plan(const char* value, size_t size) {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- plan_->assign(reinterpret_cast<const char*>(value), size);
+ plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.plan)
}
inline ::std::string* QueryProfile::mutable_plan() {
set_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
- plan_ = new ::std::string;
- }
- return plan_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.plan)
+ return plan_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_plan() {
- clear_has_plan();
- if (plan_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.plan)
+ if (!has_plan()) {
return NULL;
- } else {
- ::std::string* temp = plan_;
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_plan();
+ return plan_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_plan(::std::string* plan) {
- if (plan_ != &::google::protobuf::internal::kEmptyString) {
- delete plan_;
- }
- if (plan) {
+ if (plan != NULL) {
set_has_plan();
- plan_ = plan;
} else {
clear_has_plan();
- plan_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ plan_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), plan);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.plan)
}
// optional .exec.DrillbitEndpoint foreman = 7;
inline bool QueryProfile::has_foreman() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
+ return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void QueryProfile::set_has_foreman() {
- _has_bits_[0] |= 0x00000040u;
+ _has_bits_[0] |= 0x00000800u;
}
inline void QueryProfile::clear_has_foreman() {
- _has_bits_[0] &= ~0x00000040u;
+ _has_bits_[0] &= ~0x00000800u;
}
-inline void QueryProfile::clear_foreman() {
- if (foreman_ != NULL) foreman_->::exec::DrillbitEndpoint::Clear();
- clear_has_foreman();
+inline const ::exec::DrillbitEndpoint& QueryProfile::_internal_foreman() const {
+ return *foreman_;
}
inline const ::exec::DrillbitEndpoint& QueryProfile::foreman() const {
- return foreman_ != NULL ? *foreman_ : *default_instance_->foreman_;
-}
-inline ::exec::DrillbitEndpoint* QueryProfile::mutable_foreman() {
- set_has_foreman();
- if (foreman_ == NULL) foreman_ = new ::exec::DrillbitEndpoint;
- return foreman_;
+ const ::exec::DrillbitEndpoint* p = foreman_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.foreman)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* QueryProfile::release_foreman() {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.foreman)
clear_has_foreman();
::exec::DrillbitEndpoint* temp = foreman_;
foreman_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* QueryProfile::mutable_foreman() {
+ set_has_foreman();
+ if (foreman_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ foreman_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.foreman)
+ return foreman_;
+}
inline void QueryProfile::set_allocated_foreman(::exec::DrillbitEndpoint* foreman) {
- delete foreman_;
- foreman_ = foreman;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(foreman_);
+ }
if (foreman) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ foreman = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, foreman, submessage_arena);
+ }
set_has_foreman();
} else {
clear_has_foreman();
}
+ foreman_ = foreman;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.foreman)
}
// optional .exec.shared.QueryResult.QueryState state = 8;
inline bool QueryProfile::has_state() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void QueryProfile::set_has_state() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00004000u;
}
inline void QueryProfile::clear_has_state() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00004000u;
}
inline void QueryProfile::clear_state() {
state_ = 0;
clear_has_state();
}
inline ::exec::shared::QueryResult_QueryState QueryProfile::state() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.state)
return static_cast< ::exec::shared::QueryResult_QueryState >(state_);
}
inline void QueryProfile::set_state(::exec::shared::QueryResult_QueryState value) {
assert(::exec::shared::QueryResult_QueryState_IsValid(value));
set_has_state();
state_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.state)
}
// optional int32 total_fragments = 9;
inline bool QueryProfile::has_total_fragments() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void QueryProfile::set_has_total_fragments() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00008000u;
}
inline void QueryProfile::clear_has_total_fragments() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00008000u;
}
inline void QueryProfile::clear_total_fragments() {
total_fragments_ = 0;
clear_has_total_fragments();
}
inline ::google::protobuf::int32 QueryProfile::total_fragments() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.total_fragments)
return total_fragments_;
}
inline void QueryProfile::set_total_fragments(::google::protobuf::int32 value) {
set_has_total_fragments();
total_fragments_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.total_fragments)
}
// optional int32 finished_fragments = 10;
inline bool QueryProfile::has_finished_fragments() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00080000u) != 0;
}
inline void QueryProfile::set_has_finished_fragments() {
- _has_bits_[0] |= 0x00000200u;
+ _has_bits_[0] |= 0x00080000u;
}
inline void QueryProfile::clear_has_finished_fragments() {
- _has_bits_[0] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00080000u;
}
inline void QueryProfile::clear_finished_fragments() {
finished_fragments_ = 0;
clear_has_finished_fragments();
}
inline ::google::protobuf::int32 QueryProfile::finished_fragments() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.finished_fragments)
return finished_fragments_;
}
inline void QueryProfile::set_finished_fragments(::google::protobuf::int32 value) {
set_has_finished_fragments();
finished_fragments_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.finished_fragments)
}
// repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
@@ -5614,648 +6817,627 @@ inline int QueryProfile::fragment_profile_size() const {
inline void QueryProfile::clear_fragment_profile() {
fragment_profile_.Clear();
}
-inline const ::exec::shared::MajorFragmentProfile& QueryProfile::fragment_profile(int index) const {
- return fragment_profile_.Get(index);
-}
inline ::exec::shared::MajorFragmentProfile* QueryProfile::mutable_fragment_profile(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.fragment_profile)
return fragment_profile_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >*
+QueryProfile::mutable_fragment_profile() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.QueryProfile.fragment_profile)
+ return &fragment_profile_;
+}
+inline const ::exec::shared::MajorFragmentProfile& QueryProfile::fragment_profile(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.fragment_profile)
+ return fragment_profile_.Get(index);
+}
inline ::exec::shared::MajorFragmentProfile* QueryProfile::add_fragment_profile() {
+ // @@protoc_insertion_point(field_add:exec.shared.QueryProfile.fragment_profile)
return fragment_profile_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >&
QueryProfile::fragment_profile() const {
+ // @@protoc_insertion_point(field_list:exec.shared.QueryProfile.fragment_profile)
return fragment_profile_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MajorFragmentProfile >*
-QueryProfile::mutable_fragment_profile() {
- return &fragment_profile_;
-}
// optional string user = 12 [default = "-"];
inline bool QueryProfile::has_user() const {
- return (_has_bits_[0] & 0x00000800u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void QueryProfile::set_has_user() {
- _has_bits_[0] |= 0x00000800u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void QueryProfile::clear_has_user() {
- _has_bits_[0] &= ~0x00000800u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void QueryProfile::clear_user() {
- if (user_ != _default_user_) {
- user_->assign(*_default_user_);
- }
+ user_.ClearToDefaultNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
clear_has_user();
}
inline const ::std::string& QueryProfile::user() const {
- return *user_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.user)
+ return user_.GetNoArena();
}
inline void QueryProfile::set_user(const ::std::string& value) {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(value);
+ user_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.user)
+}
+#if LANG_CXX11
+inline void QueryProfile::set_user(::std::string&& value) {
+ set_has_user();
+ user_.SetNoArena(
+ &::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.user)
}
+#endif
inline void QueryProfile::set_user(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(value);
+ user_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.user)
}
inline void QueryProfile::set_user(const char* value, size_t size) {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string;
- }
- user_->assign(reinterpret_cast<const char*>(value), size);
+ user_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.user)
}
inline ::std::string* QueryProfile::mutable_user() {
set_has_user();
- if (user_ == _default_user_) {
- user_ = new ::std::string(*_default_user_);
- }
- return user_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.user)
+ return user_.MutableNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
}
inline ::std::string* QueryProfile::release_user() {
- clear_has_user();
- if (user_ == _default_user_) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.user)
+ if (!has_user()) {
return NULL;
- } else {
- ::std::string* temp = user_;
- user_ = const_cast< ::std::string*>(_default_user_);
- return temp;
}
+ clear_has_user();
+ return user_.ReleaseNonDefaultNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get());
}
inline void QueryProfile::set_allocated_user(::std::string* user) {
- if (user_ != _default_user_) {
- delete user_;
- }
- if (user) {
+ if (user != NULL) {
set_has_user();
- user_ = user;
} else {
clear_has_user();
- user_ = const_cast< ::std::string*>(_default_user_);
}
+ user_.SetAllocatedNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_.get(), user);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.user)
}
// optional string error = 13;
inline bool QueryProfile::has_error() const {
- return (_has_bits_[0] & 0x00001000u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void QueryProfile::set_has_error() {
- _has_bits_[0] |= 0x00001000u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void QueryProfile::clear_has_error() {
- _has_bits_[0] &= ~0x00001000u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void QueryProfile::clear_error() {
- if (error_ != &::google::protobuf::internal::kEmptyString) {
- error_->clear();
- }
+ error_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_error();
}
inline const ::std::string& QueryProfile::error() const {
- return *error_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.error)
+ return error_.GetNoArena();
}
inline void QueryProfile::set_error(const ::std::string& value) {
set_has_error();
- if (error_ == &::google::protobuf::internal::kEmptyString) {
- error_ = new ::std::string;
- }
- error_->assign(value);
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.error)
}
+#if LANG_CXX11
+inline void QueryProfile::set_error(::std::string&& value) {
+ set_has_error();
+ error_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.error)
+}
+#endif
inline void QueryProfile::set_error(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_error();
- if (error_ == &::google::protobuf::internal::kEmptyString) {
- error_ = new ::std::string;
- }
- error_->assign(value);
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.error)
}
inline void QueryProfile::set_error(const char* value, size_t size) {
set_has_error();
- if (error_ == &::google::protobuf::internal::kEmptyString) {
- error_ = new ::std::string;
- }
- error_->assign(reinterpret_cast<const char*>(value), size);
+ error_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.error)
}
inline ::std::string* QueryProfile::mutable_error() {
set_has_error();
- if (error_ == &::google::protobuf::internal::kEmptyString) {
- error_ = new ::std::string;
- }
- return error_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.error)
+ return error_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_error() {
- clear_has_error();
- if (error_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.error)
+ if (!has_error()) {
return NULL;
- } else {
- ::std::string* temp = error_;
- error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_error();
+ return error_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_error(::std::string* error) {
- if (error_ != &::google::protobuf::internal::kEmptyString) {
- delete error_;
- }
- if (error) {
+ if (error != NULL) {
set_has_error();
- error_ = error;
} else {
clear_has_error();
- error_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ error_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.error)
}
// optional string verboseError = 14;
inline bool QueryProfile::has_verboseerror() const {
- return (_has_bits_[0] & 0x00002000u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void QueryProfile::set_has_verboseerror() {
- _has_bits_[0] |= 0x00002000u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void QueryProfile::clear_has_verboseerror() {
- _has_bits_[0] &= ~0x00002000u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void QueryProfile::clear_verboseerror() {
- if (verboseerror_ != &::google::protobuf::internal::kEmptyString) {
- verboseerror_->clear();
- }
+ verboseerror_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_verboseerror();
}
inline const ::std::string& QueryProfile::verboseerror() const {
- return *verboseerror_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.verboseError)
+ return verboseerror_.GetNoArena();
}
inline void QueryProfile::set_verboseerror(const ::std::string& value) {
set_has_verboseerror();
- if (verboseerror_ == &::google::protobuf::internal::kEmptyString) {
- verboseerror_ = new ::std::string;
- }
- verboseerror_->assign(value);
+ verboseerror_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.verboseError)
}
+#if LANG_CXX11
+inline void QueryProfile::set_verboseerror(::std::string&& value) {
+ set_has_verboseerror();
+ verboseerror_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.verboseError)
+}
+#endif
inline void QueryProfile::set_verboseerror(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_verboseerror();
- if (verboseerror_ == &::google::protobuf::internal::kEmptyString) {
- verboseerror_ = new ::std::string;
- }
- verboseerror_->assign(value);
+ verboseerror_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.verboseError)
}
inline void QueryProfile::set_verboseerror(const char* value, size_t size) {
set_has_verboseerror();
- if (verboseerror_ == &::google::protobuf::internal::kEmptyString) {
- verboseerror_ = new ::std::string;
- }
- verboseerror_->assign(reinterpret_cast<const char*>(value), size);
+ verboseerror_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.verboseError)
}
inline ::std::string* QueryProfile::mutable_verboseerror() {
set_has_verboseerror();
- if (verboseerror_ == &::google::protobuf::internal::kEmptyString) {
- verboseerror_ = new ::std::string;
- }
- return verboseerror_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.verboseError)
+ return verboseerror_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_verboseerror() {
- clear_has_verboseerror();
- if (verboseerror_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.verboseError)
+ if (!has_verboseerror()) {
return NULL;
- } else {
- ::std::string* temp = verboseerror_;
- verboseerror_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_verboseerror();
+ return verboseerror_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_verboseerror(::std::string* verboseerror) {
- if (verboseerror_ != &::google::protobuf::internal::kEmptyString) {
- delete verboseerror_;
- }
- if (verboseerror) {
+ if (verboseerror != NULL) {
set_has_verboseerror();
- verboseerror_ = verboseerror;
} else {
clear_has_verboseerror();
- verboseerror_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ verboseerror_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), verboseerror);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.verboseError)
}
// optional string error_id = 15;
inline bool QueryProfile::has_error_id() const {
- return (_has_bits_[0] & 0x00004000u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void QueryProfile::set_has_error_id() {
- _has_bits_[0] |= 0x00004000u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void QueryProfile::clear_has_error_id() {
- _has_bits_[0] &= ~0x00004000u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void QueryProfile::clear_error_id() {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- error_id_->clear();
- }
+ error_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_error_id();
}
inline const ::std::string& QueryProfile::error_id() const {
- return *error_id_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.error_id)
+ return error_id_.GetNoArena();
}
inline void QueryProfile::set_error_id(const ::std::string& value) {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(value);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.error_id)
}
+#if LANG_CXX11
+inline void QueryProfile::set_error_id(::std::string&& value) {
+ set_has_error_id();
+ error_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.error_id)
+}
+#endif
inline void QueryProfile::set_error_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(value);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.error_id)
}
inline void QueryProfile::set_error_id(const char* value, size_t size) {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- error_id_->assign(reinterpret_cast<const char*>(value), size);
+ error_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.error_id)
}
inline ::std::string* QueryProfile::mutable_error_id() {
set_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
- error_id_ = new ::std::string;
- }
- return error_id_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.error_id)
+ return error_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_error_id() {
- clear_has_error_id();
- if (error_id_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.error_id)
+ if (!has_error_id()) {
return NULL;
- } else {
- ::std::string* temp = error_id_;
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_error_id();
+ return error_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_error_id(::std::string* error_id) {
- if (error_id_ != &::google::protobuf::internal::kEmptyString) {
- delete error_id_;
- }
- if (error_id) {
+ if (error_id != NULL) {
set_has_error_id();
- error_id_ = error_id;
} else {
clear_has_error_id();
- error_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ error_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_id);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.error_id)
}
// optional string error_node = 16;
inline bool QueryProfile::has_error_node() const {
- return (_has_bits_[0] & 0x00008000u) != 0;
+ return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void QueryProfile::set_has_error_node() {
- _has_bits_[0] |= 0x00008000u;
+ _has_bits_[0] |= 0x00000040u;
}
inline void QueryProfile::clear_has_error_node() {
- _has_bits_[0] &= ~0x00008000u;
+ _has_bits_[0] &= ~0x00000040u;
}
inline void QueryProfile::clear_error_node() {
- if (error_node_ != &::google::protobuf::internal::kEmptyString) {
- error_node_->clear();
- }
+ error_node_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_error_node();
}
inline const ::std::string& QueryProfile::error_node() const {
- return *error_node_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.error_node)
+ return error_node_.GetNoArena();
}
inline void QueryProfile::set_error_node(const ::std::string& value) {
set_has_error_node();
- if (error_node_ == &::google::protobuf::internal::kEmptyString) {
- error_node_ = new ::std::string;
- }
- error_node_->assign(value);
+ error_node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.error_node)
}
+#if LANG_CXX11
+inline void QueryProfile::set_error_node(::std::string&& value) {
+ set_has_error_node();
+ error_node_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.error_node)
+}
+#endif
inline void QueryProfile::set_error_node(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_error_node();
- if (error_node_ == &::google::protobuf::internal::kEmptyString) {
- error_node_ = new ::std::string;
- }
- error_node_->assign(value);
+ error_node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.error_node)
}
inline void QueryProfile::set_error_node(const char* value, size_t size) {
set_has_error_node();
- if (error_node_ == &::google::protobuf::internal::kEmptyString) {
- error_node_ = new ::std::string;
- }
- error_node_->assign(reinterpret_cast<const char*>(value), size);
+ error_node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.error_node)
}
inline ::std::string* QueryProfile::mutable_error_node() {
set_has_error_node();
- if (error_node_ == &::google::protobuf::internal::kEmptyString) {
- error_node_ = new ::std::string;
- }
- return error_node_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.error_node)
+ return error_node_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_error_node() {
- clear_has_error_node();
- if (error_node_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.error_node)
+ if (!has_error_node()) {
return NULL;
- } else {
- ::std::string* temp = error_node_;
- error_node_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_error_node();
+ return error_node_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_error_node(::std::string* error_node) {
- if (error_node_ != &::google::protobuf::internal::kEmptyString) {
- delete error_node_;
- }
- if (error_node) {
+ if (error_node != NULL) {
set_has_error_node();
- error_node_ = error_node;
} else {
clear_has_error_node();
- error_node_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ error_node_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_node);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.error_node)
}
// optional string options_json = 17;
inline bool QueryProfile::has_options_json() const {
- return (_has_bits_[0] & 0x00010000u) != 0;
+ return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void QueryProfile::set_has_options_json() {
- _has_bits_[0] |= 0x00010000u;
+ _has_bits_[0] |= 0x00000080u;
}
inline void QueryProfile::clear_has_options_json() {
- _has_bits_[0] &= ~0x00010000u;
+ _has_bits_[0] &= ~0x00000080u;
}
inline void QueryProfile::clear_options_json() {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- options_json_->clear();
- }
+ options_json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_options_json();
}
inline const ::std::string& QueryProfile::options_json() const {
- return *options_json_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.options_json)
+ return options_json_.GetNoArena();
}
inline void QueryProfile::set_options_json(const ::std::string& value) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.options_json)
}
+#if LANG_CXX11
+inline void QueryProfile::set_options_json(::std::string&& value) {
+ set_has_options_json();
+ options_json_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.options_json)
+}
+#endif
inline void QueryProfile::set_options_json(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(value);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.options_json)
}
inline void QueryProfile::set_options_json(const char* value, size_t size) {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- options_json_->assign(reinterpret_cast<const char*>(value), size);
+ options_json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.options_json)
}
inline ::std::string* QueryProfile::mutable_options_json() {
set_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
- options_json_ = new ::std::string;
- }
- return options_json_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.options_json)
+ return options_json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_options_json() {
- clear_has_options_json();
- if (options_json_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.options_json)
+ if (!has_options_json()) {
return NULL;
- } else {
- ::std::string* temp = options_json_;
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_options_json();
+ return options_json_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_options_json(::std::string* options_json) {
- if (options_json_ != &::google::protobuf::internal::kEmptyString) {
- delete options_json_;
- }
- if (options_json) {
+ if (options_json != NULL) {
set_has_options_json();
- options_json_ = options_json;
} else {
clear_has_options_json();
- options_json_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ options_json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), options_json);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.options_json)
}
// optional int64 planEnd = 18;
inline bool QueryProfile::has_planend() const {
- return (_has_bits_[0] & 0x00020000u) != 0;
+ return (_has_bits_[0] & 0x00010000u) != 0;
}
inline void QueryProfile::set_has_planend() {
- _has_bits_[0] |= 0x00020000u;
+ _has_bits_[0] |= 0x00010000u;
}
inline void QueryProfile::clear_has_planend() {
- _has_bits_[0] &= ~0x00020000u;
+ _has_bits_[0] &= ~0x00010000u;
}
inline void QueryProfile::clear_planend() {
planend_ = GOOGLE_LONGLONG(0);
clear_has_planend();
}
inline ::google::protobuf::int64 QueryProfile::planend() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.planEnd)
return planend_;
}
inline void QueryProfile::set_planend(::google::protobuf::int64 value) {
set_has_planend();
planend_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.planEnd)
}
// optional int64 queueWaitEnd = 19;
inline bool QueryProfile::has_queuewaitend() const {
- return (_has_bits_[0] & 0x00040000u) != 0;
+ return (_has_bits_[0] & 0x00020000u) != 0;
}
inline void QueryProfile::set_has_queuewaitend() {
- _has_bits_[0] |= 0x00040000u;
+ _has_bits_[0] |= 0x00020000u;
}
inline void QueryProfile::clear_has_queuewaitend() {
- _has_bits_[0] &= ~0x00040000u;
+ _has_bits_[0] &= ~0x00020000u;
}
inline void QueryProfile::clear_queuewaitend() {
queuewaitend_ = GOOGLE_LONGLONG(0);
clear_has_queuewaitend();
}
inline ::google::protobuf::int64 QueryProfile::queuewaitend() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.queueWaitEnd)
return queuewaitend_;
}
inline void QueryProfile::set_queuewaitend(::google::protobuf::int64 value) {
set_has_queuewaitend();
queuewaitend_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.queueWaitEnd)
}
// optional double total_cost = 20;
inline bool QueryProfile::has_total_cost() const {
- return (_has_bits_[0] & 0x00080000u) != 0;
+ return (_has_bits_[0] & 0x00040000u) != 0;
}
inline void QueryProfile::set_has_total_cost() {
- _has_bits_[0] |= 0x00080000u;
+ _has_bits_[0] |= 0x00040000u;
}
inline void QueryProfile::clear_has_total_cost() {
- _has_bits_[0] &= ~0x00080000u;
+ _has_bits_[0] &= ~0x00040000u;
}
inline void QueryProfile::clear_total_cost() {
total_cost_ = 0;
clear_has_total_cost();
}
inline double QueryProfile::total_cost() const {
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.total_cost)
return total_cost_;
}
inline void QueryProfile::set_total_cost(double value) {
set_has_total_cost();
total_cost_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.total_cost)
}
// optional string queue_name = 21 [default = "-"];
inline bool QueryProfile::has_queue_name() const {
- return (_has_bits_[0] & 0x00100000u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void QueryProfile::set_has_queue_name() {
- _has_bits_[0] |= 0x00100000u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void QueryProfile::clear_has_queue_name() {
- _has_bits_[0] &= ~0x00100000u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void QueryProfile::clear_queue_name() {
- if (queue_name_ != _default_queue_name_) {
- queue_name_->assign(*_default_queue_name_);
- }
+ queue_name_.ClearToDefaultNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
clear_has_queue_name();
}
inline const ::std::string& QueryProfile::queue_name() const {
- return *queue_name_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.queue_name)
+ return queue_name_.GetNoArena();
}
inline void QueryProfile::set_queue_name(const ::std::string& value) {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(value);
+ queue_name_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.queue_name)
}
+#if LANG_CXX11
+inline void QueryProfile::set_queue_name(::std::string&& value) {
+ set_has_queue_name();
+ queue_name_.SetNoArena(
+ &::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.queue_name)
+}
+#endif
inline void QueryProfile::set_queue_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(value);
+ queue_name_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.queue_name)
}
inline void QueryProfile::set_queue_name(const char* value, size_t size) {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string;
- }
- queue_name_->assign(reinterpret_cast<const char*>(value), size);
+ queue_name_.SetNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.queue_name)
}
inline ::std::string* QueryProfile::mutable_queue_name() {
set_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
- queue_name_ = new ::std::string(*_default_queue_name_);
- }
- return queue_name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.queue_name)
+ return queue_name_.MutableNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
inline ::std::string* QueryProfile::release_queue_name() {
- clear_has_queue_name();
- if (queue_name_ == _default_queue_name_) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.queue_name)
+ if (!has_queue_name()) {
return NULL;
- } else {
- ::std::string* temp = queue_name_;
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
- return temp;
}
+ clear_has_queue_name();
+ return queue_name_.ReleaseNonDefaultNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get());
}
inline void QueryProfile::set_allocated_queue_name(::std::string* queue_name) {
- if (queue_name_ != _default_queue_name_) {
- delete queue_name_;
- }
- if (queue_name) {
+ if (queue_name != NULL) {
set_has_queue_name();
- queue_name_ = queue_name;
} else {
clear_has_queue_name();
- queue_name_ = const_cast< ::std::string*>(_default_queue_name_);
}
+ queue_name_.SetAllocatedNoArena(&::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_.get(), queue_name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.queue_name)
}
// optional string queryId = 22;
inline bool QueryProfile::has_queryid() const {
- return (_has_bits_[0] & 0x00200000u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void QueryProfile::set_has_queryid() {
- _has_bits_[0] |= 0x00200000u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void QueryProfile::clear_has_queryid() {
- _has_bits_[0] &= ~0x00200000u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void QueryProfile::clear_queryid() {
- if (queryid_ != &::google::protobuf::internal::kEmptyString) {
- queryid_->clear();
- }
+ queryid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_queryid();
}
inline const ::std::string& QueryProfile::queryid() const {
- return *queryid_;
+ // @@protoc_insertion_point(field_get:exec.shared.QueryProfile.queryId)
+ return queryid_.GetNoArena();
}
inline void QueryProfile::set_queryid(const ::std::string& value) {
set_has_queryid();
- if (queryid_ == &::google::protobuf::internal::kEmptyString) {
- queryid_ = new ::std::string;
- }
- queryid_->assign(value);
+ queryid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.QueryProfile.queryId)
}
+#if LANG_CXX11
+inline void QueryProfile::set_queryid(::std::string&& value) {
+ set_has_queryid();
+ queryid_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.QueryProfile.queryId)
+}
+#endif
inline void QueryProfile::set_queryid(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_queryid();
- if (queryid_ == &::google::protobuf::internal::kEmptyString) {
- queryid_ = new ::std::string;
- }
- queryid_->assign(value);
+ queryid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.QueryProfile.queryId)
}
inline void QueryProfile::set_queryid(const char* value, size_t size) {
set_has_queryid();
- if (queryid_ == &::google::protobuf::internal::kEmptyString) {
- queryid_ = new ::std::string;
- }
- queryid_->assign(reinterpret_cast<const char*>(value), size);
+ queryid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.QueryProfile.queryId)
}
inline ::std::string* QueryProfile::mutable_queryid() {
set_has_queryid();
- if (queryid_ == &::google::protobuf::internal::kEmptyString) {
- queryid_ = new ::std::string;
- }
- return queryid_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.QueryProfile.queryId)
+ return queryid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* QueryProfile::release_queryid() {
- clear_has_queryid();
- if (queryid_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.QueryProfile.queryId)
+ if (!has_queryid()) {
return NULL;
- } else {
- ::std::string* temp = queryid_;
- queryid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_queryid();
+ return queryid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void QueryProfile::set_allocated_queryid(::std::string* queryid) {
- if (queryid_ != &::google::protobuf::internal::kEmptyString) {
- delete queryid_;
- }
- if (queryid) {
+ if (queryid != NULL) {
set_has_queryid();
- queryid_ = queryid;
} else {
clear_has_queryid();
- queryid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ queryid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), queryid);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.QueryProfile.queryId)
}
// -------------------------------------------------------------------
@@ -6277,11 +7459,13 @@ inline void MajorFragmentProfile::clear_major_fragment_id() {
clear_has_major_fragment_id();
}
inline ::google::protobuf::int32 MajorFragmentProfile::major_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MajorFragmentProfile.major_fragment_id)
return major_fragment_id_;
}
inline void MajorFragmentProfile::set_major_fragment_id(::google::protobuf::int32 value) {
set_has_major_fragment_id();
major_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MajorFragmentProfile.major_fragment_id)
}
// repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
@@ -6291,23 +7475,28 @@ inline int MajorFragmentProfile::minor_fragment_profile_size() const {
inline void MajorFragmentProfile::clear_minor_fragment_profile() {
minor_fragment_profile_.Clear();
}
-inline const ::exec::shared::MinorFragmentProfile& MajorFragmentProfile::minor_fragment_profile(int index) const {
- return minor_fragment_profile_.Get(index);
-}
inline ::exec::shared::MinorFragmentProfile* MajorFragmentProfile::mutable_minor_fragment_profile(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.MajorFragmentProfile.minor_fragment_profile)
return minor_fragment_profile_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >*
+MajorFragmentProfile::mutable_minor_fragment_profile() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.MajorFragmentProfile.minor_fragment_profile)
+ return &minor_fragment_profile_;
+}
+inline const ::exec::shared::MinorFragmentProfile& MajorFragmentProfile::minor_fragment_profile(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.MajorFragmentProfile.minor_fragment_profile)
+ return minor_fragment_profile_.Get(index);
+}
inline ::exec::shared::MinorFragmentProfile* MajorFragmentProfile::add_minor_fragment_profile() {
+ // @@protoc_insertion_point(field_add:exec.shared.MajorFragmentProfile.minor_fragment_profile)
return minor_fragment_profile_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >&
MajorFragmentProfile::minor_fragment_profile() const {
+ // @@protoc_insertion_point(field_list:exec.shared.MajorFragmentProfile.minor_fragment_profile)
return minor_fragment_profile_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MinorFragmentProfile >*
-MajorFragmentProfile::mutable_minor_fragment_profile() {
- return &minor_fragment_profile_;
-}
// -------------------------------------------------------------------
@@ -6315,85 +7504,109 @@ MajorFragmentProfile::mutable_minor_fragment_profile() {
// optional .exec.shared.FragmentState state = 1;
inline bool MinorFragmentProfile::has_state() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void MinorFragmentProfile::set_has_state() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void MinorFragmentProfile::clear_has_state() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void MinorFragmentProfile::clear_state() {
state_ = 0;
clear_has_state();
}
inline ::exec::shared::FragmentState MinorFragmentProfile::state() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.state)
return static_cast< ::exec::shared::FragmentState >(state_);
}
inline void MinorFragmentProfile::set_state(::exec::shared::FragmentState value) {
assert(::exec::shared::FragmentState_IsValid(value));
set_has_state();
state_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.state)
}
// optional .exec.shared.DrillPBError error = 2;
inline bool MinorFragmentProfile::has_error() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void MinorFragmentProfile::set_has_error() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void MinorFragmentProfile::clear_has_error() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void MinorFragmentProfile::clear_error() {
- if (error_ != NULL) error_->::exec::shared::DrillPBError::Clear();
+ if (error_ != NULL) error_->Clear();
clear_has_error();
}
-inline const ::exec::shared::DrillPBError& MinorFragmentProfile::error() const {
- return error_ != NULL ? *error_ : *default_instance_->error_;
+inline const ::exec::shared::DrillPBError& MinorFragmentProfile::_internal_error() const {
+ return *error_;
}
-inline ::exec::shared::DrillPBError* MinorFragmentProfile::mutable_error() {
- set_has_error();
- if (error_ == NULL) error_ = new ::exec::shared::DrillPBError;
- return error_;
+inline const ::exec::shared::DrillPBError& MinorFragmentProfile::error() const {
+ const ::exec::shared::DrillPBError* p = error_;
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.error)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::shared::DrillPBError*>(
+ &::exec::shared::_DrillPBError_default_instance_);
}
inline ::exec::shared::DrillPBError* MinorFragmentProfile::release_error() {
+ // @@protoc_insertion_point(field_release:exec.shared.MinorFragmentProfile.error)
clear_has_error();
::exec::shared::DrillPBError* temp = error_;
error_ = NULL;
return temp;
}
+inline ::exec::shared::DrillPBError* MinorFragmentProfile::mutable_error() {
+ set_has_error();
+ if (error_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::shared::DrillPBError>(GetArenaNoVirtual());
+ error_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.MinorFragmentProfile.error)
+ return error_;
+}
inline void MinorFragmentProfile::set_allocated_error(::exec::shared::DrillPBError* error) {
- delete error_;
- error_ = error;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete error_;
+ }
if (error) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ error = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, error, submessage_arena);
+ }
set_has_error();
} else {
clear_has_error();
}
+ error_ = error;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.MinorFragmentProfile.error)
}
// optional int32 minor_fragment_id = 3;
inline bool MinorFragmentProfile::has_minor_fragment_id() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void MinorFragmentProfile::set_has_minor_fragment_id() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void MinorFragmentProfile::clear_has_minor_fragment_id() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void MinorFragmentProfile::clear_minor_fragment_id() {
minor_fragment_id_ = 0;
clear_has_minor_fragment_id();
}
inline ::google::protobuf::int32 MinorFragmentProfile::minor_fragment_id() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.minor_fragment_id)
return minor_fragment_id_;
}
inline void MinorFragmentProfile::set_minor_fragment_id(::google::protobuf::int32 value) {
set_has_minor_fragment_id();
minor_fragment_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.minor_fragment_id)
}
// repeated .exec.shared.OperatorProfile operator_profile = 4;
@@ -6403,23 +7616,28 @@ inline int MinorFragmentProfile::operator_profile_size() const {
inline void MinorFragmentProfile::clear_operator_profile() {
operator_profile_.Clear();
}
-inline const ::exec::shared::OperatorProfile& MinorFragmentProfile::operator_profile(int index) const {
- return operator_profile_.Get(index);
-}
inline ::exec::shared::OperatorProfile* MinorFragmentProfile::mutable_operator_profile(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.MinorFragmentProfile.operator_profile)
return operator_profile_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >*
+MinorFragmentProfile::mutable_operator_profile() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.MinorFragmentProfile.operator_profile)
+ return &operator_profile_;
+}
+inline const ::exec::shared::OperatorProfile& MinorFragmentProfile::operator_profile(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.operator_profile)
+ return operator_profile_.Get(index);
+}
inline ::exec::shared::OperatorProfile* MinorFragmentProfile::add_operator_profile() {
+ // @@protoc_insertion_point(field_add:exec.shared.MinorFragmentProfile.operator_profile)
return operator_profile_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >&
MinorFragmentProfile::operator_profile() const {
+ // @@protoc_insertion_point(field_list:exec.shared.MinorFragmentProfile.operator_profile)
return operator_profile_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::OperatorProfile >*
-MinorFragmentProfile::mutable_operator_profile() {
- return &operator_profile_;
-}
// optional int64 start_time = 5;
inline bool MinorFragmentProfile::has_start_time() const {
@@ -6436,11 +7654,13 @@ inline void MinorFragmentProfile::clear_start_time() {
clear_has_start_time();
}
inline ::google::protobuf::int64 MinorFragmentProfile::start_time() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.start_time)
return start_time_;
}
inline void MinorFragmentProfile::set_start_time(::google::protobuf::int64 value) {
set_has_start_time();
start_time_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.start_time)
}
// optional int64 end_time = 6;
@@ -6458,11 +7678,13 @@ inline void MinorFragmentProfile::clear_end_time() {
clear_has_end_time();
}
inline ::google::protobuf::int64 MinorFragmentProfile::end_time() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.end_time)
return end_time_;
}
inline void MinorFragmentProfile::set_end_time(::google::protobuf::int64 value) {
set_has_end_time();
end_time_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.end_time)
}
// optional int64 memory_used = 7;
@@ -6480,11 +7702,13 @@ inline void MinorFragmentProfile::clear_memory_used() {
clear_has_memory_used();
}
inline ::google::protobuf::int64 MinorFragmentProfile::memory_used() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.memory_used)
return memory_used_;
}
inline void MinorFragmentProfile::set_memory_used(::google::protobuf::int64 value) {
set_has_memory_used();
memory_used_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.memory_used)
}
// optional int64 max_memory_used = 8;
@@ -6502,93 +7726,115 @@ inline void MinorFragmentProfile::clear_max_memory_used() {
clear_has_max_memory_used();
}
inline ::google::protobuf::int64 MinorFragmentProfile::max_memory_used() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.max_memory_used)
return max_memory_used_;
}
inline void MinorFragmentProfile::set_max_memory_used(::google::protobuf::int64 value) {
set_has_max_memory_used();
max_memory_used_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.max_memory_used)
}
// optional .exec.DrillbitEndpoint endpoint = 9;
inline bool MinorFragmentProfile::has_endpoint() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void MinorFragmentProfile::set_has_endpoint() {
- _has_bits_[0] |= 0x00000100u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void MinorFragmentProfile::clear_has_endpoint() {
- _has_bits_[0] &= ~0x00000100u;
+ _has_bits_[0] &= ~0x00000002u;
}
-inline void MinorFragmentProfile::clear_endpoint() {
- if (endpoint_ != NULL) endpoint_->::exec::DrillbitEndpoint::Clear();
- clear_has_endpoint();
+inline const ::exec::DrillbitEndpoint& MinorFragmentProfile::_internal_endpoint() const {
+ return *endpoint_;
}
inline const ::exec::DrillbitEndpoint& MinorFragmentProfile::endpoint() const {
- return endpoint_ != NULL ? *endpoint_ : *default_instance_->endpoint_;
-}
-inline ::exec::DrillbitEndpoint* MinorFragmentProfile::mutable_endpoint() {
- set_has_endpoint();
- if (endpoint_ == NULL) endpoint_ = new ::exec::DrillbitEndpoint;
- return endpoint_;
+ const ::exec::DrillbitEndpoint* p = endpoint_;
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.endpoint)
+ return p != NULL ? *p : *reinterpret_cast<const ::exec::DrillbitEndpoint*>(
+ &::exec::_DrillbitEndpoint_default_instance_);
}
inline ::exec::DrillbitEndpoint* MinorFragmentProfile::release_endpoint() {
+ // @@protoc_insertion_point(field_release:exec.shared.MinorFragmentProfile.endpoint)
clear_has_endpoint();
::exec::DrillbitEndpoint* temp = endpoint_;
endpoint_ = NULL;
return temp;
}
+inline ::exec::DrillbitEndpoint* MinorFragmentProfile::mutable_endpoint() {
+ set_has_endpoint();
+ if (endpoint_ == NULL) {
+ auto* p = CreateMaybeMessage<::exec::DrillbitEndpoint>(GetArenaNoVirtual());
+ endpoint_ = p;
+ }
+ // @@protoc_insertion_point(field_mutable:exec.shared.MinorFragmentProfile.endpoint)
+ return endpoint_;
+}
inline void MinorFragmentProfile::set_allocated_endpoint(::exec::DrillbitEndpoint* endpoint) {
- delete endpoint_;
- endpoint_ = endpoint;
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(endpoint_);
+ }
if (endpoint) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ endpoint = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, endpoint, submessage_arena);
+ }
set_has_endpoint();
} else {
clear_has_endpoint();
}
+ endpoint_ = endpoint;
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.MinorFragmentProfile.endpoint)
}
// optional int64 last_update = 10;
inline bool MinorFragmentProfile::has_last_update() const {
- return (_has_bits_[0] & 0x00000200u) != 0;
+ return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void MinorFragmentProfile::set_has_last_update() {
- _has_bits_[0] |= 0x00000200u;
+ _has_bits_[0] |= 0x00000100u;
}
inline void MinorFragmentProfile::clear_has_last_update() {
- _has_bits_[0] &= ~0x00000200u;
+ _has_bits_[0] &= ~0x00000100u;
}
inline void MinorFragmentProfile::clear_last_update() {
last_update_ = GOOGLE_LONGLONG(0);
clear_has_last_update();
}
inline ::google::protobuf::int64 MinorFragmentProfile::last_update() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.last_update)
return last_update_;
}
inline void MinorFragmentProfile::set_last_update(::google::protobuf::int64 value) {
set_has_last_update();
last_update_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.last_update)
}
// optional int64 last_progress = 11;
inline bool MinorFragmentProfile::has_last_progress() const {
- return (_has_bits_[0] & 0x00000400u) != 0;
+ return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void MinorFragmentProfile::set_has_last_progress() {
- _has_bits_[0] |= 0x00000400u;
+ _has_bits_[0] |= 0x00000200u;
}
inline void MinorFragmentProfile::clear_has_last_progress() {
- _has_bits_[0] &= ~0x00000400u;
+ _has_bits_[0] &= ~0x00000200u;
}
inline void MinorFragmentProfile::clear_last_progress() {
last_progress_ = GOOGLE_LONGLONG(0);
clear_has_last_progress();
}
inline ::google::protobuf::int64 MinorFragmentProfile::last_progress() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MinorFragmentProfile.last_progress)
return last_progress_;
}
inline void MinorFragmentProfile::set_last_progress(::google::protobuf::int64 value) {
set_has_last_progress();
last_progress_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MinorFragmentProfile.last_progress)
}
// -------------------------------------------------------------------
@@ -6602,132 +7848,147 @@ inline int OperatorProfile::input_profile_size() const {
inline void OperatorProfile::clear_input_profile() {
input_profile_.Clear();
}
-inline const ::exec::shared::StreamProfile& OperatorProfile::input_profile(int index) const {
- return input_profile_.Get(index);
-}
inline ::exec::shared::StreamProfile* OperatorProfile::mutable_input_profile(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.OperatorProfile.input_profile)
return input_profile_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >*
+OperatorProfile::mutable_input_profile() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.OperatorProfile.input_profile)
+ return &input_profile_;
+}
+inline const ::exec::shared::StreamProfile& OperatorProfile::input_profile(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.input_profile)
+ return input_profile_.Get(index);
+}
inline ::exec::shared::StreamProfile* OperatorProfile::add_input_profile() {
+ // @@protoc_insertion_point(field_add:exec.shared.OperatorProfile.input_profile)
return input_profile_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >&
OperatorProfile::input_profile() const {
+ // @@protoc_insertion_point(field_list:exec.shared.OperatorProfile.input_profile)
return input_profile_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::StreamProfile >*
-OperatorProfile::mutable_input_profile() {
- return &input_profile_;
-}
// optional int32 operator_id = 3;
inline bool OperatorProfile::has_operator_id() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void OperatorProfile::set_has_operator_id() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void OperatorProfile::clear_has_operator_id() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void OperatorProfile::clear_operator_id() {
operator_id_ = 0;
clear_has_operator_id();
}
inline ::google::protobuf::int32 OperatorProfile::operator_id() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.operator_id)
return operator_id_;
}
inline void OperatorProfile::set_operator_id(::google::protobuf::int32 value) {
set_has_operator_id();
operator_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.operator_id)
}
// optional int32 operator_type = 4;
inline bool OperatorProfile::has_operator_type() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void OperatorProfile::set_has_operator_type() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void OperatorProfile::clear_has_operator_type() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void OperatorProfile::clear_operator_type() {
operator_type_ = 0;
clear_has_operator_type();
}
inline ::google::protobuf::int32 OperatorProfile::operator_type() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.operator_type)
return operator_type_;
}
inline void OperatorProfile::set_operator_type(::google::protobuf::int32 value) {
set_has_operator_type();
operator_type_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.operator_type)
}
// optional int64 setup_nanos = 5;
inline bool OperatorProfile::has_setup_nanos() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void OperatorProfile::set_has_setup_nanos() {
- _has_bits_[0] |= 0x00000008u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void OperatorProfile::clear_has_setup_nanos() {
- _has_bits_[0] &= ~0x00000008u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void OperatorProfile::clear_setup_nanos() {
setup_nanos_ = GOOGLE_LONGLONG(0);
clear_has_setup_nanos();
}
inline ::google::protobuf::int64 OperatorProfile::setup_nanos() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.setup_nanos)
return setup_nanos_;
}
inline void OperatorProfile::set_setup_nanos(::google::protobuf::int64 value) {
set_has_setup_nanos();
setup_nanos_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.setup_nanos)
}
// optional int64 process_nanos = 6;
inline bool OperatorProfile::has_process_nanos() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
+ return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void OperatorProfile::set_has_process_nanos() {
- _has_bits_[0] |= 0x00000010u;
+ _has_bits_[0] |= 0x00000008u;
}
inline void OperatorProfile::clear_has_process_nanos() {
- _has_bits_[0] &= ~0x00000010u;
+ _has_bits_[0] &= ~0x00000008u;
}
inline void OperatorProfile::clear_process_nanos() {
process_nanos_ = GOOGLE_LONGLONG(0);
clear_has_process_nanos();
}
inline ::google::protobuf::int64 OperatorProfile::process_nanos() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.process_nanos)
return process_nanos_;
}
inline void OperatorProfile::set_process_nanos(::google::protobuf::int64 value) {
set_has_process_nanos();
process_nanos_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.process_nanos)
}
// optional int64 peak_local_memory_allocated = 7;
inline bool OperatorProfile::has_peak_local_memory_allocated() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
+ return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void OperatorProfile::set_has_peak_local_memory_allocated() {
- _has_bits_[0] |= 0x00000020u;
+ _has_bits_[0] |= 0x00000010u;
}
inline void OperatorProfile::clear_has_peak_local_memory_allocated() {
- _has_bits_[0] &= ~0x00000020u;
+ _has_bits_[0] &= ~0x00000010u;
}
inline void OperatorProfile::clear_peak_local_memory_allocated() {
peak_local_memory_allocated_ = GOOGLE_LONGLONG(0);
clear_has_peak_local_memory_allocated();
}
inline ::google::protobuf::int64 OperatorProfile::peak_local_memory_allocated() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.peak_local_memory_allocated)
return peak_local_memory_allocated_;
}
inline void OperatorProfile::set_peak_local_memory_allocated(::google::protobuf::int64 value) {
set_has_peak_local_memory_allocated();
peak_local_memory_allocated_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.peak_local_memory_allocated)
}
// repeated .exec.shared.MetricValue metric = 8;
@@ -6737,44 +7998,51 @@ inline int OperatorProfile::metric_size() const {
inline void OperatorProfile::clear_metric() {
metric_.Clear();
}
-inline const ::exec::shared::MetricValue& OperatorProfile::metric(int index) const {
- return metric_.Get(index);
-}
inline ::exec::shared::MetricValue* OperatorProfile::mutable_metric(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.OperatorProfile.metric)
return metric_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >*
+OperatorProfile::mutable_metric() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.OperatorProfile.metric)
+ return &metric_;
+}
+inline const ::exec::shared::MetricValue& OperatorProfile::metric(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.metric)
+ return metric_.Get(index);
+}
inline ::exec::shared::MetricValue* OperatorProfile::add_metric() {
+ // @@protoc_insertion_point(field_add:exec.shared.OperatorProfile.metric)
return metric_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >&
OperatorProfile::metric() const {
+ // @@protoc_insertion_point(field_list:exec.shared.OperatorProfile.metric)
return metric_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::MetricValue >*
-OperatorProfile::mutable_metric() {
- return &metric_;
-}
// optional int64 wait_nanos = 9;
inline bool OperatorProfile::has_wait_nanos() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
+ return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void OperatorProfile::set_has_wait_nanos() {
- _has_bits_[0] |= 0x00000080u;
+ _has_bits_[0] |= 0x00000020u;
}
inline void OperatorProfile::clear_has_wait_nanos() {
- _has_bits_[0] &= ~0x00000080u;
+ _has_bits_[0] &= ~0x00000020u;
}
inline void OperatorProfile::clear_wait_nanos() {
wait_nanos_ = GOOGLE_LONGLONG(0);
clear_has_wait_nanos();
}
inline ::google::protobuf::int64 OperatorProfile::wait_nanos() const {
+ // @@protoc_insertion_point(field_get:exec.shared.OperatorProfile.wait_nanos)
return wait_nanos_;
}
inline void OperatorProfile::set_wait_nanos(::google::protobuf::int64 value) {
set_has_wait_nanos();
wait_nanos_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.OperatorProfile.wait_nanos)
}
// -------------------------------------------------------------------
@@ -6796,11 +8064,13 @@ inline void StreamProfile::clear_records() {
clear_has_records();
}
inline ::google::protobuf::int64 StreamProfile::records() const {
+ // @@protoc_insertion_point(field_get:exec.shared.StreamProfile.records)
return records_;
}
inline void StreamProfile::set_records(::google::protobuf::int64 value) {
set_has_records();
records_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.StreamProfile.records)
}
// optional int64 batches = 2;
@@ -6818,11 +8088,13 @@ inline void StreamProfile::clear_batches() {
clear_has_batches();
}
inline ::google::protobuf::int64 StreamProfile::batches() const {
+ // @@protoc_insertion_point(field_get:exec.shared.StreamProfile.batches)
return batches_;
}
inline void StreamProfile::set_batches(::google::protobuf::int64 value) {
set_has_batches();
batches_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.StreamProfile.batches)
}
// optional int64 schemas = 3;
@@ -6840,11 +8112,13 @@ inline void StreamProfile::clear_schemas() {
clear_has_schemas();
}
inline ::google::protobuf::int64 StreamProfile::schemas() const {
+ // @@protoc_insertion_point(field_get:exec.shared.StreamProfile.schemas)
return schemas_;
}
inline void StreamProfile::set_schemas(::google::protobuf::int64 value) {
set_has_schemas();
schemas_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.StreamProfile.schemas)
}
// -------------------------------------------------------------------
@@ -6853,68 +8127,74 @@ inline void StreamProfile::set_schemas(::google::protobuf::int64 value) {
// optional int32 metric_id = 1;
inline bool MetricValue::has_metric_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
+ return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void MetricValue::set_has_metric_id() {
- _has_bits_[0] |= 0x00000001u;
+ _has_bits_[0] |= 0x00000004u;
}
inline void MetricValue::clear_has_metric_id() {
- _has_bits_[0] &= ~0x00000001u;
+ _has_bits_[0] &= ~0x00000004u;
}
inline void MetricValue::clear_metric_id() {
metric_id_ = 0;
clear_has_metric_id();
}
inline ::google::protobuf::int32 MetricValue::metric_id() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MetricValue.metric_id)
return metric_id_;
}
inline void MetricValue::set_metric_id(::google::protobuf::int32 value) {
set_has_metric_id();
metric_id_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MetricValue.metric_id)
}
// optional int64 long_value = 2;
inline bool MetricValue::has_long_value() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
+ return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void MetricValue::set_has_long_value() {
- _has_bits_[0] |= 0x00000002u;
+ _has_bits_[0] |= 0x00000001u;
}
inline void MetricValue::clear_has_long_value() {
- _has_bits_[0] &= ~0x00000002u;
+ _has_bits_[0] &= ~0x00000001u;
}
inline void MetricValue::clear_long_value() {
long_value_ = GOOGLE_LONGLONG(0);
clear_has_long_value();
}
inline ::google::protobuf::int64 MetricValue::long_value() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MetricValue.long_value)
return long_value_;
}
inline void MetricValue::set_long_value(::google::protobuf::int64 value) {
set_has_long_value();
long_value_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MetricValue.long_value)
}
// optional double double_value = 3;
inline bool MetricValue::has_double_value() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
+ return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void MetricValue::set_has_double_value() {
- _has_bits_[0] |= 0x00000004u;
+ _has_bits_[0] |= 0x00000002u;
}
inline void MetricValue::clear_has_double_value() {
- _has_bits_[0] &= ~0x00000004u;
+ _has_bits_[0] &= ~0x00000002u;
}
inline void MetricValue::clear_double_value() {
double_value_ = 0;
clear_has_double_value();
}
inline double MetricValue::double_value() const {
+ // @@protoc_insertion_point(field_get:exec.shared.MetricValue.double_value)
return double_value_;
}
inline void MetricValue::set_double_value(double value) {
set_has_double_value();
double_value_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.MetricValue.double_value)
}
// -------------------------------------------------------------------
@@ -6928,23 +8208,28 @@ inline int Registry::jar_size() const {
inline void Registry::clear_jar() {
jar_.Clear();
}
-inline const ::exec::shared::Jar& Registry::jar(int index) const {
- return jar_.Get(index);
-}
inline ::exec::shared::Jar* Registry::mutable_jar(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.Registry.jar)
return jar_.Mutable(index);
}
+inline ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >*
+Registry::mutable_jar() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.Registry.jar)
+ return &jar_;
+}
+inline const ::exec::shared::Jar& Registry::jar(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.Registry.jar)
+ return jar_.Get(index);
+}
inline ::exec::shared::Jar* Registry::add_jar() {
+ // @@protoc_insertion_point(field_add:exec.shared.Registry.jar)
return jar_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >&
Registry::jar() const {
+ // @@protoc_insertion_point(field_list:exec.shared.Registry.jar)
return jar_;
}
-inline ::google::protobuf::RepeatedPtrField< ::exec::shared::Jar >*
-Registry::mutable_jar() {
- return &jar_;
-}
// -------------------------------------------------------------------
@@ -6961,63 +8246,59 @@ inline void Jar::clear_has_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Jar::clear_name() {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- name_->clear();
- }
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
}
inline const ::std::string& Jar::name() const {
- return *name_;
+ // @@protoc_insertion_point(field_get:exec.shared.Jar.name)
+ return name_.GetNoArena();
}
inline void Jar::set_name(const ::std::string& value) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.Jar.name)
}
+#if LANG_CXX11
+inline void Jar::set_name(::std::string&& value) {
+ set_has_name();
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.Jar.name)
+}
+#endif
inline void Jar::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(value);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.Jar.name)
}
inline void Jar::set_name(const char* value, size_t size) {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- name_->assign(reinterpret_cast<const char*>(value), size);
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.Jar.name)
}
inline ::std::string* Jar::mutable_name() {
set_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
- name_ = new ::std::string;
- }
- return name_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.Jar.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Jar::release_name() {
- clear_has_name();
- if (name_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.Jar.name)
+ if (!has_name()) {
return NULL;
- } else {
- ::std::string* temp = name_;
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_name();
+ return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Jar::set_allocated_name(::std::string* name) {
- if (name_ != &::google::protobuf::internal::kEmptyString) {
- delete name_;
- }
- if (name) {
+ if (name != NULL) {
set_has_name();
- name_ = name;
} else {
clear_has_name();
- name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.Jar.name)
}
// repeated string function_signature = 2;
@@ -7028,39 +8309,64 @@ inline void Jar::clear_function_signature() {
function_signature_.Clear();
}
inline const ::std::string& Jar::function_signature(int index) const {
+ // @@protoc_insertion_point(field_get:exec.shared.Jar.function_signature)
return function_signature_.Get(index);
}
inline ::std::string* Jar::mutable_function_signature(int index) {
+ // @@protoc_insertion_point(field_mutable:exec.shared.Jar.function_signature)
return function_signature_.Mutable(index);
}
inline void Jar::set_function_signature(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:exec.shared.Jar.function_signature)
function_signature_.Mutable(index)->assign(value);
}
+#if LANG_CXX11
+inline void Jar::set_function_signature(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:exec.shared.Jar.function_signature)
+ function_signature_.Mutable(index)->assign(std::move(value));
+}
+#endif
inline void Jar::set_function_signature(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
function_signature_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:exec.shared.Jar.function_signature)
}
inline void Jar::set_function_signature(int index, const char* value, size_t size) {
function_signature_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.Jar.function_signature)
}
inline ::std::string* Jar::add_function_signature() {
+ // @@protoc_insertion_point(field_add_mutable:exec.shared.Jar.function_signature)
return function_signature_.Add();
}
inline void Jar::add_function_signature(const ::std::string& value) {
function_signature_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:exec.shared.Jar.function_signature)
+}
+#if LANG_CXX11
+inline void Jar::add_function_signature(::std::string&& value) {
+ function_signature_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:exec.shared.Jar.function_signature)
}
+#endif
inline void Jar::add_function_signature(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
function_signature_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:exec.shared.Jar.function_signature)
}
inline void Jar::add_function_signature(const char* value, size_t size) {
function_signature_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:exec.shared.Jar.function_signature)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
Jar::function_signature() const {
+ // @@protoc_insertion_point(field_list:exec.shared.Jar.function_signature)
return function_signature_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
Jar::mutable_function_signature() {
+ // @@protoc_insertion_point(field_mutable_list:exec.shared.Jar.function_signature)
return &function_signature_;
}
@@ -7079,63 +8385,59 @@ inline void SaslMessage::clear_has_mechanism() {
_has_bits_[0] &= ~0x00000001u;
}
inline void SaslMessage::clear_mechanism() {
- if (mechanism_ != &::google::protobuf::internal::kEmptyString) {
- mechanism_->clear();
- }
+ mechanism_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_mechanism();
}
inline const ::std::string& SaslMessage::mechanism() const {
- return *mechanism_;
+ // @@protoc_insertion_point(field_get:exec.shared.SaslMessage.mechanism)
+ return mechanism_.GetNoArena();
}
inline void SaslMessage::set_mechanism(const ::std::string& value) {
set_has_mechanism();
- if (mechanism_ == &::google::protobuf::internal::kEmptyString) {
- mechanism_ = new ::std::string;
- }
- mechanism_->assign(value);
+ mechanism_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.SaslMessage.mechanism)
+}
+#if LANG_CXX11
+inline void SaslMessage::set_mechanism(::std::string&& value) {
+ set_has_mechanism();
+ mechanism_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.SaslMessage.mechanism)
}
+#endif
inline void SaslMessage::set_mechanism(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_mechanism();
- if (mechanism_ == &::google::protobuf::internal::kEmptyString) {
- mechanism_ = new ::std::string;
- }
- mechanism_->assign(value);
+ mechanism_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.SaslMessage.mechanism)
}
inline void SaslMessage::set_mechanism(const char* value, size_t size) {
set_has_mechanism();
- if (mechanism_ == &::google::protobuf::internal::kEmptyString) {
- mechanism_ = new ::std::string;
- }
- mechanism_->assign(reinterpret_cast<const char*>(value), size);
+ mechanism_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.SaslMessage.mechanism)
}
inline ::std::string* SaslMessage::mutable_mechanism() {
set_has_mechanism();
- if (mechanism_ == &::google::protobuf::internal::kEmptyString) {
- mechanism_ = new ::std::string;
- }
- return mechanism_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.SaslMessage.mechanism)
+ return mechanism_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SaslMessage::release_mechanism() {
- clear_has_mechanism();
- if (mechanism_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.SaslMessage.mechanism)
+ if (!has_mechanism()) {
return NULL;
- } else {
- ::std::string* temp = mechanism_;
- mechanism_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_mechanism();
+ return mechanism_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SaslMessage::set_allocated_mechanism(::std::string* mechanism) {
- if (mechanism_ != &::google::protobuf::internal::kEmptyString) {
- delete mechanism_;
- }
- if (mechanism) {
+ if (mechanism != NULL) {
set_has_mechanism();
- mechanism_ = mechanism;
} else {
clear_has_mechanism();
- mechanism_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ mechanism_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mechanism);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.SaslMessage.mechanism)
}
// optional bytes data = 2;
@@ -7149,63 +8451,59 @@ inline void SaslMessage::clear_has_data() {
_has_bits_[0] &= ~0x00000002u;
}
inline void SaslMessage::clear_data() {
- if (data_ != &::google::protobuf::internal::kEmptyString) {
- data_->clear();
- }
+ data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_data();
}
inline const ::std::string& SaslMessage::data() const {
- return *data_;
+ // @@protoc_insertion_point(field_get:exec.shared.SaslMessage.data)
+ return data_.GetNoArena();
}
inline void SaslMessage::set_data(const ::std::string& value) {
set_has_data();
- if (data_ == &::google::protobuf::internal::kEmptyString) {
- data_ = new ::std::string;
- }
- data_->assign(value);
+ data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:exec.shared.SaslMessage.data)
+}
+#if LANG_CXX11
+inline void SaslMessage::set_data(::std::string&& value) {
+ set_has_data();
+ data_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:exec.shared.SaslMessage.data)
}
+#endif
inline void SaslMessage::set_data(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
set_has_data();
- if (data_ == &::google::protobuf::internal::kEmptyString) {
- data_ = new ::std::string;
- }
- data_->assign(value);
+ data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:exec.shared.SaslMessage.data)
}
inline void SaslMessage::set_data(const void* value, size_t size) {
set_has_data();
- if (data_ == &::google::protobuf::internal::kEmptyString) {
- data_ = new ::std::string;
- }
- data_->assign(reinterpret_cast<const char*>(value), size);
+ data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:exec.shared.SaslMessage.data)
}
inline ::std::string* SaslMessage::mutable_data() {
set_has_data();
- if (data_ == &::google::protobuf::internal::kEmptyString) {
- data_ = new ::std::string;
- }
- return data_;
+ // @@protoc_insertion_point(field_mutable:exec.shared.SaslMessage.data)
+ return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* SaslMessage::release_data() {
- clear_has_data();
- if (data_ == &::google::protobuf::internal::kEmptyString) {
+ // @@protoc_insertion_point(field_release:exec.shared.SaslMessage.data)
+ if (!has_data()) {
return NULL;
- } else {
- ::std::string* temp = data_;
- data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
}
+ clear_has_data();
+ return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void SaslMessage::set_allocated_data(::std::string* data) {
- if (data_ != &::google::protobuf::internal::kEmptyString) {
- delete data_;
- }
- if (data) {
+ if (data != NULL) {
set_has_data();
- data_ = data;
} else {
clear_has_data();
- data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
+ data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
+ // @@protoc_insertion_point(field_set_allocated:exec.shared.SaslMessage.data)
}
// optional .exec.shared.SaslStatus status = 3;
@@ -7223,61 +8521,114 @@ inline void SaslMessage::clear_status() {
clear_has_status();
}
inline ::exec::shared::SaslStatus SaslMessage::status() const {
+ // @@protoc_insertion_point(field_get:exec.shared.SaslMessage.status)
return static_cast< ::exec::shared::SaslStatus >(status_);
}
inline void SaslMessage::set_status(::exec::shared::SaslStatus value) {
assert(::exec::shared::SaslStatus_IsValid(value));
set_has_status();
status_ = value;
+ // @@protoc_insertion_point(field_set:exec.shared.SaslMessage.status)
}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
// @@protoc_insertion_point(namespace_scope)
} // namespace shared
} // namespace exec
-#ifndef SWIG
namespace google {
namespace protobuf {
+template <> struct is_proto_enum< ::exec::shared::DrillPBError_ErrorType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::DrillPBError_ErrorType>() {
return ::exec::shared::DrillPBError_ErrorType_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::NamePart_Type> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::NamePart_Type>() {
return ::exec::shared::NamePart_Type_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::QueryResult_QueryState> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::QueryResult_QueryState>() {
return ::exec::shared::QueryResult_QueryState_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::RpcChannel> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::RpcChannel>() {
return ::exec::shared::RpcChannel_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::QueryType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::QueryType>() {
return ::exec::shared::QueryType_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::FragmentState> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::FragmentState>() {
return ::exec::shared::FragmentState_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::CoreOperatorType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::CoreOperatorType>() {
return ::exec::shared::CoreOperatorType_descriptor();
}
+template <> struct is_proto_enum< ::exec::shared::SaslStatus> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::exec::shared::SaslStatus>() {
return ::exec::shared::SaslStatus_descriptor();
}
-} // namespace google
} // namespace protobuf
-#endif // SWIG
+} // namespace google
// @@protoc_insertion_point(global_scope)
-#endif // PROTOBUF_UserBitShared_2eproto__INCLUDED
+#endif // PROTOBUF_INCLUDED_UserBitShared_2eproto
diff --git a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/HBaseTestsSuite.java b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/HBaseTestsSuite.java
index ef7013149..5cd4d3dd0 100644
--- a/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/HBaseTestsSuite.java
+++ b/contrib/storage-hbase/src/test/java/org/apache/drill/hbase/HBaseTestsSuite.java
@@ -23,6 +23,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import org.apache.drill.exec.ZookeeperTestUtil;
import org.apache.drill.exec.util.GuavaPatcher;
+import org.apache.drill.exec.util.ProtobufPatcher;
import org.apache.drill.hbase.test.Drill2130StorageHBaseHamcrestConfigurationTest;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
@@ -56,6 +57,7 @@ public class HBaseTestsSuite {
static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HBaseTestsSuite.class);
static {
+ ProtobufPatcher.patch();
GuavaPatcher.patch();
}
diff --git a/contrib/storage-hive/hive-exec-shade/pom.xml b/contrib/storage-hive/hive-exec-shade/pom.xml
index 824f9a4db..b7be65d47 100644
--- a/contrib/storage-hive/hive-exec-shade/pom.xml
+++ b/contrib/storage-hive/hive-exec-shade/pom.xml
@@ -142,6 +142,10 @@
<pattern>org.apache.avro.</pattern>
<shadedPattern>hive.org.apache.avro.</shadedPattern>
</relocation>
+ <relocation>
+ <pattern>com.google.protobuf.</pattern>
+ <shadedPattern>hive.com.google.protobuf.</shadedPattern>
+ </relocation>
</relocations>
<filters>
<filter>
diff --git a/exec/java-exec/pom.xml b/exec/java-exec/pom.xml
index d7f7393f2..f6a10e071 100644
--- a/exec/java-exec/pom.xml
+++ b/exec/java-exec/pom.xml
@@ -331,7 +331,6 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
index b840fa6b5..73a039b72 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
@@ -57,6 +57,7 @@ import org.apache.drill.exec.store.sys.PersistentStoreProvider;
import org.apache.drill.exec.store.sys.PersistentStoreRegistry;
import org.apache.drill.exec.store.sys.store.provider.LocalPersistentStoreProvider;
import org.apache.drill.exec.util.GuavaPatcher;
+import org.apache.drill.exec.util.ProtobufPatcher;
import org.apache.drill.exec.work.WorkManager;
import org.apache.zookeeper.Environment;
@@ -73,6 +74,12 @@ public class Drillbit implements AutoCloseable {
static {
/*
+ * HBase and MapR-DB clients use older version of protobuf,
+ * and override some methods that became final in recent versions.
+ * This code removes these final modifiers.
+ */
+ ProtobufPatcher.patch();
+ /*
* HBase client uses older version of Guava's Stopwatch API,
* while Drill ships with 18.x which has changes the scope of
* these API to 'package', this code make them accessible.
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/util/ProtobufPatcher.java b/exec/java-exec/src/main/java/org/apache/drill/exec/util/ProtobufPatcher.java
new file mode 100644
index 000000000..77144ae7d
--- /dev/null
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/util/ProtobufPatcher.java
@@ -0,0 +1,186 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.drill.exec.util;
+
+import javassist.CannotCompileException;
+import javassist.ClassPool;
+import javassist.CtClass;
+import javassist.CtMethod;
+import javassist.CtNewConstructor;
+import javassist.CtNewMethod;
+import javassist.Modifier;
+import javassist.NotFoundException;
+
+public class ProtobufPatcher {
+
+ private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ProtobufPatcher.class);
+
+ private static volatile boolean patchingAttempted = false;
+
+ /**
+ * Makes protobuf version 3.6+ compatible to libraries that still use protobuf 2.5.0.
+ */
+ public static synchronized void patch() {
+ if (!patchingAttempted) {
+ try {
+ patchingAttempted = true;
+ patchByteString();
+ patchGeneratedMessageLite();
+ patchGeneratedMessageLiteBuilder();
+ } catch (Exception e) {
+ logger.warn("Unable to patch Protobuf.", e);
+ }
+ }
+ }
+
+ /**
+ * HBase client overrides methods from {@link com.google.protobuf.ByteString},
+ * that were made final in version 3.6+ of protobuf.
+ * This method removes the final modifiers. It also creates and loads classes
+ * that were made private nested in protobuf 3.6+ to be accessible by the old fully qualified name.
+ *
+ * @throws NotFoundException if unable to find a method or class to patch.
+ * @throws CannotCompileException if unable to compile the patched class.
+ */
+ private static void patchByteString() throws NotFoundException, CannotCompileException {
+ ClassPool classPool = ClassPool.getDefault();
+ CtClass byteString = classPool.get("com.google.protobuf.ByteString");
+ removeFinal(byteString.getDeclaredMethod("toString"));
+ removeFinal(byteString.getDeclaredMethod("hashCode"));
+ removeFinal(byteString.getDeclaredMethod("iterator"));
+
+ // Need to inherit from these classes to make them accessible by the old path.
+ CtClass googleLiteralByteString = classPool.get("com.google.protobuf.ByteString$LiteralByteString");
+ removePrivate(googleLiteralByteString);
+ CtClass googleBoundedByteString = classPool.get("com.google.protobuf.ByteString$BoundedByteString");
+ removePrivate(googleBoundedByteString);
+ removeFinal(googleBoundedByteString);
+ for (CtMethod ctMethod : googleLiteralByteString.getDeclaredMethods()) {
+ removeFinal(ctMethod);
+ }
+ byteString.toClass();
+ googleLiteralByteString.toClass();
+ googleBoundedByteString.toClass();
+
+ // Adding the classes back to the old path.
+ CtClass literalByteString = classPool.makeClass("com.google.protobuf.LiteralByteString");
+ literalByteString.setSuperclass(googleLiteralByteString);
+ literalByteString.toClass();
+ CtClass boundedByteString = classPool.makeClass("com.google.protobuf.BoundedByteString");
+ boundedByteString.setSuperclass(googleBoundedByteString);
+ boundedByteString.toClass();
+ }
+
+ /**
+ * MapR-DB client extends {@link com.google.protobuf.GeneratedMessageLite} and overrides some methods,
+ * that were made final in version 3.6+ of protobuf.
+ * This method removes the final modifiers.
+ *
+ * @throws NotFoundException if unable to find a method or class to patch.
+ * @throws CannotCompileException if unable to compile the patched method body.
+ */
+ private static void patchGeneratedMessageLite() throws NotFoundException, CannotCompileException {
+ ClassPool classPool = ClassPool.getDefault();
+ CtClass generatedMessageLite = classPool.get("com.google.protobuf.GeneratedMessageLite");
+ removeFinal(generatedMessageLite.getDeclaredMethod("getParserForType"));
+ removeFinal(generatedMessageLite.getDeclaredMethod("isInitialized"));
+
+ // The method was removed, but it is used in com.mapr.fs.proto.Dbserver.
+ // Adding it back.
+ generatedMessageLite.addMethod(CtNewMethod.make("protected void makeExtensionsImmutable() { }", generatedMessageLite));
+
+ // A constructor with this signature was removed. Adding it back.
+ generatedMessageLite.addConstructor(CtNewConstructor.make("protected GeneratedMessageLite(com.google.protobuf.GeneratedMessageLite.Builder builder) { }", generatedMessageLite));
+
+ // This single method was added instead of several abstract methods.
+ // MapR-DB client doesn't use it, but it was added in overridden equals() method.
+ // Adding default implementation.
+ CtMethod dynamicMethod = generatedMessageLite.getDeclaredMethod("dynamicMethod", new CtClass[] {
+ classPool.get("com.google.protobuf.GeneratedMessageLite$MethodToInvoke"),
+ classPool.get("java.lang.Object"),
+ classPool.get("java.lang.Object")});
+ addImplementation(dynamicMethod, "if ($1.equals(com.google.protobuf.GeneratedMessageLite.MethodToInvoke.GET_DEFAULT_INSTANCE)) {" +
+ " return this;" +
+ "} else {" +
+ " return null;" +
+ "}");
+ generatedMessageLite.toClass();
+ }
+
+ /**
+ * MapR-DB client extends {@link com.google.protobuf.GeneratedMessageLite.Builder} and overrides some methods,
+ * that were made final in version 3.6+ of protobuf.
+ * This method removes the final modifiers.
+ * Also, adding back a default constructor that was removed.
+ *
+ * @throws NotFoundException if unable to find a method or class to patch.
+ * @throws CannotCompileException if unable to add a default constructor.
+ */
+ private static void patchGeneratedMessageLiteBuilder() throws NotFoundException, CannotCompileException {
+ ClassPool classPool = ClassPool.getDefault();
+ CtClass builder = classPool.get("com.google.protobuf.GeneratedMessageLite$Builder");
+ removeFinal(builder.getDeclaredMethod("isInitialized"));
+ removeFinal(builder.getDeclaredMethod("clear"));
+ builder.addConstructor(CtNewConstructor.defaultConstructor(builder));
+ builder.toClass();
+ }
+
+ /**
+ * Removes final modifier from a given method.
+ *
+ * @param ctMethod method which need to be non-final.
+ */
+ private static void removeFinal(CtMethod ctMethod) {
+ int modifiers = Modifier.clear(ctMethod.getModifiers(), Modifier.FINAL);
+ ctMethod.setModifiers(modifiers);
+ }
+
+ /**
+ * Removes final modifier from a given class.
+ *
+ * @param ctClass method which need to be non-final.
+ */
+ private static void removeFinal(CtClass ctClass) {
+ int modifiers = Modifier.clear(ctClass.getModifiers(), Modifier.FINAL);
+ ctClass.setModifiers(modifiers);
+ }
+
+ /**
+ * Removes private modifier from a given class
+ *
+ * @param ctClass class which need to be non-private.
+ */
+ private static void removePrivate(CtClass ctClass) {
+ int modifiers = Modifier.clear(ctClass.getModifiers(), Modifier.PRIVATE);
+ ctClass.setModifiers(modifiers);
+ }
+
+ /**
+ * Removes abstract modifier and adds implementation to a given method.
+ *
+ * @param ctMethod method to process.
+ * @param methodBody method implementation.
+ * @throws CannotCompileException if unable to compile given method body.
+ */
+ private static void addImplementation(CtMethod ctMethod, String methodBody) throws CannotCompileException {
+ ctMethod.setBody(methodBody);
+ int modifiers = Modifier.clear(ctMethod.getModifiers(), Modifier.ABSTRACT);
+ ctMethod.setModifiers(modifiers);
+ }
+}
diff --git a/exec/rpc/pom.xml b/exec/rpc/pom.xml
index 7d5774174..26f0b997a 100644
--- a/exec/rpc/pom.xml
+++ b/exec/rpc/pom.xml
@@ -49,7 +49,6 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>2.5.0</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
diff --git a/exec/vector/pom.xml b/exec/vector/pom.xml
index ff3e561c4..0fd4fb825 100644
--- a/exec/vector/pom.xml
+++ b/exec/vector/pom.xml
@@ -66,7 +66,6 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
diff --git a/pom.xml b/pom.xml
index 678e27cd8..95561b06f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,6 +97,7 @@
<commons.net.version>3.6</commons.net.version>
<commons.validator.version>1.6</commons.validator.version>
<commons.text.version>1.6</commons.text.version>
+ <protobuf.version>3.6.1</protobuf.version>
</properties>
<scm>
@@ -1766,6 +1767,11 @@
<artifactId>commons-text</artifactId>
<version>${commons.text.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>${protobuf.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
diff --git a/protocol/pom.xml b/protocol/pom.xml
index a98254d83..b2c9be877 100644
--- a/protocol/pom.xml
+++ b/protocol/pom.xml
@@ -35,7 +35,6 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.dyuproject.protostuff</groupId>
diff --git a/protocol/readme.txt b/protocol/readme.txt
index db0742540..8cfd66853 100644
--- a/protocol/readme.txt
+++ b/protocol/readme.txt
@@ -4,7 +4,7 @@ The java sources are generated into src/main/java and checked in.
To regenerate the sources after making changes to .proto files
---------------------------------------------------------------
-1. Ensure that the protobuf 'protoc' tool (version 2.5 or newer (but 2.x series)) is
+1. Ensure that the protobuf 'protoc' tool (version 3.6.1 or newer (but 3.x series)) is
in your PATH (you may need to download and build it first). You can
download it from http://code.google.com/p/protobuf/downloads/list.
@@ -14,7 +14,7 @@ download it from http://code.google.com/p/protobuf/downloads/list.
Command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
b) Download and install "protoc"
- Command: brew install protobuf250 --- installs protobuf for version 2.5.0
+ Command: brew install protobuf361 --- installs protobuf for version 3.6.1
brew install protobuf --- installs latest protobuf version
c) Check the version of "protoc"
@@ -24,13 +24,13 @@ download it from http://code.google.com/p/protobuf/downloads/list.
2. In protocol dir, run "mvn process-sources -P proto-compile" or "mvn clean install -P proto-compile".
-3. Check in the new/updated files.
-
----------------------------------------------------------------
-If changes are made to the DrillClient's protobuf, you would need to regenerate the sources for the C++ client as well.
-Steps for regenerating the sources are available https://github.com/apache/drill/blob/master/contrib/native/client/
-
-You can use any of the following platforms specified in the above location to regenerate the protobuf sources:
-readme.linux : Regenerating on Linux
-readme.macos : Regenerating on MacOS
-readme.win.txt : Regenerating on Windows
+3. Check in the new/updated files.
+
+---------------------------------------------------------------
+If changes are made to the DrillClient's protobuf, you would need to regenerate the sources for the C++ client as well.
+Steps for regenerating the sources are available https://github.com/apache/drill/blob/master/contrib/native/client/
+
+You can use any of the following platforms specified in the above location to regenerate the protobuf sources:
+readme.linux : Regenerating on Linux
+readme.macos : Regenerating on MacOS
+readme.win.txt : Regenerating on Windows
diff --git a/protocol/src/main/java/org/apache/drill/common/types/TypeProtos.java b/protocol/src/main/java/org/apache/drill/common/types/TypeProtos.java
index c22b135fa..8bbe28baf 100644
--- a/protocol/src/main/java/org/apache/drill/common/types/TypeProtos.java
+++ b/protocol/src/main/java/org/apache/drill/common/types/TypeProtos.java
@@ -23,7 +23,13 @@ package org.apache.drill.common.types;
public final class TypeProtos {
private TypeProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code common.MinorType}
@@ -31,472 +37,472 @@ public final class TypeProtos {
public enum MinorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>LATE = 0;</code>
- *
* <pre>
* late binding type
* </pre>
+ *
+ * <code>LATE = 0;</code>
*/
- LATE(0, 0),
+ LATE(0),
/**
- * <code>MAP = 1;</code>
- *
* <pre>
* an empty map column. Useful for conceptual setup. Children listed within here
* </pre>
+ *
+ * <code>MAP = 1;</code>
*/
- MAP(1, 1),
+ MAP(1),
/**
- * <code>TINYINT = 3;</code>
- *
* <pre>
* single byte signed integer
* </pre>
+ *
+ * <code>TINYINT = 3;</code>
*/
- TINYINT(2, 3),
+ TINYINT(3),
/**
- * <code>SMALLINT = 4;</code>
- *
* <pre>
* two byte signed integer
* </pre>
+ *
+ * <code>SMALLINT = 4;</code>
*/
- SMALLINT(3, 4),
+ SMALLINT(4),
/**
- * <code>INT = 5;</code>
- *
* <pre>
* four byte signed integer
* </pre>
+ *
+ * <code>INT = 5;</code>
*/
- INT(4, 5),
+ INT(5),
/**
- * <code>BIGINT = 6;</code>
- *
* <pre>
* eight byte signed integer
* </pre>
+ *
+ * <code>BIGINT = 6;</code>
*/
- BIGINT(5, 6),
+ BIGINT(6),
/**
- * <code>DECIMAL9 = 7;</code>
- *
* <pre>
* a decimal supporting precision between 1 and 9
* </pre>
+ *
+ * <code>DECIMAL9 = 7;</code>
*/
- DECIMAL9(6, 7),
+ DECIMAL9(7),
/**
- * <code>DECIMAL18 = 8;</code>
- *
* <pre>
* a decimal supporting precision between 10 and 18
* </pre>
+ *
+ * <code>DECIMAL18 = 8;</code>
*/
- DECIMAL18(7, 8),
+ DECIMAL18(8),
/**
- * <code>DECIMAL28SPARSE = 9;</code>
- *
* <pre>
* a decimal supporting precision between 19 and 28
* </pre>
+ *
+ * <code>DECIMAL28SPARSE = 9;</code>
*/
- DECIMAL28SPARSE(8, 9),
+ DECIMAL28SPARSE(9),
/**
- * <code>DECIMAL38SPARSE = 10;</code>
- *
* <pre>
* a decimal supporting precision between 29 and 38
* </pre>
+ *
+ * <code>DECIMAL38SPARSE = 10;</code>
*/
- DECIMAL38SPARSE(9, 10),
+ DECIMAL38SPARSE(10),
/**
- * <code>MONEY = 11;</code>
- *
* <pre>
* signed decimal with two digit precision
* </pre>
+ *
+ * <code>MONEY = 11;</code>
*/
- MONEY(10, 11),
+ MONEY(11),
/**
- * <code>DATE = 12;</code>
- *
* <pre>
* days since 4713bc
* </pre>
+ *
+ * <code>DATE = 12;</code>
*/
- DATE(11, 12),
+ DATE(12),
/**
- * <code>TIME = 13;</code>
- *
* <pre>
* time in micros before or after 2000/1/1
* </pre>
+ *
+ * <code>TIME = 13;</code>
*/
- TIME(12, 13),
+ TIME(13),
/**
- * <code>TIMETZ = 14;</code>
- *
* <pre>
* time in micros before or after 2000/1/1 with timezone
* </pre>
+ *
+ * <code>TIMETZ = 14;</code>
*/
- TIMETZ(13, 14),
+ TIMETZ(14),
/**
- * <code>TIMESTAMPTZ = 15;</code>
- *
* <pre>
* unix epoch time in millis
* </pre>
+ *
+ * <code>TIMESTAMPTZ = 15;</code>
*/
- TIMESTAMPTZ(14, 15),
+ TIMESTAMPTZ(15),
/**
- * <code>TIMESTAMP = 16;</code>
- *
* <pre>
* TBD
* </pre>
+ *
+ * <code>TIMESTAMP = 16;</code>
*/
- TIMESTAMP(15, 16),
+ TIMESTAMP(16),
/**
- * <code>INTERVAL = 17;</code>
- *
* <pre>
* TBD
* </pre>
+ *
+ * <code>INTERVAL = 17;</code>
*/
- INTERVAL(16, 17),
+ INTERVAL(17),
/**
- * <code>FLOAT4 = 18;</code>
- *
* <pre>
* 4 byte ieee 754
* </pre>
+ *
+ * <code>FLOAT4 = 18;</code>
*/
- FLOAT4(17, 18),
+ FLOAT4(18),
/**
- * <code>FLOAT8 = 19;</code>
- *
* <pre>
* 8 byte ieee 754
* </pre>
+ *
+ * <code>FLOAT8 = 19;</code>
*/
- FLOAT8(18, 19),
+ FLOAT8(19),
/**
- * <code>BIT = 20;</code>
- *
* <pre>
* single bit value (boolean)
* </pre>
+ *
+ * <code>BIT = 20;</code>
*/
- BIT(19, 20),
+ BIT(20),
/**
- * <code>FIXEDCHAR = 21;</code>
- *
* <pre>
* utf8 fixed length string, padded with spaces
* </pre>
+ *
+ * <code>FIXEDCHAR = 21;</code>
*/
- FIXEDCHAR(20, 21),
+ FIXEDCHAR(21),
/**
* <code>FIXED16CHAR = 22;</code>
*/
- FIXED16CHAR(21, 22),
+ FIXED16CHAR(22),
/**
- * <code>FIXEDBINARY = 23;</code>
- *
* <pre>
* fixed length binary, padded with 0 bytes
* </pre>
+ *
+ * <code>FIXEDBINARY = 23;</code>
*/
- FIXEDBINARY(22, 23),
+ FIXEDBINARY(23),
/**
- * <code>VARCHAR = 24;</code>
- *
* <pre>
* utf8 variable length string
* </pre>
+ *
+ * <code>VARCHAR = 24;</code>
*/
- VARCHAR(23, 24),
+ VARCHAR(24),
/**
- * <code>VAR16CHAR = 25;</code>
- *
* <pre>
* utf16 variable length string
* </pre>
+ *
+ * <code>VAR16CHAR = 25;</code>
*/
- VAR16CHAR(24, 25),
+ VAR16CHAR(25),
/**
- * <code>VARBINARY = 26;</code>
- *
* <pre>
* variable length binary
* </pre>
+ *
+ * <code>VARBINARY = 26;</code>
*/
- VARBINARY(25, 26),
+ VARBINARY(26),
/**
- * <code>UINT1 = 29;</code>
- *
* <pre>
* unsigned 1 byte integer
* </pre>
+ *
+ * <code>UINT1 = 29;</code>
*/
- UINT1(26, 29),
+ UINT1(29),
/**
- * <code>UINT2 = 30;</code>
- *
* <pre>
* unsigned 2 byte integer
* </pre>
+ *
+ * <code>UINT2 = 30;</code>
*/
- UINT2(27, 30),
+ UINT2(30),
/**
- * <code>UINT4 = 31;</code>
- *
* <pre>
* unsigned 4 byte integer
* </pre>
+ *
+ * <code>UINT4 = 31;</code>
*/
- UINT4(28, 31),
+ UINT4(31),
/**
- * <code>UINT8 = 32;</code>
- *
* <pre>
* unsigned 8 byte integer
* </pre>
+ *
+ * <code>UINT8 = 32;</code>
*/
- UINT8(29, 32),
+ UINT8(32),
/**
- * <code>DECIMAL28DENSE = 33;</code>
- *
* <pre>
* dense decimal representation, supporting precision between 19 and 28
* </pre>
+ *
+ * <code>DECIMAL28DENSE = 33;</code>
*/
- DECIMAL28DENSE(30, 33),
+ DECIMAL28DENSE(33),
/**
- * <code>DECIMAL38DENSE = 34;</code>
- *
* <pre>
* dense decimal representation, supporting precision between 28 and 38
* </pre>
+ *
+ * <code>DECIMAL38DENSE = 34;</code>
*/
- DECIMAL38DENSE(31, 34),
+ DECIMAL38DENSE(34),
/**
- * <code>NULL = 37;</code>
- *
* <pre>
* PROTO2 = 33; // protobuf encoded complex type. (up to 2^16 in length)
* PROTO4 = 34; // protobuf encoded complex type. (up to 2^32 in length)
* MSGPACK2 = 35; // msgpack encoded complex type. (up to 2^16 in length)
* MSGPACK4 = 36; // msgpack encoded complex type. (up to 2^32 in length)
* </pre>
+ *
+ * <code>NULL = 37;</code>
*/
- NULL(32, 37),
+ NULL(37),
/**
- * <code>INTERVALYEAR = 38;</code>
- *
* <pre>
* Interval type specifying YEAR to MONTH
* </pre>
+ *
+ * <code>INTERVALYEAR = 38;</code>
*/
- INTERVALYEAR(33, 38),
+ INTERVALYEAR(38),
/**
- * <code>INTERVALDAY = 39;</code>
- *
* <pre>
* Interval type specifying DAY to SECONDS
* </pre>
+ *
+ * <code>INTERVALDAY = 39;</code>
*/
- INTERVALDAY(34, 39),
+ INTERVALDAY(39),
/**
* <code>LIST = 40;</code>
*/
- LIST(35, 40),
+ LIST(40),
/**
* <code>GENERIC_OBJECT = 41;</code>
*/
- GENERIC_OBJECT(36, 41),
+ GENERIC_OBJECT(41),
/**
* <code>UNION = 42;</code>
*/
- UNION(37, 42),
+ UNION(42),
/**
- * <code>VARDECIMAL = 43;</code>
- *
* <pre>
* variable width decimal (arbitrary precision)
* </pre>
+ *
+ * <code>VARDECIMAL = 43;</code>
*/
- VARDECIMAL(38, 43),
+ VARDECIMAL(43),
;
/**
- * <code>LATE = 0;</code>
- *
* <pre>
* late binding type
* </pre>
+ *
+ * <code>LATE = 0;</code>
*/
public static final int LATE_VALUE = 0;
/**
- * <code>MAP = 1;</code>
- *
* <pre>
* an empty map column. Useful for conceptual setup. Children listed within here
* </pre>
+ *
+ * <code>MAP = 1;</code>
*/
public static final int MAP_VALUE = 1;
/**
- * <code>TINYINT = 3;</code>
- *
* <pre>
* single byte signed integer
* </pre>
+ *
+ * <code>TINYINT = 3;</code>
*/
public static final int TINYINT_VALUE = 3;
/**
- * <code>SMALLINT = 4;</code>
- *
* <pre>
* two byte signed integer
* </pre>
+ *
+ * <code>SMALLINT = 4;</code>
*/
public static final int SMALLINT_VALUE = 4;
/**
- * <code>INT = 5;</code>
- *
* <pre>
* four byte signed integer
* </pre>
+ *
+ * <code>INT = 5;</code>
*/
public static final int INT_VALUE = 5;
/**
- * <code>BIGINT = 6;</code>
- *
* <pre>
* eight byte signed integer
* </pre>
+ *
+ * <code>BIGINT = 6;</code>
*/
public static final int BIGINT_VALUE = 6;
/**
- * <code>DECIMAL9 = 7;</code>
- *
* <pre>
* a decimal supporting precision between 1 and 9
* </pre>
+ *
+ * <code>DECIMAL9 = 7;</code>
*/
public static final int DECIMAL9_VALUE = 7;
/**
- * <code>DECIMAL18 = 8;</code>
- *
* <pre>
* a decimal supporting precision between 10 and 18
* </pre>
+ *
+ * <code>DECIMAL18 = 8;</code>
*/
public static final int DECIMAL18_VALUE = 8;
/**
- * <code>DECIMAL28SPARSE = 9;</code>
- *
* <pre>
* a decimal supporting precision between 19 and 28
* </pre>
+ *
+ * <code>DECIMAL28SPARSE = 9;</code>
*/
public static final int DECIMAL28SPARSE_VALUE = 9;
/**
- * <code>DECIMAL38SPARSE = 10;</code>
- *
* <pre>
* a decimal supporting precision between 29 and 38
* </pre>
+ *
+ * <code>DECIMAL38SPARSE = 10;</code>
*/
public static final int DECIMAL38SPARSE_VALUE = 10;
/**
- * <code>MONEY = 11;</code>
- *
* <pre>
* signed decimal with two digit precision
* </pre>
+ *
+ * <code>MONEY = 11;</code>
*/
public static final int MONEY_VALUE = 11;
/**
- * <code>DATE = 12;</code>
- *
* <pre>
* days since 4713bc
* </pre>
+ *
+ * <code>DATE = 12;</code>
*/
public static final int DATE_VALUE = 12;
/**
- * <code>TIME = 13;</code>
- *
* <pre>
* time in micros before or after 2000/1/1
* </pre>
+ *
+ * <code>TIME = 13;</code>
*/
public static final int TIME_VALUE = 13;
/**
- * <code>TIMETZ = 14;</code>
- *
* <pre>
* time in micros before or after 2000/1/1 with timezone
* </pre>
+ *
+ * <code>TIMETZ = 14;</code>
*/
public static final int TIMETZ_VALUE = 14;
/**
- * <code>TIMESTAMPTZ = 15;</code>
- *
* <pre>
* unix epoch time in millis
* </pre>
+ *
+ * <code>TIMESTAMPTZ = 15;</code>
*/
public static final int TIMESTAMPTZ_VALUE = 15;
/**
- * <code>TIMESTAMP = 16;</code>
- *
* <pre>
* TBD
* </pre>
+ *
+ * <code>TIMESTAMP = 16;</code>
*/
public static final int TIMESTAMP_VALUE = 16;
/**
- * <code>INTERVAL = 17;</code>
- *
* <pre>
* TBD
* </pre>
+ *
+ * <code>INTERVAL = 17;</code>
*/
public static final int INTERVAL_VALUE = 17;
/**
- * <code>FLOAT4 = 18;</code>
- *
* <pre>
* 4 byte ieee 754
* </pre>
+ *
+ * <code>FLOAT4 = 18;</code>
*/
public static final int FLOAT4_VALUE = 18;
/**
- * <code>FLOAT8 = 19;</code>
- *
* <pre>
* 8 byte ieee 754
* </pre>
+ *
+ * <code>FLOAT8 = 19;</code>
*/
public static final int FLOAT8_VALUE = 19;
/**
- * <code>BIT = 20;</code>
- *
* <pre>
* single bit value (boolean)
* </pre>
+ *
+ * <code>BIT = 20;</code>
*/
public static final int BIT_VALUE = 20;
/**
- * <code>FIXEDCHAR = 21;</code>
- *
* <pre>
* utf8 fixed length string, padded with spaces
* </pre>
+ *
+ * <code>FIXEDCHAR = 21;</code>
*/
public static final int FIXEDCHAR_VALUE = 21;
/**
@@ -504,110 +510,110 @@ public final class TypeProtos {
*/
public static final int FIXED16CHAR_VALUE = 22;
/**
- * <code>FIXEDBINARY = 23;</code>
- *
* <pre>
* fixed length binary, padded with 0 bytes
* </pre>
+ *
+ * <code>FIXEDBINARY = 23;</code>
*/
public static final int FIXEDBINARY_VALUE = 23;
/**
- * <code>VARCHAR = 24;</code>
- *
* <pre>
* utf8 variable length string
* </pre>
+ *
+ * <code>VARCHAR = 24;</code>
*/
public static final int VARCHAR_VALUE = 24;
/**
- * <code>VAR16CHAR = 25;</code>
- *
* <pre>
* utf16 variable length string
* </pre>
+ *
+ * <code>VAR16CHAR = 25;</code>
*/
public static final int VAR16CHAR_VALUE = 25;
/**
- * <code>VARBINARY = 26;</code>
- *
* <pre>
* variable length binary
* </pre>
+ *
+ * <code>VARBINARY = 26;</code>
*/
public static final int VARBINARY_VALUE = 26;
/**
- * <code>UINT1 = 29;</code>
- *
* <pre>
* unsigned 1 byte integer
* </pre>
+ *
+ * <code>UINT1 = 29;</code>
*/
public static final int UINT1_VALUE = 29;
/**
- * <code>UINT2 = 30;</code>
- *
* <pre>
* unsigned 2 byte integer
* </pre>
+ *
+ * <code>UINT2 = 30;</code>
*/
public static final int UINT2_VALUE = 30;
/**
- * <code>UINT4 = 31;</code>
- *
* <pre>
* unsigned 4 byte integer
* </pre>
+ *
+ * <code>UINT4 = 31;</code>
*/
public static final int UINT4_VALUE = 31;
/**
- * <code>UINT8 = 32;</code>
- *
* <pre>
* unsigned 8 byte integer
* </pre>
+ *
+ * <code>UINT8 = 32;</code>
*/
public static final int UINT8_VALUE = 32;
/**
- * <code>DECIMAL28DENSE = 33;</code>
- *
* <pre>
* dense decimal representation, supporting precision between 19 and 28
* </pre>
+ *
+ * <code>DECIMAL28DENSE = 33;</code>
*/
public static final int DECIMAL28DENSE_VALUE = 33;
/**
- * <code>DECIMAL38DENSE = 34;</code>
- *
* <pre>
* dense decimal representation, supporting precision between 28 and 38
* </pre>
+ *
+ * <code>DECIMAL38DENSE = 34;</code>
*/
public static final int DECIMAL38DENSE_VALUE = 34;
/**
- * <code>NULL = 37;</code>
- *
* <pre>
* PROTO2 = 33; // protobuf encoded complex type. (up to 2^16 in length)
* PROTO4 = 34; // protobuf encoded complex type. (up to 2^32 in length)
* MSGPACK2 = 35; // msgpack encoded complex type. (up to 2^16 in length)
* MSGPACK4 = 36; // msgpack encoded complex type. (up to 2^32 in length)
* </pre>
+ *
+ * <code>NULL = 37;</code>
*/
public static final int NULL_VALUE = 37;
/**
- * <code>INTERVALYEAR = 38;</code>
- *
* <pre>
* Interval type specifying YEAR to MONTH
* </pre>
+ *
+ * <code>INTERVALYEAR = 38;</code>
*/
public static final int INTERVALYEAR_VALUE = 38;
/**
- * <code>INTERVALDAY = 39;</code>
- *
* <pre>
* Interval type specifying DAY to SECONDS
* </pre>
+ *
+ * <code>INTERVALDAY = 39;</code>
*/
public static final int INTERVALDAY_VALUE = 39;
/**
@@ -623,18 +629,28 @@ public final class TypeProtos {
*/
public static final int UNION_VALUE = 42;
/**
- * <code>VARDECIMAL = 43;</code>
- *
* <pre>
* variable width decimal (arbitrary precision)
* </pre>
+ *
+ * <code>VARDECIMAL = 43;</code>
*/
public static final int VARDECIMAL_VALUE = 43;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static MinorType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static MinorType forNumber(int value) {
switch (value) {
case 0: return LATE;
case 1: return MAP;
@@ -683,17 +699,17 @@ public final class TypeProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<MinorType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ MinorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<MinorType>() {
public MinorType findValueByNumber(int number) {
- return MinorType.valueOf(number);
+ return MinorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -715,11 +731,9 @@ public final class TypeProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private MinorType(int index, int value) {
- this.index = index;
+ private MinorType(int value) {
this.value = value;
}
@@ -732,60 +746,70 @@ public final class TypeProtos {
public enum DataMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>OPTIONAL = 0;</code>
- *
* <pre>
* nullable
* </pre>
+ *
+ * <code>OPTIONAL = 0;</code>
*/
- OPTIONAL(0, 0),
+ OPTIONAL(0),
/**
- * <code>REQUIRED = 1;</code>
- *
* <pre>
* non-nullable
* </pre>
+ *
+ * <code>REQUIRED = 1;</code>
*/
- REQUIRED(1, 1),
+ REQUIRED(1),
/**
- * <code>REPEATED = 2;</code>
- *
* <pre>
* single, repeated-field
* </pre>
+ *
+ * <code>REPEATED = 2;</code>
*/
- REPEATED(2, 2),
+ REPEATED(2),
;
/**
- * <code>OPTIONAL = 0;</code>
- *
* <pre>
* nullable
* </pre>
+ *
+ * <code>OPTIONAL = 0;</code>
*/
public static final int OPTIONAL_VALUE = 0;
/**
- * <code>REQUIRED = 1;</code>
- *
* <pre>
* non-nullable
* </pre>
+ *
+ * <code>REQUIRED = 1;</code>
*/
public static final int REQUIRED_VALUE = 1;
/**
- * <code>REPEATED = 2;</code>
- *
* <pre>
* single, repeated-field
* </pre>
+ *
+ * <code>REPEATED = 2;</code>
*/
public static final int REPEATED_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static DataMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DataMode forNumber(int value) {
switch (value) {
case 0: return OPTIONAL;
case 1: return REQUIRED;
@@ -798,17 +822,17 @@ public final class TypeProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<DataMode>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ DataMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DataMode>() {
public DataMode findValueByNumber(int number) {
- return DataMode.valueOf(number);
+ return DataMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -830,21 +854,19 @@ public final class TypeProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private DataMode(int index, int value) {
- this.index = index;
+ private DataMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:common.DataMode)
}
- public interface MajorTypeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface MajorTypeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:common.MajorType)
+ com.google.protobuf.MessageOrBuilder {
- // optional .common.MinorType minor_type = 1;
/**
* <code>optional .common.MinorType minor_type = 1;</code>
*/
@@ -854,7 +876,6 @@ public final class TypeProtos {
*/
org.apache.drill.common.types.TypeProtos.MinorType getMinorType();
- // optional .common.DataMode mode = 2;
/**
* <code>optional .common.DataMode mode = 2;</code>
*/
@@ -864,7 +885,6 @@ public final class TypeProtos {
*/
org.apache.drill.common.types.TypeProtos.DataMode getMode();
- // optional int32 width = 3;
/**
* <code>optional int32 width = 3;</code>
*/
@@ -874,119 +894,117 @@ public final class TypeProtos {
*/
int getWidth();
- // optional int32 precision = 4;
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
boolean hasPrecision();
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
int getPrecision();
- // optional int32 scale = 5;
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
boolean hasScale();
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
int getScale();
- // optional int32 timeZone = 6;
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
boolean hasTimeZone();
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
int getTimeZone();
- // repeated .common.MinorType sub_type = 7;
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
java.util.List<org.apache.drill.common.types.TypeProtos.MinorType> getSubTypeList();
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
int getSubTypeCount();
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
org.apache.drill.common.types.TypeProtos.MinorType getSubType(int index);
}
/**
* Protobuf type {@code common.MajorType}
*/
- public static final class MajorType extends
- com.google.protobuf.GeneratedMessage
- implements MajorTypeOrBuilder {
+ public static final class MajorType extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:common.MajorType)
+ MajorTypeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MajorType.newBuilder() to construct.
- private MajorType(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private MajorType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MajorType(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MajorType defaultInstance;
- public static MajorType getDefaultInstance() {
- return defaultInstance;
- }
-
- public MajorType getDefaultInstanceForType() {
- return defaultInstance;
+ private MajorType() {
+ minorType_ = 0;
+ mode_ = 0;
+ width_ = 0;
+ precision_ = 0;
+ scale_ = 0;
+ timeZone_ = 0;
+ subType_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private MajorType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -998,32 +1016,27 @@ public final class TypeProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- minorType_ = value;
+ minorType_ = rawValue;
}
break;
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.DataMode value = org.apache.drill.common.types.TypeProtos.DataMode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- mode_ = value;
+ mode_ = rawValue;
}
break;
}
@@ -1049,15 +1062,16 @@ public final class TypeProtos {
}
case 56: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- subType_ = new java.util.ArrayList<org.apache.drill.common.types.TypeProtos.MinorType>();
+ subType_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000040;
}
- subType_.add(value);
+ subType_.add(rawValue);
}
break;
}
@@ -1066,27 +1080,35 @@ public final class TypeProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- subType_ = new java.util.ArrayList<org.apache.drill.common.types.TypeProtos.MinorType>();
+ subType_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000040;
}
- subType_.add(value);
+ subType_.add(rawValue);
}
}
input.popLimit(oldLimit);
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
subType_ = java.util.Collections.unmodifiableList(subType_);
@@ -1100,32 +1122,17 @@ public final class TypeProtos {
return org.apache.drill.common.types.TypeProtos.internal_static_common_MajorType_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.common.types.TypeProtos.internal_static_common_MajorType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.common.types.TypeProtos.MajorType.class, org.apache.drill.common.types.TypeProtos.MajorType.Builder.class);
}
- public static com.google.protobuf.Parser<MajorType> PARSER =
- new com.google.protobuf.AbstractParser<MajorType>() {
- public MajorType parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new MajorType(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<MajorType> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .common.MinorType minor_type = 1;
public static final int MINOR_TYPE_FIELD_NUMBER = 1;
- private org.apache.drill.common.types.TypeProtos.MinorType minorType_;
+ private int minorType_;
/**
* <code>optional .common.MinorType minor_type = 1;</code>
*/
@@ -1136,12 +1143,13 @@ public final class TypeProtos {
* <code>optional .common.MinorType minor_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getMinorType() {
- return minorType_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(minorType_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
- // optional .common.DataMode mode = 2;
public static final int MODE_FIELD_NUMBER = 2;
- private org.apache.drill.common.types.TypeProtos.DataMode mode_;
+ private int mode_;
/**
* <code>optional .common.DataMode mode = 2;</code>
*/
@@ -1152,10 +1160,11 @@ public final class TypeProtos {
* <code>optional .common.DataMode mode = 2;</code>
*/
public org.apache.drill.common.types.TypeProtos.DataMode getMode() {
- return mode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.DataMode result = org.apache.drill.common.types.TypeProtos.DataMode.valueOf(mode_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL : result;
}
- // optional int32 width = 3;
public static final int WIDTH_FIELD_NUMBER = 3;
private int width_;
/**
@@ -1171,138 +1180,138 @@ public final class TypeProtos {
return width_;
}
- // optional int32 precision = 4;
public static final int PRECISION_FIELD_NUMBER = 4;
private int precision_;
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public int getPrecision() {
return precision_;
}
- // optional int32 scale = 5;
public static final int SCALE_FIELD_NUMBER = 5;
private int scale_;
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public int getScale() {
return scale_;
}
- // optional int32 timeZone = 6;
public static final int TIMEZONE_FIELD_NUMBER = 6;
private int timeZone_;
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public int getTimeZone() {
return timeZone_;
}
- // repeated .common.MinorType sub_type = 7;
public static final int SUB_TYPE_FIELD_NUMBER = 7;
- private java.util.List<org.apache.drill.common.types.TypeProtos.MinorType> subType_;
+ private java.util.List<java.lang.Integer> subType_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.common.types.TypeProtos.MinorType> subType_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.common.types.TypeProtos.MinorType>() {
+ public org.apache.drill.common.types.TypeProtos.MinorType convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(from);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
+ }
+ };
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public java.util.List<org.apache.drill.common.types.TypeProtos.MinorType> getSubTypeList() {
- return subType_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.common.types.TypeProtos.MinorType>(subType_, subType_converter_);
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public int getSubTypeCount() {
return subType_.size();
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getSubType(int index) {
- return subType_.get(index);
+ return subType_converter_.convert(subType_.get(index));
}
- private void initFields() {
- minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
- mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL;
- width_ = 0;
- precision_ = 0;
- scale_ = 0;
- timeZone_ = 0;
- subType_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, minorType_.getNumber());
+ output.writeEnum(1, minorType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, mode_.getNumber());
+ output.writeEnum(2, mode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, width_);
@@ -1317,24 +1326,24 @@ public final class TypeProtos {
output.writeInt32(6, timeZone_);
}
for (int i = 0; i < subType_.size(); i++) {
- output.writeEnum(7, subType_.get(i).getNumber());
+ output.writeEnum(7, subType_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, minorType_.getNumber());
+ .computeEnumSize(1, minorType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, mode_.getNumber());
+ .computeEnumSize(2, mode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
@@ -1356,24 +1365,112 @@ public final class TypeProtos {
int dataSize = 0;
for (int i = 0; i < subType_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(subType_.get(i).getNumber());
+ .computeEnumSizeNoTag(subType_.get(i));
}
size += dataSize;
size += 1 * subType_.size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.common.types.TypeProtos.MajorType)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.common.types.TypeProtos.MajorType other = (org.apache.drill.common.types.TypeProtos.MajorType) obj;
+
+ boolean result = true;
+ result = result && (hasMinorType() == other.hasMinorType());
+ if (hasMinorType()) {
+ result = result && minorType_ == other.minorType_;
+ }
+ result = result && (hasMode() == other.hasMode());
+ if (hasMode()) {
+ result = result && mode_ == other.mode_;
+ }
+ result = result && (hasWidth() == other.hasWidth());
+ if (hasWidth()) {
+ result = result && (getWidth()
+ == other.getWidth());
+ }
+ result = result && (hasPrecision() == other.hasPrecision());
+ if (hasPrecision()) {
+ result = result && (getPrecision()
+ == other.getPrecision());
+ }
+ result = result && (hasScale() == other.hasScale());
+ if (hasScale()) {
+ result = result && (getScale()
+ == other.getScale());
+ }
+ result = result && (hasTimeZone() == other.hasTimeZone());
+ if (hasTimeZone()) {
+ result = result && (getTimeZone()
+ == other.getTimeZone());
+ }
+ result = result && subType_.equals(other.subType_);
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMinorType()) {
+ hash = (37 * hash) + MINOR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + minorType_;
+ }
+ if (hasMode()) {
+ hash = (37 * hash) + MODE_FIELD_NUMBER;
+ hash = (53 * hash) + mode_;
+ }
+ if (hasWidth()) {
+ hash = (37 * hash) + WIDTH_FIELD_NUMBER;
+ hash = (53 * hash) + getWidth();
+ }
+ if (hasPrecision()) {
+ hash = (37 * hash) + PRECISION_FIELD_NUMBER;
+ hash = (53 * hash) + getPrecision();
+ }
+ if (hasScale()) {
+ hash = (37 * hash) + SCALE_FIELD_NUMBER;
+ hash = (53 * hash) + getScale();
+ }
+ if (hasTimeZone()) {
+ hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeZone();
+ }
+ if (getSubTypeCount() > 0) {
+ hash = (37 * hash) + SUB_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + subType_.hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -1396,46 +1493,59 @@ public final class TypeProtos {
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.common.types.TypeProtos.MajorType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.common.types.TypeProtos.MajorType prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1443,14 +1553,16 @@ public final class TypeProtos {
* Protobuf type {@code common.MajorType}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:common.MajorType)
+ org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.common.types.TypeProtos.internal_static_common_MajorType_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.common.types.TypeProtos.internal_static_common_MajorType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1463,23 +1575,21 @@ public final class TypeProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ minorType_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
- mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL;
+ mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
width_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1494,19 +1604,18 @@ public final class TypeProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.common.types.TypeProtos.internal_static_common_MajorType_descriptor;
}
+ @java.lang.Override
public org.apache.drill.common.types.TypeProtos.MajorType getDefaultInstanceForType() {
return org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.common.types.TypeProtos.MajorType build() {
org.apache.drill.common.types.TypeProtos.MajorType result = buildPartial();
if (!result.isInitialized()) {
@@ -1515,6 +1624,7 @@ public final class TypeProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.common.types.TypeProtos.MajorType buildPartial() {
org.apache.drill.common.types.TypeProtos.MajorType result = new org.apache.drill.common.types.TypeProtos.MajorType(this);
int from_bitField0_ = bitField0_;
@@ -1553,6 +1663,39 @@ public final class TypeProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.common.types.TypeProtos.MajorType) {
return mergeFrom((org.apache.drill.common.types.TypeProtos.MajorType)other);
@@ -1592,14 +1735,17 @@ public final class TypeProtos {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1609,7 +1755,7 @@ public final class TypeProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.common.types.TypeProtos.MajorType) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1619,8 +1765,7 @@ public final class TypeProtos {
}
private int bitField0_;
- // optional .common.MinorType minor_type = 1;
- private org.apache.drill.common.types.TypeProtos.MinorType minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ private int minorType_ = 0;
/**
* <code>optional .common.MinorType minor_type = 1;</code>
*/
@@ -1631,7 +1776,9 @@ public final class TypeProtos {
* <code>optional .common.MinorType minor_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getMinorType() {
- return minorType_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(minorType_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
/**
* <code>optional .common.MinorType minor_type = 1;</code>
@@ -1641,7 +1788,7 @@ public final class TypeProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- minorType_ = value;
+ minorType_ = value.getNumber();
onChanged();
return this;
}
@@ -1650,13 +1797,12 @@ public final class TypeProtos {
*/
public Builder clearMinorType() {
bitField0_ = (bitField0_ & ~0x00000001);
- minorType_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ minorType_ = 0;
onChanged();
return this;
}
- // optional .common.DataMode mode = 2;
- private org.apache.drill.common.types.TypeProtos.DataMode mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL;
+ private int mode_ = 0;
/**
* <code>optional .common.DataMode mode = 2;</code>
*/
@@ -1667,7 +1813,9 @@ public final class TypeProtos {
* <code>optional .common.DataMode mode = 2;</code>
*/
public org.apache.drill.common.types.TypeProtos.DataMode getMode() {
- return mode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.DataMode result = org.apache.drill.common.types.TypeProtos.DataMode.valueOf(mode_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL : result;
}
/**
* <code>optional .common.DataMode mode = 2;</code>
@@ -1677,7 +1825,7 @@ public final class TypeProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- mode_ = value;
+ mode_ = value.getNumber();
onChanged();
return this;
}
@@ -1686,12 +1834,11 @@ public final class TypeProtos {
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000002);
- mode_ = org.apache.drill.common.types.TypeProtos.DataMode.OPTIONAL;
+ mode_ = 0;
onChanged();
return this;
}
- // optional int32 width = 3;
private int width_ ;
/**
* <code>optional int32 width = 3;</code>
@@ -1724,34 +1871,33 @@ public final class TypeProtos {
return this;
}
- // optional int32 precision = 4;
private int precision_ ;
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public int getPrecision() {
return precision_;
}
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public Builder setPrecision(int value) {
bitField0_ |= 0x00000008;
@@ -1760,11 +1906,11 @@ public final class TypeProtos {
return this;
}
/**
- * <code>optional int32 precision = 4;</code>
- *
* <pre>
* used for decimal types or as optional length for fixed size value
* </pre>
+ *
+ * <code>optional int32 precision = 4;</code>
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -1773,34 +1919,33 @@ public final class TypeProtos {
return this;
}
- // optional int32 scale = 5;
private int scale_ ;
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public int getScale() {
return scale_;
}
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public Builder setScale(int value) {
bitField0_ |= 0x00000010;
@@ -1809,11 +1954,11 @@ public final class TypeProtos {
return this;
}
/**
- * <code>optional int32 scale = 5;</code>
- *
* <pre>
* used for decimal types
* </pre>
+ *
+ * <code>optional int32 scale = 5;</code>
*/
public Builder clearScale() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -1822,34 +1967,33 @@ public final class TypeProtos {
return this;
}
- // optional int32 timeZone = 6;
private int timeZone_ ;
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public int getTimeZone() {
return timeZone_;
}
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public Builder setTimeZone(int value) {
bitField0_ |= 0x00000020;
@@ -1858,11 +2002,11 @@ public final class TypeProtos {
return this;
}
/**
- * <code>optional int32 timeZone = 6;</code>
- *
* <pre>
* used by TimeStamp type
* </pre>
+ *
+ * <code>optional int32 timeZone = 6;</code>
*/
public Builder clearTimeZone() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -1871,51 +2015,51 @@ public final class TypeProtos {
return this;
}
- // repeated .common.MinorType sub_type = 7;
- private java.util.List<org.apache.drill.common.types.TypeProtos.MinorType> subType_ =
+ private java.util.List<java.lang.Integer> subType_ =
java.util.Collections.emptyList();
private void ensureSubTypeIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- subType_ = new java.util.ArrayList<org.apache.drill.common.types.TypeProtos.MinorType>(subType_);
+ subType_ = new java.util.ArrayList<java.lang.Integer>(subType_);
bitField0_ |= 0x00000040;
}
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public java.util.List<org.apache.drill.common.types.TypeProtos.MinorType> getSubTypeList() {
- return java.util.Collections.unmodifiableList(subType_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.common.types.TypeProtos.MinorType>(subType_, subType_converter_);
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public int getSubTypeCount() {
return subType_.size();
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getSubType(int index) {
- return subType_.get(index);
+ return subType_converter_.convert(subType_.get(index));
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public Builder setSubType(
int index, org.apache.drill.common.types.TypeProtos.MinorType value) {
@@ -1923,46 +2067,48 @@ public final class TypeProtos {
throw new NullPointerException();
}
ensureSubTypeIsMutable();
- subType_.set(index, value);
+ subType_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public Builder addSubType(org.apache.drill.common.types.TypeProtos.MinorType value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubTypeIsMutable();
- subType_.add(value);
+ subType_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public Builder addAllSubType(
java.lang.Iterable<? extends org.apache.drill.common.types.TypeProtos.MinorType> values) {
ensureSubTypeIsMutable();
- super.addAll(values, subType_);
+ for (org.apache.drill.common.types.TypeProtos.MinorType value : values) {
+ subType_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .common.MinorType sub_type = 7;</code>
- *
* <pre>
* used by Union type
* </pre>
+ *
+ * <code>repeated .common.MinorType sub_type = 7;</code>
*/
public Builder clearSubType() {
subType_ = java.util.Collections.emptyList();
@@ -1970,29 +2116,70 @@ public final class TypeProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:common.MajorType)
}
+ // @@protoc_insertion_point(class_scope:common.MajorType)
+ private static final org.apache.drill.common.types.TypeProtos.MajorType DEFAULT_INSTANCE;
static {
- defaultInstance = new MajorType(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.common.types.TypeProtos.MajorType();
+ }
+
+ public static org.apache.drill.common.types.TypeProtos.MajorType getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<MajorType>
+ PARSER = new com.google.protobuf.AbstractParser<MajorType>() {
+ @java.lang.Override
+ public MajorType parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MajorType(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<MajorType> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<MajorType> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.common.types.TypeProtos.MajorType getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:common.MajorType)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_common_MajorType_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_common_MajorType_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -2005,7 +2192,7 @@ public final class TypeProtos {
"P\020\001\022\013\n\007TINYINT\020\003\022\014\n\010SMALLINT\020\004\022\007\n\003INT\020\005\022" +
"\n\n\006BIGINT\020\006\022\014\n\010DECIMAL9\020\007\022\r\n\tDECIMAL18\020\010" +
"\022\023\n\017DECIMAL28SPARSE\020\t\022\023\n\017DECIMAL38SPARSE" +
- "\020\n\022\t\n\005MONEY\020\013\022\010\n\004DATE\020\014\022\010\n\004TIME\020\r\022\n\n\006TIM",
+ "\020\n\022\t\n\005MONEY\020\013\022\010\n\004DATE\020\014\022\010\n\004TIME\020\r\022\n\n\006TIM" +
"ETZ\020\016\022\017\n\013TIMESTAMPTZ\020\017\022\r\n\tTIMESTAMP\020\020\022\014\n" +
"\010INTERVAL\020\021\022\n\n\006FLOAT4\020\022\022\n\n\006FLOAT8\020\023\022\007\n\003B" +
"IT\020\024\022\r\n\tFIXEDCHAR\020\025\022\017\n\013FIXED16CHAR\020\026\022\017\n\013" +
@@ -2015,28 +2202,28 @@ public final class TypeProtos {
"\022\022\n\016DECIMAL38DENSE\020\"\022\010\n\004NULL\020%\022\020\n\014INTERV" +
"ALYEAR\020&\022\017\n\013INTERVALDAY\020\'\022\010\n\004LIST\020(\022\022\n\016G" +
"ENERIC_OBJECT\020)\022\t\n\005UNION\020*\022\016\n\nVARDECIMAL" +
- "\020+*4\n\010DataMode\022\014\n\010OPTIONAL\020\000\022\014\n\010REQUIRED",
+ "\020+*4\n\010DataMode\022\014\n\010OPTIONAL\020\000\022\014\n\010REQUIRED" +
"\020\001\022\014\n\010REPEATED\020\002B-\n\035org.apache.drill.com" +
"mon.typesB\nTypeProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_common_MajorType_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_common_MajorType_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_common_MajorType_descriptor,
- new java.lang.String[] { "MinorType", "Mode", "Width", "Precision", "Scale", "TimeZone", "SubType", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
+ internal_static_common_MajorType_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_common_MajorType_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_common_MajorType_descriptor,
+ new java.lang.String[] { "MinorType", "Mode", "Width", "Precision", "Scale", "TimeZone", "SubType", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/BitControl.java b/protocol/src/main/java/org/apache/drill/exec/proto/BitControl.java
index e8096921c..3bf0c0ad4 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/BitControl.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/BitControl.java
@@ -23,117 +23,123 @@ package org.apache.drill.exec.proto;
public final class BitControl {
private BitControl() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
- * Protobuf enum {@code exec.bit.control.RpcType}
- *
* <pre>
*&#47;/// BitControl RPC ///////
* </pre>
+ *
+ * Protobuf enum {@code exec.bit.control.RpcType}
*/
public enum RpcType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>HANDSHAKE = 0;</code>
*/
- HANDSHAKE(0, 0),
+ HANDSHAKE(0),
/**
* <code>ACK = 1;</code>
*/
- ACK(1, 1),
+ ACK(1),
/**
* <code>GOODBYE = 2;</code>
*/
- GOODBYE(2, 2),
+ GOODBYE(2),
/**
- * <code>REQ_INITIALIZE_FRAGMENTS = 3;</code>
- *
* <pre>
* bit requests
* </pre>
+ *
+ * <code>REQ_INITIALIZE_FRAGMENTS = 3;</code>
*/
- REQ_INITIALIZE_FRAGMENTS(3, 3),
+ REQ_INITIALIZE_FRAGMENTS(3),
/**
- * <code>REQ_CANCEL_FRAGMENT = 6;</code>
- *
* <pre>
* send a cancellation message for a fragment, returns Ack
* </pre>
+ *
+ * <code>REQ_CANCEL_FRAGMENT = 6;</code>
*/
- REQ_CANCEL_FRAGMENT(4, 6),
+ REQ_CANCEL_FRAGMENT(6),
/**
* <code>REQ_RECEIVER_FINISHED = 7;</code>
*/
- REQ_RECEIVER_FINISHED(5, 7),
+ REQ_RECEIVER_FINISHED(7),
/**
- * <code>REQ_FRAGMENT_STATUS = 8;</code>
- *
* <pre>
* send a fragment status, return Ack
* </pre>
+ *
+ * <code>REQ_FRAGMENT_STATUS = 8;</code>
*/
- REQ_FRAGMENT_STATUS(6, 8),
+ REQ_FRAGMENT_STATUS(8),
/**
- * <code>REQ_BIT_STATUS = 9;</code>
- *
* <pre>
* get bit status.
* </pre>
+ *
+ * <code>REQ_BIT_STATUS = 9;</code>
*/
- REQ_BIT_STATUS(7, 9),
+ REQ_BIT_STATUS(9),
/**
* <code>REQ_QUERY_STATUS = 10;</code>
*/
- REQ_QUERY_STATUS(8, 10),
+ REQ_QUERY_STATUS(10),
/**
* <code>REQ_QUERY_CANCEL = 15;</code>
*/
- REQ_QUERY_CANCEL(9, 15),
+ REQ_QUERY_CANCEL(15),
/**
- * <code>REQ_UNPAUSE_FRAGMENT = 16;</code>
- *
* <pre>
* send a resume message for a fragment, returns Ack
* </pre>
+ *
+ * <code>REQ_UNPAUSE_FRAGMENT = 16;</code>
*/
- REQ_UNPAUSE_FRAGMENT(10, 16),
+ REQ_UNPAUSE_FRAGMENT(16),
/**
* <code>REQ_CUSTOM = 17;</code>
*/
- REQ_CUSTOM(11, 17),
+ REQ_CUSTOM(17),
/**
- * <code>RESP_FRAGMENT_HANDLE = 11;</code>
- *
* <pre>
* bit responses
* </pre>
+ *
+ * <code>RESP_FRAGMENT_HANDLE = 11;</code>
*/
- RESP_FRAGMENT_HANDLE(12, 11),
+ RESP_FRAGMENT_HANDLE(11),
/**
* <code>RESP_FRAGMENT_STATUS = 12;</code>
*/
- RESP_FRAGMENT_STATUS(13, 12),
+ RESP_FRAGMENT_STATUS(12),
/**
* <code>RESP_BIT_STATUS = 13;</code>
*/
- RESP_BIT_STATUS(14, 13),
+ RESP_BIT_STATUS(13),
/**
* <code>RESP_QUERY_STATUS = 14;</code>
*/
- RESP_QUERY_STATUS(15, 14),
+ RESP_QUERY_STATUS(14),
/**
* <code>RESP_CUSTOM = 18;</code>
*/
- RESP_CUSTOM(16, 18),
+ RESP_CUSTOM(18),
/**
- * <code>SASL_MESSAGE = 19;</code>
- *
* <pre>
* both bit request and response
* </pre>
+ *
+ * <code>SASL_MESSAGE = 19;</code>
*/
- SASL_MESSAGE(17, 19),
+ SASL_MESSAGE(19),
;
/**
@@ -149,19 +155,19 @@ public final class BitControl {
*/
public static final int GOODBYE_VALUE = 2;
/**
- * <code>REQ_INITIALIZE_FRAGMENTS = 3;</code>
- *
* <pre>
* bit requests
* </pre>
+ *
+ * <code>REQ_INITIALIZE_FRAGMENTS = 3;</code>
*/
public static final int REQ_INITIALIZE_FRAGMENTS_VALUE = 3;
/**
- * <code>REQ_CANCEL_FRAGMENT = 6;</code>
- *
* <pre>
* send a cancellation message for a fragment, returns Ack
* </pre>
+ *
+ * <code>REQ_CANCEL_FRAGMENT = 6;</code>
*/
public static final int REQ_CANCEL_FRAGMENT_VALUE = 6;
/**
@@ -169,19 +175,19 @@ public final class BitControl {
*/
public static final int REQ_RECEIVER_FINISHED_VALUE = 7;
/**
- * <code>REQ_FRAGMENT_STATUS = 8;</code>
- *
* <pre>
* send a fragment status, return Ack
* </pre>
+ *
+ * <code>REQ_FRAGMENT_STATUS = 8;</code>
*/
public static final int REQ_FRAGMENT_STATUS_VALUE = 8;
/**
- * <code>REQ_BIT_STATUS = 9;</code>
- *
* <pre>
* get bit status.
* </pre>
+ *
+ * <code>REQ_BIT_STATUS = 9;</code>
*/
public static final int REQ_BIT_STATUS_VALUE = 9;
/**
@@ -193,11 +199,11 @@ public final class BitControl {
*/
public static final int REQ_QUERY_CANCEL_VALUE = 15;
/**
- * <code>REQ_UNPAUSE_FRAGMENT = 16;</code>
- *
* <pre>
* send a resume message for a fragment, returns Ack
* </pre>
+ *
+ * <code>REQ_UNPAUSE_FRAGMENT = 16;</code>
*/
public static final int REQ_UNPAUSE_FRAGMENT_VALUE = 16;
/**
@@ -205,11 +211,11 @@ public final class BitControl {
*/
public static final int REQ_CUSTOM_VALUE = 17;
/**
- * <code>RESP_FRAGMENT_HANDLE = 11;</code>
- *
* <pre>
* bit responses
* </pre>
+ *
+ * <code>RESP_FRAGMENT_HANDLE = 11;</code>
*/
public static final int RESP_FRAGMENT_HANDLE_VALUE = 11;
/**
@@ -229,18 +235,28 @@ public final class BitControl {
*/
public static final int RESP_CUSTOM_VALUE = 18;
/**
- * <code>SASL_MESSAGE = 19;</code>
- *
* <pre>
* both bit request and response
* </pre>
+ *
+ * <code>SASL_MESSAGE = 19;</code>
*/
public static final int SASL_MESSAGE_VALUE = 19;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RpcType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RpcType forNumber(int value) {
switch (value) {
case 0: return HANDSHAKE;
case 1: return ACK;
@@ -268,17 +284,17 @@ public final class BitControl {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RpcType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
public RpcType findValueByNumber(int number) {
- return RpcType.valueOf(number);
+ return RpcType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -300,21 +316,19 @@ public final class BitControl {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RpcType(int index, int value) {
- this.index = index;
+ private RpcType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.bit.control.RpcType)
}
- public interface BitControlHandshakeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface BitControlHandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.BitControlHandshake)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 rpc_version = 1;
/**
* <code>optional int32 rpc_version = 1;</code>
*/
@@ -324,7 +338,6 @@ public final class BitControl {
*/
int getRpcVersion();
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
*/
@@ -334,7 +347,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();
- // optional .exec.DrillbitEndpoint endpoint = 3;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
@@ -348,12 +360,11 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder();
- // repeated string authenticationMechanisms = 4;
/**
* <code>repeated string authenticationMechanisms = 4;</code>
*/
java.util.List<java.lang.String>
- getAuthenticationMechanismsList();
+ getAuthenticationMechanismsList();
/**
* <code>repeated string authenticationMechanisms = 4;</code>
*/
@@ -371,36 +382,34 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.BitControlHandshake}
*/
- public static final class BitControlHandshake extends
- com.google.protobuf.GeneratedMessage
- implements BitControlHandshakeOrBuilder {
+ public static final class BitControlHandshake extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.BitControlHandshake)
+ BitControlHandshakeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use BitControlHandshake.newBuilder() to construct.
- private BitControlHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private BitControlHandshake(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private BitControlHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BitControlHandshake defaultInstance;
- public static BitControlHandshake getDefaultInstance() {
- return defaultInstance;
- }
-
- public BitControlHandshake getDefaultInstanceForType() {
- return defaultInstance;
+ private BitControlHandshake() {
+ rpcVersion_ = 0;
+ channel_ = 0;
+ authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private BitControlHandshake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -412,13 +421,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
rpcVersion_ = input.readInt32();
@@ -426,12 +428,13 @@ public final class BitControl {
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.RpcChannel value = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- channel_ = value;
+ channel_ = rawValue;
}
break;
}
@@ -449,11 +452,19 @@ public final class BitControl {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
authenticationMechanisms_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
- authenticationMechanisms_.add(input.readBytes());
+ authenticationMechanisms_.add(bs);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -462,10 +473,10 @@ public final class BitControl {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -476,30 +487,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitControlHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitControlHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.BitControlHandshake.class, org.apache.drill.exec.proto.BitControl.BitControlHandshake.Builder.class);
}
- public static com.google.protobuf.Parser<BitControlHandshake> PARSER =
- new com.google.protobuf.AbstractParser<BitControlHandshake>() {
- public BitControlHandshake parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BitControlHandshake(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BitControlHandshake> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 rpc_version = 1;
public static final int RPC_VERSION_FIELD_NUMBER = 1;
private int rpcVersion_;
/**
@@ -515,9 +511,8 @@ public final class BitControl {
return rpcVersion_;
}
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
public static final int CHANNEL_FIELD_NUMBER = 2;
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_;
+ private int channel_;
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
*/
@@ -528,10 +523,11 @@ public final class BitControl {
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL : result;
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
public static final int ENDPOINT_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_;
/**
@@ -544,22 +540,21 @@ public final class BitControl {
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
- // repeated string authenticationMechanisms = 4;
public static final int AUTHENTICATIONMECHANISMS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList authenticationMechanisms_;
/**
* <code>repeated string authenticationMechanisms = 4;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
return authenticationMechanisms_;
}
@@ -583,42 +578,38 @@ public final class BitControl {
return authenticationMechanisms_.getByteString(index);
}
- private void initFields() {
- rpcVersion_ = 0;
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL;
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, rpcVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, channel_.getNumber());
+ output.writeEnum(2, channel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, endpoint_);
+ output.writeMessage(3, getEndpoint());
}
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- output.writeBytes(4, authenticationMechanisms_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authenticationMechanisms_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -628,34 +619,96 @@ public final class BitControl {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, channel_.getNumber());
+ .computeEnumSize(2, channel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, endpoint_);
+ .computeMessageSize(3, getEndpoint());
}
{
int dataSize = 0;
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i));
+ dataSize += computeStringSizeNoTag(authenticationMechanisms_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthenticationMechanismsList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.BitControlHandshake)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.BitControlHandshake other = (org.apache.drill.exec.proto.BitControl.BitControlHandshake) obj;
+
+ boolean result = true;
+ result = result && (hasRpcVersion() == other.hasRpcVersion());
+ if (hasRpcVersion()) {
+ result = result && (getRpcVersion()
+ == other.getRpcVersion());
+ }
+ result = result && (hasChannel() == other.hasChannel());
+ if (hasChannel()) {
+ result = result && channel_ == other.channel_;
+ }
+ result = result && (hasEndpoint() == other.hasEndpoint());
+ if (hasEndpoint()) {
+ result = result && getEndpoint()
+ .equals(other.getEndpoint());
+ }
+ result = result && getAuthenticationMechanismsList()
+ .equals(other.getAuthenticationMechanismsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRpcVersion()) {
+ hash = (37 * hash) + RPC_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcVersion();
+ }
+ if (hasChannel()) {
+ hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + channel_;
+ }
+ if (hasEndpoint()) {
+ hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpoint().hashCode();
+ }
+ if (getAuthenticationMechanismsCount() > 0) {
+ hash = (37 * hash) + AUTHENTICATIONMECHANISMS_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthenticationMechanismsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -678,46 +731,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitControlHandshake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.BitControlHandshake prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -725,14 +791,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.BitControlHandshake}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.BitControlHandshakeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.BitControlHandshake)
+ org.apache.drill.exec.proto.BitControl.BitControlHandshakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitControlHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitControlHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -745,27 +813,25 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getEndpointFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
rpcVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL;
+ channel_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
} else {
endpointBuilder_.clear();
}
@@ -775,19 +841,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitControlHandshake_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitControlHandshake getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.BitControlHandshake.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitControlHandshake build() {
org.apache.drill.exec.proto.BitControl.BitControlHandshake result = buildPartial();
if (!result.isInitialized()) {
@@ -796,6 +861,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitControlHandshake buildPartial() {
org.apache.drill.exec.proto.BitControl.BitControlHandshake result = new org.apache.drill.exec.proto.BitControl.BitControlHandshake(this);
int from_bitField0_ = bitField0_;
@@ -817,8 +883,7 @@ public final class BitControl {
result.endpoint_ = endpointBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(
- authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.authenticationMechanisms_ = authenticationMechanisms_;
@@ -827,6 +892,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.BitControlHandshake) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.BitControlHandshake)other);
@@ -857,14 +955,17 @@ public final class BitControl {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -874,7 +975,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.BitControlHandshake) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -884,7 +985,6 @@ public final class BitControl {
}
private int bitField0_;
- // optional int32 rpc_version = 1;
private int rpcVersion_ ;
/**
* <code>optional int32 rpc_version = 1;</code>
@@ -917,8 +1017,7 @@ public final class BitControl {
return this;
}
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL;
+ private int channel_ = 0;
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
*/
@@ -929,7 +1028,9 @@ public final class BitControl {
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL : result;
}
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_CONTROL];</code>
@@ -939,7 +1040,7 @@ public final class BitControl {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- channel_ = value;
+ channel_ = value.getNumber();
onChanged();
return this;
}
@@ -948,14 +1049,13 @@ public final class BitControl {
*/
public Builder clearChannel() {
bitField0_ = (bitField0_ & ~0x00000002);
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_CONTROL;
+ channel_ = 0;
onChanged();
return this;
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> endpointBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
@@ -968,7 +1068,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
@@ -1009,6 +1109,7 @@ public final class BitControl {
public Builder mergeEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (endpointBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ endpoint_ != null &&
endpoint_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
endpoint_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
@@ -1027,7 +1128,7 @@ public final class BitControl {
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
onChanged();
} else {
endpointBuilder_.clear();
@@ -1050,19 +1151,20 @@ public final class BitControl {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
- return endpoint_;
+ return endpoint_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
- endpointBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- endpoint_,
+ getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
@@ -1070,7 +1172,6 @@ public final class BitControl {
return endpointBuilder_;
}
- // repeated string authenticationMechanisms = 4;
private com.google.protobuf.LazyStringList authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthenticationMechanismsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
@@ -1081,9 +1182,9 @@ public final class BitControl {
/**
* <code>repeated string authenticationMechanisms = 4;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
- return java.util.Collections.unmodifiableList(authenticationMechanisms_);
+ return authenticationMechanisms_.getUnmodifiableView();
}
/**
* <code>repeated string authenticationMechanisms = 4;</code>
@@ -1136,7 +1237,8 @@ public final class BitControl {
public Builder addAllAuthenticationMechanisms(
java.lang.Iterable<java.lang.String> values) {
ensureAuthenticationMechanismsIsMutable();
- super.addAll(values, authenticationMechanisms_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, authenticationMechanisms_);
onChanged();
return this;
}
@@ -1162,22 +1264,63 @@ public final class BitControl {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.BitControlHandshake)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.BitControlHandshake)
+ private static final org.apache.drill.exec.proto.BitControl.BitControlHandshake DEFAULT_INSTANCE;
static {
- defaultInstance = new BitControlHandshake(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.BitControlHandshake();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.BitControlHandshake getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<BitControlHandshake>
+ PARSER = new com.google.protobuf.AbstractParser<BitControlHandshake>() {
+ @java.lang.Override
+ public BitControlHandshake parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BitControlHandshake(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<BitControlHandshake> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BitControlHandshake> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.BitControlHandshake getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.BitControlHandshake)
}
- public interface BitStatusOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface BitStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.BitStatus)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
/**
* <code>repeated .exec.bit.control.FragmentStatus fragment_status = 1;</code>
*/
@@ -1205,36 +1348,32 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.BitStatus}
*/
- public static final class BitStatus extends
- com.google.protobuf.GeneratedMessage
- implements BitStatusOrBuilder {
+ public static final class BitStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.BitStatus)
+ BitStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use BitStatus.newBuilder() to construct.
- private BitStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private BitStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private BitStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BitStatus defaultInstance;
- public static BitStatus getDefaultInstance() {
- return defaultInstance;
- }
-
- public BitStatus getDefaultInstanceForType() {
- return defaultInstance;
+ private BitStatus() {
+ fragmentStatus_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private BitStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1246,19 +1385,20 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fragmentStatus_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.FragmentStatus>();
mutable_bitField0_ |= 0x00000001;
}
- fragmentStatus_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.FragmentStatus.PARSER, extensionRegistry));
+ fragmentStatus_.add(
+ input.readMessage(org.apache.drill.exec.proto.BitControl.FragmentStatus.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -1267,7 +1407,7 @@ public final class BitControl {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fragmentStatus_ = java.util.Collections.unmodifiableList(fragmentStatus_);
@@ -1281,29 +1421,14 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.BitStatus.class, org.apache.drill.exec.proto.BitControl.BitStatus.Builder.class);
}
- public static com.google.protobuf.Parser<BitStatus> PARSER =
- new com.google.protobuf.AbstractParser<BitStatus>() {
- public BitStatus parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BitStatus(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BitStatus> getParserForType() {
- return PARSER;
- }
-
- // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
public static final int FRAGMENT_STATUS_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.BitControl.FragmentStatus> fragmentStatus_;
/**
@@ -1339,30 +1464,29 @@ public final class BitControl {
return fragmentStatus_.get(index);
}
- private void initFields() {
- fragmentStatus_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < fragmentStatus_.size(); i++) {
output.writeMessage(1, fragmentStatus_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -1370,19 +1494,56 @@ public final class BitControl {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fragmentStatus_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.BitStatus)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.BitStatus other = (org.apache.drill.exec.proto.BitControl.BitStatus) obj;
+
+ boolean result = true;
+ result = result && getFragmentStatusList()
+ .equals(other.getFragmentStatusList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getFragmentStatusCount() > 0) {
+ hash = (37 * hash) + FRAGMENT_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentStatusList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -1405,46 +1566,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.BitStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.BitStatus prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1452,14 +1626,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.BitStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.BitStatusOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.BitStatus)
+ org.apache.drill.exec.proto.BitControl.BitStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1472,19 +1648,17 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getFragmentStatusFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (fragmentStatusBuilder_ == null) {
@@ -1496,19 +1670,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_BitStatus_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitStatus getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.BitStatus.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitStatus build() {
org.apache.drill.exec.proto.BitControl.BitStatus result = buildPartial();
if (!result.isInitialized()) {
@@ -1517,6 +1690,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.BitStatus buildPartial() {
org.apache.drill.exec.proto.BitControl.BitStatus result = new org.apache.drill.exec.proto.BitControl.BitStatus(this);
int from_bitField0_ = bitField0_;
@@ -1533,6 +1707,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.BitStatus) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.BitStatus)other);
@@ -1563,21 +1770,24 @@ public final class BitControl {
fragmentStatus_ = other.fragmentStatus_;
bitField0_ = (bitField0_ & ~0x00000001);
fragmentStatusBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentStatusFieldBuilder() : null;
} else {
fragmentStatusBuilder_.addAllMessages(other.fragmentStatus_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1587,7 +1797,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.BitStatus) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1597,7 +1807,6 @@ public final class BitControl {
}
private int bitField0_;
- // repeated .exec.bit.control.FragmentStatus fragment_status = 1;
private java.util.List<org.apache.drill.exec.proto.BitControl.FragmentStatus> fragmentStatus_ =
java.util.Collections.emptyList();
private void ensureFragmentStatusIsMutable() {
@@ -1607,7 +1816,7 @@ public final class BitControl {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.FragmentStatus, org.apache.drill.exec.proto.BitControl.FragmentStatus.Builder, org.apache.drill.exec.proto.BitControl.FragmentStatusOrBuilder> fragmentStatusBuilder_;
/**
@@ -1739,7 +1948,8 @@ public final class BitControl {
java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.FragmentStatus> values) {
if (fragmentStatusBuilder_ == null) {
ensureFragmentStatusIsMutable();
- super.addAll(values, fragmentStatus_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, fragmentStatus_);
onChanged();
} else {
fragmentStatusBuilder_.addAllMessages(values);
@@ -1822,11 +2032,11 @@ public final class BitControl {
getFragmentStatusBuilderList() {
return getFragmentStatusFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.FragmentStatus, org.apache.drill.exec.proto.BitControl.FragmentStatus.Builder, org.apache.drill.exec.proto.BitControl.FragmentStatusOrBuilder>
getFragmentStatusFieldBuilder() {
if (fragmentStatusBuilder_ == null) {
- fragmentStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fragmentStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.FragmentStatus, org.apache.drill.exec.proto.BitControl.FragmentStatus.Builder, org.apache.drill.exec.proto.BitControl.FragmentStatusOrBuilder>(
fragmentStatus_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -1836,22 +2046,63 @@ public final class BitControl {
}
return fragmentStatusBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.BitStatus)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.BitStatus)
+ private static final org.apache.drill.exec.proto.BitControl.BitStatus DEFAULT_INSTANCE;
static {
- defaultInstance = new BitStatus(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.BitStatus();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.BitStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<BitStatus>
+ PARSER = new com.google.protobuf.AbstractParser<BitStatus>() {
+ @java.lang.Override
+ public BitStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BitStatus(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<BitStatus> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BitStatus> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.BitStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.BitStatus)
}
- public interface FragmentStatusOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface FragmentStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.FragmentStatus)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.MinorFragmentProfile profile = 1;
/**
* <code>optional .exec.shared.MinorFragmentProfile profile = 1;</code>
*/
@@ -1865,7 +2116,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder getProfileOrBuilder();
- // optional .exec.bit.FragmentHandle handle = 2;
/**
* <code>optional .exec.bit.FragmentHandle handle = 2;</code>
*/
@@ -1882,36 +2132,31 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.FragmentStatus}
*/
- public static final class FragmentStatus extends
- com.google.protobuf.GeneratedMessage
- implements FragmentStatusOrBuilder {
+ public static final class FragmentStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.FragmentStatus)
+ FragmentStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use FragmentStatus.newBuilder() to construct.
- private FragmentStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private FragmentStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private FragmentStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final FragmentStatus defaultInstance;
- public static FragmentStatus getDefaultInstance() {
- return defaultInstance;
- }
-
- public FragmentStatus getDefaultInstanceForType() {
- return defaultInstance;
+ private FragmentStatus() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private FragmentStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1923,13 +2168,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -1956,13 +2194,20 @@ public final class BitControl {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1973,30 +2218,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FragmentStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FragmentStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.FragmentStatus.class, org.apache.drill.exec.proto.BitControl.FragmentStatus.Builder.class);
}
- public static com.google.protobuf.Parser<FragmentStatus> PARSER =
- new com.google.protobuf.AbstractParser<FragmentStatus>() {
- public FragmentStatus parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FragmentStatus(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<FragmentStatus> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.MinorFragmentProfile profile = 1;
public static final int PROFILE_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile profile_;
/**
@@ -2009,16 +2239,15 @@ public final class BitControl {
* <code>optional .exec.shared.MinorFragmentProfile profile = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile getProfile() {
- return profile_;
+ return profile_ == null ? org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance() : profile_;
}
/**
* <code>optional .exec.shared.MinorFragmentProfile profile = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder getProfileOrBuilder() {
- return profile_;
+ return profile_ == null ? org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance() : profile_;
}
- // optional .exec.bit.FragmentHandle handle = 2;
public static final int HANDLE_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_;
/**
@@ -2031,67 +2260,114 @@ public final class BitControl {
* <code>optional .exec.bit.FragmentHandle handle = 2;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getHandle() {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
/**
* <code>optional .exec.bit.FragmentHandle handle = 2;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getHandleOrBuilder() {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
- private void initFields() {
- profile_ = org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance();
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, profile_);
+ output.writeMessage(1, getProfile());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, handle_);
+ output.writeMessage(2, getHandle());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, profile_);
+ .computeMessageSize(1, getProfile());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, handle_);
+ .computeMessageSize(2, getHandle());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.FragmentStatus)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.FragmentStatus other = (org.apache.drill.exec.proto.BitControl.FragmentStatus) obj;
+
+ boolean result = true;
+ result = result && (hasProfile() == other.hasProfile());
+ if (hasProfile()) {
+ result = result && getProfile()
+ .equals(other.getProfile());
+ }
+ result = result && (hasHandle() == other.hasHandle());
+ if (hasHandle()) {
+ result = result && getHandle()
+ .equals(other.getHandle());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasProfile()) {
+ hash = (37 * hash) + PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getProfile().hashCode();
+ }
+ if (hasHandle()) {
+ hash = (37 * hash) + HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getHandle().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -2114,46 +2390,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FragmentStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.FragmentStatus prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2161,14 +2450,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.FragmentStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.FragmentStatusOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.FragmentStatus)
+ org.apache.drill.exec.proto.BitControl.FragmentStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FragmentStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FragmentStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2181,30 +2472,28 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getProfileFieldBuilder();
getHandleFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (profileBuilder_ == null) {
- profile_ = org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance();
+ profile_ = null;
} else {
profileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (handleBuilder_ == null) {
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ handle_ = null;
} else {
handleBuilder_.clear();
}
@@ -2212,19 +2501,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FragmentStatus_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FragmentStatus getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.FragmentStatus.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FragmentStatus build() {
org.apache.drill.exec.proto.BitControl.FragmentStatus result = buildPartial();
if (!result.isInitialized()) {
@@ -2233,6 +2521,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FragmentStatus buildPartial() {
org.apache.drill.exec.proto.BitControl.FragmentStatus result = new org.apache.drill.exec.proto.BitControl.FragmentStatus(this);
int from_bitField0_ = bitField0_;
@@ -2258,6 +2547,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.FragmentStatus) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.FragmentStatus)other);
@@ -2275,14 +2597,17 @@ public final class BitControl {
if (other.hasHandle()) {
mergeHandle(other.getHandle());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2292,7 +2617,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.FragmentStatus) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -2302,9 +2627,8 @@ public final class BitControl {
}
private int bitField0_;
- // optional .exec.shared.MinorFragmentProfile profile = 1;
- private org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile profile_ = org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile profile_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder> profileBuilder_;
/**
* <code>optional .exec.shared.MinorFragmentProfile profile = 1;</code>
@@ -2317,7 +2641,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile getProfile() {
if (profileBuilder_ == null) {
- return profile_;
+ return profile_ == null ? org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance() : profile_;
} else {
return profileBuilder_.getMessage();
}
@@ -2358,6 +2682,7 @@ public final class BitControl {
public Builder mergeProfile(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile value) {
if (profileBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ profile_ != null &&
profile_ != org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance()) {
profile_ =
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
@@ -2376,7 +2701,7 @@ public final class BitControl {
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
- profile_ = org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance();
+ profile_ = null;
onChanged();
} else {
profileBuilder_.clear();
@@ -2399,19 +2724,20 @@ public final class BitControl {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
- return profile_;
+ return profile_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance() : profile_;
}
}
/**
* <code>optional .exec.shared.MinorFragmentProfile profile = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
- profileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder>(
- profile_,
+ getProfile(),
getParentForChildren(),
isClean());
profile_ = null;
@@ -2419,9 +2745,8 @@ public final class BitControl {
return profileBuilder_;
}
- // optional .exec.bit.FragmentHandle handle = 2;
- private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder> handleBuilder_;
/**
* <code>optional .exec.bit.FragmentHandle handle = 2;</code>
@@ -2434,7 +2759,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getHandle() {
if (handleBuilder_ == null) {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
} else {
return handleBuilder_.getMessage();
}
@@ -2475,6 +2800,7 @@ public final class BitControl {
public Builder mergeHandle(org.apache.drill.exec.proto.ExecProtos.FragmentHandle value) {
if (handleBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ handle_ != null &&
handle_ != org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance()) {
handle_ =
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.newBuilder(handle_).mergeFrom(value).buildPartial();
@@ -2493,7 +2819,7 @@ public final class BitControl {
*/
public Builder clearHandle() {
if (handleBuilder_ == null) {
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ handle_ = null;
onChanged();
} else {
handleBuilder_.clear();
@@ -2516,41 +2842,83 @@ public final class BitControl {
if (handleBuilder_ != null) {
return handleBuilder_.getMessageOrBuilder();
} else {
- return handle_;
+ return handle_ == null ?
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
}
/**
* <code>optional .exec.bit.FragmentHandle handle = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>
getHandleFieldBuilder() {
if (handleBuilder_ == null) {
- handleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ handleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>(
- handle_,
+ getHandle(),
getParentForChildren(),
isClean());
handle_ = null;
}
return handleBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.FragmentStatus)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.FragmentStatus)
+ private static final org.apache.drill.exec.proto.BitControl.FragmentStatus DEFAULT_INSTANCE;
static {
- defaultInstance = new FragmentStatus(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.FragmentStatus();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.FragmentStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<FragmentStatus>
+ PARSER = new com.google.protobuf.AbstractParser<FragmentStatus>() {
+ @java.lang.Override
+ public FragmentStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new FragmentStatus(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<FragmentStatus> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<FragmentStatus> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.FragmentStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.FragmentStatus)
}
- public interface InitializeFragmentsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface InitializeFragmentsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.InitializeFragments)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.bit.control.PlanFragment fragment = 1;
/**
* <code>repeated .exec.bit.control.PlanFragment fragment = 1;</code>
*/
@@ -2578,36 +2946,32 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.InitializeFragments}
*/
- public static final class InitializeFragments extends
- com.google.protobuf.GeneratedMessage
- implements InitializeFragmentsOrBuilder {
+ public static final class InitializeFragments extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.InitializeFragments)
+ InitializeFragmentsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use InitializeFragments.newBuilder() to construct.
- private InitializeFragments(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private InitializeFragments(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private InitializeFragments(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final InitializeFragments defaultInstance;
- public static InitializeFragments getDefaultInstance() {
- return defaultInstance;
}
-
- public InitializeFragments getDefaultInstanceForType() {
- return defaultInstance;
+ private InitializeFragments() {
+ fragment_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private InitializeFragments(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2619,19 +2983,20 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fragment_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>();
mutable_bitField0_ |= 0x00000001;
}
- fragment_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
+ fragment_.add(
+ input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -2640,7 +3005,7 @@ public final class BitControl {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fragment_ = java.util.Collections.unmodifiableList(fragment_);
@@ -2654,29 +3019,14 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_InitializeFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_InitializeFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.InitializeFragments.class, org.apache.drill.exec.proto.BitControl.InitializeFragments.Builder.class);
}
- public static com.google.protobuf.Parser<InitializeFragments> PARSER =
- new com.google.protobuf.AbstractParser<InitializeFragments>() {
- public InitializeFragments parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new InitializeFragments(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<InitializeFragments> getParserForType() {
- return PARSER;
- }
-
- // repeated .exec.bit.control.PlanFragment fragment = 1;
public static final int FRAGMENT_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragment_;
/**
@@ -2712,30 +3062,29 @@ public final class BitControl {
return fragment_.get(index);
}
- private void initFields() {
- fragment_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < fragment_.size(); i++) {
output.writeMessage(1, fragment_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -2743,19 +3092,56 @@ public final class BitControl {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fragment_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.InitializeFragments)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.InitializeFragments other = (org.apache.drill.exec.proto.BitControl.InitializeFragments) obj;
+
+ boolean result = true;
+ result = result && getFragmentList()
+ .equals(other.getFragmentList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getFragmentCount() > 0) {
+ hash = (37 * hash) + FRAGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -2778,46 +3164,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.InitializeFragments parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.InitializeFragments prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2825,14 +3224,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.InitializeFragments}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.InitializeFragmentsOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.InitializeFragments)
+ org.apache.drill.exec.proto.BitControl.InitializeFragmentsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_InitializeFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_InitializeFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2845,19 +3246,17 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getFragmentFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (fragmentBuilder_ == null) {
@@ -2869,19 +3268,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_InitializeFragments_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.InitializeFragments getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.InitializeFragments.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.InitializeFragments build() {
org.apache.drill.exec.proto.BitControl.InitializeFragments result = buildPartial();
if (!result.isInitialized()) {
@@ -2890,6 +3288,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.InitializeFragments buildPartial() {
org.apache.drill.exec.proto.BitControl.InitializeFragments result = new org.apache.drill.exec.proto.BitControl.InitializeFragments(this);
int from_bitField0_ = bitField0_;
@@ -2906,6 +3305,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.InitializeFragments) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.InitializeFragments)other);
@@ -2936,21 +3368,24 @@ public final class BitControl {
fragment_ = other.fragment_;
bitField0_ = (bitField0_ & ~0x00000001);
fragmentBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentFieldBuilder() : null;
} else {
fragmentBuilder_.addAllMessages(other.fragment_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2960,7 +3395,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.InitializeFragments) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -2970,7 +3405,6 @@ public final class BitControl {
}
private int bitField0_;
- // repeated .exec.bit.control.PlanFragment fragment = 1;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragment_ =
java.util.Collections.emptyList();
private void ensureFragmentIsMutable() {
@@ -2980,7 +3414,7 @@ public final class BitControl {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> fragmentBuilder_;
/**
@@ -3112,7 +3546,8 @@ public final class BitControl {
java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.PlanFragment> values) {
if (fragmentBuilder_ == null) {
ensureFragmentIsMutable();
- super.addAll(values, fragment_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, fragment_);
onChanged();
} else {
fragmentBuilder_.addAllMessages(values);
@@ -3195,11 +3630,11 @@ public final class BitControl {
getFragmentBuilderList() {
return getFragmentFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentFieldBuilder() {
if (fragmentBuilder_ == null) {
- fragmentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fragmentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>(
fragment_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -3209,22 +3644,63 @@ public final class BitControl {
}
return fragmentBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.InitializeFragments)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.InitializeFragments)
+ private static final org.apache.drill.exec.proto.BitControl.InitializeFragments DEFAULT_INSTANCE;
static {
- defaultInstance = new InitializeFragments(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.InitializeFragments();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.InitializeFragments getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<InitializeFragments>
+ PARSER = new com.google.protobuf.AbstractParser<InitializeFragments>() {
+ @java.lang.Override
+ public InitializeFragments parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new InitializeFragments(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<InitializeFragments> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<InitializeFragments> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.InitializeFragments getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.InitializeFragments)
}
- public interface CustomMessageOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CustomMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.CustomMessage)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 type = 1;
/**
* <code>optional int32 type = 1;</code>
*/
@@ -3234,7 +3710,6 @@ public final class BitControl {
*/
int getType();
- // optional bytes message = 2;
/**
* <code>optional bytes message = 2;</code>
*/
@@ -3247,36 +3722,33 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.CustomMessage}
*/
- public static final class CustomMessage extends
- com.google.protobuf.GeneratedMessage
- implements CustomMessageOrBuilder {
+ public static final class CustomMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.CustomMessage)
+ CustomMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CustomMessage.newBuilder() to construct.
- private CustomMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CustomMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CustomMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CustomMessage defaultInstance;
- public static CustomMessage getDefaultInstance() {
- return defaultInstance;
}
-
- public CustomMessage getDefaultInstanceForType() {
- return defaultInstance;
+ private CustomMessage() {
+ type_ = 0;
+ message_ = com.google.protobuf.ByteString.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CustomMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -3288,13 +3760,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
type_ = input.readInt32();
@@ -3305,13 +3770,20 @@ public final class BitControl {
message_ = input.readBytes();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -3322,30 +3794,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_CustomMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_CustomMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.CustomMessage.class, org.apache.drill.exec.proto.BitControl.CustomMessage.Builder.class);
}
- public static com.google.protobuf.Parser<CustomMessage> PARSER =
- new com.google.protobuf.AbstractParser<CustomMessage>() {
- public CustomMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CustomMessage(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CustomMessage> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
@@ -3361,7 +3818,6 @@ public final class BitControl {
return type_;
}
- // optional bytes message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString message_;
/**
@@ -3377,34 +3833,32 @@ public final class BitControl {
return message_;
}
- private void initFields() {
- type_ = 0;
- message_ = com.google.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, message_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -3416,19 +3870,68 @@ public final class BitControl {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, message_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.CustomMessage)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.CustomMessage other = (org.apache.drill.exec.proto.BitControl.CustomMessage) obj;
+
+ boolean result = true;
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && (getType()
+ == other.getType());
+ }
+ result = result && (hasMessage() == other.hasMessage());
+ if (hasMessage()) {
+ result = result && getMessage()
+ .equals(other.getMessage());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType();
+ }
+ if (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -3451,46 +3954,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.CustomMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.CustomMessage prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3498,14 +4014,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.CustomMessage}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.CustomMessageOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.CustomMessage)
+ org.apache.drill.exec.proto.BitControl.CustomMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_CustomMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_CustomMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3518,18 +4036,16 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
@@ -3539,19 +4055,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_CustomMessage_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.CustomMessage getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.CustomMessage.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.CustomMessage build() {
org.apache.drill.exec.proto.BitControl.CustomMessage result = buildPartial();
if (!result.isInitialized()) {
@@ -3560,6 +4075,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.CustomMessage buildPartial() {
org.apache.drill.exec.proto.BitControl.CustomMessage result = new org.apache.drill.exec.proto.BitControl.CustomMessage(this);
int from_bitField0_ = bitField0_;
@@ -3577,6 +4093,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.CustomMessage) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.CustomMessage)other);
@@ -3594,14 +4143,17 @@ public final class BitControl {
if (other.hasMessage()) {
setMessage(other.getMessage());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3611,7 +4163,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.CustomMessage) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -3621,7 +4173,6 @@ public final class BitControl {
}
private int bitField0_;
- // optional int32 type = 1;
private int type_ ;
/**
* <code>optional int32 type = 1;</code>
@@ -3654,7 +4205,6 @@ public final class BitControl {
return this;
}
- // optional bytes message = 2;
private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes message = 2;</code>
@@ -3689,22 +4239,63 @@ public final class BitControl {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.CustomMessage)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.CustomMessage)
+ private static final org.apache.drill.exec.proto.BitControl.CustomMessage DEFAULT_INSTANCE;
static {
- defaultInstance = new CustomMessage(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.CustomMessage();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.CustomMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<CustomMessage>
+ PARSER = new com.google.protobuf.AbstractParser<CustomMessage>() {
+ @java.lang.Override
+ public CustomMessage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CustomMessage(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<CustomMessage> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CustomMessage> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.CustomMessage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.CustomMessage)
}
- public interface PlanFragmentOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface PlanFragmentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.PlanFragment)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.bit.FragmentHandle handle = 1;
/**
* <code>optional .exec.bit.FragmentHandle handle = 1;</code>
*/
@@ -3718,7 +4309,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getHandleOrBuilder();
- // optional float network_cost = 4;
/**
* <code>optional float network_cost = 4;</code>
*/
@@ -3728,7 +4318,6 @@ public final class BitControl {
*/
float getNetworkCost();
- // optional float cpu_cost = 5;
/**
* <code>optional float cpu_cost = 5;</code>
*/
@@ -3738,7 +4327,6 @@ public final class BitControl {
*/
float getCpuCost();
- // optional float disk_cost = 6;
/**
* <code>optional float disk_cost = 6;</code>
*/
@@ -3748,7 +4336,6 @@ public final class BitControl {
*/
float getDiskCost();
- // optional float memory_cost = 7;
/**
* <code>optional float memory_cost = 7;</code>
*/
@@ -3758,7 +4345,6 @@ public final class BitControl {
*/
float getMemoryCost();
- // optional string fragment_json = 8;
/**
* <code>optional string fragment_json = 8;</code>
*/
@@ -3773,7 +4359,6 @@ public final class BitControl {
com.google.protobuf.ByteString
getFragmentJsonBytes();
- // optional bool leaf_fragment = 9;
/**
* <code>optional bool leaf_fragment = 9;</code>
*/
@@ -3783,7 +4368,6 @@ public final class BitControl {
*/
boolean getLeafFragment();
- // optional .exec.DrillbitEndpoint assignment = 10;
/**
* <code>optional .exec.DrillbitEndpoint assignment = 10;</code>
*/
@@ -3797,7 +4381,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getAssignmentOrBuilder();
- // optional .exec.DrillbitEndpoint foreman = 11;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 11;</code>
*/
@@ -3811,43 +4394,40 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder();
- // optional int64 mem_initial = 12 [default = 20000000];
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
boolean hasMemInitial();
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
long getMemInitial();
- // optional int64 mem_max = 13 [default = 2000000000];
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
boolean hasMemMax();
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
long getMemMax();
- // optional .exec.shared.UserCredentials credentials = 14;
/**
* <code>optional .exec.shared.UserCredentials credentials = 14;</code>
*/
@@ -3861,7 +4441,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder();
- // optional string options_json = 15;
/**
* <code>optional string options_json = 15;</code>
*/
@@ -3876,7 +4455,6 @@ public final class BitControl {
com.google.protobuf.ByteString
getOptionsJsonBytes();
- // optional .exec.bit.control.QueryContextInformation context = 16;
/**
* <code>optional .exec.bit.control.QueryContextInformation context = 16;</code>
*/
@@ -3890,7 +4468,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder getContextOrBuilder();
- // repeated .exec.bit.control.Collector collector = 17;
/**
* <code>repeated .exec.bit.control.Collector collector = 17;</code>
*/
@@ -3918,36 +4495,41 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.PlanFragment}
*/
- public static final class PlanFragment extends
- com.google.protobuf.GeneratedMessage
- implements PlanFragmentOrBuilder {
+ public static final class PlanFragment extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.PlanFragment)
+ PlanFragmentOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use PlanFragment.newBuilder() to construct.
- private PlanFragment(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PlanFragment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private PlanFragment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final PlanFragment defaultInstance;
- public static PlanFragment getDefaultInstance() {
- return defaultInstance;
}
-
- public PlanFragment getDefaultInstanceForType() {
- return defaultInstance;
+ private PlanFragment() {
+ networkCost_ = 0F;
+ cpuCost_ = 0F;
+ diskCost_ = 0F;
+ memoryCost_ = 0F;
+ fragmentJson_ = "";
+ leafFragment_ = false;
+ memInitial_ = 20000000L;
+ memMax_ = 2000000000L;
+ optionsJson_ = "";
+ collector_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private PlanFragment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -3959,13 +4541,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -4000,8 +4575,9 @@ public final class BitControl {
break;
}
case 66: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- fragmentJson_ = input.readBytes();
+ fragmentJson_ = bs;
break;
}
case 72: {
@@ -4059,8 +4635,9 @@ public final class BitControl {
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
- optionsJson_ = input.readBytes();
+ optionsJson_ = bs;
break;
}
case 130: {
@@ -4081,7 +4658,15 @@ public final class BitControl {
collector_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.Collector>();
mutable_bitField0_ |= 0x00004000;
}
- collector_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.Collector.PARSER, extensionRegistry));
+ collector_.add(
+ input.readMessage(org.apache.drill.exec.proto.BitControl.Collector.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -4090,7 +4675,7 @@ public final class BitControl {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
collector_ = java.util.Collections.unmodifiableList(collector_);
@@ -4104,30 +4689,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_PlanFragment_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_PlanFragment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.PlanFragment.class, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder.class);
}
- public static com.google.protobuf.Parser<PlanFragment> PARSER =
- new com.google.protobuf.AbstractParser<PlanFragment>() {
- public PlanFragment parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PlanFragment(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<PlanFragment> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.bit.FragmentHandle handle = 1;
public static final int HANDLE_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_;
/**
@@ -4140,16 +4710,15 @@ public final class BitControl {
* <code>optional .exec.bit.FragmentHandle handle = 1;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getHandle() {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
/**
* <code>optional .exec.bit.FragmentHandle handle = 1;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getHandleOrBuilder() {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
- // optional float network_cost = 4;
public static final int NETWORK_COST_FIELD_NUMBER = 4;
private float networkCost_;
/**
@@ -4165,7 +4734,6 @@ public final class BitControl {
return networkCost_;
}
- // optional float cpu_cost = 5;
public static final int CPU_COST_FIELD_NUMBER = 5;
private float cpuCost_;
/**
@@ -4181,7 +4749,6 @@ public final class BitControl {
return cpuCost_;
}
- // optional float disk_cost = 6;
public static final int DISK_COST_FIELD_NUMBER = 6;
private float diskCost_;
/**
@@ -4197,7 +4764,6 @@ public final class BitControl {
return diskCost_;
}
- // optional float memory_cost = 7;
public static final int MEMORY_COST_FIELD_NUMBER = 7;
private float memoryCost_;
/**
@@ -4213,9 +4779,8 @@ public final class BitControl {
return memoryCost_;
}
- // optional string fragment_json = 8;
public static final int FRAGMENT_JSON_FIELD_NUMBER = 8;
- private java.lang.Object fragmentJson_;
+ private volatile java.lang.Object fragmentJson_;
/**
* <code>optional string fragment_json = 8;</code>
*/
@@ -4256,7 +4821,6 @@ public final class BitControl {
}
}
- // optional bool leaf_fragment = 9;
public static final int LEAF_FRAGMENT_FIELD_NUMBER = 9;
private boolean leafFragment_;
/**
@@ -4272,7 +4836,6 @@ public final class BitControl {
return leafFragment_;
}
- // optional .exec.DrillbitEndpoint assignment = 10;
public static final int ASSIGNMENT_FIELD_NUMBER = 10;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint assignment_;
/**
@@ -4285,16 +4848,15 @@ public final class BitControl {
* <code>optional .exec.DrillbitEndpoint assignment = 10;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getAssignment() {
- return assignment_;
+ return assignment_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : assignment_;
}
/**
* <code>optional .exec.DrillbitEndpoint assignment = 10;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getAssignmentOrBuilder() {
- return assignment_;
+ return assignment_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : assignment_;
}
- // optional .exec.DrillbitEndpoint foreman = 11;
public static final int FOREMAN_FIELD_NUMBER = 11;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_;
/**
@@ -4307,64 +4869,61 @@ public final class BitControl {
* <code>optional .exec.DrillbitEndpoint foreman = 11;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 11;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
- // optional int64 mem_initial = 12 [default = 20000000];
public static final int MEM_INITIAL_FIELD_NUMBER = 12;
private long memInitial_;
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public boolean hasMemInitial() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public long getMemInitial() {
return memInitial_;
}
- // optional int64 mem_max = 13 [default = 2000000000];
public static final int MEM_MAX_FIELD_NUMBER = 13;
private long memMax_;
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public boolean hasMemMax() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public long getMemMax() {
return memMax_;
}
- // optional .exec.shared.UserCredentials credentials = 14;
public static final int CREDENTIALS_FIELD_NUMBER = 14;
private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_;
/**
@@ -4377,18 +4936,17 @@ public final class BitControl {
* <code>optional .exec.shared.UserCredentials credentials = 14;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
/**
* <code>optional .exec.shared.UserCredentials credentials = 14;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder() {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
- // optional string options_json = 15;
public static final int OPTIONS_JSON_FIELD_NUMBER = 15;
- private java.lang.Object optionsJson_;
+ private volatile java.lang.Object optionsJson_;
/**
* <code>optional string options_json = 15;</code>
*/
@@ -4429,7 +4987,6 @@ public final class BitControl {
}
}
- // optional .exec.bit.control.QueryContextInformation context = 16;
public static final int CONTEXT_FIELD_NUMBER = 16;
private org.apache.drill.exec.proto.BitControl.QueryContextInformation context_;
/**
@@ -4442,16 +4999,15 @@ public final class BitControl {
* <code>optional .exec.bit.control.QueryContextInformation context = 16;</code>
*/
public org.apache.drill.exec.proto.BitControl.QueryContextInformation getContext() {
- return context_;
+ return context_ == null ? org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance() : context_;
}
/**
* <code>optional .exec.bit.control.QueryContextInformation context = 16;</code>
*/
public org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder getContextOrBuilder() {
- return context_;
+ return context_ == null ? org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance() : context_;
}
- // repeated .exec.bit.control.Collector collector = 17;
public static final int COLLECTOR_FIELD_NUMBER = 17;
private java.util.List<org.apache.drill.exec.proto.BitControl.Collector> collector_;
/**
@@ -4487,37 +5043,22 @@ public final class BitControl {
return collector_.get(index);
}
- private void initFields() {
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- networkCost_ = 0F;
- cpuCost_ = 0F;
- diskCost_ = 0F;
- memoryCost_ = 0F;
- fragmentJson_ = "";
- leafFragment_ = false;
- assignment_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- memInitial_ = 20000000L;
- memMax_ = 2000000000L;
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
- optionsJson_ = "";
- context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance();
- collector_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, handle_);
+ output.writeMessage(1, getHandle());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(4, networkCost_);
@@ -4532,16 +5073,16 @@ public final class BitControl {
output.writeFloat(7, memoryCost_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(8, getFragmentJsonBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fragmentJson_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(9, leafFragment_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(10, assignment_);
+ output.writeMessage(10, getAssignment());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeMessage(11, foreman_);
+ output.writeMessage(11, getForeman());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt64(12, memInitial_);
@@ -4550,29 +5091,29 @@ public final class BitControl {
output.writeInt64(13, memMax_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeMessage(14, credentials_);
+ output.writeMessage(14, getCredentials());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeBytes(15, getOptionsJsonBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, optionsJson_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeMessage(16, context_);
+ output.writeMessage(16, getContext());
}
for (int i = 0; i < collector_.size(); i++) {
output.writeMessage(17, collector_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, handle_);
+ .computeMessageSize(1, getHandle());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -4591,8 +5132,7 @@ public final class BitControl {
.computeFloatSize(7, memoryCost_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getFragmentJsonBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fragmentJson_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
@@ -4600,11 +5140,11 @@ public final class BitControl {
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(10, assignment_);
+ .computeMessageSize(10, getAssignment());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(11, foreman_);
+ .computeMessageSize(11, getForeman());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
@@ -4616,33 +5156,210 @@ public final class BitControl {
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(14, credentials_);
+ .computeMessageSize(14, getCredentials());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(15, getOptionsJsonBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, optionsJson_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(16, context_);
+ .computeMessageSize(16, getContext());
}
for (int i = 0; i < collector_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, collector_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.PlanFragment)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.PlanFragment other = (org.apache.drill.exec.proto.BitControl.PlanFragment) obj;
+
+ boolean result = true;
+ result = result && (hasHandle() == other.hasHandle());
+ if (hasHandle()) {
+ result = result && getHandle()
+ .equals(other.getHandle());
+ }
+ result = result && (hasNetworkCost() == other.hasNetworkCost());
+ if (hasNetworkCost()) {
+ result = result && (
+ java.lang.Float.floatToIntBits(getNetworkCost())
+ == java.lang.Float.floatToIntBits(
+ other.getNetworkCost()));
+ }
+ result = result && (hasCpuCost() == other.hasCpuCost());
+ if (hasCpuCost()) {
+ result = result && (
+ java.lang.Float.floatToIntBits(getCpuCost())
+ == java.lang.Float.floatToIntBits(
+ other.getCpuCost()));
+ }
+ result = result && (hasDiskCost() == other.hasDiskCost());
+ if (hasDiskCost()) {
+ result = result && (
+ java.lang.Float.floatToIntBits(getDiskCost())
+ == java.lang.Float.floatToIntBits(
+ other.getDiskCost()));
+ }
+ result = result && (hasMemoryCost() == other.hasMemoryCost());
+ if (hasMemoryCost()) {
+ result = result && (
+ java.lang.Float.floatToIntBits(getMemoryCost())
+ == java.lang.Float.floatToIntBits(
+ other.getMemoryCost()));
+ }
+ result = result && (hasFragmentJson() == other.hasFragmentJson());
+ if (hasFragmentJson()) {
+ result = result && getFragmentJson()
+ .equals(other.getFragmentJson());
+ }
+ result = result && (hasLeafFragment() == other.hasLeafFragment());
+ if (hasLeafFragment()) {
+ result = result && (getLeafFragment()
+ == other.getLeafFragment());
+ }
+ result = result && (hasAssignment() == other.hasAssignment());
+ if (hasAssignment()) {
+ result = result && getAssignment()
+ .equals(other.getAssignment());
+ }
+ result = result && (hasForeman() == other.hasForeman());
+ if (hasForeman()) {
+ result = result && getForeman()
+ .equals(other.getForeman());
+ }
+ result = result && (hasMemInitial() == other.hasMemInitial());
+ if (hasMemInitial()) {
+ result = result && (getMemInitial()
+ == other.getMemInitial());
+ }
+ result = result && (hasMemMax() == other.hasMemMax());
+ if (hasMemMax()) {
+ result = result && (getMemMax()
+ == other.getMemMax());
+ }
+ result = result && (hasCredentials() == other.hasCredentials());
+ if (hasCredentials()) {
+ result = result && getCredentials()
+ .equals(other.getCredentials());
+ }
+ result = result && (hasOptionsJson() == other.hasOptionsJson());
+ if (hasOptionsJson()) {
+ result = result && getOptionsJson()
+ .equals(other.getOptionsJson());
+ }
+ result = result && (hasContext() == other.hasContext());
+ if (hasContext()) {
+ result = result && getContext()
+ .equals(other.getContext());
+ }
+ result = result && getCollectorList()
+ .equals(other.getCollectorList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasHandle()) {
+ hash = (37 * hash) + HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getHandle().hashCode();
+ }
+ if (hasNetworkCost()) {
+ hash = (37 * hash) + NETWORK_COST_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getNetworkCost());
+ }
+ if (hasCpuCost()) {
+ hash = (37 * hash) + CPU_COST_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getCpuCost());
+ }
+ if (hasDiskCost()) {
+ hash = (37 * hash) + DISK_COST_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDiskCost());
+ }
+ if (hasMemoryCost()) {
+ hash = (37 * hash) + MEMORY_COST_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getMemoryCost());
+ }
+ if (hasFragmentJson()) {
+ hash = (37 * hash) + FRAGMENT_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentJson().hashCode();
+ }
+ if (hasLeafFragment()) {
+ hash = (37 * hash) + LEAF_FRAGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLeafFragment());
+ }
+ if (hasAssignment()) {
+ hash = (37 * hash) + ASSIGNMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getAssignment().hashCode();
+ }
+ if (hasForeman()) {
+ hash = (37 * hash) + FOREMAN_FIELD_NUMBER;
+ hash = (53 * hash) + getForeman().hashCode();
+ }
+ if (hasMemInitial()) {
+ hash = (37 * hash) + MEM_INITIAL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMemInitial());
+ }
+ if (hasMemMax()) {
+ hash = (37 * hash) + MEM_MAX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMemMax());
+ }
+ if (hasCredentials()) {
+ hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER;
+ hash = (53 * hash) + getCredentials().hashCode();
+ }
+ if (hasOptionsJson()) {
+ hash = (37 * hash) + OPTIONS_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionsJson().hashCode();
+ }
+ if (hasContext()) {
+ hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getContext().hashCode();
+ }
+ if (getCollectorCount() > 0) {
+ hash = (37 * hash) + COLLECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getCollectorList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -4665,46 +5382,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.PlanFragment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.PlanFragment prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4712,14 +5442,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.PlanFragment}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.PlanFragment)
+ org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_PlanFragment_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_PlanFragment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4732,12 +5464,13 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getHandleFieldBuilder();
getAssignmentFieldBuilder();
getForemanFieldBuilder();
@@ -4746,14 +5479,11 @@ public final class BitControl {
getCollectorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (handleBuilder_ == null) {
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ handle_ = null;
} else {
handleBuilder_.clear();
}
@@ -4771,13 +5501,13 @@ public final class BitControl {
leafFragment_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
if (assignmentBuilder_ == null) {
- assignment_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ assignment_ = null;
} else {
assignmentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
} else {
foremanBuilder_.clear();
}
@@ -4787,7 +5517,7 @@ public final class BitControl {
memMax_ = 2000000000L;
bitField0_ = (bitField0_ & ~0x00000400);
if (credentialsBuilder_ == null) {
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
+ credentials_ = null;
} else {
credentialsBuilder_.clear();
}
@@ -4795,7 +5525,7 @@ public final class BitControl {
optionsJson_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
if (contextBuilder_ == null) {
- context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance();
+ context_ = null;
} else {
contextBuilder_.clear();
}
@@ -4809,19 +5539,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_PlanFragment_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.PlanFragment getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.PlanFragment build() {
org.apache.drill.exec.proto.BitControl.PlanFragment result = buildPartial();
if (!result.isInitialized()) {
@@ -4830,6 +5559,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.PlanFragment buildPartial() {
org.apache.drill.exec.proto.BitControl.PlanFragment result = new org.apache.drill.exec.proto.BitControl.PlanFragment(this);
int from_bitField0_ = bitField0_;
@@ -4924,6 +5654,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.PlanFragment) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.PlanFragment)other);
@@ -5000,21 +5763,24 @@ public final class BitControl {
collector_ = other.collector_;
bitField0_ = (bitField0_ & ~0x00004000);
collectorBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCollectorFieldBuilder() : null;
} else {
collectorBuilder_.addAllMessages(other.collector_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5024,7 +5790,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.PlanFragment) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -5034,9 +5800,8 @@ public final class BitControl {
}
private int bitField0_;
- // optional .exec.bit.FragmentHandle handle = 1;
- private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.ExecProtos.FragmentHandle handle_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder> handleBuilder_;
/**
* <code>optional .exec.bit.FragmentHandle handle = 1;</code>
@@ -5049,7 +5814,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getHandle() {
if (handleBuilder_ == null) {
- return handle_;
+ return handle_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
} else {
return handleBuilder_.getMessage();
}
@@ -5090,6 +5855,7 @@ public final class BitControl {
public Builder mergeHandle(org.apache.drill.exec.proto.ExecProtos.FragmentHandle value) {
if (handleBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ handle_ != null &&
handle_ != org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance()) {
handle_ =
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.newBuilder(handle_).mergeFrom(value).buildPartial();
@@ -5108,7 +5874,7 @@ public final class BitControl {
*/
public Builder clearHandle() {
if (handleBuilder_ == null) {
- handle_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ handle_ = null;
onChanged();
} else {
handleBuilder_.clear();
@@ -5131,19 +5897,20 @@ public final class BitControl {
if (handleBuilder_ != null) {
return handleBuilder_.getMessageOrBuilder();
} else {
- return handle_;
+ return handle_ == null ?
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : handle_;
}
}
/**
* <code>optional .exec.bit.FragmentHandle handle = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>
getHandleFieldBuilder() {
if (handleBuilder_ == null) {
- handleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ handleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>(
- handle_,
+ getHandle(),
getParentForChildren(),
isClean());
handle_ = null;
@@ -5151,7 +5918,6 @@ public final class BitControl {
return handleBuilder_;
}
- // optional float network_cost = 4;
private float networkCost_ ;
/**
* <code>optional float network_cost = 4;</code>
@@ -5184,7 +5950,6 @@ public final class BitControl {
return this;
}
- // optional float cpu_cost = 5;
private float cpuCost_ ;
/**
* <code>optional float cpu_cost = 5;</code>
@@ -5217,7 +5982,6 @@ public final class BitControl {
return this;
}
- // optional float disk_cost = 6;
private float diskCost_ ;
/**
* <code>optional float disk_cost = 6;</code>
@@ -5250,7 +6014,6 @@ public final class BitControl {
return this;
}
- // optional float memory_cost = 7;
private float memoryCost_ ;
/**
* <code>optional float memory_cost = 7;</code>
@@ -5283,7 +6046,6 @@ public final class BitControl {
return this;
}
- // optional string fragment_json = 8;
private java.lang.Object fragmentJson_ = "";
/**
* <code>optional string fragment_json = 8;</code>
@@ -5297,9 +6059,12 @@ public final class BitControl {
public java.lang.String getFragmentJson() {
java.lang.Object ref = fragmentJson_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- fragmentJson_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ fragmentJson_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5357,7 +6122,6 @@ public final class BitControl {
return this;
}
- // optional bool leaf_fragment = 9;
private boolean leafFragment_ ;
/**
* <code>optional bool leaf_fragment = 9;</code>
@@ -5390,9 +6154,8 @@ public final class BitControl {
return this;
}
- // optional .exec.DrillbitEndpoint assignment = 10;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint assignment_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint assignment_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> assignmentBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint assignment = 10;</code>
@@ -5405,7 +6168,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getAssignment() {
if (assignmentBuilder_ == null) {
- return assignment_;
+ return assignment_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : assignment_;
} else {
return assignmentBuilder_.getMessage();
}
@@ -5446,6 +6209,7 @@ public final class BitControl {
public Builder mergeAssignment(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (assignmentBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
+ assignment_ != null &&
assignment_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
assignment_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(assignment_).mergeFrom(value).buildPartial();
@@ -5464,7 +6228,7 @@ public final class BitControl {
*/
public Builder clearAssignment() {
if (assignmentBuilder_ == null) {
- assignment_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ assignment_ = null;
onChanged();
} else {
assignmentBuilder_.clear();
@@ -5487,19 +6251,20 @@ public final class BitControl {
if (assignmentBuilder_ != null) {
return assignmentBuilder_.getMessageOrBuilder();
} else {
- return assignment_;
+ return assignment_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : assignment_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint assignment = 10;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getAssignmentFieldBuilder() {
if (assignmentBuilder_ == null) {
- assignmentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ assignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- assignment_,
+ getAssignment(),
getParentForChildren(),
isClean());
assignment_ = null;
@@ -5507,9 +6272,8 @@ public final class BitControl {
return assignmentBuilder_;
}
- // optional .exec.DrillbitEndpoint foreman = 11;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> foremanBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 11;</code>
@@ -5522,7 +6286,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
if (foremanBuilder_ == null) {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
} else {
return foremanBuilder_.getMessage();
}
@@ -5563,6 +6327,7 @@ public final class BitControl {
public Builder mergeForeman(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (foremanBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
+ foreman_ != null &&
foreman_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
foreman_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(foreman_).mergeFrom(value).buildPartial();
@@ -5581,7 +6346,7 @@ public final class BitControl {
*/
public Builder clearForeman() {
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
onChanged();
} else {
foremanBuilder_.clear();
@@ -5604,19 +6369,20 @@ public final class BitControl {
if (foremanBuilder_ != null) {
return foremanBuilder_.getMessageOrBuilder();
} else {
- return foreman_;
+ return foreman_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 11;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getForemanFieldBuilder() {
if (foremanBuilder_ == null) {
- foremanBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ foremanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- foreman_,
+ getForeman(),
getParentForChildren(),
isClean());
foreman_ = null;
@@ -5624,34 +6390,33 @@ public final class BitControl {
return foremanBuilder_;
}
- // optional int64 mem_initial = 12 [default = 20000000];
private long memInitial_ = 20000000L;
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public boolean hasMemInitial() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public long getMemInitial() {
return memInitial_;
}
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public Builder setMemInitial(long value) {
bitField0_ |= 0x00000200;
@@ -5660,11 +6425,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
- *
* <pre>
* 20 megs
* </pre>
+ *
+ * <code>optional int64 mem_initial = 12 [default = 20000000];</code>
*/
public Builder clearMemInitial() {
bitField0_ = (bitField0_ & ~0x00000200);
@@ -5673,34 +6438,33 @@ public final class BitControl {
return this;
}
- // optional int64 mem_max = 13 [default = 2000000000];
private long memMax_ = 2000000000L;
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public boolean hasMemMax() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public long getMemMax() {
return memMax_;
}
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public Builder setMemMax(long value) {
bitField0_ |= 0x00000400;
@@ -5709,11 +6473,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
- *
* <pre>
* 20 gigs
* </pre>
+ *
+ * <code>optional int64 mem_max = 13 [default = 2000000000];</code>
*/
public Builder clearMemMax() {
bitField0_ = (bitField0_ & ~0x00000400);
@@ -5722,9 +6486,8 @@ public final class BitControl {
return this;
}
- // optional .exec.shared.UserCredentials credentials = 14;
- private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder> credentialsBuilder_;
/**
* <code>optional .exec.shared.UserCredentials credentials = 14;</code>
@@ -5737,7 +6500,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() {
if (credentialsBuilder_ == null) {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
} else {
return credentialsBuilder_.getMessage();
}
@@ -5778,6 +6541,7 @@ public final class BitControl {
public Builder mergeCredentials(org.apache.drill.exec.proto.UserBitShared.UserCredentials value) {
if (credentialsBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
+ credentials_ != null &&
credentials_ != org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) {
credentials_ =
org.apache.drill.exec.proto.UserBitShared.UserCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial();
@@ -5796,7 +6560,7 @@ public final class BitControl {
*/
public Builder clearCredentials() {
if (credentialsBuilder_ == null) {
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
+ credentials_ = null;
onChanged();
} else {
credentialsBuilder_.clear();
@@ -5819,19 +6583,20 @@ public final class BitControl {
if (credentialsBuilder_ != null) {
return credentialsBuilder_.getMessageOrBuilder();
} else {
- return credentials_;
+ return credentials_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
}
/**
* <code>optional .exec.shared.UserCredentials credentials = 14;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder>
getCredentialsFieldBuilder() {
if (credentialsBuilder_ == null) {
- credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder>(
- credentials_,
+ getCredentials(),
getParentForChildren(),
isClean());
credentials_ = null;
@@ -5839,7 +6604,6 @@ public final class BitControl {
return credentialsBuilder_;
}
- // optional string options_json = 15;
private java.lang.Object optionsJson_ = "";
/**
* <code>optional string options_json = 15;</code>
@@ -5853,9 +6617,12 @@ public final class BitControl {
public java.lang.String getOptionsJson() {
java.lang.Object ref = optionsJson_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- optionsJson_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ optionsJson_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5913,9 +6680,8 @@ public final class BitControl {
return this;
}
- // optional .exec.bit.control.QueryContextInformation context = 16;
- private org.apache.drill.exec.proto.BitControl.QueryContextInformation context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.BitControl.QueryContextInformation context_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.QueryContextInformation, org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder, org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder> contextBuilder_;
/**
* <code>optional .exec.bit.control.QueryContextInformation context = 16;</code>
@@ -5928,7 +6694,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.BitControl.QueryContextInformation getContext() {
if (contextBuilder_ == null) {
- return context_;
+ return context_ == null ? org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
@@ -5969,6 +6735,7 @@ public final class BitControl {
public Builder mergeContext(org.apache.drill.exec.proto.BitControl.QueryContextInformation value) {
if (contextBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000) &&
+ context_ != null &&
context_ != org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) {
context_ =
org.apache.drill.exec.proto.BitControl.QueryContextInformation.newBuilder(context_).mergeFrom(value).buildPartial();
@@ -5987,7 +6754,7 @@ public final class BitControl {
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
- context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance();
+ context_ = null;
onChanged();
} else {
contextBuilder_.clear();
@@ -6010,19 +6777,20 @@ public final class BitControl {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
- return context_;
+ return context_ == null ?
+ org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance() : context_;
}
}
/**
* <code>optional .exec.bit.control.QueryContextInformation context = 16;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.QueryContextInformation, org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder, org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
- contextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.QueryContextInformation, org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder, org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder>(
- context_,
+ getContext(),
getParentForChildren(),
isClean());
context_ = null;
@@ -6030,7 +6798,6 @@ public final class BitControl {
return contextBuilder_;
}
- // repeated .exec.bit.control.Collector collector = 17;
private java.util.List<org.apache.drill.exec.proto.BitControl.Collector> collector_ =
java.util.Collections.emptyList();
private void ensureCollectorIsMutable() {
@@ -6040,7 +6807,7 @@ public final class BitControl {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.Collector, org.apache.drill.exec.proto.BitControl.Collector.Builder, org.apache.drill.exec.proto.BitControl.CollectorOrBuilder> collectorBuilder_;
/**
@@ -6172,7 +6939,8 @@ public final class BitControl {
java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.Collector> values) {
if (collectorBuilder_ == null) {
ensureCollectorIsMutable();
- super.addAll(values, collector_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, collector_);
onChanged();
} else {
collectorBuilder_.addAllMessages(values);
@@ -6255,11 +7023,11 @@ public final class BitControl {
getCollectorBuilderList() {
return getCollectorFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.Collector, org.apache.drill.exec.proto.BitControl.Collector.Builder, org.apache.drill.exec.proto.BitControl.CollectorOrBuilder>
getCollectorFieldBuilder() {
if (collectorBuilder_ == null) {
- collectorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ collectorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.Collector, org.apache.drill.exec.proto.BitControl.Collector.Builder, org.apache.drill.exec.proto.BitControl.CollectorOrBuilder>(
collector_,
((bitField0_ & 0x00004000) == 0x00004000),
@@ -6269,22 +7037,63 @@ public final class BitControl {
}
return collectorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.PlanFragment)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.PlanFragment)
+ private static final org.apache.drill.exec.proto.BitControl.PlanFragment DEFAULT_INSTANCE;
static {
- defaultInstance = new PlanFragment(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.PlanFragment();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.PlanFragment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<PlanFragment>
+ PARSER = new com.google.protobuf.AbstractParser<PlanFragment>() {
+ @java.lang.Override
+ public PlanFragment parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PlanFragment(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<PlanFragment> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PlanFragment> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.PlanFragment getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.PlanFragment)
}
- public interface CollectorOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CollectorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.Collector)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 opposite_major_fragment_id = 1;
/**
* <code>optional int32 opposite_major_fragment_id = 1;</code>
*/
@@ -6294,7 +7103,6 @@ public final class BitControl {
*/
int getOppositeMajorFragmentId();
- // repeated int32 incoming_minor_fragment = 2 [packed = true];
/**
* <code>repeated int32 incoming_minor_fragment = 2 [packed = true];</code>
*/
@@ -6308,7 +7116,6 @@ public final class BitControl {
*/
int getIncomingMinorFragment(int index);
- // optional bool supports_out_of_order = 3;
/**
* <code>optional bool supports_out_of_order = 3;</code>
*/
@@ -6318,7 +7125,6 @@ public final class BitControl {
*/
boolean getSupportsOutOfOrder();
- // optional bool is_spooling = 4;
/**
* <code>optional bool is_spooling = 4;</code>
*/
@@ -6331,36 +7137,35 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.Collector}
*/
- public static final class Collector extends
- com.google.protobuf.GeneratedMessage
- implements CollectorOrBuilder {
+ public static final class Collector extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.Collector)
+ CollectorOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Collector.newBuilder() to construct.
- private Collector(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Collector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Collector(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Collector defaultInstance;
- public static Collector getDefaultInstance() {
- return defaultInstance;
- }
-
- public Collector getDefaultInstanceForType() {
- return defaultInstance;
+ private Collector() {
+ oppositeMajorFragmentId_ = 0;
+ incomingMinorFragment_ = java.util.Collections.emptyList();
+ supportsOutOfOrder_ = false;
+ isSpooling_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Collector(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -6372,13 +7177,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
oppositeMajorFragmentId_ = input.readInt32();
@@ -6415,13 +7213,20 @@ public final class BitControl {
isSpooling_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
incomingMinorFragment_ = java.util.Collections.unmodifiableList(incomingMinorFragment_);
@@ -6435,30 +7240,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_Collector_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_Collector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.Collector.class, org.apache.drill.exec.proto.BitControl.Collector.Builder.class);
}
- public static com.google.protobuf.Parser<Collector> PARSER =
- new com.google.protobuf.AbstractParser<Collector>() {
- public Collector parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Collector(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Collector> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 opposite_major_fragment_id = 1;
public static final int OPPOSITE_MAJOR_FRAGMENT_ID_FIELD_NUMBER = 1;
private int oppositeMajorFragmentId_;
/**
@@ -6474,7 +7264,6 @@ public final class BitControl {
return oppositeMajorFragmentId_;
}
- // repeated int32 incoming_minor_fragment = 2 [packed = true];
public static final int INCOMING_MINOR_FRAGMENT_FIELD_NUMBER = 2;
private java.util.List<java.lang.Integer> incomingMinorFragment_;
/**
@@ -6498,7 +7287,6 @@ public final class BitControl {
}
private int incomingMinorFragmentMemoizedSerializedSize = -1;
- // optional bool supports_out_of_order = 3;
public static final int SUPPORTS_OUT_OF_ORDER_FIELD_NUMBER = 3;
private boolean supportsOutOfOrder_;
/**
@@ -6514,7 +7302,6 @@ public final class BitControl {
return supportsOutOfOrder_;
}
- // optional bool is_spooling = 4;
public static final int IS_SPOOLING_FIELD_NUMBER = 4;
private boolean isSpooling_;
/**
@@ -6530,21 +7317,18 @@ public final class BitControl {
return isSpooling_;
}
- private void initFields() {
- oppositeMajorFragmentId_ = 0;
- incomingMinorFragment_ = java.util.Collections.emptyList();
- supportsOutOfOrder_ = false;
- isSpooling_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
@@ -6552,8 +7336,8 @@ public final class BitControl {
output.writeInt32(1, oppositeMajorFragmentId_);
}
if (getIncomingMinorFragmentList().size() > 0) {
- output.writeRawVarint32(18);
- output.writeRawVarint32(incomingMinorFragmentMemoizedSerializedSize);
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(incomingMinorFragmentMemoizedSerializedSize);
}
for (int i = 0; i < incomingMinorFragment_.size(); i++) {
output.writeInt32NoTag(incomingMinorFragment_.get(i));
@@ -6564,12 +7348,12 @@ public final class BitControl {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(4, isSpooling_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -6599,19 +7383,85 @@ public final class BitControl {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isSpooling_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.Collector)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.Collector other = (org.apache.drill.exec.proto.BitControl.Collector) obj;
+
+ boolean result = true;
+ result = result && (hasOppositeMajorFragmentId() == other.hasOppositeMajorFragmentId());
+ if (hasOppositeMajorFragmentId()) {
+ result = result && (getOppositeMajorFragmentId()
+ == other.getOppositeMajorFragmentId());
+ }
+ result = result && getIncomingMinorFragmentList()
+ .equals(other.getIncomingMinorFragmentList());
+ result = result && (hasSupportsOutOfOrder() == other.hasSupportsOutOfOrder());
+ if (hasSupportsOutOfOrder()) {
+ result = result && (getSupportsOutOfOrder()
+ == other.getSupportsOutOfOrder());
+ }
+ result = result && (hasIsSpooling() == other.hasIsSpooling());
+ if (hasIsSpooling()) {
+ result = result && (getIsSpooling()
+ == other.getIsSpooling());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasOppositeMajorFragmentId()) {
+ hash = (37 * hash) + OPPOSITE_MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOppositeMajorFragmentId();
+ }
+ if (getIncomingMinorFragmentCount() > 0) {
+ hash = (37 * hash) + INCOMING_MINOR_FRAGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getIncomingMinorFragmentList().hashCode();
+ }
+ if (hasSupportsOutOfOrder()) {
+ hash = (37 * hash) + SUPPORTS_OUT_OF_ORDER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSupportsOutOfOrder());
+ }
+ if (hasIsSpooling()) {
+ hash = (37 * hash) + IS_SPOOLING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsSpooling());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -6634,46 +7484,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.Collector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.Collector parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.Collector parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.Collector prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6681,14 +7544,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.Collector}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.CollectorOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.Collector)
+ org.apache.drill.exec.proto.BitControl.CollectorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_Collector_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_Collector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6701,18 +7566,16 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
oppositeMajorFragmentId_ = 0;
@@ -6726,19 +7589,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_Collector_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.Collector getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.Collector.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.Collector build() {
org.apache.drill.exec.proto.BitControl.Collector result = buildPartial();
if (!result.isInitialized()) {
@@ -6747,6 +7609,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.Collector buildPartial() {
org.apache.drill.exec.proto.BitControl.Collector result = new org.apache.drill.exec.proto.BitControl.Collector(this);
int from_bitField0_ = bitField0_;
@@ -6773,6 +7636,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.Collector) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.Collector)other);
@@ -6803,14 +7699,17 @@ public final class BitControl {
if (other.hasIsSpooling()) {
setIsSpooling(other.getIsSpooling());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6820,7 +7719,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.Collector) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -6830,7 +7729,6 @@ public final class BitControl {
}
private int bitField0_;
- // optional int32 opposite_major_fragment_id = 1;
private int oppositeMajorFragmentId_ ;
/**
* <code>optional int32 opposite_major_fragment_id = 1;</code>
@@ -6863,7 +7761,6 @@ public final class BitControl {
return this;
}
- // repeated int32 incoming_minor_fragment = 2 [packed = true];
private java.util.List<java.lang.Integer> incomingMinorFragment_ = java.util.Collections.emptyList();
private void ensureIncomingMinorFragmentIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
@@ -6915,7 +7812,8 @@ public final class BitControl {
public Builder addAllIncomingMinorFragment(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureIncomingMinorFragmentIsMutable();
- super.addAll(values, incomingMinorFragment_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, incomingMinorFragment_);
onChanged();
return this;
}
@@ -6929,7 +7827,6 @@ public final class BitControl {
return this;
}
- // optional bool supports_out_of_order = 3;
private boolean supportsOutOfOrder_ ;
/**
* <code>optional bool supports_out_of_order = 3;</code>
@@ -6962,7 +7859,6 @@ public final class BitControl {
return this;
}
- // optional bool is_spooling = 4;
private boolean isSpooling_ ;
/**
* <code>optional bool is_spooling = 4;</code>
@@ -6994,107 +7890,145 @@ public final class BitControl {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.Collector)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.Collector)
+ private static final org.apache.drill.exec.proto.BitControl.Collector DEFAULT_INSTANCE;
static {
- defaultInstance = new Collector(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.Collector();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.Collector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Collector>
+ PARSER = new com.google.protobuf.AbstractParser<Collector>() {
+ @java.lang.Override
+ public Collector parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Collector(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Collector> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Collector> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.Collector getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.Collector)
}
- public interface QueryContextInformationOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryContextInformationOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.QueryContextInformation)
+ com.google.protobuf.MessageOrBuilder {
- // optional int64 query_start_time = 1;
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
boolean hasQueryStartTime();
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
long getQueryStartTime();
- // optional int32 time_zone = 2;
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
boolean hasTimeZone();
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
int getTimeZone();
- // optional string default_schema_name = 3;
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
boolean hasDefaultSchemaName();
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
java.lang.String getDefaultSchemaName();
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
com.google.protobuf.ByteString
getDefaultSchemaNameBytes();
- // optional string session_id = 4;
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
boolean hasSessionId();
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
java.lang.String getSessionId();
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
com.google.protobuf.ByteString
getSessionIdBytes();
@@ -7102,36 +8036,35 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.QueryContextInformation}
*/
- public static final class QueryContextInformation extends
- com.google.protobuf.GeneratedMessage
- implements QueryContextInformationOrBuilder {
+ public static final class QueryContextInformation extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.QueryContextInformation)
+ QueryContextInformationOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryContextInformation.newBuilder() to construct.
- private QueryContextInformation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryContextInformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private QueryContextInformation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryContextInformation defaultInstance;
- public static QueryContextInformation getDefaultInstance() {
- return defaultInstance;
- }
-
- public QueryContextInformation getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryContextInformation() {
+ queryStartTime_ = 0L;
+ timeZone_ = 0;
+ defaultSchemaName_ = "";
+ sessionId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryContextInformation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -7143,13 +8076,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
queryStartTime_ = input.readInt64();
@@ -7161,13 +8087,22 @@ public final class BitControl {
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- defaultSchemaName_ = input.readBytes();
+ defaultSchemaName_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- sessionId_ = input.readBytes();
+ sessionId_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -7176,7 +8111,7 @@ public final class BitControl {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -7187,96 +8122,79 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_QueryContextInformation_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_QueryContextInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.QueryContextInformation.class, org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder.class);
}
- public static com.google.protobuf.Parser<QueryContextInformation> PARSER =
- new com.google.protobuf.AbstractParser<QueryContextInformation>() {
- public QueryContextInformation parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryContextInformation(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryContextInformation> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int64 query_start_time = 1;
public static final int QUERY_START_TIME_FIELD_NUMBER = 1;
private long queryStartTime_;
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public boolean hasQueryStartTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public long getQueryStartTime() {
return queryStartTime_;
}
- // optional int32 time_zone = 2;
public static final int TIME_ZONE_FIELD_NUMBER = 2;
private int timeZone_;
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public int getTimeZone() {
return timeZone_;
}
- // optional string default_schema_name = 3;
public static final int DEFAULT_SCHEMA_NAME_FIELD_NUMBER = 3;
- private java.lang.Object defaultSchemaName_;
+ private volatile java.lang.Object defaultSchemaName_;
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public boolean hasDefaultSchemaName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public java.lang.String getDefaultSchemaName() {
java.lang.Object ref = defaultSchemaName_;
@@ -7293,11 +8211,11 @@ public final class BitControl {
}
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public com.google.protobuf.ByteString
getDefaultSchemaNameBytes() {
@@ -7313,25 +8231,24 @@ public final class BitControl {
}
}
- // optional string session_id = 4;
public static final int SESSION_ID_FIELD_NUMBER = 4;
- private java.lang.Object sessionId_;
+ private volatile java.lang.Object sessionId_;
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
@@ -7348,11 +8265,11 @@ public final class BitControl {
}
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
@@ -7368,24 +8285,20 @@ public final class BitControl {
}
}
- private void initFields() {
- queryStartTime_ = 0L;
- timeZone_ = 0;
- defaultSchemaName_ = "";
- sessionId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, queryStartTime_);
}
@@ -7393,17 +8306,17 @@ public final class BitControl {
output.writeInt32(2, timeZone_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getDefaultSchemaNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultSchemaName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getSessionIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sessionId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -7416,26 +8329,92 @@ public final class BitControl {
.computeInt32Size(2, timeZone_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getDefaultSchemaNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultSchemaName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getSessionIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sessionId_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.QueryContextInformation)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.QueryContextInformation other = (org.apache.drill.exec.proto.BitControl.QueryContextInformation) obj;
+
+ boolean result = true;
+ result = result && (hasQueryStartTime() == other.hasQueryStartTime());
+ if (hasQueryStartTime()) {
+ result = result && (getQueryStartTime()
+ == other.getQueryStartTime());
+ }
+ result = result && (hasTimeZone() == other.hasTimeZone());
+ if (hasTimeZone()) {
+ result = result && (getTimeZone()
+ == other.getTimeZone());
+ }
+ result = result && (hasDefaultSchemaName() == other.hasDefaultSchemaName());
+ if (hasDefaultSchemaName()) {
+ result = result && getDefaultSchemaName()
+ .equals(other.getDefaultSchemaName());
+ }
+ result = result && (hasSessionId() == other.hasSessionId());
+ if (hasSessionId()) {
+ result = result && getSessionId()
+ .equals(other.getSessionId());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryStartTime()) {
+ hash = (37 * hash) + QUERY_START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getQueryStartTime());
+ }
+ if (hasTimeZone()) {
+ hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeZone();
+ }
+ if (hasDefaultSchemaName()) {
+ hash = (37 * hash) + DEFAULT_SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDefaultSchemaName().hashCode();
+ }
+ if (hasSessionId()) {
+ hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -7458,46 +8437,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.QueryContextInformation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.QueryContextInformation prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7505,14 +8497,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.QueryContextInformation}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.QueryContextInformation)
+ org.apache.drill.exec.proto.BitControl.QueryContextInformationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_QueryContextInformation_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_QueryContextInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7525,18 +8519,16 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
queryStartTime_ = 0L;
@@ -7550,19 +8542,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_QueryContextInformation_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.QueryContextInformation getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.QueryContextInformation build() {
org.apache.drill.exec.proto.BitControl.QueryContextInformation result = buildPartial();
if (!result.isInitialized()) {
@@ -7571,6 +8562,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.QueryContextInformation buildPartial() {
org.apache.drill.exec.proto.BitControl.QueryContextInformation result = new org.apache.drill.exec.proto.BitControl.QueryContextInformation(this);
int from_bitField0_ = bitField0_;
@@ -7596,6 +8588,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.QueryContextInformation) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.QueryContextInformation)other);
@@ -7623,14 +8648,17 @@ public final class BitControl {
sessionId_ = other.sessionId_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7640,7 +8668,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.QueryContextInformation) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -7650,34 +8678,33 @@ public final class BitControl {
}
private int bitField0_;
- // optional int64 query_start_time = 1;
private long queryStartTime_ ;
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public boolean hasQueryStartTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public long getQueryStartTime() {
return queryStartTime_;
}
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public Builder setQueryStartTime(long value) {
bitField0_ |= 0x00000001;
@@ -7686,11 +8713,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional int64 query_start_time = 1;</code>
- *
* <pre>
* start time of query in milliseconds
* </pre>
+ *
+ * <code>optional int64 query_start_time = 1;</code>
*/
public Builder clearQueryStartTime() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -7699,34 +8726,33 @@ public final class BitControl {
return this;
}
- // optional int32 time_zone = 2;
private int timeZone_ ;
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public boolean hasTimeZone() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public int getTimeZone() {
return timeZone_;
}
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public Builder setTimeZone(int value) {
bitField0_ |= 0x00000002;
@@ -7735,11 +8761,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional int32 time_zone = 2;</code>
- *
* <pre>
* timezone of the Drillbit where user is connected
* </pre>
+ *
+ * <code>optional int32 time_zone = 2;</code>
*/
public Builder clearTimeZone() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -7748,42 +8774,44 @@ public final class BitControl {
return this;
}
- // optional string default_schema_name = 3;
private java.lang.Object defaultSchemaName_ = "";
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public boolean hasDefaultSchemaName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public java.lang.String getDefaultSchemaName() {
java.lang.Object ref = defaultSchemaName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- defaultSchemaName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ defaultSchemaName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public com.google.protobuf.ByteString
getDefaultSchemaNameBytes() {
@@ -7799,11 +8827,11 @@ public final class BitControl {
}
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public Builder setDefaultSchemaName(
java.lang.String value) {
@@ -7816,11 +8844,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public Builder clearDefaultSchemaName() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -7829,11 +8857,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional string default_schema_name = 3;</code>
- *
* <pre>
* default schema in current session when the query is submitted
* </pre>
+ *
+ * <code>optional string default_schema_name = 3;</code>
*/
public Builder setDefaultSchemaNameBytes(
com.google.protobuf.ByteString value) {
@@ -7846,42 +8874,44 @@ public final class BitControl {
return this;
}
- // optional string session_id = 4;
private java.lang.Object sessionId_ = "";
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sessionId_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sessionId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
@@ -7897,11 +8927,11 @@ public final class BitControl {
}
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public Builder setSessionId(
java.lang.String value) {
@@ -7914,11 +8944,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public Builder clearSessionId() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -7927,11 +8957,11 @@ public final class BitControl {
return this;
}
/**
- * <code>optional string session_id = 4;</code>
- *
* <pre>
* current session id
* </pre>
+ *
+ * <code>optional string session_id = 4;</code>
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
@@ -7943,22 +8973,63 @@ public final class BitControl {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.QueryContextInformation)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.QueryContextInformation)
+ private static final org.apache.drill.exec.proto.BitControl.QueryContextInformation DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryContextInformation(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.QueryContextInformation();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.QueryContextInformation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryContextInformation>
+ PARSER = new com.google.protobuf.AbstractParser<QueryContextInformation>() {
+ @java.lang.Override
+ public QueryContextInformation parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryContextInformation(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryContextInformation> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryContextInformation> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.QueryContextInformation getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.QueryContextInformation)
}
- public interface WorkQueueStatusOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface WorkQueueStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.WorkQueueStatus)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.DrillbitEndpoint endpoint = 1;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 1;</code>
*/
@@ -7972,7 +9043,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder();
- // optional int32 queue_length = 2;
/**
* <code>optional int32 queue_length = 2;</code>
*/
@@ -7982,7 +9052,6 @@ public final class BitControl {
*/
int getQueueLength();
- // optional int64 report_time = 3;
/**
* <code>optional int64 report_time = 3;</code>
*/
@@ -7995,36 +9064,33 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.WorkQueueStatus}
*/
- public static final class WorkQueueStatus extends
- com.google.protobuf.GeneratedMessage
- implements WorkQueueStatusOrBuilder {
+ public static final class WorkQueueStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.WorkQueueStatus)
+ WorkQueueStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use WorkQueueStatus.newBuilder() to construct.
- private WorkQueueStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WorkQueueStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WorkQueueStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WorkQueueStatus defaultInstance;
- public static WorkQueueStatus getDefaultInstance() {
- return defaultInstance;
- }
-
- public WorkQueueStatus getDefaultInstanceForType() {
- return defaultInstance;
+ private WorkQueueStatus() {
+ queueLength_ = 0;
+ reportTime_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private WorkQueueStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -8036,13 +9102,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -8066,13 +9125,20 @@ public final class BitControl {
reportTime_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -8083,30 +9149,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_WorkQueueStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_WorkQueueStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.WorkQueueStatus.class, org.apache.drill.exec.proto.BitControl.WorkQueueStatus.Builder.class);
}
- public static com.google.protobuf.Parser<WorkQueueStatus> PARSER =
- new com.google.protobuf.AbstractParser<WorkQueueStatus>() {
- public WorkQueueStatus parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WorkQueueStatus(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WorkQueueStatus> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.DrillbitEndpoint endpoint = 1;
public static final int ENDPOINT_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_;
/**
@@ -8119,16 +9170,15 @@ public final class BitControl {
* <code>optional .exec.DrillbitEndpoint endpoint = 1;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 1;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
- // optional int32 queue_length = 2;
public static final int QUEUE_LENGTH_FIELD_NUMBER = 2;
private int queueLength_;
/**
@@ -8144,7 +9194,6 @@ public final class BitControl {
return queueLength_;
}
- // optional int64 report_time = 3;
public static final int REPORT_TIME_FIELD_NUMBER = 3;
private long reportTime_;
/**
@@ -8160,25 +9209,22 @@ public final class BitControl {
return reportTime_;
}
- private void initFields() {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- queueLength_ = 0;
- reportTime_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, endpoint_);
+ output.writeMessage(1, getEndpoint());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, queueLength_);
@@ -8186,18 +9232,18 @@ public final class BitControl {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, reportTime_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, endpoint_);
+ .computeMessageSize(1, getEndpoint());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -8207,19 +9253,78 @@ public final class BitControl {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, reportTime_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.WorkQueueStatus)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.WorkQueueStatus other = (org.apache.drill.exec.proto.BitControl.WorkQueueStatus) obj;
+
+ boolean result = true;
+ result = result && (hasEndpoint() == other.hasEndpoint());
+ if (hasEndpoint()) {
+ result = result && getEndpoint()
+ .equals(other.getEndpoint());
+ }
+ result = result && (hasQueueLength() == other.hasQueueLength());
+ if (hasQueueLength()) {
+ result = result && (getQueueLength()
+ == other.getQueueLength());
+ }
+ result = result && (hasReportTime() == other.hasReportTime());
+ if (hasReportTime()) {
+ result = result && (getReportTime()
+ == other.getReportTime());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEndpoint()) {
+ hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpoint().hashCode();
+ }
+ if (hasQueueLength()) {
+ hash = (37 * hash) + QUEUE_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getQueueLength();
+ }
+ if (hasReportTime()) {
+ hash = (37 * hash) + REPORT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getReportTime());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -8242,46 +9347,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.WorkQueueStatus prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8289,14 +9407,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.WorkQueueStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.WorkQueueStatusOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.WorkQueueStatus)
+ org.apache.drill.exec.proto.BitControl.WorkQueueStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_WorkQueueStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_WorkQueueStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8309,23 +9429,21 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getEndpointFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
} else {
endpointBuilder_.clear();
}
@@ -8337,19 +9455,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_WorkQueueStatus_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.WorkQueueStatus getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.WorkQueueStatus.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.WorkQueueStatus build() {
org.apache.drill.exec.proto.BitControl.WorkQueueStatus result = buildPartial();
if (!result.isInitialized()) {
@@ -8358,6 +9475,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.WorkQueueStatus buildPartial() {
org.apache.drill.exec.proto.BitControl.WorkQueueStatus result = new org.apache.drill.exec.proto.BitControl.WorkQueueStatus(this);
int from_bitField0_ = bitField0_;
@@ -8383,6 +9501,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.WorkQueueStatus) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.WorkQueueStatus)other);
@@ -8403,14 +9554,17 @@ public final class BitControl {
if (other.hasReportTime()) {
setReportTime(other.getReportTime());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8420,7 +9574,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.WorkQueueStatus) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -8430,9 +9584,8 @@ public final class BitControl {
}
private int bitField0_;
- // optional .exec.DrillbitEndpoint endpoint = 1;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> endpointBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 1;</code>
@@ -8445,7 +9598,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
@@ -8486,6 +9639,7 @@ public final class BitControl {
public Builder mergeEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (endpointBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ endpoint_ != null &&
endpoint_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
endpoint_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
@@ -8504,7 +9658,7 @@ public final class BitControl {
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
onChanged();
} else {
endpointBuilder_.clear();
@@ -8527,19 +9681,20 @@ public final class BitControl {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
- return endpoint_;
+ return endpoint_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
- endpointBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- endpoint_,
+ getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
@@ -8547,7 +9702,6 @@ public final class BitControl {
return endpointBuilder_;
}
- // optional int32 queue_length = 2;
private int queueLength_ ;
/**
* <code>optional int32 queue_length = 2;</code>
@@ -8580,7 +9734,6 @@ public final class BitControl {
return this;
}
- // optional int64 report_time = 3;
private long reportTime_ ;
/**
* <code>optional int64 report_time = 3;</code>
@@ -8612,22 +9765,63 @@ public final class BitControl {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.WorkQueueStatus)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.WorkQueueStatus)
+ private static final org.apache.drill.exec.proto.BitControl.WorkQueueStatus DEFAULT_INSTANCE;
static {
- defaultInstance = new WorkQueueStatus(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.WorkQueueStatus();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.WorkQueueStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<WorkQueueStatus>
+ PARSER = new com.google.protobuf.AbstractParser<WorkQueueStatus>() {
+ @java.lang.Override
+ public WorkQueueStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new WorkQueueStatus(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<WorkQueueStatus> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WorkQueueStatus> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.WorkQueueStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.WorkQueueStatus)
}
- public interface FinishedReceiverOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface FinishedReceiverOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.control.FinishedReceiver)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.bit.FragmentHandle receiver = 1;
/**
* <code>optional .exec.bit.FragmentHandle receiver = 1;</code>
*/
@@ -8641,7 +9835,6 @@ public final class BitControl {
*/
org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getReceiverOrBuilder();
- // optional .exec.bit.FragmentHandle sender = 2;
/**
* <code>optional .exec.bit.FragmentHandle sender = 2;</code>
*/
@@ -8658,36 +9851,31 @@ public final class BitControl {
/**
* Protobuf type {@code exec.bit.control.FinishedReceiver}
*/
- public static final class FinishedReceiver extends
- com.google.protobuf.GeneratedMessage
- implements FinishedReceiverOrBuilder {
+ public static final class FinishedReceiver extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.control.FinishedReceiver)
+ FinishedReceiverOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use FinishedReceiver.newBuilder() to construct.
- private FinishedReceiver(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private FinishedReceiver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private FinishedReceiver(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final FinishedReceiver defaultInstance;
- public static FinishedReceiver getDefaultInstance() {
- return defaultInstance;
}
-
- public FinishedReceiver getDefaultInstanceForType() {
- return defaultInstance;
+ private FinishedReceiver() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private FinishedReceiver(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -8699,13 +9887,6 @@ public final class BitControl {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -8732,13 +9913,20 @@ public final class BitControl {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -8749,30 +9937,15 @@ public final class BitControl {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FinishedReceiver_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FinishedReceiver_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitControl.FinishedReceiver.class, org.apache.drill.exec.proto.BitControl.FinishedReceiver.Builder.class);
}
- public static com.google.protobuf.Parser<FinishedReceiver> PARSER =
- new com.google.protobuf.AbstractParser<FinishedReceiver>() {
- public FinishedReceiver parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FinishedReceiver(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<FinishedReceiver> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.bit.FragmentHandle receiver = 1;
public static final int RECEIVER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.ExecProtos.FragmentHandle receiver_;
/**
@@ -8785,16 +9958,15 @@ public final class BitControl {
* <code>optional .exec.bit.FragmentHandle receiver = 1;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getReceiver() {
- return receiver_;
+ return receiver_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : receiver_;
}
/**
* <code>optional .exec.bit.FragmentHandle receiver = 1;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getReceiverOrBuilder() {
- return receiver_;
+ return receiver_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : receiver_;
}
- // optional .exec.bit.FragmentHandle sender = 2;
public static final int SENDER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.ExecProtos.FragmentHandle sender_;
/**
@@ -8807,67 +9979,114 @@ public final class BitControl {
* <code>optional .exec.bit.FragmentHandle sender = 2;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getSender() {
- return sender_;
+ return sender_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : sender_;
}
/**
* <code>optional .exec.bit.FragmentHandle sender = 2;</code>
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder getSenderOrBuilder() {
- return sender_;
+ return sender_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : sender_;
}
- private void initFields() {
- receiver_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- sender_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, receiver_);
+ output.writeMessage(1, getReceiver());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, sender_);
+ output.writeMessage(2, getSender());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, receiver_);
+ .computeMessageSize(1, getReceiver());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, sender_);
+ .computeMessageSize(2, getSender());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitControl.FinishedReceiver)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitControl.FinishedReceiver other = (org.apache.drill.exec.proto.BitControl.FinishedReceiver) obj;
+
+ boolean result = true;
+ result = result && (hasReceiver() == other.hasReceiver());
+ if (hasReceiver()) {
+ result = result && getReceiver()
+ .equals(other.getReceiver());
+ }
+ result = result && (hasSender() == other.hasSender());
+ if (hasSender()) {
+ result = result && getSender()
+ .equals(other.getSender());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasReceiver()) {
+ hash = (37 * hash) + RECEIVER_FIELD_NUMBER;
+ hash = (53 * hash) + getReceiver().hashCode();
+ }
+ if (hasSender()) {
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -8890,46 +10109,59 @@ public final class BitControl {
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitControl.FinishedReceiver parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitControl.FinishedReceiver prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8937,14 +10169,16 @@ public final class BitControl {
* Protobuf type {@code exec.bit.control.FinishedReceiver}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitControl.FinishedReceiverOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.control.FinishedReceiver)
+ org.apache.drill.exec.proto.BitControl.FinishedReceiverOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FinishedReceiver_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FinishedReceiver_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8957,30 +10191,28 @@ public final class BitControl {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getReceiverFieldBuilder();
getSenderFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (receiverBuilder_ == null) {
- receiver_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ receiver_ = null;
} else {
receiverBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (senderBuilder_ == null) {
- sender_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ sender_ = null;
} else {
senderBuilder_.clear();
}
@@ -8988,19 +10220,18 @@ public final class BitControl {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitControl.internal_static_exec_bit_control_FinishedReceiver_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FinishedReceiver getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitControl.FinishedReceiver.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FinishedReceiver build() {
org.apache.drill.exec.proto.BitControl.FinishedReceiver result = buildPartial();
if (!result.isInitialized()) {
@@ -9009,6 +10240,7 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitControl.FinishedReceiver buildPartial() {
org.apache.drill.exec.proto.BitControl.FinishedReceiver result = new org.apache.drill.exec.proto.BitControl.FinishedReceiver(this);
int from_bitField0_ = bitField0_;
@@ -9034,6 +10266,39 @@ public final class BitControl {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitControl.FinishedReceiver) {
return mergeFrom((org.apache.drill.exec.proto.BitControl.FinishedReceiver)other);
@@ -9051,14 +10316,17 @@ public final class BitControl {
if (other.hasSender()) {
mergeSender(other.getSender());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -9068,7 +10336,7 @@ public final class BitControl {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitControl.FinishedReceiver) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -9078,9 +10346,8 @@ public final class BitControl {
}
private int bitField0_;
- // optional .exec.bit.FragmentHandle receiver = 1;
- private org.apache.drill.exec.proto.ExecProtos.FragmentHandle receiver_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.ExecProtos.FragmentHandle receiver_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder> receiverBuilder_;
/**
* <code>optional .exec.bit.FragmentHandle receiver = 1;</code>
@@ -9093,7 +10360,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getReceiver() {
if (receiverBuilder_ == null) {
- return receiver_;
+ return receiver_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : receiver_;
} else {
return receiverBuilder_.getMessage();
}
@@ -9134,6 +10401,7 @@ public final class BitControl {
public Builder mergeReceiver(org.apache.drill.exec.proto.ExecProtos.FragmentHandle value) {
if (receiverBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ receiver_ != null &&
receiver_ != org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance()) {
receiver_ =
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.newBuilder(receiver_).mergeFrom(value).buildPartial();
@@ -9152,7 +10420,7 @@ public final class BitControl {
*/
public Builder clearReceiver() {
if (receiverBuilder_ == null) {
- receiver_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ receiver_ = null;
onChanged();
} else {
receiverBuilder_.clear();
@@ -9175,19 +10443,20 @@ public final class BitControl {
if (receiverBuilder_ != null) {
return receiverBuilder_.getMessageOrBuilder();
} else {
- return receiver_;
+ return receiver_ == null ?
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : receiver_;
}
}
/**
* <code>optional .exec.bit.FragmentHandle receiver = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>
getReceiverFieldBuilder() {
if (receiverBuilder_ == null) {
- receiverBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ receiverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>(
- receiver_,
+ getReceiver(),
getParentForChildren(),
isClean());
receiver_ = null;
@@ -9195,9 +10464,8 @@ public final class BitControl {
return receiverBuilder_;
}
- // optional .exec.bit.FragmentHandle sender = 2;
- private org.apache.drill.exec.proto.ExecProtos.FragmentHandle sender_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.ExecProtos.FragmentHandle sender_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder> senderBuilder_;
/**
* <code>optional .exec.bit.FragmentHandle sender = 2;</code>
@@ -9210,7 +10478,7 @@ public final class BitControl {
*/
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getSender() {
if (senderBuilder_ == null) {
- return sender_;
+ return sender_ == null ? org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : sender_;
} else {
return senderBuilder_.getMessage();
}
@@ -9251,6 +10519,7 @@ public final class BitControl {
public Builder mergeSender(org.apache.drill.exec.proto.ExecProtos.FragmentHandle value) {
if (senderBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ sender_ != null &&
sender_ != org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance()) {
sender_ =
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.newBuilder(sender_).mergeFrom(value).buildPartial();
@@ -9269,7 +10538,7 @@ public final class BitControl {
*/
public Builder clearSender() {
if (senderBuilder_ == null) {
- sender_ = org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
+ sender_ = null;
onChanged();
} else {
senderBuilder_.clear();
@@ -9292,93 +10561,135 @@ public final class BitControl {
if (senderBuilder_ != null) {
return senderBuilder_.getMessageOrBuilder();
} else {
- return sender_;
+ return sender_ == null ?
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance() : sender_;
}
}
/**
* <code>optional .exec.bit.FragmentHandle sender = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>
getSenderFieldBuilder() {
if (senderBuilder_ == null) {
- senderBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ senderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.ExecProtos.FragmentHandle, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder, org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder>(
- sender_,
+ getSender(),
getParentForChildren(),
isClean());
sender_ = null;
}
return senderBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.control.FinishedReceiver)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.control.FinishedReceiver)
+ private static final org.apache.drill.exec.proto.BitControl.FinishedReceiver DEFAULT_INSTANCE;
static {
- defaultInstance = new FinishedReceiver(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitControl.FinishedReceiver();
+ }
+
+ public static org.apache.drill.exec.proto.BitControl.FinishedReceiver getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<FinishedReceiver>
+ PARSER = new com.google.protobuf.AbstractParser<FinishedReceiver>() {
+ @java.lang.Override
+ public FinishedReceiver parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new FinishedReceiver(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<FinishedReceiver> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<FinishedReceiver> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitControl.FinishedReceiver getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.control.FinishedReceiver)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_BitControlHandshake_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_BitControlHandshake_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_BitStatus_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_BitStatus_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_FragmentStatus_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_FragmentStatus_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_InitializeFragments_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_InitializeFragments_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_CustomMessage_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_CustomMessage_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_PlanFragment_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_PlanFragment_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_Collector_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_Collector_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_QueryContextInformation_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_QueryContextInformation_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_WorkQueueStatus_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_WorkQueueStatus_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_control_FinishedReceiver_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_control_FinishedReceiver_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -9391,7 +10702,7 @@ public final class BitControl {
"nt\022 \n\030authenticationMechanisms\030\004 \003(\t\"F\n\t" +
"BitStatus\0229\n\017fragment_status\030\001 \003(\0132 .exe" +
"c.bit.control.FragmentStatus\"n\n\016Fragment" +
- "Status\0222\n\007profile\030\001 \001(\0132!.exec.shared.Mi",
+ "Status\0222\n\007profile\030\001 \001(\0132!.exec.shared.Mi" +
"norFragmentProfile\022(\n\006handle\030\002 \001(\0132\030.exe" +
"c.bit.FragmentHandle\"G\n\023InitializeFragme" +
"nts\0220\n\010fragment\030\001 \003(\0132\036.exec.bit.control" +
@@ -9401,7 +10712,7 @@ public final class BitControl {
"\022\024\n\014network_cost\030\004 \001(\002\022\020\n\010cpu_cost\030\005 \001(\002" +
"\022\021\n\tdisk_cost\030\006 \001(\002\022\023\n\013memory_cost\030\007 \001(\002" +
"\022\025\n\rfragment_json\030\010 \001(\t\022\025\n\rleaf_fragment" +
- "\030\t \001(\010\022*\n\nassignment\030\n \001(\0132\026.exec.Drillb",
+ "\030\t \001(\010\022*\n\nassignment\030\n \001(\0132\026.exec.Drillb" +
"itEndpoint\022\'\n\007foreman\030\013 \001(\0132\026.exec.Drill" +
"bitEndpoint\022\035\n\013mem_initial\030\014 \001(\003:\010200000" +
"00\022\033\n\007mem_max\030\r \001(\003:\n2000000000\0221\n\013crede" +
@@ -9411,7 +10722,7 @@ public final class BitControl {
"tion\022.\n\tcollector\030\021 \003(\0132\033.exec.bit.contr" +
"ol.Collector\"\210\001\n\tCollector\022\"\n\032opposite_m" +
"ajor_fragment_id\030\001 \001(\005\022#\n\027incoming_minor" +
- "_fragment\030\002 \003(\005B\002\020\001\022\035\n\025supports_out_of_o",
+ "_fragment\030\002 \003(\005B\002\020\001\022\035\n\025supports_out_of_o" +
"rder\030\003 \001(\010\022\023\n\013is_spooling\030\004 \001(\010\"w\n\027Query" +
"ContextInformation\022\030\n\020query_start_time\030\001" +
" \001(\003\022\021\n\ttime_zone\030\002 \001(\005\022\033\n\023default_schem" +
@@ -9421,7 +10732,7 @@ public final class BitControl {
"eport_time\030\003 \001(\003\"h\n\020FinishedReceiver\022*\n\010" +
"receiver\030\001 \001(\0132\030.exec.bit.FragmentHandle" +
"\022(\n\006sender\030\002 \001(\0132\030.exec.bit.FragmentHand" +
- "le*\206\003\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013",
+ "le*\206\003\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013" +
"\n\007GOODBYE\020\002\022\034\n\030REQ_INITIALIZE_FRAGMENTS\020" +
"\003\022\027\n\023REQ_CANCEL_FRAGMENT\020\006\022\031\n\025REQ_RECEIV" +
"ER_FINISHED\020\007\022\027\n\023REQ_FRAGMENT_STATUS\020\010\022\022" +
@@ -9434,73 +10745,13 @@ public final class BitControl {
"rg.apache.drill.exec.protoB\nBitControlH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_bit_control_BitControlHandshake_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_bit_control_BitControlHandshake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_BitControlHandshake_descriptor,
- new java.lang.String[] { "RpcVersion", "Channel", "Endpoint", "AuthenticationMechanisms", });
- internal_static_exec_bit_control_BitStatus_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_bit_control_BitStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_BitStatus_descriptor,
- new java.lang.String[] { "FragmentStatus", });
- internal_static_exec_bit_control_FragmentStatus_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_bit_control_FragmentStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_FragmentStatus_descriptor,
- new java.lang.String[] { "Profile", "Handle", });
- internal_static_exec_bit_control_InitializeFragments_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_exec_bit_control_InitializeFragments_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_InitializeFragments_descriptor,
- new java.lang.String[] { "Fragment", });
- internal_static_exec_bit_control_CustomMessage_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_exec_bit_control_CustomMessage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_CustomMessage_descriptor,
- new java.lang.String[] { "Type", "Message", });
- internal_static_exec_bit_control_PlanFragment_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_exec_bit_control_PlanFragment_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_PlanFragment_descriptor,
- new java.lang.String[] { "Handle", "NetworkCost", "CpuCost", "DiskCost", "MemoryCost", "FragmentJson", "LeafFragment", "Assignment", "Foreman", "MemInitial", "MemMax", "Credentials", "OptionsJson", "Context", "Collector", });
- internal_static_exec_bit_control_Collector_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_exec_bit_control_Collector_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_Collector_descriptor,
- new java.lang.String[] { "OppositeMajorFragmentId", "IncomingMinorFragment", "SupportsOutOfOrder", "IsSpooling", });
- internal_static_exec_bit_control_QueryContextInformation_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_exec_bit_control_QueryContextInformation_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_QueryContextInformation_descriptor,
- new java.lang.String[] { "QueryStartTime", "TimeZone", "DefaultSchemaName", "SessionId", });
- internal_static_exec_bit_control_WorkQueueStatus_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_exec_bit_control_WorkQueueStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_WorkQueueStatus_descriptor,
- new java.lang.String[] { "Endpoint", "QueueLength", "ReportTime", });
- internal_static_exec_bit_control_FinishedReceiver_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_exec_bit_control_FinishedReceiver_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_control_FinishedReceiver_descriptor,
- new java.lang.String[] { "Receiver", "Sender", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
@@ -9508,6 +10759,69 @@ public final class BitControl {
org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(),
org.apache.drill.exec.proto.UserBitShared.getDescriptor(),
}, assigner);
+ internal_static_exec_bit_control_BitControlHandshake_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_bit_control_BitControlHandshake_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_BitControlHandshake_descriptor,
+ new java.lang.String[] { "RpcVersion", "Channel", "Endpoint", "AuthenticationMechanisms", });
+ internal_static_exec_bit_control_BitStatus_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_bit_control_BitStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_BitStatus_descriptor,
+ new java.lang.String[] { "FragmentStatus", });
+ internal_static_exec_bit_control_FragmentStatus_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_bit_control_FragmentStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_FragmentStatus_descriptor,
+ new java.lang.String[] { "Profile", "Handle", });
+ internal_static_exec_bit_control_InitializeFragments_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_exec_bit_control_InitializeFragments_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_InitializeFragments_descriptor,
+ new java.lang.String[] { "Fragment", });
+ internal_static_exec_bit_control_CustomMessage_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_exec_bit_control_CustomMessage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_CustomMessage_descriptor,
+ new java.lang.String[] { "Type", "Message", });
+ internal_static_exec_bit_control_PlanFragment_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_exec_bit_control_PlanFragment_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_PlanFragment_descriptor,
+ new java.lang.String[] { "Handle", "NetworkCost", "CpuCost", "DiskCost", "MemoryCost", "FragmentJson", "LeafFragment", "Assignment", "Foreman", "MemInitial", "MemMax", "Credentials", "OptionsJson", "Context", "Collector", });
+ internal_static_exec_bit_control_Collector_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_exec_bit_control_Collector_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_Collector_descriptor,
+ new java.lang.String[] { "OppositeMajorFragmentId", "IncomingMinorFragment", "SupportsOutOfOrder", "IsSpooling", });
+ internal_static_exec_bit_control_QueryContextInformation_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_exec_bit_control_QueryContextInformation_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_QueryContextInformation_descriptor,
+ new java.lang.String[] { "QueryStartTime", "TimeZone", "DefaultSchemaName", "SessionId", });
+ internal_static_exec_bit_control_WorkQueueStatus_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_exec_bit_control_WorkQueueStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_WorkQueueStatus_descriptor,
+ new java.lang.String[] { "Endpoint", "QueueLength", "ReportTime", });
+ internal_static_exec_bit_control_FinishedReceiver_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_exec_bit_control_FinishedReceiver_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_control_FinishedReceiver_descriptor,
+ new java.lang.String[] { "Receiver", "Sender", });
+ org.apache.drill.exec.proto.ExecProtos.getDescriptor();
+ org.apache.drill.exec.proto.CoordinationProtos.getDescriptor();
+ org.apache.drill.exec.proto.UserBitShared.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/BitData.java b/protocol/src/main/java/org/apache/drill/exec/proto/BitData.java
index e43380db8..6a17435d3 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/BitData.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/BitData.java
@@ -23,7 +23,13 @@ package org.apache.drill.exec.proto;
public final class BitData {
private BitData() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code exec.bit.data.RpcType}
@@ -33,39 +39,39 @@ public final class BitData {
/**
* <code>HANDSHAKE = 0;</code>
*/
- HANDSHAKE(0, 0),
+ HANDSHAKE(0),
/**
* <code>ACK = 1;</code>
*/
- ACK(1, 1),
+ ACK(1),
/**
* <code>GOODBYE = 2;</code>
*/
- GOODBYE(2, 2),
+ GOODBYE(2),
/**
- * <code>REQ_RECORD_BATCH = 3;</code>
- *
* <pre>
* send record batch, returns Ack
* </pre>
+ *
+ * <code>REQ_RECORD_BATCH = 3;</code>
*/
- REQ_RECORD_BATCH(3, 3),
+ REQ_RECORD_BATCH(3),
/**
- * <code>SASL_MESSAGE = 4;</code>
- *
* <pre>
* both bit request and response
* </pre>
+ *
+ * <code>SASL_MESSAGE = 4;</code>
*/
- SASL_MESSAGE(4, 4),
+ SASL_MESSAGE(4),
/**
- * <code>REQ_RUNTIME_FILTER = 5;</code>
- *
* <pre>
* send runtime filter data from HashJoin to Foreman, from Foreman to Scan nodes.
* </pre>
+ *
+ * <code>REQ_RUNTIME_FILTER = 5;</code>
*/
- REQ_RUNTIME_FILTER(5, 5),
+ REQ_RUNTIME_FILTER(5),
;
/**
@@ -81,34 +87,44 @@ public final class BitData {
*/
public static final int GOODBYE_VALUE = 2;
/**
- * <code>REQ_RECORD_BATCH = 3;</code>
- *
* <pre>
* send record batch, returns Ack
* </pre>
+ *
+ * <code>REQ_RECORD_BATCH = 3;</code>
*/
public static final int REQ_RECORD_BATCH_VALUE = 3;
/**
- * <code>SASL_MESSAGE = 4;</code>
- *
* <pre>
* both bit request and response
* </pre>
+ *
+ * <code>SASL_MESSAGE = 4;</code>
*/
public static final int SASL_MESSAGE_VALUE = 4;
/**
- * <code>REQ_RUNTIME_FILTER = 5;</code>
- *
* <pre>
* send runtime filter data from HashJoin to Foreman, from Foreman to Scan nodes.
* </pre>
+ *
+ * <code>REQ_RUNTIME_FILTER = 5;</code>
*/
public static final int REQ_RUNTIME_FILTER_VALUE = 5;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RpcType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RpcType forNumber(int value) {
switch (value) {
case 0: return HANDSHAKE;
case 1: return ACK;
@@ -124,17 +140,17 @@ public final class BitData {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RpcType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
public RpcType findValueByNumber(int number) {
- return RpcType.valueOf(number);
+ return RpcType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -156,21 +172,19 @@ public final class BitData {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RpcType(int index, int value) {
- this.index = index;
+ private RpcType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.bit.data.RpcType)
}
- public interface BitClientHandshakeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface BitClientHandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.data.BitClientHandshake)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 rpc_version = 1;
/**
* <code>optional int32 rpc_version = 1;</code>
*/
@@ -180,7 +194,6 @@ public final class BitData {
*/
int getRpcVersion();
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
*/
@@ -193,36 +206,33 @@ public final class BitData {
/**
* Protobuf type {@code exec.bit.data.BitClientHandshake}
*/
- public static final class BitClientHandshake extends
- com.google.protobuf.GeneratedMessage
- implements BitClientHandshakeOrBuilder {
+ public static final class BitClientHandshake extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.data.BitClientHandshake)
+ BitClientHandshakeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use BitClientHandshake.newBuilder() to construct.
- private BitClientHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private BitClientHandshake(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private BitClientHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BitClientHandshake defaultInstance;
- public static BitClientHandshake getDefaultInstance() {
- return defaultInstance;
}
-
- public BitClientHandshake getDefaultInstanceForType() {
- return defaultInstance;
+ private BitClientHandshake() {
+ rpcVersion_ = 0;
+ channel_ = 1;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private BitClientHandshake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -234,13 +244,6 @@ public final class BitData {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
rpcVersion_ = input.readInt32();
@@ -248,12 +251,20 @@ public final class BitData {
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.RpcChannel value = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- channel_ = value;
+ channel_ = rawValue;
+ }
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
}
break;
}
@@ -263,7 +274,7 @@ public final class BitData {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -274,30 +285,15 @@ public final class BitData {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitClientHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitClientHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitData.BitClientHandshake.class, org.apache.drill.exec.proto.BitData.BitClientHandshake.Builder.class);
}
- public static com.google.protobuf.Parser<BitClientHandshake> PARSER =
- new com.google.protobuf.AbstractParser<BitClientHandshake>() {
- public BitClientHandshake parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BitClientHandshake(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BitClientHandshake> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 rpc_version = 1;
public static final int RPC_VERSION_FIELD_NUMBER = 1;
private int rpcVersion_;
/**
@@ -313,9 +309,8 @@ public final class BitData {
return rpcVersion_;
}
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
public static final int CHANNEL_FIELD_NUMBER = 2;
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_;
+ private int channel_;
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
*/
@@ -326,37 +321,37 @@ public final class BitData {
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;
}
- private void initFields() {
- rpcVersion_ = 0;
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, rpcVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, channel_.getNumber());
+ output.writeEnum(2, channel_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -366,20 +361,68 @@ public final class BitData {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, channel_.getNumber());
+ .computeEnumSize(2, channel_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitData.BitClientHandshake)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitData.BitClientHandshake other = (org.apache.drill.exec.proto.BitData.BitClientHandshake) obj;
+
+ boolean result = true;
+ result = result && (hasRpcVersion() == other.hasRpcVersion());
+ if (hasRpcVersion()) {
+ result = result && (getRpcVersion()
+ == other.getRpcVersion());
+ }
+ result = result && (hasChannel() == other.hasChannel());
+ if (hasChannel()) {
+ result = result && channel_ == other.channel_;
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRpcVersion()) {
+ hash = (37 * hash) + RPC_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcVersion();
+ }
+ if (hasChannel()) {
+ hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + channel_;
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -403,46 +446,59 @@ public final class BitData {
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitClientHandshake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitData.BitClientHandshake prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -450,14 +506,16 @@ public final class BitData {
* Protobuf type {@code exec.bit.data.BitClientHandshake}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitData.BitClientHandshakeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.data.BitClientHandshake)
+ org.apache.drill.exec.proto.BitData.BitClientHandshakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitClientHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitClientHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -470,40 +528,37 @@ public final class BitData {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
rpcVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA;
+ channel_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitClientHandshake_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitClientHandshake getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitData.BitClientHandshake.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitClientHandshake build() {
org.apache.drill.exec.proto.BitData.BitClientHandshake result = buildPartial();
if (!result.isInitialized()) {
@@ -512,6 +567,7 @@ public final class BitData {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitClientHandshake buildPartial() {
org.apache.drill.exec.proto.BitData.BitClientHandshake result = new org.apache.drill.exec.proto.BitData.BitClientHandshake(this);
int from_bitField0_ = bitField0_;
@@ -529,6 +585,39 @@ public final class BitData {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitData.BitClientHandshake) {
return mergeFrom((org.apache.drill.exec.proto.BitData.BitClientHandshake)other);
@@ -546,14 +635,17 @@ public final class BitData {
if (other.hasChannel()) {
setChannel(other.getChannel());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -563,7 +655,7 @@ public final class BitData {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitData.BitClientHandshake) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -573,7 +665,6 @@ public final class BitData {
}
private int bitField0_;
- // optional int32 rpc_version = 1;
private int rpcVersion_ ;
/**
* <code>optional int32 rpc_version = 1;</code>
@@ -606,8 +697,7 @@ public final class BitData {
return this;
}
- // optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA;
+ private int channel_ = 1;
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
*/
@@ -618,7 +708,9 @@ public final class BitData {
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;
}
/**
* <code>optional .exec.shared.RpcChannel channel = 2 [default = BIT_DATA];</code>
@@ -628,7 +720,7 @@ public final class BitData {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- channel_ = value;
+ channel_ = value.getNumber();
onChanged();
return this;
}
@@ -637,26 +729,67 @@ public final class BitData {
*/
public Builder clearChannel() {
bitField0_ = (bitField0_ & ~0x00000002);
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA;
+ channel_ = 1;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.data.BitClientHandshake)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.data.BitClientHandshake)
+ private static final org.apache.drill.exec.proto.BitData.BitClientHandshake DEFAULT_INSTANCE;
static {
- defaultInstance = new BitClientHandshake(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitData.BitClientHandshake();
+ }
+
+ public static org.apache.drill.exec.proto.BitData.BitClientHandshake getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<BitClientHandshake>
+ PARSER = new com.google.protobuf.AbstractParser<BitClientHandshake>() {
+ @java.lang.Override
+ public BitClientHandshake parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BitClientHandshake(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<BitClientHandshake> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BitClientHandshake> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitData.BitClientHandshake getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.data.BitClientHandshake)
}
- public interface BitServerHandshakeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface BitServerHandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.data.BitServerHandshake)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 rpc_version = 1;
/**
* <code>optional int32 rpc_version = 1;</code>
*/
@@ -666,12 +799,11 @@ public final class BitData {
*/
int getRpcVersion();
- // repeated string authenticationMechanisms = 2;
/**
* <code>repeated string authenticationMechanisms = 2;</code>
*/
java.util.List<java.lang.String>
- getAuthenticationMechanismsList();
+ getAuthenticationMechanismsList();
/**
* <code>repeated string authenticationMechanisms = 2;</code>
*/
@@ -689,36 +821,33 @@ public final class BitData {
/**
* Protobuf type {@code exec.bit.data.BitServerHandshake}
*/
- public static final class BitServerHandshake extends
- com.google.protobuf.GeneratedMessage
- implements BitServerHandshakeOrBuilder {
+ public static final class BitServerHandshake extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.data.BitServerHandshake)
+ BitServerHandshakeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use BitServerHandshake.newBuilder() to construct.
- private BitServerHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private BitServerHandshake(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private BitServerHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BitServerHandshake defaultInstance;
- public static BitServerHandshake getDefaultInstance() {
- return defaultInstance;
- }
-
- public BitServerHandshake getDefaultInstanceForType() {
- return defaultInstance;
+ private BitServerHandshake() {
+ rpcVersion_ = 0;
+ authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private BitServerHandshake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -730,24 +859,25 @@ public final class BitData {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
rpcVersion_ = input.readInt32();
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
authenticationMechanisms_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
- authenticationMechanisms_.add(input.readBytes());
+ authenticationMechanisms_.add(bs);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -756,10 +886,10 @@ public final class BitData {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -770,30 +900,15 @@ public final class BitData {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitServerHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitServerHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitData.BitServerHandshake.class, org.apache.drill.exec.proto.BitData.BitServerHandshake.Builder.class);
}
- public static com.google.protobuf.Parser<BitServerHandshake> PARSER =
- new com.google.protobuf.AbstractParser<BitServerHandshake>() {
- public BitServerHandshake parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BitServerHandshake(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BitServerHandshake> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 rpc_version = 1;
public static final int RPC_VERSION_FIELD_NUMBER = 1;
private int rpcVersion_;
/**
@@ -809,13 +924,12 @@ public final class BitData {
return rpcVersion_;
}
- // repeated string authenticationMechanisms = 2;
public static final int AUTHENTICATIONMECHANISMS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList authenticationMechanisms_;
/**
* <code>repeated string authenticationMechanisms = 2;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
return authenticationMechanisms_;
}
@@ -839,34 +953,32 @@ public final class BitData {
return authenticationMechanisms_.getByteString(index);
}
- private void initFields() {
- rpcVersion_ = 0;
- authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, rpcVersion_);
}
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- output.writeBytes(2, authenticationMechanisms_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authenticationMechanisms_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -877,25 +989,70 @@ public final class BitData {
{
int dataSize = 0;
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i));
+ dataSize += computeStringSizeNoTag(authenticationMechanisms_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthenticationMechanismsList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitData.BitServerHandshake)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitData.BitServerHandshake other = (org.apache.drill.exec.proto.BitData.BitServerHandshake) obj;
+
+ boolean result = true;
+ result = result && (hasRpcVersion() == other.hasRpcVersion());
+ if (hasRpcVersion()) {
+ result = result && (getRpcVersion()
+ == other.getRpcVersion());
+ }
+ result = result && getAuthenticationMechanismsList()
+ .equals(other.getAuthenticationMechanismsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRpcVersion()) {
+ hash = (37 * hash) + RPC_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcVersion();
+ }
+ if (getAuthenticationMechanismsCount() > 0) {
+ hash = (37 * hash) + AUTHENTICATIONMECHANISMS_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthenticationMechanismsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -918,46 +1075,59 @@ public final class BitData {
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.BitServerHandshake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitData.BitServerHandshake prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -965,14 +1135,16 @@ public final class BitData {
* Protobuf type {@code exec.bit.data.BitServerHandshake}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitData.BitServerHandshakeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.data.BitServerHandshake)
+ org.apache.drill.exec.proto.BitData.BitServerHandshakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitServerHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitServerHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -985,18 +1157,16 @@ public final class BitData {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
rpcVersion_ = 0;
@@ -1006,19 +1176,18 @@ public final class BitData {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_BitServerHandshake_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitServerHandshake getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitData.BitServerHandshake.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitServerHandshake build() {
org.apache.drill.exec.proto.BitData.BitServerHandshake result = buildPartial();
if (!result.isInitialized()) {
@@ -1027,6 +1196,7 @@ public final class BitData {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.BitServerHandshake buildPartial() {
org.apache.drill.exec.proto.BitData.BitServerHandshake result = new org.apache.drill.exec.proto.BitData.BitServerHandshake(this);
int from_bitField0_ = bitField0_;
@@ -1036,8 +1206,7 @@ public final class BitData {
}
result.rpcVersion_ = rpcVersion_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(
- authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.authenticationMechanisms_ = authenticationMechanisms_;
@@ -1046,6 +1215,39 @@ public final class BitData {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitData.BitServerHandshake) {
return mergeFrom((org.apache.drill.exec.proto.BitData.BitServerHandshake)other);
@@ -1070,14 +1272,17 @@ public final class BitData {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1087,7 +1292,7 @@ public final class BitData {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitData.BitServerHandshake) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1097,7 +1302,6 @@ public final class BitData {
}
private int bitField0_;
- // optional int32 rpc_version = 1;
private int rpcVersion_ ;
/**
* <code>optional int32 rpc_version = 1;</code>
@@ -1130,7 +1334,6 @@ public final class BitData {
return this;
}
- // repeated string authenticationMechanisms = 2;
private com.google.protobuf.LazyStringList authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthenticationMechanismsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
@@ -1141,9 +1344,9 @@ public final class BitData {
/**
* <code>repeated string authenticationMechanisms = 2;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
- return java.util.Collections.unmodifiableList(authenticationMechanisms_);
+ return authenticationMechanisms_.getUnmodifiableView();
}
/**
* <code>repeated string authenticationMechanisms = 2;</code>
@@ -1196,7 +1399,8 @@ public final class BitData {
public Builder addAllAuthenticationMechanisms(
java.lang.Iterable<java.lang.String> values) {
ensureAuthenticationMechanismsIsMutable();
- super.addAll(values, authenticationMechanisms_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, authenticationMechanisms_);
onChanged();
return this;
}
@@ -1222,22 +1426,63 @@ public final class BitData {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.data.BitServerHandshake)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.data.BitServerHandshake)
+ private static final org.apache.drill.exec.proto.BitData.BitServerHandshake DEFAULT_INSTANCE;
static {
- defaultInstance = new BitServerHandshake(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitData.BitServerHandshake();
+ }
+
+ public static org.apache.drill.exec.proto.BitData.BitServerHandshake getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<BitServerHandshake>
+ PARSER = new com.google.protobuf.AbstractParser<BitServerHandshake>() {
+ @java.lang.Override
+ public BitServerHandshake parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BitServerHandshake(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<BitServerHandshake> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BitServerHandshake> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitData.BitServerHandshake getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.data.BitServerHandshake)
}
- public interface FragmentRecordBatchOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface FragmentRecordBatchOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.data.FragmentRecordBatch)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId query_id = 1;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
@@ -1251,7 +1496,6 @@ public final class BitData {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // optional int32 receiving_major_fragment_id = 2;
/**
* <code>optional int32 receiving_major_fragment_id = 2;</code>
*/
@@ -1261,7 +1505,6 @@ public final class BitData {
*/
int getReceivingMajorFragmentId();
- // repeated int32 receiving_minor_fragment_id = 3;
/**
* <code>repeated int32 receiving_minor_fragment_id = 3;</code>
*/
@@ -1275,7 +1518,6 @@ public final class BitData {
*/
int getReceivingMinorFragmentId(int index);
- // optional int32 sending_major_fragment_id = 4;
/**
* <code>optional int32 sending_major_fragment_id = 4;</code>
*/
@@ -1285,7 +1527,6 @@ public final class BitData {
*/
int getSendingMajorFragmentId();
- // optional int32 sending_minor_fragment_id = 5;
/**
* <code>optional int32 sending_minor_fragment_id = 5;</code>
*/
@@ -1295,7 +1536,6 @@ public final class BitData {
*/
int getSendingMinorFragmentId();
- // optional .exec.shared.RecordBatchDef def = 6;
/**
* <code>optional .exec.shared.RecordBatchDef def = 6;</code>
*/
@@ -1309,7 +1549,6 @@ public final class BitData {
*/
org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder();
- // optional bool isLastBatch = 7;
/**
* <code>optional bool isLastBatch = 7;</code>
*/
@@ -1322,36 +1561,36 @@ public final class BitData {
/**
* Protobuf type {@code exec.bit.data.FragmentRecordBatch}
*/
- public static final class FragmentRecordBatch extends
- com.google.protobuf.GeneratedMessage
- implements FragmentRecordBatchOrBuilder {
+ public static final class FragmentRecordBatch extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.data.FragmentRecordBatch)
+ FragmentRecordBatchOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use FragmentRecordBatch.newBuilder() to construct.
- private FragmentRecordBatch(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private FragmentRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private FragmentRecordBatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final FragmentRecordBatch defaultInstance;
- public static FragmentRecordBatch getDefaultInstance() {
- return defaultInstance;
- }
-
- public FragmentRecordBatch getDefaultInstanceForType() {
- return defaultInstance;
+ private FragmentRecordBatch() {
+ receivingMajorFragmentId_ = 0;
+ receivingMinorFragmentId_ = java.util.Collections.emptyList();
+ sendingMajorFragmentId_ = 0;
+ sendingMinorFragmentId_ = 0;
+ isLastBatch_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private FragmentRecordBatch(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1363,13 +1602,6 @@ public final class BitData {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -1437,13 +1669,20 @@ public final class BitData {
isLastBatch_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
receivingMinorFragmentId_ = java.util.Collections.unmodifiableList(receivingMinorFragmentId_);
@@ -1457,30 +1696,15 @@ public final class BitData {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_FragmentRecordBatch_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_FragmentRecordBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitData.FragmentRecordBatch.class, org.apache.drill.exec.proto.BitData.FragmentRecordBatch.Builder.class);
}
- public static com.google.protobuf.Parser<FragmentRecordBatch> PARSER =
- new com.google.protobuf.AbstractParser<FragmentRecordBatch>() {
- public FragmentRecordBatch parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FragmentRecordBatch(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<FragmentRecordBatch> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
public static final int QUERY_ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -1493,16 +1717,15 @@ public final class BitData {
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // optional int32 receiving_major_fragment_id = 2;
public static final int RECEIVING_MAJOR_FRAGMENT_ID_FIELD_NUMBER = 2;
private int receivingMajorFragmentId_;
/**
@@ -1518,7 +1741,6 @@ public final class BitData {
return receivingMajorFragmentId_;
}
- // repeated int32 receiving_minor_fragment_id = 3;
public static final int RECEIVING_MINOR_FRAGMENT_ID_FIELD_NUMBER = 3;
private java.util.List<java.lang.Integer> receivingMinorFragmentId_;
/**
@@ -1541,7 +1763,6 @@ public final class BitData {
return receivingMinorFragmentId_.get(index);
}
- // optional int32 sending_major_fragment_id = 4;
public static final int SENDING_MAJOR_FRAGMENT_ID_FIELD_NUMBER = 4;
private int sendingMajorFragmentId_;
/**
@@ -1557,7 +1778,6 @@ public final class BitData {
return sendingMajorFragmentId_;
}
- // optional int32 sending_minor_fragment_id = 5;
public static final int SENDING_MINOR_FRAGMENT_ID_FIELD_NUMBER = 5;
private int sendingMinorFragmentId_;
/**
@@ -1573,7 +1793,6 @@ public final class BitData {
return sendingMinorFragmentId_;
}
- // optional .exec.shared.RecordBatchDef def = 6;
public static final int DEF_FIELD_NUMBER = 6;
private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_;
/**
@@ -1586,16 +1805,15 @@ public final class BitData {
* <code>optional .exec.shared.RecordBatchDef def = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
/**
* <code>optional .exec.shared.RecordBatchDef def = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder() {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
- // optional bool isLastBatch = 7;
public static final int ISLASTBATCH_FIELD_NUMBER = 7;
private boolean isLastBatch_;
/**
@@ -1611,29 +1829,22 @@ public final class BitData {
return isLastBatch_;
}
- private void initFields() {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- receivingMajorFragmentId_ = 0;
- receivingMinorFragmentId_ = java.util.Collections.emptyList();
- sendingMajorFragmentId_ = 0;
- sendingMinorFragmentId_ = 0;
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
- isLastBatch_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, queryId_);
+ output.writeMessage(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, receivingMajorFragmentId_);
@@ -1648,23 +1859,23 @@ public final class BitData {
output.writeInt32(5, sendingMinorFragmentId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(6, def_);
+ output.writeMessage(6, getDef());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(7, isLastBatch_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, queryId_);
+ .computeMessageSize(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -1689,24 +1900,116 @@ public final class BitData {
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, def_);
+ .computeMessageSize(6, getDef());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isLastBatch_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitData.FragmentRecordBatch)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitData.FragmentRecordBatch other = (org.apache.drill.exec.proto.BitData.FragmentRecordBatch) obj;
+
+ boolean result = true;
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && (hasReceivingMajorFragmentId() == other.hasReceivingMajorFragmentId());
+ if (hasReceivingMajorFragmentId()) {
+ result = result && (getReceivingMajorFragmentId()
+ == other.getReceivingMajorFragmentId());
+ }
+ result = result && getReceivingMinorFragmentIdList()
+ .equals(other.getReceivingMinorFragmentIdList());
+ result = result && (hasSendingMajorFragmentId() == other.hasSendingMajorFragmentId());
+ if (hasSendingMajorFragmentId()) {
+ result = result && (getSendingMajorFragmentId()
+ == other.getSendingMajorFragmentId());
+ }
+ result = result && (hasSendingMinorFragmentId() == other.hasSendingMinorFragmentId());
+ if (hasSendingMinorFragmentId()) {
+ result = result && (getSendingMinorFragmentId()
+ == other.getSendingMinorFragmentId());
+ }
+ result = result && (hasDef() == other.hasDef());
+ if (hasDef()) {
+ result = result && getDef()
+ .equals(other.getDef());
+ }
+ result = result && (hasIsLastBatch() == other.hasIsLastBatch());
+ if (hasIsLastBatch()) {
+ result = result && (getIsLastBatch()
+ == other.getIsLastBatch());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (hasReceivingMajorFragmentId()) {
+ hash = (37 * hash) + RECEIVING_MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getReceivingMajorFragmentId();
+ }
+ if (getReceivingMinorFragmentIdCount() > 0) {
+ hash = (37 * hash) + RECEIVING_MINOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getReceivingMinorFragmentIdList().hashCode();
+ }
+ if (hasSendingMajorFragmentId()) {
+ hash = (37 * hash) + SENDING_MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSendingMajorFragmentId();
+ }
+ if (hasSendingMinorFragmentId()) {
+ hash = (37 * hash) + SENDING_MINOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSendingMinorFragmentId();
+ }
+ if (hasDef()) {
+ hash = (37 * hash) + DEF_FIELD_NUMBER;
+ hash = (53 * hash) + getDef().hashCode();
+ }
+ if (hasIsLastBatch()) {
+ hash = (37 * hash) + ISLASTBATCH_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsLastBatch());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1730,46 +2033,59 @@ public final class BitData {
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitData.FragmentRecordBatch prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1777,14 +2093,16 @@ public final class BitData {
* Protobuf type {@code exec.bit.data.FragmentRecordBatch}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitData.FragmentRecordBatchOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.data.FragmentRecordBatch)
+ org.apache.drill.exec.proto.BitData.FragmentRecordBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_FragmentRecordBatch_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_FragmentRecordBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1797,24 +2115,22 @@ public final class BitData {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
getDefFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -1828,7 +2144,7 @@ public final class BitData {
sendingMinorFragmentId_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
if (defBuilder_ == null) {
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
+ def_ = null;
} else {
defBuilder_.clear();
}
@@ -1838,19 +2154,18 @@ public final class BitData {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_FragmentRecordBatch_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.FragmentRecordBatch getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitData.FragmentRecordBatch.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.FragmentRecordBatch build() {
org.apache.drill.exec.proto.BitData.FragmentRecordBatch result = buildPartial();
if (!result.isInitialized()) {
@@ -1859,6 +2174,7 @@ public final class BitData {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.FragmentRecordBatch buildPartial() {
org.apache.drill.exec.proto.BitData.FragmentRecordBatch result = new org.apache.drill.exec.proto.BitData.FragmentRecordBatch(this);
int from_bitField0_ = bitField0_;
@@ -1905,6 +2221,39 @@ public final class BitData {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitData.FragmentRecordBatch) {
return mergeFrom((org.apache.drill.exec.proto.BitData.FragmentRecordBatch)other);
@@ -1944,14 +2293,17 @@ public final class BitData {
if (other.hasIsLastBatch()) {
setIsLastBatch(other.getIsLastBatch());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1961,7 +2313,7 @@ public final class BitData {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitData.FragmentRecordBatch) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1971,9 +2323,8 @@ public final class BitData {
}
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
@@ -1986,7 +2337,7 @@ public final class BitData {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -2027,6 +2378,7 @@ public final class BitData {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -2045,7 +2397,7 @@ public final class BitData {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -2068,19 +2420,20 @@ public final class BitData {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -2088,7 +2441,6 @@ public final class BitData {
return queryIdBuilder_;
}
- // optional int32 receiving_major_fragment_id = 2;
private int receivingMajorFragmentId_ ;
/**
* <code>optional int32 receiving_major_fragment_id = 2;</code>
@@ -2121,7 +2473,6 @@ public final class BitData {
return this;
}
- // repeated int32 receiving_minor_fragment_id = 3;
private java.util.List<java.lang.Integer> receivingMinorFragmentId_ = java.util.Collections.emptyList();
private void ensureReceivingMinorFragmentIdIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
@@ -2173,7 +2524,8 @@ public final class BitData {
public Builder addAllReceivingMinorFragmentId(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureReceivingMinorFragmentIdIsMutable();
- super.addAll(values, receivingMinorFragmentId_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, receivingMinorFragmentId_);
onChanged();
return this;
}
@@ -2187,7 +2539,6 @@ public final class BitData {
return this;
}
- // optional int32 sending_major_fragment_id = 4;
private int sendingMajorFragmentId_ ;
/**
* <code>optional int32 sending_major_fragment_id = 4;</code>
@@ -2220,7 +2571,6 @@ public final class BitData {
return this;
}
- // optional int32 sending_minor_fragment_id = 5;
private int sendingMinorFragmentId_ ;
/**
* <code>optional int32 sending_minor_fragment_id = 5;</code>
@@ -2253,9 +2603,8 @@ public final class BitData {
return this;
}
- // optional .exec.shared.RecordBatchDef def = 6;
- private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder> defBuilder_;
/**
* <code>optional .exec.shared.RecordBatchDef def = 6;</code>
@@ -2268,7 +2617,7 @@ public final class BitData {
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {
if (defBuilder_ == null) {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
} else {
return defBuilder_.getMessage();
}
@@ -2309,6 +2658,7 @@ public final class BitData {
public Builder mergeDef(org.apache.drill.exec.proto.UserBitShared.RecordBatchDef value) {
if (defBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
+ def_ != null &&
def_ != org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance()) {
def_ =
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.newBuilder(def_).mergeFrom(value).buildPartial();
@@ -2327,7 +2677,7 @@ public final class BitData {
*/
public Builder clearDef() {
if (defBuilder_ == null) {
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
+ def_ = null;
onChanged();
} else {
defBuilder_.clear();
@@ -2350,19 +2700,20 @@ public final class BitData {
if (defBuilder_ != null) {
return defBuilder_.getMessageOrBuilder();
} else {
- return def_;
+ return def_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
}
/**
* <code>optional .exec.shared.RecordBatchDef def = 6;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>
getDefFieldBuilder() {
if (defBuilder_ == null) {
- defBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ defBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>(
- def_,
+ getDef(),
getParentForChildren(),
isClean());
def_ = null;
@@ -2370,7 +2721,6 @@ public final class BitData {
return defBuilder_;
}
- // optional bool isLastBatch = 7;
private boolean isLastBatch_ ;
/**
* <code>optional bool isLastBatch = 7;</code>
@@ -2402,22 +2752,63 @@ public final class BitData {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.data.FragmentRecordBatch)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.data.FragmentRecordBatch)
+ private static final org.apache.drill.exec.proto.BitData.FragmentRecordBatch DEFAULT_INSTANCE;
static {
- defaultInstance = new FragmentRecordBatch(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitData.FragmentRecordBatch();
+ }
+
+ public static org.apache.drill.exec.proto.BitData.FragmentRecordBatch getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<FragmentRecordBatch>
+ PARSER = new com.google.protobuf.AbstractParser<FragmentRecordBatch>() {
+ @java.lang.Override
+ public FragmentRecordBatch parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new FragmentRecordBatch(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<FragmentRecordBatch> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<FragmentRecordBatch> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitData.FragmentRecordBatch getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.data.FragmentRecordBatch)
}
- public interface RuntimeFilterBDefOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RuntimeFilterBDefOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.data.RuntimeFilterBDef)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId query_id = 1;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
@@ -2431,7 +2822,6 @@ public final class BitData {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // optional int32 major_fragment_id = 2;
/**
* <code>optional int32 major_fragment_id = 2;</code>
*/
@@ -2441,7 +2831,6 @@ public final class BitData {
*/
int getMajorFragmentId();
- // optional int32 minor_fragment_id = 3;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
*/
@@ -2451,25 +2840,23 @@ public final class BitData {
*/
int getMinorFragmentId();
- // optional bool to_foreman = 4;
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
boolean hasToForeman();
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
boolean getToForeman();
- // repeated int32 bloom_filter_size_in_bytes = 5;
/**
* <code>repeated int32 bloom_filter_size_in_bytes = 5;</code>
*/
@@ -2483,111 +2870,110 @@ public final class BitData {
*/
int getBloomFilterSizeInBytes(int index);
- // repeated string probe_fields = 6;
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
java.util.List<java.lang.String>
- getProbeFieldsList();
+ getProbeFieldsList();
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
int getProbeFieldsCount();
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
java.lang.String getProbeFields(int index);
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
com.google.protobuf.ByteString
getProbeFieldsBytes(int index);
- // optional int32 hj_op_id = 7;
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
boolean hasHjOpId();
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
int getHjOpId();
- // optional int64 rf_identifier = 8;
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
boolean hasRfIdentifier();
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
long getRfIdentifier();
}
/**
* Protobuf type {@code exec.bit.data.RuntimeFilterBDef}
*/
- public static final class RuntimeFilterBDef extends
- com.google.protobuf.GeneratedMessage
- implements RuntimeFilterBDefOrBuilder {
+ public static final class RuntimeFilterBDef extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.data.RuntimeFilterBDef)
+ RuntimeFilterBDefOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RuntimeFilterBDef.newBuilder() to construct.
- private RuntimeFilterBDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RuntimeFilterBDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private RuntimeFilterBDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RuntimeFilterBDef defaultInstance;
- public static RuntimeFilterBDef getDefaultInstance() {
- return defaultInstance;
- }
-
- public RuntimeFilterBDef getDefaultInstanceForType() {
- return defaultInstance;
+ private RuntimeFilterBDef() {
+ majorFragmentId_ = 0;
+ minorFragmentId_ = 0;
+ toForeman_ = false;
+ bloomFilterSizeInBytes_ = java.util.Collections.emptyList();
+ probeFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ hjOpId_ = 0;
+ rfIdentifier_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RuntimeFilterBDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2599,13 +2985,6 @@ public final class BitData {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -2656,11 +3035,12 @@ public final class BitData {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
probeFields_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
- probeFields_.add(input.readBytes());
+ probeFields_.add(bs);
break;
}
case 56: {
@@ -2673,19 +3053,26 @@ public final class BitData {
rfIdentifier_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
bloomFilterSizeInBytes_ = java.util.Collections.unmodifiableList(bloomFilterSizeInBytes_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- probeFields_ = new com.google.protobuf.UnmodifiableLazyStringList(probeFields_);
+ probeFields_ = probeFields_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -2696,30 +3083,15 @@ public final class BitData {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_RuntimeFilterBDef_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_RuntimeFilterBDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.BitData.RuntimeFilterBDef.class, org.apache.drill.exec.proto.BitData.RuntimeFilterBDef.Builder.class);
}
- public static com.google.protobuf.Parser<RuntimeFilterBDef> PARSER =
- new com.google.protobuf.AbstractParser<RuntimeFilterBDef>() {
- public RuntimeFilterBDef parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RuntimeFilterBDef(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RuntimeFilterBDef> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
public static final int QUERY_ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -2732,16 +3104,15 @@ public final class BitData {
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // optional int32 major_fragment_id = 2;
public static final int MAJOR_FRAGMENT_ID_FIELD_NUMBER = 2;
private int majorFragmentId_;
/**
@@ -2757,7 +3128,6 @@ public final class BitData {
return majorFragmentId_;
}
- // optional int32 minor_fragment_id = 3;
public static final int MINOR_FRAGMENT_ID_FIELD_NUMBER = 3;
private int minorFragmentId_;
/**
@@ -2773,31 +3143,29 @@ public final class BitData {
return minorFragmentId_;
}
- // optional bool to_foreman = 4;
public static final int TO_FOREMAN_FIELD_NUMBER = 4;
private boolean toForeman_;
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public boolean hasToForeman() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public boolean getToForeman() {
return toForeman_;
}
- // repeated int32 bloom_filter_size_in_bytes = 5;
public static final int BLOOM_FILTER_SIZE_IN_BYTES_FIELD_NUMBER = 5;
private java.util.List<java.lang.Integer> bloomFilterSizeInBytes_;
/**
@@ -2820,124 +3188,113 @@ public final class BitData {
return bloomFilterSizeInBytes_.get(index);
}
- // repeated string probe_fields = 6;
public static final int PROBE_FIELDS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList probeFields_;
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getProbeFieldsList() {
return probeFields_;
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public int getProbeFieldsCount() {
return probeFields_.size();
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public java.lang.String getProbeFields(int index) {
return probeFields_.get(index);
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public com.google.protobuf.ByteString
getProbeFieldsBytes(int index) {
return probeFields_.getByteString(index);
}
- // optional int32 hj_op_id = 7;
public static final int HJ_OP_ID_FIELD_NUMBER = 7;
private int hjOpId_;
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public boolean hasHjOpId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public int getHjOpId() {
return hjOpId_;
}
- // optional int64 rf_identifier = 8;
public static final int RF_IDENTIFIER_FIELD_NUMBER = 8;
private long rfIdentifier_;
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public boolean hasRfIdentifier() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public long getRfIdentifier() {
return rfIdentifier_;
}
- private void initFields() {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- majorFragmentId_ = 0;
- minorFragmentId_ = 0;
- toForeman_ = false;
- bloomFilterSizeInBytes_ = java.util.Collections.emptyList();
- probeFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- hjOpId_ = 0;
- rfIdentifier_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, queryId_);
+ output.writeMessage(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, majorFragmentId_);
@@ -2952,7 +3309,7 @@ public final class BitData {
output.writeInt32(5, bloomFilterSizeInBytes_.get(i));
}
for (int i = 0; i < probeFields_.size(); i++) {
- output.writeBytes(6, probeFields_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, probeFields_.getRaw(i));
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(7, hjOpId_);
@@ -2960,18 +3317,18 @@ public final class BitData {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt64(8, rfIdentifier_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, queryId_);
+ .computeMessageSize(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -2997,8 +3354,7 @@ public final class BitData {
{
int dataSize = 0;
for (int i = 0; i < probeFields_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(probeFields_.getByteString(i));
+ dataSize += computeStringSizeNoTag(probeFields_.getRaw(i));
}
size += dataSize;
size += 1 * getProbeFieldsList().size();
@@ -3011,18 +3367,117 @@ public final class BitData {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, rfIdentifier_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.BitData.RuntimeFilterBDef)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.BitData.RuntimeFilterBDef other = (org.apache.drill.exec.proto.BitData.RuntimeFilterBDef) obj;
+
+ boolean result = true;
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && (hasMajorFragmentId() == other.hasMajorFragmentId());
+ if (hasMajorFragmentId()) {
+ result = result && (getMajorFragmentId()
+ == other.getMajorFragmentId());
+ }
+ result = result && (hasMinorFragmentId() == other.hasMinorFragmentId());
+ if (hasMinorFragmentId()) {
+ result = result && (getMinorFragmentId()
+ == other.getMinorFragmentId());
+ }
+ result = result && (hasToForeman() == other.hasToForeman());
+ if (hasToForeman()) {
+ result = result && (getToForeman()
+ == other.getToForeman());
+ }
+ result = result && getBloomFilterSizeInBytesList()
+ .equals(other.getBloomFilterSizeInBytesList());
+ result = result && getProbeFieldsList()
+ .equals(other.getProbeFieldsList());
+ result = result && (hasHjOpId() == other.hasHjOpId());
+ if (hasHjOpId()) {
+ result = result && (getHjOpId()
+ == other.getHjOpId());
+ }
+ result = result && (hasRfIdentifier() == other.hasRfIdentifier());
+ if (hasRfIdentifier()) {
+ result = result && (getRfIdentifier()
+ == other.getRfIdentifier());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (hasMajorFragmentId()) {
+ hash = (37 * hash) + MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMajorFragmentId();
+ }
+ if (hasMinorFragmentId()) {
+ hash = (37 * hash) + MINOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMinorFragmentId();
+ }
+ if (hasToForeman()) {
+ hash = (37 * hash) + TO_FOREMAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getToForeman());
+ }
+ if (getBloomFilterSizeInBytesCount() > 0) {
+ hash = (37 * hash) + BLOOM_FILTER_SIZE_IN_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getBloomFilterSizeInBytesList().hashCode();
+ }
+ if (getProbeFieldsCount() > 0) {
+ hash = (37 * hash) + PROBE_FIELDS_FIELD_NUMBER;
+ hash = (53 * hash) + getProbeFieldsList().hashCode();
+ }
+ if (hasHjOpId()) {
+ hash = (37 * hash) + HJ_OP_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getHjOpId();
+ }
+ if (hasRfIdentifier()) {
+ hash = (37 * hash) + RF_IDENTIFIER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRfIdentifier());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3046,46 +3501,59 @@ public final class BitData {
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.BitData.RuntimeFilterBDef prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3093,14 +3561,16 @@ public final class BitData {
* Protobuf type {@code exec.bit.data.RuntimeFilterBDef}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.BitData.RuntimeFilterBDefOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.data.RuntimeFilterBDef)
+ org.apache.drill.exec.proto.BitData.RuntimeFilterBDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_RuntimeFilterBDef_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_RuntimeFilterBDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3113,23 +3583,21 @@ public final class BitData {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -3151,19 +3619,18 @@ public final class BitData {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.BitData.internal_static_exec_bit_data_RuntimeFilterBDef_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.RuntimeFilterBDef getDefaultInstanceForType() {
return org.apache.drill.exec.proto.BitData.RuntimeFilterBDef.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.RuntimeFilterBDef build() {
org.apache.drill.exec.proto.BitData.RuntimeFilterBDef result = buildPartial();
if (!result.isInitialized()) {
@@ -3172,6 +3639,7 @@ public final class BitData {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.BitData.RuntimeFilterBDef buildPartial() {
org.apache.drill.exec.proto.BitData.RuntimeFilterBDef result = new org.apache.drill.exec.proto.BitData.RuntimeFilterBDef(this);
int from_bitField0_ = bitField0_;
@@ -3202,8 +3670,7 @@ public final class BitData {
}
result.bloomFilterSizeInBytes_ = bloomFilterSizeInBytes_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- probeFields_ = new com.google.protobuf.UnmodifiableLazyStringList(
- probeFields_);
+ probeFields_ = probeFields_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.probeFields_ = probeFields_;
@@ -3220,6 +3687,39 @@ public final class BitData {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.BitData.RuntimeFilterBDef) {
return mergeFrom((org.apache.drill.exec.proto.BitData.RuntimeFilterBDef)other);
@@ -3269,14 +3769,17 @@ public final class BitData {
if (other.hasRfIdentifier()) {
setRfIdentifier(other.getRfIdentifier());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3286,7 +3789,7 @@ public final class BitData {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.BitData.RuntimeFilterBDef) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -3296,9 +3799,8 @@ public final class BitData {
}
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
@@ -3311,7 +3813,7 @@ public final class BitData {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -3352,6 +3854,7 @@ public final class BitData {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -3370,7 +3873,7 @@ public final class BitData {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -3393,19 +3896,20 @@ public final class BitData {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -3413,7 +3917,6 @@ public final class BitData {
return queryIdBuilder_;
}
- // optional int32 major_fragment_id = 2;
private int majorFragmentId_ ;
/**
* <code>optional int32 major_fragment_id = 2;</code>
@@ -3446,7 +3949,6 @@ public final class BitData {
return this;
}
- // optional int32 minor_fragment_id = 3;
private int minorFragmentId_ ;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
@@ -3479,34 +3981,33 @@ public final class BitData {
return this;
}
- // optional bool to_foreman = 4;
private boolean toForeman_ ;
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public boolean hasToForeman() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public boolean getToForeman() {
return toForeman_;
}
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public Builder setToForeman(boolean value) {
bitField0_ |= 0x00000008;
@@ -3515,11 +4016,11 @@ public final class BitData {
return this;
}
/**
- * <code>optional bool to_foreman = 4;</code>
- *
* <pre>
* true means sending to foreman,false means sending to scan nodes
* </pre>
+ *
+ * <code>optional bool to_foreman = 4;</code>
*/
public Builder clearToForeman() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -3528,7 +4029,6 @@ public final class BitData {
return this;
}
- // repeated int32 bloom_filter_size_in_bytes = 5;
private java.util.List<java.lang.Integer> bloomFilterSizeInBytes_ = java.util.Collections.emptyList();
private void ensureBloomFilterSizeInBytesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
@@ -3580,7 +4080,8 @@ public final class BitData {
public Builder addAllBloomFilterSizeInBytes(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureBloomFilterSizeInBytesIsMutable();
- super.addAll(values, bloomFilterSizeInBytes_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, bloomFilterSizeInBytes_);
onChanged();
return this;
}
@@ -3594,7 +4095,6 @@ public final class BitData {
return this;
}
- // repeated string probe_fields = 6;
private com.google.protobuf.LazyStringList probeFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProbeFieldsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
@@ -3603,53 +4103,53 @@ public final class BitData {
}
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getProbeFieldsList() {
- return java.util.Collections.unmodifiableList(probeFields_);
+ return probeFields_.getUnmodifiableView();
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public int getProbeFieldsCount() {
return probeFields_.size();
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public java.lang.String getProbeFields(int index) {
return probeFields_.get(index);
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public com.google.protobuf.ByteString
getProbeFieldsBytes(int index) {
return probeFields_.getByteString(index);
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public Builder setProbeFields(
int index, java.lang.String value) {
@@ -3662,11 +4162,11 @@ public final class BitData {
return this;
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public Builder addProbeFields(
java.lang.String value) {
@@ -3679,25 +4179,26 @@ public final class BitData {
return this;
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public Builder addAllProbeFields(
java.lang.Iterable<java.lang.String> values) {
ensureProbeFieldsIsMutable();
- super.addAll(values, probeFields_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, probeFields_);
onChanged();
return this;
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public Builder clearProbeFields() {
probeFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -3706,11 +4207,11 @@ public final class BitData {
return this;
}
/**
- * <code>repeated string probe_fields = 6;</code>
- *
* <pre>
* probe fields with corresponding BloomFilters
* </pre>
+ *
+ * <code>repeated string probe_fields = 6;</code>
*/
public Builder addProbeFieldsBytes(
com.google.protobuf.ByteString value) {
@@ -3723,34 +4224,33 @@ public final class BitData {
return this;
}
- // optional int32 hj_op_id = 7;
private int hjOpId_ ;
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public boolean hasHjOpId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public int getHjOpId() {
return hjOpId_;
}
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public Builder setHjOpId(int value) {
bitField0_ |= 0x00000040;
@@ -3759,11 +4259,11 @@ public final class BitData {
return this;
}
/**
- * <code>optional int32 hj_op_id = 7;</code>
- *
* <pre>
* the operator id of the HashJoin which generates this RuntimeFilter
* </pre>
+ *
+ * <code>optional int32 hj_op_id = 7;</code>
*/
public Builder clearHjOpId() {
bitField0_ = (bitField0_ & ~0x00000040);
@@ -3772,34 +4272,33 @@ public final class BitData {
return this;
}
- // optional int64 rf_identifier = 8;
private long rfIdentifier_ ;
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public boolean hasRfIdentifier() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public long getRfIdentifier() {
return rfIdentifier_;
}
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public Builder setRfIdentifier(long value) {
bitField0_ |= 0x00000080;
@@ -3808,11 +4307,11 @@ public final class BitData {
return this;
}
/**
- * <code>optional int64 rf_identifier = 8;</code>
- *
* <pre>
* the runtime filter identifier
* </pre>
+ *
+ * <code>optional int64 rf_identifier = 8;</code>
*/
public Builder clearRfIdentifier() {
bitField0_ = (bitField0_ & ~0x00000080);
@@ -3820,44 +4319,85 @@ public final class BitData {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.data.RuntimeFilterBDef)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.data.RuntimeFilterBDef)
+ private static final org.apache.drill.exec.proto.BitData.RuntimeFilterBDef DEFAULT_INSTANCE;
static {
- defaultInstance = new RuntimeFilterBDef(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.BitData.RuntimeFilterBDef();
+ }
+
+ public static org.apache.drill.exec.proto.BitData.RuntimeFilterBDef getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RuntimeFilterBDef>
+ PARSER = new com.google.protobuf.AbstractParser<RuntimeFilterBDef>() {
+ @java.lang.Override
+ public RuntimeFilterBDef parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RuntimeFilterBDef(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RuntimeFilterBDef> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RuntimeFilterBDef> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.BitData.RuntimeFilterBDef getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.data.RuntimeFilterBDef)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_data_BitClientHandshake_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_data_BitClientHandshake_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_data_BitServerHandshake_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_data_BitServerHandshake_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_data_FragmentRecordBatch_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_data_FragmentRecordBatch_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_data_RuntimeFilterBDef_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_data_RuntimeFilterBDef_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -3870,7 +4410,7 @@ public final class BitData {
"enticationMechanisms\030\002 \003(\t\"\214\002\n\023FragmentR" +
"ecordBatch\022&\n\010query_id\030\001 \001(\0132\024.exec.shar" +
"ed.QueryId\022#\n\033receiving_major_fragment_i" +
- "d\030\002 \001(\005\022#\n\033receiving_minor_fragment_id\030\003",
+ "d\030\002 \001(\005\022#\n\033receiving_minor_fragment_id\030\003" +
" \003(\005\022!\n\031sending_major_fragment_id\030\004 \001(\005\022" +
"!\n\031sending_minor_fragment_id\030\005 \001(\005\022(\n\003de" +
"f\030\006 \001(\0132\033.exec.shared.RecordBatchDef\022\023\n\013" +
@@ -3880,44 +4420,20 @@ public final class BitData {
"ment_id\030\003 \001(\005\022\022\n\nto_foreman\030\004 \001(\010\022\"\n\032blo" +
"om_filter_size_in_bytes\030\005 \003(\005\022\024\n\014probe_f" +
"ields\030\006 \003(\t\022\020\n\010hj_op_id\030\007 \001(\005\022\025\n\rrf_iden" +
- "tifier\030\010 \001(\003*n\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007",
+ "tifier\030\010 \001(\003*n\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007" +
"\n\003ACK\020\001\022\013\n\007GOODBYE\020\002\022\024\n\020REQ_RECORD_BATCH" +
"\020\003\022\020\n\014SASL_MESSAGE\020\004\022\026\n\022REQ_RUNTIME_FILT" +
"ER\020\005B(\n\033org.apache.drill.exec.protoB\007Bit" +
"DataH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_bit_data_BitClientHandshake_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_bit_data_BitClientHandshake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_data_BitClientHandshake_descriptor,
- new java.lang.String[] { "RpcVersion", "Channel", });
- internal_static_exec_bit_data_BitServerHandshake_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_bit_data_BitServerHandshake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_data_BitServerHandshake_descriptor,
- new java.lang.String[] { "RpcVersion", "AuthenticationMechanisms", });
- internal_static_exec_bit_data_FragmentRecordBatch_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_bit_data_FragmentRecordBatch_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_data_FragmentRecordBatch_descriptor,
- new java.lang.String[] { "QueryId", "ReceivingMajorFragmentId", "ReceivingMinorFragmentId", "SendingMajorFragmentId", "SendingMinorFragmentId", "Def", "IsLastBatch", });
- internal_static_exec_bit_data_RuntimeFilterBDef_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_exec_bit_data_RuntimeFilterBDef_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_data_RuntimeFilterBDef_descriptor,
- new java.lang.String[] { "QueryId", "MajorFragmentId", "MinorFragmentId", "ToForeman", "BloomFilterSizeInBytes", "ProbeFields", "HjOpId", "RfIdentifier", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
@@ -3925,6 +4441,33 @@ public final class BitData {
org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(),
org.apache.drill.exec.proto.UserBitShared.getDescriptor(),
}, assigner);
+ internal_static_exec_bit_data_BitClientHandshake_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_bit_data_BitClientHandshake_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_data_BitClientHandshake_descriptor,
+ new java.lang.String[] { "RpcVersion", "Channel", });
+ internal_static_exec_bit_data_BitServerHandshake_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_bit_data_BitServerHandshake_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_data_BitServerHandshake_descriptor,
+ new java.lang.String[] { "RpcVersion", "AuthenticationMechanisms", });
+ internal_static_exec_bit_data_FragmentRecordBatch_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_bit_data_FragmentRecordBatch_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_data_FragmentRecordBatch_descriptor,
+ new java.lang.String[] { "QueryId", "ReceivingMajorFragmentId", "ReceivingMinorFragmentId", "SendingMajorFragmentId", "SendingMinorFragmentId", "Def", "IsLastBatch", });
+ internal_static_exec_bit_data_RuntimeFilterBDef_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_exec_bit_data_RuntimeFilterBDef_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_data_RuntimeFilterBDef_descriptor,
+ new java.lang.String[] { "QueryId", "MajorFragmentId", "MinorFragmentId", "ToForeman", "BloomFilterSizeInBytes", "ProbeFields", "HjOpId", "RfIdentifier", });
+ org.apache.drill.exec.proto.ExecProtos.getDescriptor();
+ org.apache.drill.exec.proto.CoordinationProtos.getDescriptor();
+ org.apache.drill.exec.proto.UserBitShared.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/CoordinationProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/CoordinationProtos.java
index 8d14ae91c..488a3c6aa 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/CoordinationProtos.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/CoordinationProtos.java
@@ -23,12 +23,18 @@ package org.apache.drill.exec.proto;
public final class CoordinationProtos {
private CoordinationProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
- public interface DrillbitEndpointOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface DrillbitEndpointOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.DrillbitEndpoint)
+ com.google.protobuf.MessageOrBuilder {
- // optional string address = 1;
/**
* <code>optional string address = 1;</code>
*/
@@ -43,7 +49,6 @@ public final class CoordinationProtos {
com.google.protobuf.ByteString
getAddressBytes();
- // optional int32 user_port = 2;
/**
* <code>optional int32 user_port = 2;</code>
*/
@@ -53,7 +58,6 @@ public final class CoordinationProtos {
*/
int getUserPort();
- // optional int32 control_port = 3;
/**
* <code>optional int32 control_port = 3;</code>
*/
@@ -63,7 +67,6 @@ public final class CoordinationProtos {
*/
int getControlPort();
- // optional int32 data_port = 4;
/**
* <code>optional int32 data_port = 4;</code>
*/
@@ -73,7 +76,6 @@ public final class CoordinationProtos {
*/
int getDataPort();
- // optional .exec.Roles roles = 5;
/**
* <code>optional .exec.Roles roles = 5;</code>
*/
@@ -87,7 +89,6 @@ public final class CoordinationProtos {
*/
org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder getRolesOrBuilder();
- // optional string version = 6;
/**
* <code>optional string version = 6;</code>
*/
@@ -102,7 +103,6 @@ public final class CoordinationProtos {
com.google.protobuf.ByteString
getVersionBytes();
- // optional .exec.DrillbitEndpoint.State state = 7;
/**
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
*/
@@ -112,7 +112,6 @@ public final class CoordinationProtos {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State getState();
- // optional int32 http_port = 8;
/**
* <code>optional int32 http_port = 8;</code>
*/
@@ -125,36 +124,38 @@ public final class CoordinationProtos {
/**
* Protobuf type {@code exec.DrillbitEndpoint}
*/
- public static final class DrillbitEndpoint extends
- com.google.protobuf.GeneratedMessage
- implements DrillbitEndpointOrBuilder {
+ public static final class DrillbitEndpoint extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.DrillbitEndpoint)
+ DrillbitEndpointOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use DrillbitEndpoint.newBuilder() to construct.
- private DrillbitEndpoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private DrillbitEndpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private DrillbitEndpoint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final DrillbitEndpoint defaultInstance;
- public static DrillbitEndpoint getDefaultInstance() {
- return defaultInstance;
- }
-
- public DrillbitEndpoint getDefaultInstanceForType() {
- return defaultInstance;
+ private DrillbitEndpoint() {
+ address_ = "";
+ userPort_ = 0;
+ controlPort_ = 0;
+ dataPort_ = 0;
+ version_ = "";
+ state_ = 0;
+ httpPort_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private DrillbitEndpoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -166,16 +167,10 @@ public final class CoordinationProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- address_ = input.readBytes();
+ address_ = bs;
break;
}
case 16: {
@@ -207,18 +202,20 @@ public final class CoordinationProtos {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- version_ = input.readBytes();
+ version_ = bs;
break;
}
case 56: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State value = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000040;
- state_ = value;
+ state_ = rawValue;
}
break;
}
@@ -227,13 +224,20 @@ public final class CoordinationProtos {
httpPort_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -244,28 +248,14 @@ public final class CoordinationProtos {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillbitEndpoint_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillbitEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.class, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder.class);
}
- public static com.google.protobuf.Parser<DrillbitEndpoint> PARSER =
- new com.google.protobuf.AbstractParser<DrillbitEndpoint>() {
- public DrillbitEndpoint parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DrillbitEndpoint(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<DrillbitEndpoint> getParserForType() {
- return PARSER;
- }
-
/**
* Protobuf enum {@code exec.DrillbitEndpoint.State}
*/
@@ -274,19 +264,19 @@ public final class CoordinationProtos {
/**
* <code>STARTUP = 0;</code>
*/
- STARTUP(0, 0),
+ STARTUP(0),
/**
* <code>ONLINE = 1;</code>
*/
- ONLINE(1, 1),
+ ONLINE(1),
/**
* <code>QUIESCENT = 2;</code>
*/
- QUIESCENT(2, 2),
+ QUIESCENT(2),
/**
* <code>OFFLINE = 3;</code>
*/
- OFFLINE(3, 3),
+ OFFLINE(3),
;
/**
@@ -307,9 +297,19 @@ public final class CoordinationProtos {
public static final int OFFLINE_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
switch (value) {
case 0: return STARTUP;
case 1: return ONLINE;
@@ -323,17 +323,17 @@ public final class CoordinationProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<State>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<State>() {
public State findValueByNumber(int number) {
- return State.valueOf(number);
+ return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -355,11 +355,9 @@ public final class CoordinationProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private State(int index, int value) {
- this.index = index;
+ private State(int value) {
this.value = value;
}
@@ -367,9 +365,8 @@ public final class CoordinationProtos {
}
private int bitField0_;
- // optional string address = 1;
public static final int ADDRESS_FIELD_NUMBER = 1;
- private java.lang.Object address_;
+ private volatile java.lang.Object address_;
/**
* <code>optional string address = 1;</code>
*/
@@ -410,7 +407,6 @@ public final class CoordinationProtos {
}
}
- // optional int32 user_port = 2;
public static final int USER_PORT_FIELD_NUMBER = 2;
private int userPort_;
/**
@@ -426,7 +422,6 @@ public final class CoordinationProtos {
return userPort_;
}
- // optional int32 control_port = 3;
public static final int CONTROL_PORT_FIELD_NUMBER = 3;
private int controlPort_;
/**
@@ -442,7 +437,6 @@ public final class CoordinationProtos {
return controlPort_;
}
- // optional int32 data_port = 4;
public static final int DATA_PORT_FIELD_NUMBER = 4;
private int dataPort_;
/**
@@ -458,7 +452,6 @@ public final class CoordinationProtos {
return dataPort_;
}
- // optional .exec.Roles roles = 5;
public static final int ROLES_FIELD_NUMBER = 5;
private org.apache.drill.exec.proto.CoordinationProtos.Roles roles_;
/**
@@ -471,18 +464,17 @@ public final class CoordinationProtos {
* <code>optional .exec.Roles roles = 5;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.Roles getRoles() {
- return roles_;
+ return roles_ == null ? org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance() : roles_;
}
/**
* <code>optional .exec.Roles roles = 5;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder getRolesOrBuilder() {
- return roles_;
+ return roles_ == null ? org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance() : roles_;
}
- // optional string version = 6;
public static final int VERSION_FIELD_NUMBER = 6;
- private java.lang.Object version_;
+ private volatile java.lang.Object version_;
/**
* <code>optional string version = 6;</code>
*/
@@ -523,9 +515,8 @@ public final class CoordinationProtos {
}
}
- // optional .exec.DrillbitEndpoint.State state = 7;
public static final int STATE_FIELD_NUMBER = 7;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State state_;
+ private int state_;
/**
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
*/
@@ -536,10 +527,11 @@ public final class CoordinationProtos {
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State result = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP : result;
}
- // optional int32 http_port = 8;
public static final int HTTP_PORT_FIELD_NUMBER = 8;
private int httpPort_;
/**
@@ -555,30 +547,22 @@ public final class CoordinationProtos {
return httpPort_;
}
- private void initFields() {
- address_ = "";
- userPort_ = 0;
- controlPort_ = 0;
- dataPort_ = 0;
- roles_ = org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance();
- version_ = "";
- state_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP;
- httpPort_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getAddressBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, userPort_);
@@ -590,29 +574,28 @@ public final class CoordinationProtos {
output.writeInt32(4, dataPort_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, roles_);
+ output.writeMessage(5, getRoles());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getVersionBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeEnum(7, state_.getNumber());
+ output.writeEnum(7, state_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(8, httpPort_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getAddressBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -628,33 +611,134 @@ public final class CoordinationProtos {
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, roles_);
+ .computeMessageSize(5, getRoles());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getVersionBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(7, state_.getNumber());
+ .computeEnumSize(7, state_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, httpPort_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint other = (org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint) obj;
+
+ boolean result = true;
+ result = result && (hasAddress() == other.hasAddress());
+ if (hasAddress()) {
+ result = result && getAddress()
+ .equals(other.getAddress());
+ }
+ result = result && (hasUserPort() == other.hasUserPort());
+ if (hasUserPort()) {
+ result = result && (getUserPort()
+ == other.getUserPort());
+ }
+ result = result && (hasControlPort() == other.hasControlPort());
+ if (hasControlPort()) {
+ result = result && (getControlPort()
+ == other.getControlPort());
+ }
+ result = result && (hasDataPort() == other.hasDataPort());
+ if (hasDataPort()) {
+ result = result && (getDataPort()
+ == other.getDataPort());
+ }
+ result = result && (hasRoles() == other.hasRoles());
+ if (hasRoles()) {
+ result = result && getRoles()
+ .equals(other.getRoles());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ result = result && (hasState() == other.hasState());
+ if (hasState()) {
+ result = result && state_ == other.state_;
+ }
+ result = result && (hasHttpPort() == other.hasHttpPort());
+ if (hasHttpPort()) {
+ result = result && (getHttpPort()
+ == other.getHttpPort());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAddress()) {
+ hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAddress().hashCode();
+ }
+ if (hasUserPort()) {
+ hash = (37 * hash) + USER_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getUserPort();
+ }
+ if (hasControlPort()) {
+ hash = (37 * hash) + CONTROL_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getControlPort();
+ }
+ if (hasDataPort()) {
+ hash = (37 * hash) + DATA_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getDataPort();
+ }
+ if (hasRoles()) {
+ hash = (37 * hash) + ROLES_FIELD_NUMBER;
+ hash = (53 * hash) + getRoles().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ if (hasState()) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ }
+ if (hasHttpPort()) {
+ hash = (37 * hash) + HTTP_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getHttpPort();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -677,46 +761,59 @@ public final class CoordinationProtos {
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -724,14 +821,16 @@ public final class CoordinationProtos {
* Protobuf type {@code exec.DrillbitEndpoint}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.DrillbitEndpoint)
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillbitEndpoint_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillbitEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -744,19 +843,17 @@ public final class CoordinationProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getRolesFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
address_ = "";
@@ -768,33 +865,32 @@ public final class CoordinationProtos {
dataPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
if (rolesBuilder_ == null) {
- roles_ = org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance();
+ roles_ = null;
} else {
rolesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
- state_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP;
+ state_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
httpPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillbitEndpoint_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getDefaultInstanceForType() {
return org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint build() {
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint result = buildPartial();
if (!result.isInitialized()) {
@@ -803,6 +899,7 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint buildPartial() {
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint result = new org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint(this);
int from_bitField0_ = bitField0_;
@@ -848,6 +945,39 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint) {
return mergeFrom((org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint)other);
@@ -887,14 +1017,17 @@ public final class CoordinationProtos {
if (other.hasHttpPort()) {
setHttpPort(other.getHttpPort());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -904,7 +1037,7 @@ public final class CoordinationProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -914,7 +1047,6 @@ public final class CoordinationProtos {
}
private int bitField0_;
- // optional string address = 1;
private java.lang.Object address_ = "";
/**
* <code>optional string address = 1;</code>
@@ -928,9 +1060,12 @@ public final class CoordinationProtos {
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- address_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ address_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -988,7 +1123,6 @@ public final class CoordinationProtos {
return this;
}
- // optional int32 user_port = 2;
private int userPort_ ;
/**
* <code>optional int32 user_port = 2;</code>
@@ -1021,7 +1155,6 @@ public final class CoordinationProtos {
return this;
}
- // optional int32 control_port = 3;
private int controlPort_ ;
/**
* <code>optional int32 control_port = 3;</code>
@@ -1054,7 +1187,6 @@ public final class CoordinationProtos {
return this;
}
- // optional int32 data_port = 4;
private int dataPort_ ;
/**
* <code>optional int32 data_port = 4;</code>
@@ -1087,9 +1219,8 @@ public final class CoordinationProtos {
return this;
}
- // optional .exec.Roles roles = 5;
- private org.apache.drill.exec.proto.CoordinationProtos.Roles roles_ = org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.Roles roles_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.Roles, org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder, org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder> rolesBuilder_;
/**
* <code>optional .exec.Roles roles = 5;</code>
@@ -1102,7 +1233,7 @@ public final class CoordinationProtos {
*/
public org.apache.drill.exec.proto.CoordinationProtos.Roles getRoles() {
if (rolesBuilder_ == null) {
- return roles_;
+ return roles_ == null ? org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance() : roles_;
} else {
return rolesBuilder_.getMessage();
}
@@ -1143,6 +1274,7 @@ public final class CoordinationProtos {
public Builder mergeRoles(org.apache.drill.exec.proto.CoordinationProtos.Roles value) {
if (rolesBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ roles_ != null &&
roles_ != org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance()) {
roles_ =
org.apache.drill.exec.proto.CoordinationProtos.Roles.newBuilder(roles_).mergeFrom(value).buildPartial();
@@ -1161,7 +1293,7 @@ public final class CoordinationProtos {
*/
public Builder clearRoles() {
if (rolesBuilder_ == null) {
- roles_ = org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance();
+ roles_ = null;
onChanged();
} else {
rolesBuilder_.clear();
@@ -1184,19 +1316,20 @@ public final class CoordinationProtos {
if (rolesBuilder_ != null) {
return rolesBuilder_.getMessageOrBuilder();
} else {
- return roles_;
+ return roles_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance() : roles_;
}
}
/**
* <code>optional .exec.Roles roles = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.Roles, org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder, org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder>
getRolesFieldBuilder() {
if (rolesBuilder_ == null) {
- rolesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ rolesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.Roles, org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder, org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder>(
- roles_,
+ getRoles(),
getParentForChildren(),
isClean());
roles_ = null;
@@ -1204,7 +1337,6 @@ public final class CoordinationProtos {
return rolesBuilder_;
}
- // optional string version = 6;
private java.lang.Object version_ = "";
/**
* <code>optional string version = 6;</code>
@@ -1218,9 +1350,12 @@ public final class CoordinationProtos {
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- version_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ version_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1278,8 +1413,7 @@ public final class CoordinationProtos {
return this;
}
- // optional .exec.DrillbitEndpoint.State state = 7;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State state_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP;
+ private int state_ = 0;
/**
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
*/
@@ -1290,7 +1424,9 @@ public final class CoordinationProtos {
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State result = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP : result;
}
/**
* <code>optional .exec.DrillbitEndpoint.State state = 7;</code>
@@ -1300,7 +1436,7 @@ public final class CoordinationProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
- state_ = value;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -1309,12 +1445,11 @@ public final class CoordinationProtos {
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000040);
- state_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP;
+ state_ = 0;
onChanged();
return this;
}
- // optional int32 http_port = 8;
private int httpPort_ ;
/**
* <code>optional int32 http_port = 8;</code>
@@ -1346,22 +1481,63 @@ public final class CoordinationProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.DrillbitEndpoint)
}
+ // @@protoc_insertion_point(class_scope:exec.DrillbitEndpoint)
+ private static final org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint DEFAULT_INSTANCE;
static {
- defaultInstance = new DrillbitEndpoint(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint();
+ }
+
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<DrillbitEndpoint>
+ PARSER = new com.google.protobuf.AbstractParser<DrillbitEndpoint>() {
+ @java.lang.Override
+ public DrillbitEndpoint parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DrillbitEndpoint(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<DrillbitEndpoint> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<DrillbitEndpoint> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.DrillbitEndpoint)
}
- public interface DrillServiceInstanceOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface DrillServiceInstanceOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.DrillServiceInstance)
+ com.google.protobuf.MessageOrBuilder {
- // optional string id = 1;
/**
* <code>optional string id = 1;</code>
*/
@@ -1376,7 +1552,6 @@ public final class CoordinationProtos {
com.google.protobuf.ByteString
getIdBytes();
- // optional int64 registrationTimeUTC = 2;
/**
* <code>optional int64 registrationTimeUTC = 2;</code>
*/
@@ -1386,7 +1561,6 @@ public final class CoordinationProtos {
*/
long getRegistrationTimeUTC();
- // optional .exec.DrillbitEndpoint endpoint = 3;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
@@ -1403,36 +1577,33 @@ public final class CoordinationProtos {
/**
* Protobuf type {@code exec.DrillServiceInstance}
*/
- public static final class DrillServiceInstance extends
- com.google.protobuf.GeneratedMessage
- implements DrillServiceInstanceOrBuilder {
+ public static final class DrillServiceInstance extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.DrillServiceInstance)
+ DrillServiceInstanceOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use DrillServiceInstance.newBuilder() to construct.
- private DrillServiceInstance(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private DrillServiceInstance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private DrillServiceInstance(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final DrillServiceInstance defaultInstance;
- public static DrillServiceInstance getDefaultInstance() {
- return defaultInstance;
- }
-
- public DrillServiceInstance getDefaultInstanceForType() {
- return defaultInstance;
+ private DrillServiceInstance() {
+ id_ = "";
+ registrationTimeUTC_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private DrillServiceInstance(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1444,16 +1615,10 @@ public final class CoordinationProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- id_ = input.readBytes();
+ id_ = bs;
break;
}
case 16: {
@@ -1474,13 +1639,20 @@ public final class CoordinationProtos {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1491,32 +1663,17 @@ public final class CoordinationProtos {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillServiceInstance_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillServiceInstance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance.class, org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance.Builder.class);
}
- public static com.google.protobuf.Parser<DrillServiceInstance> PARSER =
- new com.google.protobuf.AbstractParser<DrillServiceInstance>() {
- public DrillServiceInstance parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DrillServiceInstance(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<DrillServiceInstance> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string id = 1;
public static final int ID_FIELD_NUMBER = 1;
- private java.lang.Object id_;
+ private volatile java.lang.Object id_;
/**
* <code>optional string id = 1;</code>
*/
@@ -1557,7 +1714,6 @@ public final class CoordinationProtos {
}
}
- // optional int64 registrationTimeUTC = 2;
public static final int REGISTRATIONTIMEUTC_FIELD_NUMBER = 2;
private long registrationTimeUTC_;
/**
@@ -1573,7 +1729,6 @@ public final class CoordinationProtos {
return registrationTimeUTC_;
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
public static final int ENDPOINT_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_;
/**
@@ -1586,53 +1741,49 @@ public final class CoordinationProtos {
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
- private void initFields() {
- id_ = "";
- registrationTimeUTC_ = 0L;
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, registrationTimeUTC_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, endpoint_);
+ output.writeMessage(3, getEndpoint());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -1640,20 +1791,79 @@ public final class CoordinationProtos {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, endpoint_);
+ .computeMessageSize(3, getEndpoint());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance other = (org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance) obj;
+
+ boolean result = true;
+ result = result && (hasId() == other.hasId());
+ if (hasId()) {
+ result = result && getId()
+ .equals(other.getId());
+ }
+ result = result && (hasRegistrationTimeUTC() == other.hasRegistrationTimeUTC());
+ if (hasRegistrationTimeUTC()) {
+ result = result && (getRegistrationTimeUTC()
+ == other.getRegistrationTimeUTC());
+ }
+ result = result && (hasEndpoint() == other.hasEndpoint());
+ if (hasEndpoint()) {
+ result = result && getEndpoint()
+ .equals(other.getEndpoint());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasId()) {
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ }
+ if (hasRegistrationTimeUTC()) {
+ hash = (37 * hash) + REGISTRATIONTIMEUTC_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRegistrationTimeUTC());
+ }
+ if (hasEndpoint()) {
+ hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpoint().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1677,46 +1887,59 @@ public final class CoordinationProtos {
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1724,14 +1947,16 @@ public final class CoordinationProtos {
* Protobuf type {@code exec.DrillServiceInstance}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstanceOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.DrillServiceInstance)
+ org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstanceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillServiceInstance_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillServiceInstance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1744,19 +1969,17 @@ public final class CoordinationProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getEndpointFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
@@ -1764,7 +1987,7 @@ public final class CoordinationProtos {
registrationTimeUTC_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
} else {
endpointBuilder_.clear();
}
@@ -1772,19 +1995,18 @@ public final class CoordinationProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_DrillServiceInstance_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance getDefaultInstanceForType() {
return org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance build() {
org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance result = buildPartial();
if (!result.isInitialized()) {
@@ -1793,6 +2015,7 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance buildPartial() {
org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance result = new org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance(this);
int from_bitField0_ = bitField0_;
@@ -1818,6 +2041,39 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance) {
return mergeFrom((org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance)other);
@@ -1840,14 +2096,17 @@ public final class CoordinationProtos {
if (other.hasEndpoint()) {
mergeEndpoint(other.getEndpoint());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1857,7 +2116,7 @@ public final class CoordinationProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1867,7 +2126,6 @@ public final class CoordinationProtos {
}
private int bitField0_;
- // optional string id = 1;
private java.lang.Object id_ = "";
/**
* <code>optional string id = 1;</code>
@@ -1881,9 +2139,12 @@ public final class CoordinationProtos {
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- id_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ id_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1941,7 +2202,6 @@ public final class CoordinationProtos {
return this;
}
- // optional int64 registrationTimeUTC = 2;
private long registrationTimeUTC_ ;
/**
* <code>optional int64 registrationTimeUTC = 2;</code>
@@ -1974,9 +2234,8 @@ public final class CoordinationProtos {
return this;
}
- // optional .exec.DrillbitEndpoint endpoint = 3;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> endpointBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
@@ -1989,7 +2248,7 @@ public final class CoordinationProtos {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
@@ -2030,6 +2289,7 @@ public final class CoordinationProtos {
public Builder mergeEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (endpointBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ endpoint_ != null &&
endpoint_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
endpoint_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
@@ -2048,7 +2308,7 @@ public final class CoordinationProtos {
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
onChanged();
} else {
endpointBuilder_.clear();
@@ -2071,41 +2331,83 @@ public final class CoordinationProtos {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
- return endpoint_;
+ return endpoint_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
- endpointBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- endpoint_,
+ getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
}
return endpointBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.DrillServiceInstance)
}
+ // @@protoc_insertion_point(class_scope:exec.DrillServiceInstance)
+ private static final org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance DEFAULT_INSTANCE;
static {
- defaultInstance = new DrillServiceInstance(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance();
+ }
+
+ public static org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<DrillServiceInstance>
+ PARSER = new com.google.protobuf.AbstractParser<DrillServiceInstance>() {
+ @java.lang.Override
+ public DrillServiceInstance parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DrillServiceInstance(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<DrillServiceInstance> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<DrillServiceInstance> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.CoordinationProtos.DrillServiceInstance getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.DrillServiceInstance)
}
- public interface RolesOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RolesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.Roles)
+ com.google.protobuf.MessageOrBuilder {
- // optional bool sql_query = 1 [default = true];
/**
* <code>optional bool sql_query = 1 [default = true];</code>
*/
@@ -2115,7 +2417,6 @@ public final class CoordinationProtos {
*/
boolean getSqlQuery();
- // optional bool logical_plan = 2 [default = true];
/**
* <code>optional bool logical_plan = 2 [default = true];</code>
*/
@@ -2125,7 +2426,6 @@ public final class CoordinationProtos {
*/
boolean getLogicalPlan();
- // optional bool physical_plan = 3 [default = true];
/**
* <code>optional bool physical_plan = 3 [default = true];</code>
*/
@@ -2135,7 +2435,6 @@ public final class CoordinationProtos {
*/
boolean getPhysicalPlan();
- // optional bool java_executor = 4 [default = true];
/**
* <code>optional bool java_executor = 4 [default = true];</code>
*/
@@ -2145,7 +2444,6 @@ public final class CoordinationProtos {
*/
boolean getJavaExecutor();
- // optional bool distributed_cache = 5 [default = true];
/**
* <code>optional bool distributed_cache = 5 [default = true];</code>
*/
@@ -2158,36 +2456,36 @@ public final class CoordinationProtos {
/**
* Protobuf type {@code exec.Roles}
*/
- public static final class Roles extends
- com.google.protobuf.GeneratedMessage
- implements RolesOrBuilder {
+ public static final class Roles extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.Roles)
+ RolesOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Roles.newBuilder() to construct.
- private Roles(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Roles(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Roles(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Roles defaultInstance;
- public static Roles getDefaultInstance() {
- return defaultInstance;
- }
-
- public Roles getDefaultInstanceForType() {
- return defaultInstance;
+ private Roles() {
+ sqlQuery_ = true;
+ logicalPlan_ = true;
+ physicalPlan_ = true;
+ javaExecutor_ = true;
+ distributedCache_ = true;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Roles(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2199,13 +2497,6 @@ public final class CoordinationProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
sqlQuery_ = input.readBool();
@@ -2231,13 +2522,20 @@ public final class CoordinationProtos {
distributedCache_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -2248,30 +2546,15 @@ public final class CoordinationProtos {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_Roles_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_Roles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.CoordinationProtos.Roles.class, org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder.class);
}
- public static com.google.protobuf.Parser<Roles> PARSER =
- new com.google.protobuf.AbstractParser<Roles>() {
- public Roles parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Roles(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Roles> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional bool sql_query = 1 [default = true];
public static final int SQL_QUERY_FIELD_NUMBER = 1;
private boolean sqlQuery_;
/**
@@ -2287,7 +2570,6 @@ public final class CoordinationProtos {
return sqlQuery_;
}
- // optional bool logical_plan = 2 [default = true];
public static final int LOGICAL_PLAN_FIELD_NUMBER = 2;
private boolean logicalPlan_;
/**
@@ -2303,7 +2585,6 @@ public final class CoordinationProtos {
return logicalPlan_;
}
- // optional bool physical_plan = 3 [default = true];
public static final int PHYSICAL_PLAN_FIELD_NUMBER = 3;
private boolean physicalPlan_;
/**
@@ -2319,7 +2600,6 @@ public final class CoordinationProtos {
return physicalPlan_;
}
- // optional bool java_executor = 4 [default = true];
public static final int JAVA_EXECUTOR_FIELD_NUMBER = 4;
private boolean javaExecutor_;
/**
@@ -2335,7 +2615,6 @@ public final class CoordinationProtos {
return javaExecutor_;
}
- // optional bool distributed_cache = 5 [default = true];
public static final int DISTRIBUTED_CACHE_FIELD_NUMBER = 5;
private boolean distributedCache_;
/**
@@ -2351,25 +2630,20 @@ public final class CoordinationProtos {
return distributedCache_;
}
- private void initFields() {
- sqlQuery_ = true;
- logicalPlan_ = true;
- physicalPlan_ = true;
- javaExecutor_ = true;
- distributedCache_ = true;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, sqlQuery_);
}
@@ -2385,12 +2659,12 @@ public final class CoordinationProtos {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, distributedCache_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -2414,18 +2688,99 @@ public final class CoordinationProtos {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, distributedCache_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.CoordinationProtos.Roles)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.CoordinationProtos.Roles other = (org.apache.drill.exec.proto.CoordinationProtos.Roles) obj;
+
+ boolean result = true;
+ result = result && (hasSqlQuery() == other.hasSqlQuery());
+ if (hasSqlQuery()) {
+ result = result && (getSqlQuery()
+ == other.getSqlQuery());
+ }
+ result = result && (hasLogicalPlan() == other.hasLogicalPlan());
+ if (hasLogicalPlan()) {
+ result = result && (getLogicalPlan()
+ == other.getLogicalPlan());
+ }
+ result = result && (hasPhysicalPlan() == other.hasPhysicalPlan());
+ if (hasPhysicalPlan()) {
+ result = result && (getPhysicalPlan()
+ == other.getPhysicalPlan());
+ }
+ result = result && (hasJavaExecutor() == other.hasJavaExecutor());
+ if (hasJavaExecutor()) {
+ result = result && (getJavaExecutor()
+ == other.getJavaExecutor());
+ }
+ result = result && (hasDistributedCache() == other.hasDistributedCache());
+ if (hasDistributedCache()) {
+ result = result && (getDistributedCache()
+ == other.getDistributedCache());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSqlQuery()) {
+ hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSqlQuery());
+ }
+ if (hasLogicalPlan()) {
+ hash = (37 * hash) + LOGICAL_PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLogicalPlan());
+ }
+ if (hasPhysicalPlan()) {
+ hash = (37 * hash) + PHYSICAL_PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getPhysicalPlan());
+ }
+ if (hasJavaExecutor()) {
+ hash = (37 * hash) + JAVA_EXECUTOR_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getJavaExecutor());
+ }
+ if (hasDistributedCache()) {
+ hash = (37 * hash) + DISTRIBUTED_CACHE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getDistributedCache());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2449,46 +2804,59 @@ public final class CoordinationProtos {
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.CoordinationProtos.Roles parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.CoordinationProtos.Roles prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2496,14 +2864,16 @@ public final class CoordinationProtos {
* Protobuf type {@code exec.Roles}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.Roles)
+ org.apache.drill.exec.proto.CoordinationProtos.RolesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_Roles_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_Roles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2516,18 +2886,16 @@ public final class CoordinationProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
sqlQuery_ = true;
@@ -2543,19 +2911,18 @@ public final class CoordinationProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.CoordinationProtos.internal_static_exec_Roles_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.Roles getDefaultInstanceForType() {
return org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.Roles build() {
org.apache.drill.exec.proto.CoordinationProtos.Roles result = buildPartial();
if (!result.isInitialized()) {
@@ -2564,6 +2931,7 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.CoordinationProtos.Roles buildPartial() {
org.apache.drill.exec.proto.CoordinationProtos.Roles result = new org.apache.drill.exec.proto.CoordinationProtos.Roles(this);
int from_bitField0_ = bitField0_;
@@ -2593,6 +2961,39 @@ public final class CoordinationProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.CoordinationProtos.Roles) {
return mergeFrom((org.apache.drill.exec.proto.CoordinationProtos.Roles)other);
@@ -2619,14 +3020,17 @@ public final class CoordinationProtos {
if (other.hasDistributedCache()) {
setDistributedCache(other.getDistributedCache());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2636,7 +3040,7 @@ public final class CoordinationProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.CoordinationProtos.Roles) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -2646,7 +3050,6 @@ public final class CoordinationProtos {
}
private int bitField0_;
- // optional bool sql_query = 1 [default = true];
private boolean sqlQuery_ = true;
/**
* <code>optional bool sql_query = 1 [default = true];</code>
@@ -2679,7 +3082,6 @@ public final class CoordinationProtos {
return this;
}
- // optional bool logical_plan = 2 [default = true];
private boolean logicalPlan_ = true;
/**
* <code>optional bool logical_plan = 2 [default = true];</code>
@@ -2712,7 +3114,6 @@ public final class CoordinationProtos {
return this;
}
- // optional bool physical_plan = 3 [default = true];
private boolean physicalPlan_ = true;
/**
* <code>optional bool physical_plan = 3 [default = true];</code>
@@ -2745,7 +3146,6 @@ public final class CoordinationProtos {
return this;
}
- // optional bool java_executor = 4 [default = true];
private boolean javaExecutor_ = true;
/**
* <code>optional bool java_executor = 4 [default = true];</code>
@@ -2778,7 +3178,6 @@ public final class CoordinationProtos {
return this;
}
- // optional bool distributed_cache = 5 [default = true];
private boolean distributedCache_ = true;
/**
* <code>optional bool distributed_cache = 5 [default = true];</code>
@@ -2810,39 +3209,80 @@ public final class CoordinationProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.Roles)
}
+ // @@protoc_insertion_point(class_scope:exec.Roles)
+ private static final org.apache.drill.exec.proto.CoordinationProtos.Roles DEFAULT_INSTANCE;
static {
- defaultInstance = new Roles(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.CoordinationProtos.Roles();
+ }
+
+ public static org.apache.drill.exec.proto.CoordinationProtos.Roles getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Roles>
+ PARSER = new com.google.protobuf.AbstractParser<Roles>() {
+ @java.lang.Override
+ public Roles parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Roles(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Roles> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Roles> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.CoordinationProtos.Roles getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.Roles)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_DrillbitEndpoint_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_DrillbitEndpoint_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_DrillServiceInstance_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_DrillServiceInstance_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_Roles_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_Roles_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -2855,7 +3295,7 @@ public final class CoordinationProtos {
"te\022\013\n\007STARTUP\020\000\022\n\n\006ONLINE\020\001\022\r\n\tQUIESCENT" +
"\020\002\022\013\n\007OFFLINE\020\003\"i\n\024DrillServiceInstance\022" +
"\n\n\002id\030\001 \001(\t\022\033\n\023registrationTimeUTC\030\002 \001(\003" +
- "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi",
+ "\022(\n\010endpoint\030\003 \001(\0132\026.exec.DrillbitEndpoi" +
"nt\"\227\001\n\005Roles\022\027\n\tsql_query\030\001 \001(\010:\004true\022\032\n" +
"\014logical_plan\030\002 \001(\010:\004true\022\033\n\rphysical_pl" +
"an\030\003 \001(\010:\004true\022\033\n\rjava_executor\030\004 \001(\010:\004t" +
@@ -2864,35 +3304,35 @@ public final class CoordinationProtos {
"nProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_DrillbitEndpoint_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_DrillbitEndpoint_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_DrillbitEndpoint_descriptor,
- new java.lang.String[] { "Address", "UserPort", "ControlPort", "DataPort", "Roles", "Version", "State", "HttpPort", });
- internal_static_exec_DrillServiceInstance_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_DrillServiceInstance_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_DrillServiceInstance_descriptor,
- new java.lang.String[] { "Id", "RegistrationTimeUTC", "Endpoint", });
- internal_static_exec_Roles_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_Roles_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_Roles_descriptor,
- new java.lang.String[] { "SqlQuery", "LogicalPlan", "PhysicalPlan", "JavaExecutor", "DistributedCache", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
+ internal_static_exec_DrillbitEndpoint_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_DrillbitEndpoint_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_DrillbitEndpoint_descriptor,
+ new java.lang.String[] { "Address", "UserPort", "ControlPort", "DataPort", "Roles", "Version", "State", "HttpPort", });
+ internal_static_exec_DrillServiceInstance_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_DrillServiceInstance_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_DrillServiceInstance_descriptor,
+ new java.lang.String[] { "Id", "RegistrationTimeUTC", "Endpoint", });
+ internal_static_exec_Roles_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_Roles_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_Roles_descriptor,
+ new java.lang.String[] { "SqlQuery", "LogicalPlan", "PhysicalPlan", "JavaExecutor", "DistributedCache", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
index 35df06f41..fb761d449 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
@@ -23,12 +23,18 @@ package org.apache.drill.exec.proto;
public final class ExecProtos {
private ExecProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
- public interface FragmentHandleOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface FragmentHandleOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.FragmentHandle)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId query_id = 1;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
@@ -42,7 +48,6 @@ public final class ExecProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // optional int32 major_fragment_id = 2;
/**
* <code>optional int32 major_fragment_id = 2;</code>
*/
@@ -52,7 +57,6 @@ public final class ExecProtos {
*/
int getMajorFragmentId();
- // optional int32 minor_fragment_id = 3;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
*/
@@ -62,7 +66,6 @@ public final class ExecProtos {
*/
int getMinorFragmentId();
- // optional .exec.shared.QueryId parent_query_id = 4;
/**
* <code>optional .exec.shared.QueryId parent_query_id = 4;</code>
*/
@@ -79,36 +82,33 @@ public final class ExecProtos {
/**
* Protobuf type {@code exec.bit.FragmentHandle}
*/
- public static final class FragmentHandle extends
- com.google.protobuf.GeneratedMessage
- implements FragmentHandleOrBuilder {
+ public static final class FragmentHandle extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.FragmentHandle)
+ FragmentHandleOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use FragmentHandle.newBuilder() to construct.
- private FragmentHandle(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private FragmentHandle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private FragmentHandle(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final FragmentHandle defaultInstance;
- public static FragmentHandle getDefaultInstance() {
- return defaultInstance;
- }
-
- public FragmentHandle getDefaultInstanceForType() {
- return defaultInstance;
+ private FragmentHandle() {
+ majorFragmentId_ = 0;
+ minorFragmentId_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private FragmentHandle(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -120,13 +120,6 @@ public final class ExecProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -163,13 +156,20 @@ public final class ExecProtos {
bitField0_ |= 0x00000008;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -180,30 +180,15 @@ public final class ExecProtos {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_FragmentHandle_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_FragmentHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.ExecProtos.FragmentHandle.class, org.apache.drill.exec.proto.ExecProtos.FragmentHandle.Builder.class);
}
- public static com.google.protobuf.Parser<FragmentHandle> PARSER =
- new com.google.protobuf.AbstractParser<FragmentHandle>() {
- public FragmentHandle parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FragmentHandle(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<FragmentHandle> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
public static final int QUERY_ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -216,16 +201,15 @@ public final class ExecProtos {
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // optional int32 major_fragment_id = 2;
public static final int MAJOR_FRAGMENT_ID_FIELD_NUMBER = 2;
private int majorFragmentId_;
/**
@@ -241,7 +225,6 @@ public final class ExecProtos {
return majorFragmentId_;
}
- // optional int32 minor_fragment_id = 3;
public static final int MINOR_FRAGMENT_ID_FIELD_NUMBER = 3;
private int minorFragmentId_;
/**
@@ -257,7 +240,6 @@ public final class ExecProtos {
return minorFragmentId_;
}
- // optional .exec.shared.QueryId parent_query_id = 4;
public static final int PARENT_QUERY_ID_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserBitShared.QueryId parentQueryId_;
/**
@@ -270,35 +252,31 @@ public final class ExecProtos {
* <code>optional .exec.shared.QueryId parent_query_id = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getParentQueryId() {
- return parentQueryId_;
+ return parentQueryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : parentQueryId_;
}
/**
* <code>optional .exec.shared.QueryId parent_query_id = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getParentQueryIdOrBuilder() {
- return parentQueryId_;
+ return parentQueryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : parentQueryId_;
}
- private void initFields() {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- majorFragmentId_ = 0;
- minorFragmentId_ = 0;
- parentQueryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, queryId_);
+ output.writeMessage(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, majorFragmentId_);
@@ -307,20 +285,20 @@ public final class ExecProtos {
output.writeInt32(3, minorFragmentId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, parentQueryId_);
+ output.writeMessage(4, getParentQueryId());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, queryId_);
+ .computeMessageSize(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -332,21 +310,88 @@ public final class ExecProtos {
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, parentQueryId_);
+ .computeMessageSize(4, getParentQueryId());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.ExecProtos.FragmentHandle)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandle other = (org.apache.drill.exec.proto.ExecProtos.FragmentHandle) obj;
+
+ boolean result = true;
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && (hasMajorFragmentId() == other.hasMajorFragmentId());
+ if (hasMajorFragmentId()) {
+ result = result && (getMajorFragmentId()
+ == other.getMajorFragmentId());
+ }
+ result = result && (hasMinorFragmentId() == other.hasMinorFragmentId());
+ if (hasMinorFragmentId()) {
+ result = result && (getMinorFragmentId()
+ == other.getMinorFragmentId());
+ }
+ result = result && (hasParentQueryId() == other.hasParentQueryId());
+ if (hasParentQueryId()) {
+ result = result && getParentQueryId()
+ .equals(other.getParentQueryId());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (hasMajorFragmentId()) {
+ hash = (37 * hash) + MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMajorFragmentId();
+ }
+ if (hasMinorFragmentId()) {
+ hash = (37 * hash) + MINOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMinorFragmentId();
+ }
+ if (hasParentQueryId()) {
+ hash = (37 * hash) + PARENT_QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getParentQueryId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -369,46 +414,59 @@ public final class ExecProtos {
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.ExecProtos.FragmentHandle prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -416,14 +474,16 @@ public final class ExecProtos {
* Protobuf type {@code exec.bit.FragmentHandle}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.FragmentHandle)
+ org.apache.drill.exec.proto.ExecProtos.FragmentHandleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_FragmentHandle_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_FragmentHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -436,24 +496,22 @@ public final class ExecProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
getParentQueryIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -463,7 +521,7 @@ public final class ExecProtos {
minorFragmentId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (parentQueryIdBuilder_ == null) {
- parentQueryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ parentQueryId_ = null;
} else {
parentQueryIdBuilder_.clear();
}
@@ -471,19 +529,18 @@ public final class ExecProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_FragmentHandle_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getDefaultInstanceForType() {
return org.apache.drill.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle build() {
org.apache.drill.exec.proto.ExecProtos.FragmentHandle result = buildPartial();
if (!result.isInitialized()) {
@@ -492,6 +549,7 @@ public final class ExecProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.FragmentHandle buildPartial() {
org.apache.drill.exec.proto.ExecProtos.FragmentHandle result = new org.apache.drill.exec.proto.ExecProtos.FragmentHandle(this);
int from_bitField0_ = bitField0_;
@@ -525,6 +583,39 @@ public final class ExecProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.ExecProtos.FragmentHandle) {
return mergeFrom((org.apache.drill.exec.proto.ExecProtos.FragmentHandle)other);
@@ -548,14 +639,17 @@ public final class ExecProtos {
if (other.hasParentQueryId()) {
mergeParentQueryId(other.getParentQueryId());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -565,7 +659,7 @@ public final class ExecProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.ExecProtos.FragmentHandle) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -575,9 +669,8 @@ public final class ExecProtos {
}
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
@@ -590,7 +683,7 @@ public final class ExecProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -631,6 +724,7 @@ public final class ExecProtos {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -649,7 +743,7 @@ public final class ExecProtos {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -672,19 +766,20 @@ public final class ExecProtos {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -692,7 +787,6 @@ public final class ExecProtos {
return queryIdBuilder_;
}
- // optional int32 major_fragment_id = 2;
private int majorFragmentId_ ;
/**
* <code>optional int32 major_fragment_id = 2;</code>
@@ -725,7 +819,6 @@ public final class ExecProtos {
return this;
}
- // optional int32 minor_fragment_id = 3;
private int minorFragmentId_ ;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
@@ -758,9 +851,8 @@ public final class ExecProtos {
return this;
}
- // optional .exec.shared.QueryId parent_query_id = 4;
- private org.apache.drill.exec.proto.UserBitShared.QueryId parentQueryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId parentQueryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> parentQueryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId parent_query_id = 4;</code>
@@ -773,7 +865,7 @@ public final class ExecProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getParentQueryId() {
if (parentQueryIdBuilder_ == null) {
- return parentQueryId_;
+ return parentQueryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : parentQueryId_;
} else {
return parentQueryIdBuilder_.getMessage();
}
@@ -814,6 +906,7 @@ public final class ExecProtos {
public Builder mergeParentQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (parentQueryIdBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ parentQueryId_ != null &&
parentQueryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
parentQueryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(parentQueryId_).mergeFrom(value).buildPartial();
@@ -832,7 +925,7 @@ public final class ExecProtos {
*/
public Builder clearParentQueryId() {
if (parentQueryIdBuilder_ == null) {
- parentQueryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ parentQueryId_ = null;
onChanged();
} else {
parentQueryIdBuilder_.clear();
@@ -855,41 +948,83 @@ public final class ExecProtos {
if (parentQueryIdBuilder_ != null) {
return parentQueryIdBuilder_.getMessageOrBuilder();
} else {
- return parentQueryId_;
+ return parentQueryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : parentQueryId_;
}
}
/**
* <code>optional .exec.shared.QueryId parent_query_id = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getParentQueryIdFieldBuilder() {
if (parentQueryIdBuilder_ == null) {
- parentQueryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ parentQueryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- parentQueryId_,
+ getParentQueryId(),
getParentForChildren(),
isClean());
parentQueryId_ = null;
}
return parentQueryIdBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.FragmentHandle)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.FragmentHandle)
+ private static final org.apache.drill.exec.proto.ExecProtos.FragmentHandle DEFAULT_INSTANCE;
static {
- defaultInstance = new FragmentHandle(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.ExecProtos.FragmentHandle();
+ }
+
+ public static org.apache.drill.exec.proto.ExecProtos.FragmentHandle getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<FragmentHandle>
+ PARSER = new com.google.protobuf.AbstractParser<FragmentHandle>() {
+ @java.lang.Override
+ public FragmentHandle parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new FragmentHandle(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<FragmentHandle> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<FragmentHandle> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.ExecProtos.FragmentHandle getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.FragmentHandle)
}
- public interface ServerPreparedStatementStateOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ServerPreparedStatementStateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.bit.ServerPreparedStatementState)
+ com.google.protobuf.MessageOrBuilder {
- // optional string sql_query = 1;
/**
* <code>optional string sql_query = 1;</code>
*/
@@ -905,45 +1040,40 @@ public final class ExecProtos {
getSqlQueryBytes();
}
/**
- * Protobuf type {@code exec.bit.ServerPreparedStatementState}
- *
* <pre>
- *
* Prepared statement state on server side. Clients do not
* need to know the contents. They just need to submit it back to
* server when executing the prepared statement.
* </pre>
+ *
+ * Protobuf type {@code exec.bit.ServerPreparedStatementState}
*/
- public static final class ServerPreparedStatementState extends
- com.google.protobuf.GeneratedMessage
- implements ServerPreparedStatementStateOrBuilder {
+ public static final class ServerPreparedStatementState extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.bit.ServerPreparedStatementState)
+ ServerPreparedStatementStateOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ServerPreparedStatementState.newBuilder() to construct.
- private ServerPreparedStatementState(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerPreparedStatementState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ServerPreparedStatementState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ServerPreparedStatementState defaultInstance;
- public static ServerPreparedStatementState getDefaultInstance() {
- return defaultInstance;
- }
-
- public ServerPreparedStatementState getDefaultInstanceForType() {
- return defaultInstance;
+ private ServerPreparedStatementState() {
+ sqlQuery_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ServerPreparedStatementState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -955,25 +1085,26 @@ public final class ExecProtos {
case 0:
done = true;
break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ sqlQuery_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- sqlQuery_ = input.readBytes();
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -984,32 +1115,17 @@ public final class ExecProtos {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_ServerPreparedStatementState_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_ServerPreparedStatementState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState.class, org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState.Builder.class);
}
- public static com.google.protobuf.Parser<ServerPreparedStatementState> PARSER =
- new com.google.protobuf.AbstractParser<ServerPreparedStatementState>() {
- public ServerPreparedStatementState parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ServerPreparedStatementState(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ServerPreparedStatementState> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string sql_query = 1;
public static final int SQL_QUERY_FIELD_NUMBER = 1;
- private java.lang.Object sqlQuery_;
+ private volatile java.lang.Object sqlQuery_;
/**
* <code>optional string sql_query = 1;</code>
*/
@@ -1050,49 +1166,87 @@ public final class ExecProtos {
}
}
- private void initFields() {
- sqlQuery_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getSqlQueryBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlQuery_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getSqlQueryBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlQuery_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState other = (org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState) obj;
+
+ boolean result = true;
+ result = result && (hasSqlQuery() == other.hasSqlQuery());
+ if (hasSqlQuery()) {
+ result = result && getSqlQuery()
+ .equals(other.getSqlQuery());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSqlQuery()) {
+ hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getSqlQuery().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1116,68 +1270,82 @@ public final class ExecProtos {
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.bit.ServerPreparedStatementState}
- *
* <pre>
- *
* Prepared statement state on server side. Clients do not
* need to know the contents. They just need to submit it back to
* server when executing the prepared statement.
* </pre>
+ *
+ * Protobuf type {@code exec.bit.ServerPreparedStatementState}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementStateOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.bit.ServerPreparedStatementState)
+ org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_ServerPreparedStatementState_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_ServerPreparedStatementState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1190,18 +1358,16 @@ public final class ExecProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
sqlQuery_ = "";
@@ -1209,19 +1375,18 @@ public final class ExecProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.ExecProtos.internal_static_exec_bit_ServerPreparedStatementState_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState getDefaultInstanceForType() {
return org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState build() {
org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState result = buildPartial();
if (!result.isInitialized()) {
@@ -1230,6 +1395,7 @@ public final class ExecProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState buildPartial() {
org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState result = new org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState(this);
int from_bitField0_ = bitField0_;
@@ -1243,6 +1409,39 @@ public final class ExecProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState) {
return mergeFrom((org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState)other);
@@ -1259,14 +1458,17 @@ public final class ExecProtos {
sqlQuery_ = other.sqlQuery_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1276,7 +1478,7 @@ public final class ExecProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1286,7 +1488,6 @@ public final class ExecProtos {
}
private int bitField0_;
- // optional string sql_query = 1;
private java.lang.Object sqlQuery_ = "";
/**
* <code>optional string sql_query = 1;</code>
@@ -1300,9 +1501,12 @@ public final class ExecProtos {
public java.lang.String getSqlQuery() {
java.lang.Object ref = sqlQuery_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sqlQuery_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sqlQuery_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1359,34 +1563,75 @@ public final class ExecProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.bit.ServerPreparedStatementState)
}
+ // @@protoc_insertion_point(class_scope:exec.bit.ServerPreparedStatementState)
+ private static final org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState DEFAULT_INSTANCE;
static {
- defaultInstance = new ServerPreparedStatementState(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState();
+ }
+
+ public static org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ServerPreparedStatementState>
+ PARSER = new com.google.protobuf.AbstractParser<ServerPreparedStatementState>() {
+ @java.lang.Override
+ public ServerPreparedStatementState parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ServerPreparedStatementState(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ServerPreparedStatementState> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ServerPreparedStatementState> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.ExecProtos.ServerPreparedStatementState getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.bit.ServerPreparedStatementState)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_FragmentHandle_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_FragmentHandle_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_bit_ServerPreparedStatementState_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_bit_ServerPreparedStatementState_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -1401,31 +1646,33 @@ public final class ExecProtos {
"ecProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_bit_FragmentHandle_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_bit_FragmentHandle_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_FragmentHandle_descriptor,
- new java.lang.String[] { "QueryId", "MajorFragmentId", "MinorFragmentId", "ParentQueryId", });
- internal_static_exec_bit_ServerPreparedStatementState_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_bit_ServerPreparedStatementState_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_bit_ServerPreparedStatementState_descriptor,
- new java.lang.String[] { "SqlQuery", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(),
org.apache.drill.exec.proto.UserBitShared.getDescriptor(),
}, assigner);
+ internal_static_exec_bit_FragmentHandle_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_bit_FragmentHandle_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_FragmentHandle_descriptor,
+ new java.lang.String[] { "QueryId", "MajorFragmentId", "MinorFragmentId", "ParentQueryId", });
+ internal_static_exec_bit_ServerPreparedStatementState_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_bit_ServerPreparedStatementState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_bit_ServerPreparedStatementState_descriptor,
+ new java.lang.String[] { "SqlQuery", });
+ org.apache.drill.exec.proto.CoordinationProtos.getDescriptor();
+ org.apache.drill.exec.proto.UserBitShared.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
index 52cfda49d..064fc34a3 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/GeneralRPCProtos.java
@@ -23,7 +23,13 @@ package org.apache.drill.exec.proto;
public final class GeneralRPCProtos {
private GeneralRPCProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code exec.rpc.RpcMode}
@@ -33,23 +39,23 @@ public final class GeneralRPCProtos {
/**
* <code>REQUEST = 0;</code>
*/
- REQUEST(0, 0),
+ REQUEST(0),
/**
* <code>RESPONSE = 1;</code>
*/
- RESPONSE(1, 1),
+ RESPONSE(1),
/**
* <code>RESPONSE_FAILURE = 2;</code>
*/
- RESPONSE_FAILURE(2, 2),
+ RESPONSE_FAILURE(2),
/**
* <code>PING = 3;</code>
*/
- PING(3, 3),
+ PING(3),
/**
* <code>PONG = 4;</code>
*/
- PONG(4, 4),
+ PONG(4),
;
/**
@@ -74,9 +80,19 @@ public final class GeneralRPCProtos {
public static final int PONG_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RpcMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RpcMode forNumber(int value) {
switch (value) {
case 0: return REQUEST;
case 1: return RESPONSE;
@@ -91,17 +107,17 @@ public final class GeneralRPCProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RpcMode>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RpcMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RpcMode>() {
public RpcMode findValueByNumber(int number) {
- return RpcMode.valueOf(number);
+ return RpcMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -123,21 +139,19 @@ public final class GeneralRPCProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RpcMode(int index, int value) {
- this.index = index;
+ private RpcMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.rpc.RpcMode)
}
- public interface AckOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface AckOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.rpc.Ack)
+ com.google.protobuf.MessageOrBuilder {
- // optional bool ok = 1;
/**
* <code>optional bool ok = 1;</code>
*/
@@ -150,36 +164,32 @@ public final class GeneralRPCProtos {
/**
* Protobuf type {@code exec.rpc.Ack}
*/
- public static final class Ack extends
- com.google.protobuf.GeneratedMessage
- implements AckOrBuilder {
+ public static final class Ack extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.rpc.Ack)
+ AckOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Ack.newBuilder() to construct.
- private Ack(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Ack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Ack(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Ack defaultInstance;
- public static Ack getDefaultInstance() {
- return defaultInstance;
- }
-
- public Ack getDefaultInstanceForType() {
- return defaultInstance;
+ private Ack() {
+ ok_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Ack(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -191,25 +201,25 @@ public final class GeneralRPCProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
ok_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -220,30 +230,15 @@ public final class GeneralRPCProtos {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.GeneralRPCProtos.Ack.class, org.apache.drill.exec.proto.GeneralRPCProtos.Ack.Builder.class);
}
- public static com.google.protobuf.Parser<Ack> PARSER =
- new com.google.protobuf.AbstractParser<Ack>() {
- public Ack parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Ack(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Ack> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional bool ok = 1;
public static final int OK_FIELD_NUMBER = 1;
private boolean ok_;
/**
@@ -259,30 +254,29 @@ public final class GeneralRPCProtos {
return ok_;
}
- private void initFields() {
- ok_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, ok_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -290,19 +284,60 @@ public final class GeneralRPCProtos {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, ok_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.Ack)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.GeneralRPCProtos.Ack other = (org.apache.drill.exec.proto.GeneralRPCProtos.Ack) obj;
+
+ boolean result = true;
+ result = result && (hasOk() == other.hasOk());
+ if (hasOk()) {
+ result = result && (getOk()
+ == other.getOk());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasOk()) {
+ hash = (37 * hash) + OK_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getOk());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -325,46 +360,59 @@ public final class GeneralRPCProtos {
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.GeneralRPCProtos.Ack prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -372,14 +420,16 @@ public final class GeneralRPCProtos {
* Protobuf type {@code exec.rpc.Ack}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.GeneralRPCProtos.AckOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.rpc.Ack)
+ org.apache.drill.exec.proto.GeneralRPCProtos.AckOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -392,18 +442,16 @@ public final class GeneralRPCProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
ok_ = false;
@@ -411,19 +459,18 @@ public final class GeneralRPCProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_Ack_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstanceForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.Ack.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.Ack build() {
org.apache.drill.exec.proto.GeneralRPCProtos.Ack result = buildPartial();
if (!result.isInitialized()) {
@@ -432,6 +479,7 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.Ack buildPartial() {
org.apache.drill.exec.proto.GeneralRPCProtos.Ack result = new org.apache.drill.exec.proto.GeneralRPCProtos.Ack(this);
int from_bitField0_ = bitField0_;
@@ -445,6 +493,39 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.Ack) {
return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.Ack)other);
@@ -459,14 +540,17 @@ public final class GeneralRPCProtos {
if (other.hasOk()) {
setOk(other.getOk());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -476,7 +560,7 @@ public final class GeneralRPCProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.GeneralRPCProtos.Ack) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -486,7 +570,6 @@ public final class GeneralRPCProtos {
}
private int bitField0_;
- // optional bool ok = 1;
private boolean ok_ ;
/**
* <code>optional bool ok = 1;</code>
@@ -518,22 +601,63 @@ public final class GeneralRPCProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.rpc.Ack)
}
+ // @@protoc_insertion_point(class_scope:exec.rpc.Ack)
+ private static final org.apache.drill.exec.proto.GeneralRPCProtos.Ack DEFAULT_INSTANCE;
static {
- defaultInstance = new Ack(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.Ack();
+ }
+
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Ack>
+ PARSER = new com.google.protobuf.AbstractParser<Ack>() {
+ @java.lang.Override
+ public Ack parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Ack(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Ack> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Ack> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.GeneralRPCProtos.Ack getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.rpc.Ack)
}
- public interface RpcHeaderOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RpcHeaderOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.rpc.RpcHeader)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.rpc.RpcMode mode = 1;
/**
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
*/
@@ -543,75 +667,71 @@ public final class GeneralRPCProtos {
*/
org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode();
- // optional int32 coordination_id = 2;
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
boolean hasCoordinationId();
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
int getCoordinationId();
- // optional int32 rpc_type = 3;
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
boolean hasRpcType();
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
int getRpcType();
}
/**
* Protobuf type {@code exec.rpc.RpcHeader}
*/
- public static final class RpcHeader extends
- com.google.protobuf.GeneratedMessage
- implements RpcHeaderOrBuilder {
+ public static final class RpcHeader extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.rpc.RpcHeader)
+ RpcHeaderOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RpcHeader.newBuilder() to construct.
- private RpcHeader(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RpcHeader(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private RpcHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RpcHeader defaultInstance;
- public static RpcHeader getDefaultInstance() {
- return defaultInstance;
- }
-
- public RpcHeader getDefaultInstanceForType() {
- return defaultInstance;
+ private RpcHeader() {
+ mode_ = 0;
+ coordinationId_ = 0;
+ rpcType_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RpcHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -623,21 +743,15 @@ public final class GeneralRPCProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode value = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- mode_ = value;
+ mode_ = rawValue;
}
break;
}
@@ -651,13 +765,20 @@ public final class GeneralRPCProtos {
rpcType_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -668,32 +789,17 @@ public final class GeneralRPCProtos {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.class, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder.class);
}
- public static com.google.protobuf.Parser<RpcHeader> PARSER =
- new com.google.protobuf.AbstractParser<RpcHeader>() {
- public RpcHeader parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RpcHeader(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RpcHeader> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.rpc.RpcMode mode = 1;
public static final int MODE_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode mode_;
+ private int mode_;
/**
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
*/
@@ -704,76 +810,73 @@ public final class GeneralRPCProtos {
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode() {
- return mode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode result = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(mode_);
+ return result == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST : result;
}
- // optional int32 coordination_id = 2;
public static final int COORDINATION_ID_FIELD_NUMBER = 2;
private int coordinationId_;
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public boolean hasCoordinationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public int getCoordinationId() {
return coordinationId_;
}
- // optional int32 rpc_type = 3;
public static final int RPC_TYPE_FIELD_NUMBER = 3;
private int rpcType_;
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public boolean hasRpcType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public int getRpcType() {
return rpcType_;
}
- private void initFields() {
- mode_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST;
- coordinationId_ = 0;
- rpcType_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, mode_.getNumber());
+ output.writeEnum(1, mode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, coordinationId_);
@@ -781,18 +884,18 @@ public final class GeneralRPCProtos {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, rpcType_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, mode_.getNumber());
+ .computeEnumSize(1, mode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -802,18 +905,75 @@ public final class GeneralRPCProtos {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, rpcType_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader other = (org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) obj;
+
+ boolean result = true;
+ result = result && (hasMode() == other.hasMode());
+ if (hasMode()) {
+ result = result && mode_ == other.mode_;
+ }
+ result = result && (hasCoordinationId() == other.hasCoordinationId());
+ if (hasCoordinationId()) {
+ result = result && (getCoordinationId()
+ == other.getCoordinationId());
+ }
+ result = result && (hasRpcType() == other.hasRpcType());
+ if (hasRpcType()) {
+ result = result && (getRpcType()
+ == other.getRpcType());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMode()) {
+ hash = (37 * hash) + MODE_FIELD_NUMBER;
+ hash = (53 * hash) + mode_;
+ }
+ if (hasCoordinationId()) {
+ hash = (37 * hash) + COORDINATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCoordinationId();
+ }
+ if (hasRpcType()) {
+ hash = (37 * hash) + RPC_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcType();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -837,46 +997,59 @@ public final class GeneralRPCProtos {
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -884,14 +1057,16 @@ public final class GeneralRPCProtos {
* Protobuf type {@code exec.rpc.RpcHeader}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.rpc.RpcHeader)
+ org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -904,21 +1079,19 @@ public final class GeneralRPCProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- mode_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST;
+ mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
coordinationId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
@@ -927,19 +1100,18 @@ public final class GeneralRPCProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_RpcHeader_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstanceForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader build() {
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader result = buildPartial();
if (!result.isInitialized()) {
@@ -948,6 +1120,7 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader buildPartial() {
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader result = new org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader(this);
int from_bitField0_ = bitField0_;
@@ -969,6 +1142,39 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) {
return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader)other);
@@ -989,14 +1195,17 @@ public final class GeneralRPCProtos {
if (other.hasRpcType()) {
setRpcType(other.getRpcType());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1006,7 +1215,7 @@ public final class GeneralRPCProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1016,8 +1225,7 @@ public final class GeneralRPCProtos {
}
private int bitField0_;
- // optional .exec.rpc.RpcMode mode = 1;
- private org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode mode_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST;
+ private int mode_ = 0;
/**
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
*/
@@ -1028,7 +1236,9 @@ public final class GeneralRPCProtos {
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode getMode() {
- return mode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode result = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.valueOf(mode_);
+ return result == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST : result;
}
/**
* <code>optional .exec.rpc.RpcMode mode = 1;</code>
@@ -1038,7 +1248,7 @@ public final class GeneralRPCProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- mode_ = value;
+ mode_ = value.getNumber();
onChanged();
return this;
}
@@ -1047,39 +1257,38 @@ public final class GeneralRPCProtos {
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000001);
- mode_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcMode.REQUEST;
+ mode_ = 0;
onChanged();
return this;
}
- // optional int32 coordination_id = 2;
private int coordinationId_ ;
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public boolean hasCoordinationId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public int getCoordinationId() {
return coordinationId_;
}
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public Builder setCoordinationId(int value) {
bitField0_ |= 0x00000002;
@@ -1088,11 +1297,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional int32 coordination_id = 2;</code>
- *
* <pre>
* reusable coordination identifier. Sender defines. Server returns on return. Irrelevant for purely single direction rpc.
* </pre>
+ *
+ * <code>optional int32 coordination_id = 2;</code>
*/
public Builder clearCoordinationId() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1101,34 +1310,33 @@ public final class GeneralRPCProtos {
return this;
}
- // optional int32 rpc_type = 3;
private int rpcType_ ;
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public boolean hasRpcType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public int getRpcType() {
return rpcType_;
}
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public Builder setRpcType(int value) {
bitField0_ |= 0x00000004;
@@ -1137,11 +1345,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional int32 rpc_type = 3;</code>
- *
* <pre>
* a rpc mode specific rpc type.
* </pre>
+ *
+ * <code>optional int32 rpc_type = 3;</code>
*/
public Builder clearRpcType() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1149,116 +1357,152 @@ public final class GeneralRPCProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.rpc.RpcHeader)
}
+ // @@protoc_insertion_point(class_scope:exec.rpc.RpcHeader)
+ private static final org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader DEFAULT_INSTANCE;
static {
- defaultInstance = new RpcHeader(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader();
+ }
+
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RpcHeader>
+ PARSER = new com.google.protobuf.AbstractParser<RpcHeader>() {
+ @java.lang.Override
+ public RpcHeader parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RpcHeader(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RpcHeader> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RpcHeader> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.rpc.RpcHeader)
}
- public interface CompleteRpcMessageOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CompleteRpcMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.rpc.CompleteRpcMessage)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.rpc.RpcHeader header = 1;
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
boolean hasHeader();
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader();
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder();
- // optional bytes protobuf_body = 2;
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
boolean hasProtobufBody();
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
com.google.protobuf.ByteString getProtobufBody();
- // optional bytes raw_body = 3;
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
boolean hasRawBody();
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
com.google.protobuf.ByteString getRawBody();
}
/**
* Protobuf type {@code exec.rpc.CompleteRpcMessage}
*/
- public static final class CompleteRpcMessage extends
- com.google.protobuf.GeneratedMessage
- implements CompleteRpcMessageOrBuilder {
+ public static final class CompleteRpcMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.rpc.CompleteRpcMessage)
+ CompleteRpcMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CompleteRpcMessage.newBuilder() to construct.
- private CompleteRpcMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CompleteRpcMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CompleteRpcMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CompleteRpcMessage defaultInstance;
- public static CompleteRpcMessage getDefaultInstance() {
- return defaultInstance;
}
-
- public CompleteRpcMessage getDefaultInstanceForType() {
- return defaultInstance;
+ private CompleteRpcMessage() {
+ protobufBody_ = com.google.protobuf.ByteString.EMPTY;
+ rawBody_ = com.google.protobuf.ByteString.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CompleteRpcMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1270,13 +1514,6 @@ public final class GeneralRPCProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -1300,13 +1537,20 @@ public final class GeneralRPCProtos {
rawBody_ = input.readBytes();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1317,130 +1561,110 @@ public final class GeneralRPCProtos {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.class, org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.Builder.class);
}
- public static com.google.protobuf.Parser<CompleteRpcMessage> PARSER =
- new com.google.protobuf.AbstractParser<CompleteRpcMessage>() {
- public CompleteRpcMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CompleteRpcMessage(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CompleteRpcMessage> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.rpc.RpcHeader header = 1;
public static final int HEADER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader header_;
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader() {
- return header_;
+ return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_;
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder() {
- return header_;
+ return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_;
}
- // optional bytes protobuf_body = 2;
public static final int PROTOBUF_BODY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString protobufBody_;
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public boolean hasProtobufBody() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public com.google.protobuf.ByteString getProtobufBody() {
return protobufBody_;
}
- // optional bytes raw_body = 3;
public static final int RAW_BODY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString rawBody_;
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public boolean hasRawBody() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public com.google.protobuf.ByteString getRawBody() {
return rawBody_;
}
- private void initFields() {
- header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance();
- protobufBody_ = com.google.protobuf.ByteString.EMPTY;
- rawBody_ = com.google.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, header_);
+ output.writeMessage(1, getHeader());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, protobufBody_);
@@ -1448,18 +1672,18 @@ public final class GeneralRPCProtos {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, rawBody_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, header_);
+ .computeMessageSize(1, getHeader());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -1469,18 +1693,76 @@ public final class GeneralRPCProtos {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, rawBody_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage other = (org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage) obj;
+
+ boolean result = true;
+ result = result && (hasHeader() == other.hasHeader());
+ if (hasHeader()) {
+ result = result && getHeader()
+ .equals(other.getHeader());
+ }
+ result = result && (hasProtobufBody() == other.hasProtobufBody());
+ if (hasProtobufBody()) {
+ result = result && getProtobufBody()
+ .equals(other.getProtobufBody());
+ }
+ result = result && (hasRawBody() == other.hasRawBody());
+ if (hasRawBody()) {
+ result = result && getRawBody()
+ .equals(other.getRawBody());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasHeader()) {
+ hash = (37 * hash) + HEADER_FIELD_NUMBER;
+ hash = (53 * hash) + getHeader().hashCode();
+ }
+ if (hasProtobufBody()) {
+ hash = (37 * hash) + PROTOBUF_BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getProtobufBody().hashCode();
+ }
+ if (hasRawBody()) {
+ hash = (37 * hash) + RAW_BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getRawBody().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1504,46 +1786,59 @@ public final class GeneralRPCProtos {
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1551,14 +1846,16 @@ public final class GeneralRPCProtos {
* Protobuf type {@code exec.rpc.CompleteRpcMessage}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessageOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.rpc.CompleteRpcMessage)
+ org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1571,23 +1868,21 @@ public final class GeneralRPCProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
- header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance();
+ header_ = null;
} else {
headerBuilder_.clear();
}
@@ -1599,19 +1894,18 @@ public final class GeneralRPCProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.internal_static_exec_rpc_CompleteRpcMessage_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstanceForType() {
return org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage build() {
org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage result = buildPartial();
if (!result.isInitialized()) {
@@ -1620,6 +1914,7 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage buildPartial() {
org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage result = new org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage(this);
int from_bitField0_ = bitField0_;
@@ -1645,6 +1940,39 @@ public final class GeneralRPCProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage) {
return mergeFrom((org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage)other);
@@ -1665,14 +1993,17 @@ public final class GeneralRPCProtos {
if (other.hasRawBody()) {
setRawBody(other.getRawBody());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1682,7 +2013,7 @@ public final class GeneralRPCProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1692,40 +2023,39 @@ public final class GeneralRPCProtos {
}
private int bitField0_;
- // optional .exec.rpc.RpcHeader header = 1;
- private org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader header_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder> headerBuilder_;
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader getHeader() {
if (headerBuilder_ == null) {
- return header_;
+ return header_ == null ? org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public Builder setHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) {
if (headerBuilder_ == null) {
@@ -1741,11 +2071,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public Builder setHeader(
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder builderForValue) {
@@ -1759,15 +2089,16 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public Builder mergeHeader(org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ header_ != null &&
header_ != org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance()) {
header_ =
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.newBuilder(header_).mergeFrom(value).buildPartial();
@@ -1782,15 +2113,15 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
- header_ = org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance();
+ header_ = null;
onChanged();
} else {
headerBuilder_.clear();
@@ -1799,11 +2130,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
@@ -1811,33 +2142,34 @@ public final class GeneralRPCProtos {
return getHeaderFieldBuilder().getBuilder();
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
public org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
- return header_;
+ return header_ == null ?
+ org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.getDefaultInstance() : header_;
}
}
/**
- * <code>optional .exec.rpc.RpcHeader header = 1;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional .exec.rpc.RpcHeader header = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeader.Builder, org.apache.drill.exec.proto.GeneralRPCProtos.RpcHeaderOrBuilder>(
- header_,
+ getHeader(),
getParentForChildren(),
isClean());
header_ = null;
@@ -1845,34 +2177,33 @@ public final class GeneralRPCProtos {
return headerBuilder_;
}
- // optional bytes protobuf_body = 2;
private com.google.protobuf.ByteString protobufBody_ = com.google.protobuf.ByteString.EMPTY;
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public boolean hasProtobufBody() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public com.google.protobuf.ByteString getProtobufBody() {
return protobufBody_;
}
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public Builder setProtobufBody(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -1884,11 +2215,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional bytes protobuf_body = 2;</code>
- *
* <pre>
* required
* </pre>
+ *
+ * <code>optional bytes protobuf_body = 2;</code>
*/
public Builder clearProtobufBody() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1897,34 +2228,33 @@ public final class GeneralRPCProtos {
return this;
}
- // optional bytes raw_body = 3;
private com.google.protobuf.ByteString rawBody_ = com.google.protobuf.ByteString.EMPTY;
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public boolean hasRawBody() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public com.google.protobuf.ByteString getRawBody() {
return rawBody_;
}
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public Builder setRawBody(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -1936,11 +2266,11 @@ public final class GeneralRPCProtos {
return this;
}
/**
- * <code>optional bytes raw_body = 3;</code>
- *
* <pre>
* optional
* </pre>
+ *
+ * <code>optional bytes raw_body = 3;</code>
*/
public Builder clearRawBody() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1948,39 +2278,80 @@ public final class GeneralRPCProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.rpc.CompleteRpcMessage)
}
+ // @@protoc_insertion_point(class_scope:exec.rpc.CompleteRpcMessage)
+ private static final org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage DEFAULT_INSTANCE;
static {
- defaultInstance = new CompleteRpcMessage(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage();
+ }
+
+ public static org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<CompleteRpcMessage>
+ PARSER = new com.google.protobuf.AbstractParser<CompleteRpcMessage>() {
+ @java.lang.Override
+ public CompleteRpcMessage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CompleteRpcMessage(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<CompleteRpcMessage> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CompleteRpcMessage> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.GeneralRPCProtos.CompleteRpcMessage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.rpc.CompleteRpcMessage)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_rpc_Ack_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_rpc_Ack_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_rpc_RpcHeader_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_rpc_RpcHeader_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_rpc_CompleteRpcMessage_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -1996,36 +2367,37 @@ public final class GeneralRPCProtos {
"c.protoB\020GeneralRPCProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_rpc_Ack_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_rpc_Ack_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_rpc_Ack_descriptor,
- new java.lang.String[] { "Ok", });
- internal_static_exec_rpc_RpcHeader_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_rpc_RpcHeader_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_rpc_RpcHeader_descriptor,
- new java.lang.String[] { "Mode", "CoordinationId", "RpcType", });
- internal_static_exec_rpc_CompleteRpcMessage_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_rpc_CompleteRpcMessage_descriptor,
- new java.lang.String[] { "Header", "ProtobufBody", "RawBody", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(),
}, assigner);
+ internal_static_exec_rpc_Ack_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_rpc_Ack_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_rpc_Ack_descriptor,
+ new java.lang.String[] { "Ok", });
+ internal_static_exec_rpc_RpcHeader_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_rpc_RpcHeader_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_rpc_RpcHeader_descriptor,
+ new java.lang.String[] { "Mode", "CoordinationId", "RpcType", });
+ internal_static_exec_rpc_CompleteRpcMessage_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_rpc_CompleteRpcMessage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_rpc_CompleteRpcMessage_descriptor,
+ new java.lang.String[] { "Header", "ProtobufBody", "RawBody", });
+ org.apache.drill.exec.proto.CoordinationProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java
index d1c0ef0e6..eab8441a4 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java
@@ -23,7 +23,13 @@ package org.apache.drill.exec.proto;
public final class SchemaDefProtos {
private SchemaDefProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code exec.ValueMode}
@@ -33,15 +39,15 @@ public final class SchemaDefProtos {
/**
* <code>VALUE_VECTOR = 0;</code>
*/
- VALUE_VECTOR(0, 0),
+ VALUE_VECTOR(0),
/**
* <code>RLE = 1;</code>
*/
- RLE(1, 1),
+ RLE(1),
/**
* <code>DICT = 2;</code>
*/
- DICT(2, 2),
+ DICT(2),
;
/**
@@ -58,9 +64,19 @@ public final class SchemaDefProtos {
public static final int DICT_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static ValueMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ValueMode forNumber(int value) {
switch (value) {
case 0: return VALUE_VECTOR;
case 1: return RLE;
@@ -73,17 +89,17 @@ public final class SchemaDefProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<ValueMode>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ValueMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ValueMode>() {
public ValueMode findValueByNumber(int number) {
- return ValueMode.valueOf(number);
+ return ValueMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -105,11 +121,9 @@ public final class SchemaDefProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private ValueMode(int index, int value) {
- this.index = index;
+ private ValueMode(int value) {
this.value = value;
}
@@ -121,7 +135,7 @@ public final class SchemaDefProtos {
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -131,18 +145,19 @@ public final class SchemaDefProtos {
"chemaDefProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.drill.common.types.TypeProtos.getDescriptor(),
}, assigner);
+ org.apache.drill.common.types.TypeProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java b/protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java
index 2135a1f19..b1ba64373 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/UserBitShared.java
@@ -23,7 +23,13 @@ package org.apache.drill.exec.proto;
public final class UserBitShared {
private UserBitShared() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code exec.shared.RpcChannel}
@@ -33,15 +39,15 @@ public final class UserBitShared {
/**
* <code>BIT_CONTROL = 0;</code>
*/
- BIT_CONTROL(0, 0),
+ BIT_CONTROL(0),
/**
* <code>BIT_DATA = 1;</code>
*/
- BIT_DATA(1, 1),
+ BIT_DATA(1),
/**
* <code>USER = 2;</code>
*/
- USER(2, 2),
+ USER(2),
;
/**
@@ -58,9 +64,19 @@ public final class UserBitShared {
public static final int USER_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RpcChannel valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RpcChannel forNumber(int value) {
switch (value) {
case 0: return BIT_CONTROL;
case 1: return BIT_DATA;
@@ -73,17 +89,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RpcChannel>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RpcChannel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RpcChannel>() {
public RpcChannel findValueByNumber(int number) {
- return RpcChannel.valueOf(number);
+ return RpcChannel.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -105,11 +121,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RpcChannel(int index, int value) {
- this.index = index;
+ private RpcChannel(int value) {
this.value = value;
}
@@ -124,27 +138,27 @@ public final class UserBitShared {
/**
* <code>SQL = 1;</code>
*/
- SQL(0, 1),
+ SQL(1),
/**
* <code>LOGICAL = 2;</code>
*/
- LOGICAL(1, 2),
+ LOGICAL(2),
/**
* <code>PHYSICAL = 3;</code>
*/
- PHYSICAL(2, 3),
+ PHYSICAL(3),
/**
* <code>EXECUTION = 4;</code>
*/
- EXECUTION(3, 4),
+ EXECUTION(4),
/**
- * <code>PREPARED_STATEMENT = 5;</code>
- *
* <pre>
* Input is a prepared statement
* </pre>
+ *
+ * <code>PREPARED_STATEMENT = 5;</code>
*/
- PREPARED_STATEMENT(4, 5),
+ PREPARED_STATEMENT(5),
;
/**
@@ -164,18 +178,28 @@ public final class UserBitShared {
*/
public static final int EXECUTION_VALUE = 4;
/**
- * <code>PREPARED_STATEMENT = 5;</code>
- *
* <pre>
* Input is a prepared statement
* </pre>
+ *
+ * <code>PREPARED_STATEMENT = 5;</code>
*/
public static final int PREPARED_STATEMENT_VALUE = 5;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static QueryType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static QueryType forNumber(int value) {
switch (value) {
case 1: return SQL;
case 2: return LOGICAL;
@@ -190,17 +214,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<QueryType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ QueryType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<QueryType>() {
public QueryType findValueByNumber(int number) {
- return QueryType.valueOf(number);
+ return QueryType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -222,11 +246,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private QueryType(int index, int value) {
- this.index = index;
+ private QueryType(int value) {
this.value = value;
}
@@ -241,31 +263,31 @@ public final class UserBitShared {
/**
* <code>SENDING = 0;</code>
*/
- SENDING(0, 0),
+ SENDING(0),
/**
* <code>AWAITING_ALLOCATION = 1;</code>
*/
- AWAITING_ALLOCATION(1, 1),
+ AWAITING_ALLOCATION(1),
/**
* <code>RUNNING = 2;</code>
*/
- RUNNING(2, 2),
+ RUNNING(2),
/**
* <code>FINISHED = 3;</code>
*/
- FINISHED(3, 3),
+ FINISHED(3),
/**
* <code>CANCELLED = 4;</code>
*/
- CANCELLED(4, 4),
+ CANCELLED(4),
/**
* <code>FAILED = 5;</code>
*/
- FAILED(5, 5),
+ FAILED(5),
/**
* <code>CANCELLATION_REQUESTED = 6;</code>
*/
- CANCELLATION_REQUESTED(6, 6),
+ CANCELLATION_REQUESTED(6),
;
/**
@@ -298,9 +320,19 @@ public final class UserBitShared {
public static final int CANCELLATION_REQUESTED_VALUE = 6;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static FragmentState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static FragmentState forNumber(int value) {
switch (value) {
case 0: return SENDING;
case 1: return AWAITING_ALLOCATION;
@@ -317,17 +349,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<FragmentState>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ FragmentState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<FragmentState>() {
public FragmentState findValueByNumber(int number) {
- return FragmentState.valueOf(number);
+ return FragmentState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -349,11 +381,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private FragmentState(int index, int value) {
- this.index = index;
+ private FragmentState(int value) {
this.value = value;
}
@@ -368,251 +398,251 @@ public final class UserBitShared {
/**
* <code>SINGLE_SENDER = 0;</code>
*/
- SINGLE_SENDER(0, 0),
+ SINGLE_SENDER(0),
/**
* <code>BROADCAST_SENDER = 1;</code>
*/
- BROADCAST_SENDER(1, 1),
+ BROADCAST_SENDER(1),
/**
* <code>FILTER = 2;</code>
*/
- FILTER(2, 2),
+ FILTER(2),
/**
* <code>HASH_AGGREGATE = 3;</code>
*/
- HASH_AGGREGATE(3, 3),
+ HASH_AGGREGATE(3),
/**
* <code>HASH_JOIN = 4;</code>
*/
- HASH_JOIN(4, 4),
+ HASH_JOIN(4),
/**
* <code>MERGE_JOIN = 5;</code>
*/
- MERGE_JOIN(5, 5),
+ MERGE_JOIN(5),
/**
* <code>HASH_PARTITION_SENDER = 6;</code>
*/
- HASH_PARTITION_SENDER(6, 6),
+ HASH_PARTITION_SENDER(6),
/**
* <code>LIMIT = 7;</code>
*/
- LIMIT(7, 7),
+ LIMIT(7),
/**
* <code>MERGING_RECEIVER = 8;</code>
*/
- MERGING_RECEIVER(8, 8),
+ MERGING_RECEIVER(8),
/**
* <code>ORDERED_PARTITION_SENDER = 9;</code>
*/
- ORDERED_PARTITION_SENDER(9, 9),
+ ORDERED_PARTITION_SENDER(9),
/**
* <code>PROJECT = 10;</code>
*/
- PROJECT(10, 10),
+ PROJECT(10),
/**
* <code>UNORDERED_RECEIVER = 11;</code>
*/
- UNORDERED_RECEIVER(11, 11),
+ UNORDERED_RECEIVER(11),
/**
* <code>RANGE_PARTITION_SENDER = 12;</code>
*/
- RANGE_PARTITION_SENDER(12, 12),
+ RANGE_PARTITION_SENDER(12),
/**
* <code>SCREEN = 13;</code>
*/
- SCREEN(13, 13),
+ SCREEN(13),
/**
* <code>SELECTION_VECTOR_REMOVER = 14;</code>
*/
- SELECTION_VECTOR_REMOVER(14, 14),
+ SELECTION_VECTOR_REMOVER(14),
/**
* <code>STREAMING_AGGREGATE = 15;</code>
*/
- STREAMING_AGGREGATE(15, 15),
+ STREAMING_AGGREGATE(15),
/**
* <code>TOP_N_SORT = 16;</code>
*/
- TOP_N_SORT(16, 16),
+ TOP_N_SORT(16),
/**
* <code>EXTERNAL_SORT = 17;</code>
*/
- EXTERNAL_SORT(17, 17),
+ EXTERNAL_SORT(17),
/**
* <code>TRACE = 18;</code>
*/
- TRACE(18, 18),
+ TRACE(18),
/**
* <code>UNION = 19;</code>
*/
- UNION(19, 19),
+ UNION(19),
/**
* <code>OLD_SORT = 20;</code>
*/
- OLD_SORT(20, 20),
+ OLD_SORT(20),
/**
* <code>PARQUET_ROW_GROUP_SCAN = 21;</code>
*/
- PARQUET_ROW_GROUP_SCAN(21, 21),
+ PARQUET_ROW_GROUP_SCAN(21),
/**
* <code>HIVE_SUB_SCAN = 22;</code>
*/
- HIVE_SUB_SCAN(22, 22),
+ HIVE_SUB_SCAN(22),
/**
* <code>SYSTEM_TABLE_SCAN = 23;</code>
*/
- SYSTEM_TABLE_SCAN(23, 23),
+ SYSTEM_TABLE_SCAN(23),
/**
* <code>MOCK_SUB_SCAN = 24;</code>
*/
- MOCK_SUB_SCAN(24, 24),
+ MOCK_SUB_SCAN(24),
/**
* <code>PARQUET_WRITER = 25;</code>
*/
- PARQUET_WRITER(25, 25),
+ PARQUET_WRITER(25),
/**
* <code>DIRECT_SUB_SCAN = 26;</code>
*/
- DIRECT_SUB_SCAN(26, 26),
+ DIRECT_SUB_SCAN(26),
/**
* <code>TEXT_WRITER = 27;</code>
*/
- TEXT_WRITER(27, 27),
+ TEXT_WRITER(27),
/**
* <code>TEXT_SUB_SCAN = 28;</code>
*/
- TEXT_SUB_SCAN(28, 28),
+ TEXT_SUB_SCAN(28),
/**
* <code>JSON_SUB_SCAN = 29;</code>
*/
- JSON_SUB_SCAN(29, 29),
+ JSON_SUB_SCAN(29),
/**
* <code>INFO_SCHEMA_SUB_SCAN = 30;</code>
*/
- INFO_SCHEMA_SUB_SCAN(30, 30),
+ INFO_SCHEMA_SUB_SCAN(30),
/**
* <code>COMPLEX_TO_JSON = 31;</code>
*/
- COMPLEX_TO_JSON(31, 31),
+ COMPLEX_TO_JSON(31),
/**
* <code>PRODUCER_CONSUMER = 32;</code>
*/
- PRODUCER_CONSUMER(32, 32),
+ PRODUCER_CONSUMER(32),
/**
* <code>HBASE_SUB_SCAN = 33;</code>
*/
- HBASE_SUB_SCAN(33, 33),
+ HBASE_SUB_SCAN(33),
/**
* <code>WINDOW = 34;</code>
*/
- WINDOW(34, 34),
+ WINDOW(34),
/**
* <code>NESTED_LOOP_JOIN = 35;</code>
*/
- NESTED_LOOP_JOIN(35, 35),
+ NESTED_LOOP_JOIN(35),
/**
* <code>AVRO_SUB_SCAN = 36;</code>
*/
- AVRO_SUB_SCAN(36, 36),
+ AVRO_SUB_SCAN(36),
/**
* <code>PCAP_SUB_SCAN = 37;</code>
*/
- PCAP_SUB_SCAN(37, 37),
+ PCAP_SUB_SCAN(37),
/**
* <code>KAFKA_SUB_SCAN = 38;</code>
*/
- KAFKA_SUB_SCAN(38, 38),
+ KAFKA_SUB_SCAN(38),
/**
* <code>KUDU_SUB_SCAN = 39;</code>
*/
- KUDU_SUB_SCAN(39, 39),
+ KUDU_SUB_SCAN(39),
/**
* <code>FLATTEN = 40;</code>
*/
- FLATTEN(40, 40),
+ FLATTEN(40),
/**
* <code>LATERAL_JOIN = 41;</code>
*/
- LATERAL_JOIN(41, 41),
+ LATERAL_JOIN(41),
/**
* <code>UNNEST = 42;</code>
*/
- UNNEST(42, 42),
+ UNNEST(42),
/**
* <code>HIVE_DRILL_NATIVE_PARQUET_ROW_GROUP_SCAN = 43;</code>
*/
- HIVE_DRILL_NATIVE_PARQUET_ROW_GROUP_SCAN(43, 43),
+ HIVE_DRILL_NATIVE_PARQUET_ROW_GROUP_SCAN(43),
/**
* <code>JDBC_SCAN = 44;</code>
*/
- JDBC_SCAN(44, 44),
+ JDBC_SCAN(44),
/**
* <code>REGEX_SUB_SCAN = 45;</code>
*/
- REGEX_SUB_SCAN(45, 45),
+ REGEX_SUB_SCAN(45),
/**
* <code>MAPRDB_SUB_SCAN = 46;</code>
*/
- MAPRDB_SUB_SCAN(46, 46),
+ MAPRDB_SUB_SCAN(46),
/**
* <code>MONGO_SUB_SCAN = 47;</code>
*/
- MONGO_SUB_SCAN(47, 47),
+ MONGO_SUB_SCAN(47),
/**
* <code>KUDU_WRITER = 48;</code>
*/
- KUDU_WRITER(48, 48),
+ KUDU_WRITER(48),
/**
* <code>OPEN_TSDB_SUB_SCAN = 49;</code>
*/
- OPEN_TSDB_SUB_SCAN(49, 49),
+ OPEN_TSDB_SUB_SCAN(49),
/**
* <code>JSON_WRITER = 50;</code>
*/
- JSON_WRITER(50, 50),
+ JSON_WRITER(50),
/**
* <code>HTPPD_LOG_SUB_SCAN = 51;</code>
*/
- HTPPD_LOG_SUB_SCAN(51, 51),
+ HTPPD_LOG_SUB_SCAN(51),
/**
* <code>IMAGE_SUB_SCAN = 52;</code>
*/
- IMAGE_SUB_SCAN(52, 52),
+ IMAGE_SUB_SCAN(52),
/**
* <code>SEQUENCE_SUB_SCAN = 53;</code>
*/
- SEQUENCE_SUB_SCAN(53, 53),
+ SEQUENCE_SUB_SCAN(53),
/**
* <code>PARTITION_LIMIT = 54;</code>
*/
- PARTITION_LIMIT(54, 54),
+ PARTITION_LIMIT(54),
/**
* <code>PCAPNG_SUB_SCAN = 55;</code>
*/
- PCAPNG_SUB_SCAN(55, 55),
+ PCAPNG_SUB_SCAN(55),
/**
* <code>RUNTIME_FILTER = 56;</code>
*/
- RUNTIME_FILTER(56, 56),
+ RUNTIME_FILTER(56),
/**
* <code>ROWKEY_JOIN = 57;</code>
*/
- ROWKEY_JOIN(57, 57),
+ ROWKEY_JOIN(57),
/**
* <code>SYSLOG_SUB_SCAN = 58;</code>
*/
- SYSLOG_SUB_SCAN(58, 58),
+ SYSLOG_SUB_SCAN(58),
/**
* <code>STATISTICS_AGGREGATE = 59;</code>
*/
- STATISTICS_AGGREGATE(59, 59),
+ STATISTICS_AGGREGATE(59),
/**
* <code>UNPIVOT_MAPS = 60;</code>
*/
- UNPIVOT_MAPS(60, 60),
+ UNPIVOT_MAPS(60),
/**
* <code>STATISTICS_MERGE = 61;</code>
*/
- STATISTICS_MERGE(61, 61),
+ STATISTICS_MERGE(61),
;
/**
@@ -865,9 +895,19 @@ public final class UserBitShared {
public static final int STATISTICS_MERGE_VALUE = 61;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CoreOperatorType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CoreOperatorType forNumber(int value) {
switch (value) {
case 0: return SINGLE_SENDER;
case 1: return BROADCAST_SENDER;
@@ -939,17 +979,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<CoreOperatorType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ CoreOperatorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CoreOperatorType>() {
public CoreOperatorType findValueByNumber(int number) {
- return CoreOperatorType.valueOf(number);
+ return CoreOperatorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -971,11 +1011,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private CoreOperatorType(int index, int value) {
- this.index = index;
+ private CoreOperatorType(int value) {
this.value = value;
}
@@ -990,23 +1028,23 @@ public final class UserBitShared {
/**
* <code>SASL_UNKNOWN = 0;</code>
*/
- SASL_UNKNOWN(0, 0),
+ SASL_UNKNOWN(0),
/**
* <code>SASL_START = 1;</code>
*/
- SASL_START(1, 1),
+ SASL_START(1),
/**
* <code>SASL_IN_PROGRESS = 2;</code>
*/
- SASL_IN_PROGRESS(2, 2),
+ SASL_IN_PROGRESS(2),
/**
* <code>SASL_SUCCESS = 3;</code>
*/
- SASL_SUCCESS(3, 3),
+ SASL_SUCCESS(3),
/**
* <code>SASL_FAILED = 4;</code>
*/
- SASL_FAILED(4, 4),
+ SASL_FAILED(4),
;
/**
@@ -1031,9 +1069,19 @@ public final class UserBitShared {
public static final int SASL_FAILED_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static SaslStatus valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SaslStatus forNumber(int value) {
switch (value) {
case 0: return SASL_UNKNOWN;
case 1: return SASL_START;
@@ -1048,17 +1096,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<SaslStatus>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ SaslStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<SaslStatus>() {
public SaslStatus findValueByNumber(int number) {
- return SaslStatus.valueOf(number);
+ return SaslStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1080,21 +1128,19 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private SaslStatus(int index, int value) {
- this.index = index;
+ private SaslStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.shared.SaslStatus)
}
- public interface UserCredentialsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface UserCredentialsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.UserCredentials)
+ com.google.protobuf.MessageOrBuilder {
- // optional string user_name = 1;
/**
* <code>optional string user_name = 1;</code>
*/
@@ -1112,36 +1158,32 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.UserCredentials}
*/
- public static final class UserCredentials extends
- com.google.protobuf.GeneratedMessage
- implements UserCredentialsOrBuilder {
+ public static final class UserCredentials extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.UserCredentials)
+ UserCredentialsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use UserCredentials.newBuilder() to construct.
- private UserCredentials(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private UserCredentials(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private UserCredentials(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final UserCredentials defaultInstance;
- public static UserCredentials getDefaultInstance() {
- return defaultInstance;
- }
-
- public UserCredentials getDefaultInstanceForType() {
- return defaultInstance;
+ private UserCredentials() {
+ userName_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private UserCredentials(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1153,25 +1195,26 @@ public final class UserBitShared {
case 0:
done = true;
break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ userName_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- userName_ = input.readBytes();
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1182,32 +1225,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_UserCredentials_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_UserCredentials_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.UserCredentials.class, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder.class);
}
- public static com.google.protobuf.Parser<UserCredentials> PARSER =
- new com.google.protobuf.AbstractParser<UserCredentials>() {
- public UserCredentials parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new UserCredentials(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<UserCredentials> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string user_name = 1;
public static final int USER_NAME_FIELD_NUMBER = 1;
- private java.lang.Object userName_;
+ private volatile java.lang.Object userName_;
/**
* <code>optional string user_name = 1;</code>
*/
@@ -1248,50 +1276,88 @@ public final class UserBitShared {
}
}
- private void initFields() {
- userName_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getUserNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userName_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getUserNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userName_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.UserCredentials)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.UserCredentials other = (org.apache.drill.exec.proto.UserBitShared.UserCredentials) obj;
+
+ boolean result = true;
+ result = result && (hasUserName() == other.hasUserName());
+ if (hasUserName()) {
+ result = result && getUserName()
+ .equals(other.getUserName());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUserName()) {
+ hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserName().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -1314,46 +1380,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.UserCredentials parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.UserCredentials prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1361,14 +1440,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.UserCredentials}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.UserCredentials)
+ org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_UserCredentials_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_UserCredentials_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1381,18 +1462,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
userName_ = "";
@@ -1400,19 +1479,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_UserCredentials_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.UserCredentials getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.UserCredentials build() {
org.apache.drill.exec.proto.UserBitShared.UserCredentials result = buildPartial();
if (!result.isInitialized()) {
@@ -1421,6 +1499,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.UserCredentials buildPartial() {
org.apache.drill.exec.proto.UserBitShared.UserCredentials result = new org.apache.drill.exec.proto.UserBitShared.UserCredentials(this);
int from_bitField0_ = bitField0_;
@@ -1434,6 +1513,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.UserCredentials) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.UserCredentials)other);
@@ -1450,14 +1562,17 @@ public final class UserBitShared {
userName_ = other.userName_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1467,7 +1582,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.UserCredentials) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1477,7 +1592,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string user_name = 1;
private java.lang.Object userName_ = "";
/**
* <code>optional string user_name = 1;</code>
@@ -1491,9 +1605,12 @@ public final class UserBitShared {
public java.lang.String getUserName() {
java.lang.Object ref = userName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- userName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ userName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -1550,22 +1667,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.UserCredentials)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.UserCredentials)
+ private static final org.apache.drill.exec.proto.UserBitShared.UserCredentials DEFAULT_INSTANCE;
static {
- defaultInstance = new UserCredentials(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.UserCredentials();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.UserCredentials getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<UserCredentials>
+ PARSER = new com.google.protobuf.AbstractParser<UserCredentials>() {
+ @java.lang.Override
+ public UserCredentials parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UserCredentials(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<UserCredentials> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<UserCredentials> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.UserCredentials getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.UserCredentials)
}
- public interface QueryIdOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryIdOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.QueryId)
+ com.google.protobuf.MessageOrBuilder {
- // optional sfixed64 part1 = 1;
/**
* <code>optional sfixed64 part1 = 1;</code>
*/
@@ -1575,7 +1733,6 @@ public final class UserBitShared {
*/
long getPart1();
- // optional sfixed64 part2 = 2;
/**
* <code>optional sfixed64 part2 = 2;</code>
*/
@@ -1588,36 +1745,33 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.QueryId}
*/
- public static final class QueryId extends
- com.google.protobuf.GeneratedMessage
- implements QueryIdOrBuilder {
+ public static final class QueryId extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.QueryId)
+ QueryIdOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryId.newBuilder() to construct.
- private QueryId(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private QueryId(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryId defaultInstance;
- public static QueryId getDefaultInstance() {
- return defaultInstance;
}
-
- public QueryId getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryId() {
+ part1_ = 0L;
+ part2_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -1629,13 +1783,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 9: {
bitField0_ |= 0x00000001;
part1_ = input.readSFixed64();
@@ -1646,13 +1793,20 @@ public final class UserBitShared {
part2_ = input.readSFixed64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -1663,30 +1817,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryId_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.QueryId.class, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder.class);
}
- public static com.google.protobuf.Parser<QueryId> PARSER =
- new com.google.protobuf.AbstractParser<QueryId>() {
- public QueryId parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryId(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryId> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional sfixed64 part1 = 1;
public static final int PART1_FIELD_NUMBER = 1;
private long part1_;
/**
@@ -1702,7 +1841,6 @@ public final class UserBitShared {
return part1_;
}
- // optional sfixed64 part2 = 2;
public static final int PART2_FIELD_NUMBER = 2;
private long part2_;
/**
@@ -1718,34 +1856,32 @@ public final class UserBitShared {
return part2_;
}
- private void initFields() {
- part1_ = 0L;
- part2_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSFixed64(1, part1_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSFixed64(2, part2_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -1757,18 +1893,69 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(2, part2_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.QueryId)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.QueryId other = (org.apache.drill.exec.proto.UserBitShared.QueryId) obj;
+
+ boolean result = true;
+ result = result && (hasPart1() == other.hasPart1());
+ if (hasPart1()) {
+ result = result && (getPart1()
+ == other.getPart1());
+ }
+ result = result && (hasPart2() == other.hasPart2());
+ if (hasPart2()) {
+ result = result && (getPart2()
+ == other.getPart2());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPart1()) {
+ hash = (37 * hash) + PART1_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPart1());
+ }
+ if (hasPart2()) {
+ hash = (37 * hash) + PART2_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPart2());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1792,46 +1979,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.QueryId prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1839,14 +2039,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.QueryId}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.QueryId)
+ org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryId_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1859,18 +2061,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
part1_ = 0L;
@@ -1880,19 +2080,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryId_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryId getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryId build() {
org.apache.drill.exec.proto.UserBitShared.QueryId result = buildPartial();
if (!result.isInitialized()) {
@@ -1901,6 +2100,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryId buildPartial() {
org.apache.drill.exec.proto.UserBitShared.QueryId result = new org.apache.drill.exec.proto.UserBitShared.QueryId(this);
int from_bitField0_ = bitField0_;
@@ -1918,6 +2118,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.QueryId) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.QueryId)other);
@@ -1935,14 +2168,17 @@ public final class UserBitShared {
if (other.hasPart2()) {
setPart2(other.getPart2());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1952,7 +2188,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.QueryId) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -1962,7 +2198,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional sfixed64 part1 = 1;
private long part1_ ;
/**
* <code>optional sfixed64 part1 = 1;</code>
@@ -1995,7 +2230,6 @@ public final class UserBitShared {
return this;
}
- // optional sfixed64 part2 = 2;
private long part2_ ;
/**
* <code>optional sfixed64 part2 = 2;</code>
@@ -2027,49 +2261,89 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.QueryId)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.QueryId)
+ private static final org.apache.drill.exec.proto.UserBitShared.QueryId DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryId(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.QueryId();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryId getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryId>
+ PARSER = new com.google.protobuf.AbstractParser<QueryId>() {
+ @java.lang.Override
+ public QueryId parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryId(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryId> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryId> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.QueryId getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.QueryId)
}
- public interface DrillPBErrorOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface DrillPBErrorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.DrillPBError)
+ com.google.protobuf.MessageOrBuilder {
- // optional string error_id = 1;
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
boolean hasErrorId();
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
java.lang.String getErrorId();
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
com.google.protobuf.ByteString
getErrorIdBytes();
- // optional .exec.DrillbitEndpoint endpoint = 2;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 2;</code>
*/
@@ -2083,7 +2357,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder();
- // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
/**
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
*/
@@ -2093,7 +2366,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType getErrorType();
- // optional string message = 4;
/**
* <code>optional string message = 4;</code>
*/
@@ -2108,7 +2380,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getMessageBytes();
- // optional .exec.shared.ExceptionWrapper exception = 5;
/**
* <code>optional .exec.shared.ExceptionWrapper exception = 5;</code>
*/
@@ -2122,47 +2393,46 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder getExceptionOrBuilder();
- // repeated .exec.shared.ParsingError parsing_error = 6;
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError>
getParsingErrorList();
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
org.apache.drill.exec.proto.UserBitShared.ParsingError getParsingError(int index);
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
int getParsingErrorCount();
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder>
getParsingErrorOrBuilderList();
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder getParsingErrorOrBuilder(
int index);
@@ -2170,36 +2440,35 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.DrillPBError}
*/
- public static final class DrillPBError extends
- com.google.protobuf.GeneratedMessage
- implements DrillPBErrorOrBuilder {
+ public static final class DrillPBError extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.DrillPBError)
+ DrillPBErrorOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use DrillPBError.newBuilder() to construct.
- private DrillPBError(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private DrillPBError(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private DrillPBError(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final DrillPBError defaultInstance;
- public static DrillPBError getDefaultInstance() {
- return defaultInstance;
}
-
- public DrillPBError getDefaultInstanceForType() {
- return defaultInstance;
+ private DrillPBError() {
+ errorId_ = "";
+ errorType_ = 0;
+ message_ = "";
+ parsingError_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private DrillPBError(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2211,16 +2480,10 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- errorId_ = input.readBytes();
+ errorId_ = bs;
break;
}
case 18: {
@@ -2238,18 +2501,20 @@ public final class UserBitShared {
}
case 24: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType value = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
- errorType_ = value;
+ errorType_ = rawValue;
}
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- message_ = input.readBytes();
+ message_ = bs;
break;
}
case 42: {
@@ -2270,7 +2535,15 @@ public final class UserBitShared {
parsingError_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.ParsingError>();
mutable_bitField0_ |= 0x00000020;
}
- parsingError_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.ParsingError.PARSER, extensionRegistry));
+ parsingError_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.ParsingError.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -2279,7 +2552,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
parsingError_ = java.util.Collections.unmodifiableList(parsingError_);
@@ -2293,76 +2566,60 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_DrillPBError_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_DrillPBError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.DrillPBError.class, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder.class);
}
- public static com.google.protobuf.Parser<DrillPBError> PARSER =
- new com.google.protobuf.AbstractParser<DrillPBError>() {
- public DrillPBError parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DrillPBError(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<DrillPBError> getParserForType() {
- return PARSER;
- }
-
/**
* Protobuf enum {@code exec.shared.DrillPBError.ErrorType}
*/
public enum ErrorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>CONNECTION = 0;</code>
- *
* <pre>
* equivalent to SQLClientInfoException
* - handshake version error
* - invalid schema
* </pre>
+ *
+ * <code>CONNECTION = 0;</code>
*/
- CONNECTION(0, 0),
+ CONNECTION(0),
/**
- * <code>DATA_READ = 1;</code>
- *
* <pre>
* equivalent to SQLRecoverableException
* - corrupt files: can't be read. FS read error
* - parsing error due to incomplete or incorrectly written records
* </pre>
+ *
+ * <code>DATA_READ = 1;</code>
*/
- DATA_READ(1, 1),
+ DATA_READ(1),
/**
- * <code>DATA_WRITE = 2;</code>
- *
* <pre>
* equivalent to SQLDataException
* - data type unsupported by format
* </pre>
+ *
+ * <code>DATA_WRITE = 2;</code>
*/
- DATA_WRITE(2, 2),
+ DATA_WRITE(2),
/**
- * <code>FUNCTION = 3;</code>
- *
* <pre>
* equivalent to SQLDataException
* - Casting errors
* - function not found for incoming types after implicit casting
* - Flatten misuse
* </pre>
+ *
+ * <code>FUNCTION = 3;</code>
*/
- FUNCTION(3, 3),
+ FUNCTION(3),
/**
- * <code>PARSE = 4;</code>
- *
* <pre>
* equivalent to SQLSyntaxErrorException
* - typos
@@ -2370,37 +2627,37 @@ public final class UserBitShared {
* - SQL keyword misuse
* - function names/resolution
* </pre>
+ *
+ * <code>PARSE = 4;</code>
*/
- PARSE(4, 4),
+ PARSE(4),
/**
- * <code>PERMISSION = 5;</code>
- *
* <pre>
* equivalent to SQLInvalidAuthorizationSpecException
* </pre>
+ *
+ * <code>PERMISSION = 5;</code>
*/
- PERMISSION(5, 5),
+ PERMISSION(5),
/**
- * <code>PLAN = 6;</code>
- *
* <pre>
* equivalent to SQLNonTransientException
* </pre>
+ *
+ * <code>PLAN = 6;</code>
*/
- PLAN(6, 6),
+ PLAN(6),
/**
- * <code>RESOURCE = 7;</code>
- *
* <pre>
* equivalent to SQLRecoverableException or SQLTransientException
* - Recoverable: memory, disk
* - Transient: network
* </pre>
+ *
+ * <code>RESOURCE = 7;</code>
*/
- RESOURCE(7, 7),
+ RESOURCE(7),
/**
- * <code>SYSTEM = 8;</code>
- *
* <pre>
* equivalent to SQLNonTransientException.
* - unexpected internal state
@@ -2408,103 +2665,103 @@ public final class UserBitShared {
* general user action is to contact the Drill team for
* assistance
* </pre>
+ *
+ * <code>SYSTEM = 8;</code>
*/
- SYSTEM(8, 8),
+ SYSTEM(8),
/**
- * <code>UNSUPPORTED_OPERATION = 9;</code>
- *
* <pre>
* equivalent to SQLFeatureNotSupportedException
* - unimplemented feature, option, or execution path
* - schema change in operator that does not support it
* </pre>
+ *
+ * <code>UNSUPPORTED_OPERATION = 9;</code>
*/
- UNSUPPORTED_OPERATION(9, 9),
+ UNSUPPORTED_OPERATION(9),
/**
- * <code>VALIDATION = 10;</code>
- *
* <pre>
* SQL validation exception
* - invalid schema path
* - invalid entries in SQL tree
* </pre>
+ *
+ * <code>VALIDATION = 10;</code>
*/
- VALIDATION(10, 10),
+ VALIDATION(10),
/**
- * <code>EXECUTION_ERROR = 11;</code>
- *
* <pre>
* Execution exception
* - Internal errors not related to bad code
* </pre>
+ *
+ * <code>EXECUTION_ERROR = 11;</code>
*/
- EXECUTION_ERROR(11, 11),
+ EXECUTION_ERROR(11),
/**
- * <code>INTERNAL_ERROR = 12;</code>
- *
* <pre>
* Internal exception
* - Failed assertions
* - Other "this should not happen" cases
* </pre>
+ *
+ * <code>INTERNAL_ERROR = 12;</code>
*/
- INTERNAL_ERROR(12, 12),
+ INTERNAL_ERROR(12),
/**
- * <code>UNSPECIFIED_ERROR = 13;</code>
- *
* <pre>
* Unspecified exception
* - Exception caught but cause is unknown
* Indicates code that needs revisiting to move error reporting
* closer to the cause.
* </pre>
+ *
+ * <code>UNSPECIFIED_ERROR = 13;</code>
*/
- UNSPECIFIED_ERROR(13, 13),
+ UNSPECIFIED_ERROR(13),
;
/**
- * <code>CONNECTION = 0;</code>
- *
* <pre>
* equivalent to SQLClientInfoException
* - handshake version error
* - invalid schema
* </pre>
+ *
+ * <code>CONNECTION = 0;</code>
*/
public static final int CONNECTION_VALUE = 0;
/**
- * <code>DATA_READ = 1;</code>
- *
* <pre>
* equivalent to SQLRecoverableException
* - corrupt files: can't be read. FS read error
* - parsing error due to incomplete or incorrectly written records
* </pre>
+ *
+ * <code>DATA_READ = 1;</code>
*/
public static final int DATA_READ_VALUE = 1;
/**
- * <code>DATA_WRITE = 2;</code>
- *
* <pre>
* equivalent to SQLDataException
* - data type unsupported by format
* </pre>
+ *
+ * <code>DATA_WRITE = 2;</code>
*/
public static final int DATA_WRITE_VALUE = 2;
/**
- * <code>FUNCTION = 3;</code>
- *
* <pre>
* equivalent to SQLDataException
* - Casting errors
* - function not found for incoming types after implicit casting
* - Flatten misuse
* </pre>
+ *
+ * <code>FUNCTION = 3;</code>
*/
public static final int FUNCTION_VALUE = 3;
/**
- * <code>PARSE = 4;</code>
- *
* <pre>
* equivalent to SQLSyntaxErrorException
* - typos
@@ -2512,37 +2769,37 @@ public final class UserBitShared {
* - SQL keyword misuse
* - function names/resolution
* </pre>
+ *
+ * <code>PARSE = 4;</code>
*/
public static final int PARSE_VALUE = 4;
/**
- * <code>PERMISSION = 5;</code>
- *
* <pre>
* equivalent to SQLInvalidAuthorizationSpecException
* </pre>
+ *
+ * <code>PERMISSION = 5;</code>
*/
public static final int PERMISSION_VALUE = 5;
/**
- * <code>PLAN = 6;</code>
- *
* <pre>
* equivalent to SQLNonTransientException
* </pre>
+ *
+ * <code>PLAN = 6;</code>
*/
public static final int PLAN_VALUE = 6;
/**
- * <code>RESOURCE = 7;</code>
- *
* <pre>
* equivalent to SQLRecoverableException or SQLTransientException
* - Recoverable: memory, disk
* - Transient: network
* </pre>
+ *
+ * <code>RESOURCE = 7;</code>
*/
public static final int RESOURCE_VALUE = 7;
/**
- * <code>SYSTEM = 8;</code>
- *
* <pre>
* equivalent to SQLNonTransientException.
* - unexpected internal state
@@ -2550,63 +2807,75 @@ public final class UserBitShared {
* general user action is to contact the Drill team for
* assistance
* </pre>
+ *
+ * <code>SYSTEM = 8;</code>
*/
public static final int SYSTEM_VALUE = 8;
/**
- * <code>UNSUPPORTED_OPERATION = 9;</code>
- *
* <pre>
* equivalent to SQLFeatureNotSupportedException
* - unimplemented feature, option, or execution path
* - schema change in operator that does not support it
* </pre>
+ *
+ * <code>UNSUPPORTED_OPERATION = 9;</code>
*/
public static final int UNSUPPORTED_OPERATION_VALUE = 9;
/**
- * <code>VALIDATION = 10;</code>
- *
* <pre>
* SQL validation exception
* - invalid schema path
* - invalid entries in SQL tree
* </pre>
+ *
+ * <code>VALIDATION = 10;</code>
*/
public static final int VALIDATION_VALUE = 10;
/**
- * <code>EXECUTION_ERROR = 11;</code>
- *
* <pre>
* Execution exception
* - Internal errors not related to bad code
* </pre>
+ *
+ * <code>EXECUTION_ERROR = 11;</code>
*/
public static final int EXECUTION_ERROR_VALUE = 11;
/**
- * <code>INTERNAL_ERROR = 12;</code>
- *
* <pre>
* Internal exception
* - Failed assertions
* - Other "this should not happen" cases
* </pre>
+ *
+ * <code>INTERNAL_ERROR = 12;</code>
*/
public static final int INTERNAL_ERROR_VALUE = 12;
/**
- * <code>UNSPECIFIED_ERROR = 13;</code>
- *
* <pre>
* Unspecified exception
* - Exception caught but cause is unknown
* Indicates code that needs revisiting to move error reporting
* closer to the cause.
* </pre>
+ *
+ * <code>UNSPECIFIED_ERROR = 13;</code>
*/
public static final int UNSPECIFIED_ERROR_VALUE = 13;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static ErrorType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ErrorType forNumber(int value) {
switch (value) {
case 0: return CONNECTION;
case 1: return DATA_READ;
@@ -2630,17 +2899,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<ErrorType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ErrorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ErrorType>() {
public ErrorType findValueByNumber(int number) {
- return ErrorType.valueOf(number);
+ return ErrorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2662,11 +2931,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private ErrorType(int index, int value) {
- this.index = index;
+ private ErrorType(int value) {
this.value = value;
}
@@ -2674,25 +2941,24 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string error_id = 1;
public static final int ERROR_ID_FIELD_NUMBER = 1;
- private java.lang.Object errorId_;
+ private volatile java.lang.Object errorId_;
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public boolean hasErrorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public java.lang.String getErrorId() {
java.lang.Object ref = errorId_;
@@ -2709,11 +2975,11 @@ public final class UserBitShared {
}
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public com.google.protobuf.ByteString
getErrorIdBytes() {
@@ -2729,7 +2995,6 @@ public final class UserBitShared {
}
}
- // optional .exec.DrillbitEndpoint endpoint = 2;
public static final int ENDPOINT_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_;
/**
@@ -2742,18 +3007,17 @@ public final class UserBitShared {
* <code>optional .exec.DrillbitEndpoint endpoint = 2;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 2;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
- // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
public static final int ERROR_TYPE_FIELD_NUMBER = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType errorType_;
+ private int errorType_;
/**
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
*/
@@ -2764,12 +3028,13 @@ public final class UserBitShared {
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType getErrorType() {
- return errorType_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType result = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.valueOf(errorType_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION : result;
}
- // optional string message = 4;
public static final int MESSAGE_FIELD_NUMBER = 4;
- private java.lang.Object message_;
+ private volatile java.lang.Object message_;
/**
* <code>optional string message = 4;</code>
*/
@@ -2810,7 +3075,6 @@ public final class UserBitShared {
}
}
- // optional .exec.shared.ExceptionWrapper exception = 5;
public static final int EXCEPTION_FIELD_NUMBER = 5;
private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper exception_;
/**
@@ -2823,154 +3087,226 @@ public final class UserBitShared {
* <code>optional .exec.shared.ExceptionWrapper exception = 5;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getException() {
- return exception_;
+ return exception_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : exception_;
}
/**
* <code>optional .exec.shared.ExceptionWrapper exception = 5;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder getExceptionOrBuilder() {
- return exception_;
+ return exception_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : exception_;
}
- // repeated .exec.shared.ParsingError parsing_error = 6;
public static final int PARSING_ERROR_FIELD_NUMBER = 6;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError> parsingError_;
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError> getParsingErrorList() {
return parsingError_;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder>
getParsingErrorOrBuilderList() {
return parsingError_;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public int getParsingErrorCount() {
return parsingError_.size();
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingError getParsingError(int index) {
return parsingError_.get(index);
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder getParsingErrorOrBuilder(
int index) {
return parsingError_.get(index);
}
- private void initFields() {
- errorId_ = "";
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- errorType_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION;
- message_ = "";
- exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
- parsingError_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getErrorIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, endpoint_);
+ output.writeMessage(2, getEndpoint());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, errorType_.getNumber());
+ output.writeEnum(3, errorType_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getMessageBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, exception_);
+ output.writeMessage(5, getException());
}
for (int i = 0; i < parsingError_.size(); i++) {
output.writeMessage(6, parsingError_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getErrorIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, endpoint_);
+ .computeMessageSize(2, getEndpoint());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, errorType_.getNumber());
+ .computeEnumSize(3, errorType_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getMessageBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, exception_);
+ .computeMessageSize(5, getException());
}
for (int i = 0; i < parsingError_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, parsingError_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.DrillPBError)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError other = (org.apache.drill.exec.proto.UserBitShared.DrillPBError) obj;
+
+ boolean result = true;
+ result = result && (hasErrorId() == other.hasErrorId());
+ if (hasErrorId()) {
+ result = result && getErrorId()
+ .equals(other.getErrorId());
+ }
+ result = result && (hasEndpoint() == other.hasEndpoint());
+ if (hasEndpoint()) {
+ result = result && getEndpoint()
+ .equals(other.getEndpoint());
+ }
+ result = result && (hasErrorType() == other.hasErrorType());
+ if (hasErrorType()) {
+ result = result && errorType_ == other.errorType_;
+ }
+ result = result && (hasMessage() == other.hasMessage());
+ if (hasMessage()) {
+ result = result && getMessage()
+ .equals(other.getMessage());
+ }
+ result = result && (hasException() == other.hasException());
+ if (hasException()) {
+ result = result && getException()
+ .equals(other.getException());
+ }
+ result = result && getParsingErrorList()
+ .equals(other.getParsingErrorList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasErrorId()) {
+ hash = (37 * hash) + ERROR_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorId().hashCode();
+ }
+ if (hasEndpoint()) {
+ hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpoint().hashCode();
+ }
+ if (hasErrorType()) {
+ hash = (37 * hash) + ERROR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + errorType_;
+ }
+ if (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ if (hasException()) {
+ hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getException().hashCode();
+ }
+ if (getParsingErrorCount() > 0) {
+ hash = (37 * hash) + PARSING_ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getParsingErrorList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2994,46 +3330,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.DrillPBError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.DrillPBError prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3041,14 +3390,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.DrillPBError}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.DrillPBError)
+ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_DrillPBError_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_DrillPBError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3061,37 +3412,35 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getEndpointFieldBuilder();
getExceptionFieldBuilder();
getParsingErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
errorId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
} else {
endpointBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
- errorType_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION;
+ errorType_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (exceptionBuilder_ == null) {
- exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
+ exception_ = null;
} else {
exceptionBuilder_.clear();
}
@@ -3105,19 +3454,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_DrillPBError_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError build() {
org.apache.drill.exec.proto.UserBitShared.DrillPBError result = buildPartial();
if (!result.isInitialized()) {
@@ -3126,6 +3474,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError buildPartial() {
org.apache.drill.exec.proto.UserBitShared.DrillPBError result = new org.apache.drill.exec.proto.UserBitShared.DrillPBError(this);
int from_bitField0_ = bitField0_;
@@ -3172,6 +3521,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.DrillPBError) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.DrillPBError)other);
@@ -3221,21 +3603,24 @@ public final class UserBitShared {
parsingError_ = other.parsingError_;
bitField0_ = (bitField0_ & ~0x00000020);
parsingErrorBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParsingErrorFieldBuilder() : null;
} else {
parsingErrorBuilder_.addAllMessages(other.parsingError_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3245,7 +3630,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.DrillPBError) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -3255,42 +3640,44 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string error_id = 1;
private java.lang.Object errorId_ = "";
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public boolean hasErrorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public java.lang.String getErrorId() {
java.lang.Object ref = errorId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- errorId_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ errorId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public com.google.protobuf.ByteString
getErrorIdBytes() {
@@ -3306,11 +3693,11 @@ public final class UserBitShared {
}
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public Builder setErrorId(
java.lang.String value) {
@@ -3323,11 +3710,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public Builder clearErrorId() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -3336,11 +3723,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional string error_id = 1;</code>
- *
* <pre>
* for debug tracing purposes
* </pre>
+ *
+ * <code>optional string error_id = 1;</code>
*/
public Builder setErrorIdBytes(
com.google.protobuf.ByteString value) {
@@ -3353,9 +3740,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.DrillbitEndpoint endpoint = 2;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> endpointBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 2;</code>
@@ -3368,7 +3754,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
@@ -3409,6 +3795,7 @@ public final class UserBitShared {
public Builder mergeEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (endpointBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ endpoint_ != null &&
endpoint_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
endpoint_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
@@ -3427,7 +3814,7 @@ public final class UserBitShared {
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
onChanged();
} else {
endpointBuilder_.clear();
@@ -3450,19 +3837,20 @@ public final class UserBitShared {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
- return endpoint_;
+ return endpoint_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
- endpointBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- endpoint_,
+ getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
@@ -3470,8 +3858,7 @@ public final class UserBitShared {
return endpointBuilder_;
}
- // optional .exec.shared.DrillPBError.ErrorType error_type = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType errorType_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION;
+ private int errorType_ = 0;
/**
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
*/
@@ -3482,7 +3869,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType getErrorType() {
- return errorType_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType result = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.valueOf(errorType_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION : result;
}
/**
* <code>optional .exec.shared.DrillPBError.ErrorType error_type = 3;</code>
@@ -3492,7 +3881,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
- errorType_ = value;
+ errorType_ = value.getNumber();
onChanged();
return this;
}
@@ -3501,12 +3890,11 @@ public final class UserBitShared {
*/
public Builder clearErrorType() {
bitField0_ = (bitField0_ & ~0x00000004);
- errorType_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType.CONNECTION;
+ errorType_ = 0;
onChanged();
return this;
}
- // optional string message = 4;
private java.lang.Object message_ = "";
/**
* <code>optional string message = 4;</code>
@@ -3520,9 +3908,12 @@ public final class UserBitShared {
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- message_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ message_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -3580,9 +3971,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.shared.ExceptionWrapper exception = 5;
- private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper exception_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder> exceptionBuilder_;
/**
* <code>optional .exec.shared.ExceptionWrapper exception = 5;</code>
@@ -3595,7 +3985,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getException() {
if (exceptionBuilder_ == null) {
- return exception_;
+ return exception_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : exception_;
} else {
return exceptionBuilder_.getMessage();
}
@@ -3636,6 +4026,7 @@ public final class UserBitShared {
public Builder mergeException(org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper value) {
if (exceptionBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ exception_ != null &&
exception_ != org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance()) {
exception_ =
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.newBuilder(exception_).mergeFrom(value).buildPartial();
@@ -3654,7 +4045,7 @@ public final class UserBitShared {
*/
public Builder clearException() {
if (exceptionBuilder_ == null) {
- exception_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
+ exception_ = null;
onChanged();
} else {
exceptionBuilder_.clear();
@@ -3677,19 +4068,20 @@ public final class UserBitShared {
if (exceptionBuilder_ != null) {
return exceptionBuilder_.getMessageOrBuilder();
} else {
- return exception_;
+ return exception_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : exception_;
}
}
/**
* <code>optional .exec.shared.ExceptionWrapper exception = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder>
getExceptionFieldBuilder() {
if (exceptionBuilder_ == null) {
- exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder>(
- exception_,
+ getException(),
getParentForChildren(),
isClean());
exception_ = null;
@@ -3697,7 +4089,6 @@ public final class UserBitShared {
return exceptionBuilder_;
}
- // repeated .exec.shared.ParsingError parsing_error = 6;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError> parsingError_ =
java.util.Collections.emptyList();
private void ensureParsingErrorIsMutable() {
@@ -3707,15 +4098,15 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ParsingError, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder, org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder> parsingErrorBuilder_;
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError> getParsingErrorList() {
if (parsingErrorBuilder_ == null) {
@@ -3725,11 +4116,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public int getParsingErrorCount() {
if (parsingErrorBuilder_ == null) {
@@ -3739,11 +4130,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingError getParsingError(int index) {
if (parsingErrorBuilder_ == null) {
@@ -3753,11 +4144,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder setParsingError(
int index, org.apache.drill.exec.proto.UserBitShared.ParsingError value) {
@@ -3774,11 +4165,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder setParsingError(
int index, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder builderForValue) {
@@ -3792,11 +4183,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder addParsingError(org.apache.drill.exec.proto.UserBitShared.ParsingError value) {
if (parsingErrorBuilder_ == null) {
@@ -3812,11 +4203,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder addParsingError(
int index, org.apache.drill.exec.proto.UserBitShared.ParsingError value) {
@@ -3833,11 +4224,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder addParsingError(
org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder builderForValue) {
@@ -3851,11 +4242,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder addParsingError(
int index, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder builderForValue) {
@@ -3869,17 +4260,18 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder addAllParsingError(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.ParsingError> values) {
if (parsingErrorBuilder_ == null) {
ensureParsingErrorIsMutable();
- super.addAll(values, parsingError_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, parsingError_);
onChanged();
} else {
parsingErrorBuilder_.addAllMessages(values);
@@ -3887,11 +4279,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder clearParsingError() {
if (parsingErrorBuilder_ == null) {
@@ -3904,11 +4296,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public Builder removeParsingError(int index) {
if (parsingErrorBuilder_ == null) {
@@ -3921,22 +4313,22 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder getParsingErrorBuilder(
int index) {
return getParsingErrorFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder getParsingErrorOrBuilder(
int index) {
@@ -3946,11 +4338,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder>
getParsingErrorOrBuilderList() {
@@ -3961,22 +4353,22 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder addParsingErrorBuilder() {
return getParsingErrorFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserBitShared.ParsingError.getDefaultInstance());
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder addParsingErrorBuilder(
int index) {
@@ -3984,21 +4376,21 @@ public final class UserBitShared {
index, org.apache.drill.exec.proto.UserBitShared.ParsingError.getDefaultInstance());
}
/**
- * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
- *
* <pre>
*optional, used when providing location of error within a piece of text.
* </pre>
+ *
+ * <code>repeated .exec.shared.ParsingError parsing_error = 6;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder>
getParsingErrorBuilderList() {
return getParsingErrorFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ParsingError, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder, org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder>
getParsingErrorFieldBuilder() {
if (parsingErrorBuilder_ == null) {
- parsingErrorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ parsingErrorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ParsingError, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder, org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder>(
parsingError_,
((bitField0_ & 0x00000020) == 0x00000020),
@@ -4008,22 +4400,63 @@ public final class UserBitShared {
}
return parsingErrorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.DrillPBError)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.DrillPBError)
+ private static final org.apache.drill.exec.proto.UserBitShared.DrillPBError DEFAULT_INSTANCE;
static {
- defaultInstance = new DrillPBError(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.DrillPBError();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.DrillPBError getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<DrillPBError>
+ PARSER = new com.google.protobuf.AbstractParser<DrillPBError>() {
+ @java.lang.Override
+ public DrillPBError parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DrillPBError(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<DrillPBError> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<DrillPBError> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.DrillPBError)
}
- public interface ExceptionWrapperOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ExceptionWrapperOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.ExceptionWrapper)
+ com.google.protobuf.MessageOrBuilder {
- // optional string exception_class = 1;
/**
* <code>optional string exception_class = 1;</code>
*/
@@ -4038,7 +4471,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getExceptionClassBytes();
- // optional string message = 2;
/**
* <code>optional string message = 2;</code>
*/
@@ -4053,7 +4485,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getMessageBytes();
- // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
/**
* <code>repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;</code>
*/
@@ -4078,7 +4509,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder getStackTraceOrBuilder(
int index);
- // optional .exec.shared.ExceptionWrapper cause = 4;
/**
* <code>optional .exec.shared.ExceptionWrapper cause = 4;</code>
*/
@@ -4095,36 +4525,34 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.ExceptionWrapper}
*/
- public static final class ExceptionWrapper extends
- com.google.protobuf.GeneratedMessage
- implements ExceptionWrapperOrBuilder {
+ public static final class ExceptionWrapper extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.ExceptionWrapper)
+ ExceptionWrapperOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ExceptionWrapper.newBuilder() to construct.
- private ExceptionWrapper(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ExceptionWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ExceptionWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ExceptionWrapper defaultInstance;
- public static ExceptionWrapper getDefaultInstance() {
- return defaultInstance;
}
-
- public ExceptionWrapper getDefaultInstanceForType() {
- return defaultInstance;
+ private ExceptionWrapper() {
+ exceptionClass_ = "";
+ message_ = "";
+ stackTrace_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ExceptionWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -4136,21 +4564,16 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- exceptionClass_ = input.readBytes();
+ exceptionClass_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- message_ = input.readBytes();
+ message_ = bs;
break;
}
case 26: {
@@ -4158,7 +4581,8 @@ public final class UserBitShared {
stackTrace_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper>();
mutable_bitField0_ |= 0x00000004;
}
- stackTrace_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.PARSER, extensionRegistry));
+ stackTrace_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.PARSER, extensionRegistry));
break;
}
case 34: {
@@ -4174,13 +4598,20 @@ public final class UserBitShared {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stackTrace_ = java.util.Collections.unmodifiableList(stackTrace_);
@@ -4194,32 +4625,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ExceptionWrapper_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ExceptionWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.class, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder.class);
}
- public static com.google.protobuf.Parser<ExceptionWrapper> PARSER =
- new com.google.protobuf.AbstractParser<ExceptionWrapper>() {
- public ExceptionWrapper parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ExceptionWrapper(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ExceptionWrapper> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string exception_class = 1;
public static final int EXCEPTION_CLASS_FIELD_NUMBER = 1;
- private java.lang.Object exceptionClass_;
+ private volatile java.lang.Object exceptionClass_;
/**
* <code>optional string exception_class = 1;</code>
*/
@@ -4260,9 +4676,8 @@ public final class UserBitShared {
}
}
- // optional string message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
- private java.lang.Object message_;
+ private volatile java.lang.Object message_;
/**
* <code>optional string message = 2;</code>
*/
@@ -4303,7 +4718,6 @@ public final class UserBitShared {
}
}
- // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
public static final int STACK_TRACE_FIELD_NUMBER = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper> stackTrace_;
/**
@@ -4339,7 +4753,6 @@ public final class UserBitShared {
return stackTrace_.get(index);
}
- // optional .exec.shared.ExceptionWrapper cause = 4;
public static final int CAUSE_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper cause_;
/**
@@ -4352,61 +4765,55 @@ public final class UserBitShared {
* <code>optional .exec.shared.ExceptionWrapper cause = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getCause() {
- return cause_;
+ return cause_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : cause_;
}
/**
* <code>optional .exec.shared.ExceptionWrapper cause = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder getCauseOrBuilder() {
- return cause_;
+ return cause_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : cause_;
}
- private void initFields() {
- exceptionClass_ = "";
- message_ = "";
- stackTrace_ = java.util.Collections.emptyList();
- cause_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getExceptionClassBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, exceptionClass_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getMessageBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
for (int i = 0; i < stackTrace_.size(); i++) {
output.writeMessage(3, stackTrace_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(4, cause_);
+ output.writeMessage(4, getCause());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getExceptionClassBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, exceptionClass_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getMessageBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
for (int i = 0; i < stackTrace_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -4414,21 +4821,85 @@ public final class UserBitShared {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, cause_);
+ .computeMessageSize(4, getCause());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper other = (org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper) obj;
+
+ boolean result = true;
+ result = result && (hasExceptionClass() == other.hasExceptionClass());
+ if (hasExceptionClass()) {
+ result = result && getExceptionClass()
+ .equals(other.getExceptionClass());
+ }
+ result = result && (hasMessage() == other.hasMessage());
+ if (hasMessage()) {
+ result = result && getMessage()
+ .equals(other.getMessage());
+ }
+ result = result && getStackTraceList()
+ .equals(other.getStackTraceList());
+ result = result && (hasCause() == other.hasCause());
+ if (hasCause()) {
+ result = result && getCause()
+ .equals(other.getCause());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasExceptionClass()) {
+ hash = (37 * hash) + EXCEPTION_CLASS_FIELD_NUMBER;
+ hash = (53 * hash) + getExceptionClass().hashCode();
+ }
+ if (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ if (getStackTraceCount() > 0) {
+ hash = (37 * hash) + STACK_TRACE_FIELD_NUMBER;
+ hash = (53 * hash) + getStackTraceList().hashCode();
+ }
+ if (hasCause()) {
+ hash = (37 * hash) + CAUSE_FIELD_NUMBER;
+ hash = (53 * hash) + getCause().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -4451,46 +4922,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4498,14 +4982,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.ExceptionWrapper}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.ExceptionWrapper)
+ org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ExceptionWrapper_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ExceptionWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4518,20 +5004,18 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getStackTraceFieldBuilder();
getCauseFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
exceptionClass_ = "";
@@ -4545,7 +5029,7 @@ public final class UserBitShared {
stackTraceBuilder_.clear();
}
if (causeBuilder_ == null) {
- cause_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
+ cause_ = null;
} else {
causeBuilder_.clear();
}
@@ -4553,19 +5037,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ExceptionWrapper_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper build() {
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper result = buildPartial();
if (!result.isInitialized()) {
@@ -4574,6 +5057,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper buildPartial() {
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper result = new org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper(this);
int from_bitField0_ = bitField0_;
@@ -4608,6 +5092,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper)other);
@@ -4648,7 +5165,7 @@ public final class UserBitShared {
stackTrace_ = other.stackTrace_;
bitField0_ = (bitField0_ & ~0x00000004);
stackTraceBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStackTraceFieldBuilder() : null;
} else {
stackTraceBuilder_.addAllMessages(other.stackTrace_);
@@ -4658,14 +5175,17 @@ public final class UserBitShared {
if (other.hasCause()) {
mergeCause(other.getCause());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4675,7 +5195,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -4685,7 +5205,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string exception_class = 1;
private java.lang.Object exceptionClass_ = "";
/**
* <code>optional string exception_class = 1;</code>
@@ -4699,9 +5218,12 @@ public final class UserBitShared {
public java.lang.String getExceptionClass() {
java.lang.Object ref = exceptionClass_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- exceptionClass_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ exceptionClass_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -4759,7 +5281,6 @@ public final class UserBitShared {
return this;
}
- // optional string message = 2;
private java.lang.Object message_ = "";
/**
* <code>optional string message = 2;</code>
@@ -4773,9 +5294,12 @@ public final class UserBitShared {
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- message_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ message_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -4833,7 +5357,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper> stackTrace_ =
java.util.Collections.emptyList();
private void ensureStackTraceIsMutable() {
@@ -4843,7 +5366,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder> stackTraceBuilder_;
/**
@@ -4975,7 +5498,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper> values) {
if (stackTraceBuilder_ == null) {
ensureStackTraceIsMutable();
- super.addAll(values, stackTrace_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, stackTrace_);
onChanged();
} else {
stackTraceBuilder_.addAllMessages(values);
@@ -5058,11 +5582,11 @@ public final class UserBitShared {
getStackTraceBuilderList() {
return getStackTraceFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder>
getStackTraceFieldBuilder() {
if (stackTraceBuilder_ == null) {
- stackTraceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ stackTraceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder>(
stackTrace_,
((bitField0_ & 0x00000004) == 0x00000004),
@@ -5073,9 +5597,8 @@ public final class UserBitShared {
return stackTraceBuilder_;
}
- // optional .exec.shared.ExceptionWrapper cause = 4;
- private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper cause_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper cause_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder> causeBuilder_;
/**
* <code>optional .exec.shared.ExceptionWrapper cause = 4;</code>
@@ -5088,7 +5611,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getCause() {
if (causeBuilder_ == null) {
- return cause_;
+ return cause_ == null ? org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : cause_;
} else {
return causeBuilder_.getMessage();
}
@@ -5129,6 +5652,7 @@ public final class UserBitShared {
public Builder mergeCause(org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper value) {
if (causeBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ cause_ != null &&
cause_ != org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance()) {
cause_ =
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.newBuilder(cause_).mergeFrom(value).buildPartial();
@@ -5147,7 +5671,7 @@ public final class UserBitShared {
*/
public Builder clearCause() {
if (causeBuilder_ == null) {
- cause_ = org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance();
+ cause_ = null;
onChanged();
} else {
causeBuilder_.clear();
@@ -5170,41 +5694,83 @@ public final class UserBitShared {
if (causeBuilder_ != null) {
return causeBuilder_.getMessageOrBuilder();
} else {
- return cause_;
+ return cause_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.getDefaultInstance() : cause_;
}
}
/**
* <code>optional .exec.shared.ExceptionWrapper cause = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder>
getCauseFieldBuilder() {
if (causeBuilder_ == null) {
- causeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ causeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper.Builder, org.apache.drill.exec.proto.UserBitShared.ExceptionWrapperOrBuilder>(
- cause_,
+ getCause(),
getParentForChildren(),
isClean());
cause_ = null;
}
return causeBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.ExceptionWrapper)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.ExceptionWrapper)
+ private static final org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper DEFAULT_INSTANCE;
static {
- defaultInstance = new ExceptionWrapper(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ExceptionWrapper>
+ PARSER = new com.google.protobuf.AbstractParser<ExceptionWrapper>() {
+ @java.lang.Override
+ public ExceptionWrapper parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ExceptionWrapper(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ExceptionWrapper> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ExceptionWrapper> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.ExceptionWrapper getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.ExceptionWrapper)
}
- public interface StackTraceElementWrapperOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface StackTraceElementWrapperOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.StackTraceElementWrapper)
+ com.google.protobuf.MessageOrBuilder {
- // optional string class_name = 1;
/**
* <code>optional string class_name = 1;</code>
*/
@@ -5219,7 +5785,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getClassNameBytes();
- // optional string file_name = 2;
/**
* <code>optional string file_name = 2;</code>
*/
@@ -5234,7 +5799,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getFileNameBytes();
- // optional int32 line_number = 3;
/**
* <code>optional int32 line_number = 3;</code>
*/
@@ -5244,7 +5808,6 @@ public final class UserBitShared {
*/
int getLineNumber();
- // optional string method_name = 4;
/**
* <code>optional string method_name = 4;</code>
*/
@@ -5259,7 +5822,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getMethodNameBytes();
- // optional bool is_native_method = 5;
/**
* <code>optional bool is_native_method = 5;</code>
*/
@@ -5272,36 +5834,36 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.StackTraceElementWrapper}
*/
- public static final class StackTraceElementWrapper extends
- com.google.protobuf.GeneratedMessage
- implements StackTraceElementWrapperOrBuilder {
+ public static final class StackTraceElementWrapper extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.StackTraceElementWrapper)
+ StackTraceElementWrapperOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use StackTraceElementWrapper.newBuilder() to construct.
- private StackTraceElementWrapper(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StackTraceElementWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private StackTraceElementWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final StackTraceElementWrapper defaultInstance;
- public static StackTraceElementWrapper getDefaultInstance() {
- return defaultInstance;
}
-
- public StackTraceElementWrapper getDefaultInstanceForType() {
- return defaultInstance;
+ private StackTraceElementWrapper() {
+ className_ = "";
+ fileName_ = "";
+ lineNumber_ = 0;
+ methodName_ = "";
+ isNativeMethod_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private StackTraceElementWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -5313,21 +5875,16 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- className_ = input.readBytes();
+ className_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- fileName_ = input.readBytes();
+ fileName_ = bs;
break;
}
case 24: {
@@ -5336,8 +5893,9 @@ public final class UserBitShared {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- methodName_ = input.readBytes();
+ methodName_ = bs;
break;
}
case 40: {
@@ -5345,13 +5903,20 @@ public final class UserBitShared {
isNativeMethod_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -5362,32 +5927,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StackTraceElementWrapper_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StackTraceElementWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.class, org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.Builder.class);
}
- public static com.google.protobuf.Parser<StackTraceElementWrapper> PARSER =
- new com.google.protobuf.AbstractParser<StackTraceElementWrapper>() {
- public StackTraceElementWrapper parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new StackTraceElementWrapper(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<StackTraceElementWrapper> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string class_name = 1;
public static final int CLASS_NAME_FIELD_NUMBER = 1;
- private java.lang.Object className_;
+ private volatile java.lang.Object className_;
/**
* <code>optional string class_name = 1;</code>
*/
@@ -5428,9 +5978,8 @@ public final class UserBitShared {
}
}
- // optional string file_name = 2;
public static final int FILE_NAME_FIELD_NUMBER = 2;
- private java.lang.Object fileName_;
+ private volatile java.lang.Object fileName_;
/**
* <code>optional string file_name = 2;</code>
*/
@@ -5471,7 +6020,6 @@ public final class UserBitShared {
}
}
- // optional int32 line_number = 3;
public static final int LINE_NUMBER_FIELD_NUMBER = 3;
private int lineNumber_;
/**
@@ -5487,9 +6035,8 @@ public final class UserBitShared {
return lineNumber_;
}
- // optional string method_name = 4;
public static final int METHOD_NAME_FIELD_NUMBER = 4;
- private java.lang.Object methodName_;
+ private volatile java.lang.Object methodName_;
/**
* <code>optional string method_name = 4;</code>
*/
@@ -5530,7 +6077,6 @@ public final class UserBitShared {
}
}
- // optional bool is_native_method = 5;
public static final int IS_NATIVE_METHOD_FIELD_NUMBER = 5;
private boolean isNativeMethod_;
/**
@@ -5546,81 +6092,150 @@ public final class UserBitShared {
return isNativeMethod_;
}
- private void initFields() {
- className_ = "";
- fileName_ = "";
- lineNumber_ = 0;
- methodName_ = "";
- isNativeMethod_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getClassNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getFileNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, lineNumber_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getMethodNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, methodName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, isNativeMethod_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getClassNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getFileNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, lineNumber_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getMethodNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, methodName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isNativeMethod_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper other = (org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper) obj;
+
+ boolean result = true;
+ result = result && (hasClassName() == other.hasClassName());
+ if (hasClassName()) {
+ result = result && getClassName()
+ .equals(other.getClassName());
+ }
+ result = result && (hasFileName() == other.hasFileName());
+ if (hasFileName()) {
+ result = result && getFileName()
+ .equals(other.getFileName());
+ }
+ result = result && (hasLineNumber() == other.hasLineNumber());
+ if (hasLineNumber()) {
+ result = result && (getLineNumber()
+ == other.getLineNumber());
+ }
+ result = result && (hasMethodName() == other.hasMethodName());
+ if (hasMethodName()) {
+ result = result && getMethodName()
+ .equals(other.getMethodName());
+ }
+ result = result && (hasIsNativeMethod() == other.hasIsNativeMethod());
+ if (hasIsNativeMethod()) {
+ result = result && (getIsNativeMethod()
+ == other.getIsNativeMethod());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasClassName()) {
+ hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getClassName().hashCode();
+ }
+ if (hasFileName()) {
+ hash = (37 * hash) + FILE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFileName().hashCode();
+ }
+ if (hasLineNumber()) {
+ hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getLineNumber();
+ }
+ if (hasMethodName()) {
+ hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getMethodName().hashCode();
+ }
+ if (hasIsNativeMethod()) {
+ hash = (37 * hash) + IS_NATIVE_METHOD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsNativeMethod());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5644,46 +6259,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5691,14 +6319,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.StackTraceElementWrapper}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.StackTraceElementWrapper)
+ org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StackTraceElementWrapper_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StackTraceElementWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5711,18 +6341,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
className_ = "";
@@ -5738,19 +6366,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StackTraceElementWrapper_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper build() {
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper result = buildPartial();
if (!result.isInitialized()) {
@@ -5759,6 +6386,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper buildPartial() {
org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper result = new org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper(this);
int from_bitField0_ = bitField0_;
@@ -5788,6 +6416,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper)other);
@@ -5820,14 +6481,17 @@ public final class UserBitShared {
if (other.hasIsNativeMethod()) {
setIsNativeMethod(other.getIsNativeMethod());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5837,7 +6501,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -5847,7 +6511,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string class_name = 1;
private java.lang.Object className_ = "";
/**
* <code>optional string class_name = 1;</code>
@@ -5861,9 +6524,12 @@ public final class UserBitShared {
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- className_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ className_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5921,7 +6587,6 @@ public final class UserBitShared {
return this;
}
- // optional string file_name = 2;
private java.lang.Object fileName_ = "";
/**
* <code>optional string file_name = 2;</code>
@@ -5935,9 +6600,12 @@ public final class UserBitShared {
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- fileName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ fileName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5995,7 +6663,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 line_number = 3;
private int lineNumber_ ;
/**
* <code>optional int32 line_number = 3;</code>
@@ -6028,7 +6695,6 @@ public final class UserBitShared {
return this;
}
- // optional string method_name = 4;
private java.lang.Object methodName_ = "";
/**
* <code>optional string method_name = 4;</code>
@@ -6042,9 +6708,12 @@ public final class UserBitShared {
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- methodName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ methodName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -6102,7 +6771,6 @@ public final class UserBitShared {
return this;
}
- // optional bool is_native_method = 5;
private boolean isNativeMethod_ ;
/**
* <code>optional bool is_native_method = 5;</code>
@@ -6134,22 +6802,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.StackTraceElementWrapper)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.StackTraceElementWrapper)
+ private static final org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper DEFAULT_INSTANCE;
static {
- defaultInstance = new StackTraceElementWrapper(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<StackTraceElementWrapper>
+ PARSER = new com.google.protobuf.AbstractParser<StackTraceElementWrapper>() {
+ @java.lang.Override
+ public StackTraceElementWrapper parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StackTraceElementWrapper(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StackTraceElementWrapper> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StackTraceElementWrapper> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.StackTraceElementWrapper getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.StackTraceElementWrapper)
}
- public interface ParsingErrorOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ParsingErrorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.ParsingError)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 start_column = 2;
/**
* <code>optional int32 start_column = 2;</code>
*/
@@ -6159,7 +6868,6 @@ public final class UserBitShared {
*/
int getStartColumn();
- // optional int32 start_row = 3;
/**
* <code>optional int32 start_row = 3;</code>
*/
@@ -6169,7 +6877,6 @@ public final class UserBitShared {
*/
int getStartRow();
- // optional int32 end_column = 4;
/**
* <code>optional int32 end_column = 4;</code>
*/
@@ -6179,7 +6886,6 @@ public final class UserBitShared {
*/
int getEndColumn();
- // optional int32 end_row = 5;
/**
* <code>optional int32 end_row = 5;</code>
*/
@@ -6192,36 +6898,35 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.ParsingError}
*/
- public static final class ParsingError extends
- com.google.protobuf.GeneratedMessage
- implements ParsingErrorOrBuilder {
+ public static final class ParsingError extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.ParsingError)
+ ParsingErrorOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ParsingError.newBuilder() to construct.
- private ParsingError(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ParsingError(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ParsingError(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ParsingError defaultInstance;
- public static ParsingError getDefaultInstance() {
- return defaultInstance;
- }
-
- public ParsingError getDefaultInstanceForType() {
- return defaultInstance;
+ private ParsingError() {
+ startColumn_ = 0;
+ startRow_ = 0;
+ endColumn_ = 0;
+ endRow_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ParsingError(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -6233,13 +6938,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 16: {
bitField0_ |= 0x00000001;
startColumn_ = input.readInt32();
@@ -6260,13 +6958,20 @@ public final class UserBitShared {
endRow_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -6277,30 +6982,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ParsingError_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ParsingError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.ParsingError.class, org.apache.drill.exec.proto.UserBitShared.ParsingError.Builder.class);
}
- public static com.google.protobuf.Parser<ParsingError> PARSER =
- new com.google.protobuf.AbstractParser<ParsingError>() {
- public ParsingError parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ParsingError(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ParsingError> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 start_column = 2;
public static final int START_COLUMN_FIELD_NUMBER = 2;
private int startColumn_;
/**
@@ -6316,7 +7006,6 @@ public final class UserBitShared {
return startColumn_;
}
- // optional int32 start_row = 3;
public static final int START_ROW_FIELD_NUMBER = 3;
private int startRow_;
/**
@@ -6332,7 +7021,6 @@ public final class UserBitShared {
return startRow_;
}
- // optional int32 end_column = 4;
public static final int END_COLUMN_FIELD_NUMBER = 4;
private int endColumn_;
/**
@@ -6348,7 +7036,6 @@ public final class UserBitShared {
return endColumn_;
}
- // optional int32 end_row = 5;
public static final int END_ROW_FIELD_NUMBER = 5;
private int endRow_;
/**
@@ -6364,24 +7051,20 @@ public final class UserBitShared {
return endRow_;
}
- private void initFields() {
- startColumn_ = 0;
- startRow_ = 0;
- endColumn_ = 0;
- endRow_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, startColumn_);
}
@@ -6394,12 +7077,12 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(5, endRow_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -6419,18 +7102,85 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, endRow_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.ParsingError)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.ParsingError other = (org.apache.drill.exec.proto.UserBitShared.ParsingError) obj;
+
+ boolean result = true;
+ result = result && (hasStartColumn() == other.hasStartColumn());
+ if (hasStartColumn()) {
+ result = result && (getStartColumn()
+ == other.getStartColumn());
+ }
+ result = result && (hasStartRow() == other.hasStartRow());
+ if (hasStartRow()) {
+ result = result && (getStartRow()
+ == other.getStartRow());
+ }
+ result = result && (hasEndColumn() == other.hasEndColumn());
+ if (hasEndColumn()) {
+ result = result && (getEndColumn()
+ == other.getEndColumn());
+ }
+ result = result && (hasEndRow() == other.hasEndRow());
+ if (hasEndRow()) {
+ result = result && (getEndRow()
+ == other.getEndRow());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartColumn()) {
+ hash = (37 * hash) + START_COLUMN_FIELD_NUMBER;
+ hash = (53 * hash) + getStartColumn();
+ }
+ if (hasStartRow()) {
+ hash = (37 * hash) + START_ROW_FIELD_NUMBER;
+ hash = (53 * hash) + getStartRow();
+ }
+ if (hasEndColumn()) {
+ hash = (37 * hash) + END_COLUMN_FIELD_NUMBER;
+ hash = (53 * hash) + getEndColumn();
+ }
+ if (hasEndRow()) {
+ hash = (37 * hash) + END_ROW_FIELD_NUMBER;
+ hash = (53 * hash) + getEndRow();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6454,46 +7204,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.ParsingError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.ParsingError prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6501,14 +7264,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.ParsingError}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.ParsingError)
+ org.apache.drill.exec.proto.UserBitShared.ParsingErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ParsingError_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ParsingError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6521,18 +7286,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
startColumn_ = 0;
@@ -6546,19 +7309,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_ParsingError_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ParsingError getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.ParsingError.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ParsingError build() {
org.apache.drill.exec.proto.UserBitShared.ParsingError result = buildPartial();
if (!result.isInitialized()) {
@@ -6567,6 +7329,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.ParsingError buildPartial() {
org.apache.drill.exec.proto.UserBitShared.ParsingError result = new org.apache.drill.exec.proto.UserBitShared.ParsingError(this);
int from_bitField0_ = bitField0_;
@@ -6592,6 +7355,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.ParsingError) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.ParsingError)other);
@@ -6615,14 +7411,17 @@ public final class UserBitShared {
if (other.hasEndRow()) {
setEndRow(other.getEndRow());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6632,7 +7431,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.ParsingError) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -6642,7 +7441,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int32 start_column = 2;
private int startColumn_ ;
/**
* <code>optional int32 start_column = 2;</code>
@@ -6675,7 +7473,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 start_row = 3;
private int startRow_ ;
/**
* <code>optional int32 start_row = 3;</code>
@@ -6708,7 +7505,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 end_column = 4;
private int endColumn_ ;
/**
* <code>optional int32 end_column = 4;</code>
@@ -6741,7 +7537,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 end_row = 5;
private int endRow_ ;
/**
* <code>optional int32 end_row = 5;</code>
@@ -6773,22 +7568,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.ParsingError)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.ParsingError)
+ private static final org.apache.drill.exec.proto.UserBitShared.ParsingError DEFAULT_INSTANCE;
static {
- defaultInstance = new ParsingError(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.ParsingError();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.ParsingError getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ParsingError>
+ PARSER = new com.google.protobuf.AbstractParser<ParsingError>() {
+ @java.lang.Override
+ public ParsingError parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ParsingError(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ParsingError> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ParsingError> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.ParsingError getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.ParsingError)
}
- public interface RecordBatchDefOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RecordBatchDefOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.RecordBatchDef)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 record_count = 1;
/**
* <code>optional int32 record_count = 1;</code>
*/
@@ -6798,7 +7634,6 @@ public final class UserBitShared {
*/
int getRecordCount();
- // repeated .exec.shared.SerializedField field = 2;
/**
* <code>repeated .exec.shared.SerializedField field = 2;</code>
*/
@@ -6823,7 +7658,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder getFieldOrBuilder(
int index);
- // optional bool carries_two_byte_selection_vector = 3;
/**
* <code>optional bool carries_two_byte_selection_vector = 3;</code>
*/
@@ -6833,59 +7667,57 @@ public final class UserBitShared {
*/
boolean getCarriesTwoByteSelectionVector();
- // optional int32 affected_rows_count = 4;
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
boolean hasAffectedRowsCount();
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
int getAffectedRowsCount();
}
/**
* Protobuf type {@code exec.shared.RecordBatchDef}
*/
- public static final class RecordBatchDef extends
- com.google.protobuf.GeneratedMessage
- implements RecordBatchDefOrBuilder {
+ public static final class RecordBatchDef extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.RecordBatchDef)
+ RecordBatchDefOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RecordBatchDef.newBuilder() to construct.
- private RecordBatchDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RecordBatchDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private RecordBatchDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RecordBatchDef defaultInstance;
- public static RecordBatchDef getDefaultInstance() {
- return defaultInstance;
}
-
- public RecordBatchDef getDefaultInstanceForType() {
- return defaultInstance;
+ private RecordBatchDef() {
+ recordCount_ = 0;
+ field_ = java.util.Collections.emptyList();
+ carriesTwoByteSelectionVector_ = false;
+ affectedRowsCount_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RecordBatchDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -6897,13 +7729,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
recordCount_ = input.readInt32();
@@ -6914,7 +7739,8 @@ public final class UserBitShared {
field_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.SerializedField>();
mutable_bitField0_ |= 0x00000002;
}
- field_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.SerializedField.PARSER, extensionRegistry));
+ field_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.SerializedField.PARSER, extensionRegistry));
break;
}
case 24: {
@@ -6927,13 +7753,20 @@ public final class UserBitShared {
affectedRowsCount_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
field_ = java.util.Collections.unmodifiableList(field_);
@@ -6947,30 +7780,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_RecordBatchDef_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_RecordBatchDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.class, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder.class);
}
- public static com.google.protobuf.Parser<RecordBatchDef> PARSER =
- new com.google.protobuf.AbstractParser<RecordBatchDef>() {
- public RecordBatchDef parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RecordBatchDef(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RecordBatchDef> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 record_count = 1;
public static final int RECORD_COUNT_FIELD_NUMBER = 1;
private int recordCount_;
/**
@@ -6986,7 +7804,6 @@ public final class UserBitShared {
return recordCount_;
}
- // repeated .exec.shared.SerializedField field = 2;
public static final int FIELD_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> field_;
/**
@@ -7022,7 +7839,6 @@ public final class UserBitShared {
return field_.get(index);
}
- // optional bool carries_two_byte_selection_vector = 3;
public static final int CARRIES_TWO_BYTE_SELECTION_VECTOR_FIELD_NUMBER = 3;
private boolean carriesTwoByteSelectionVector_;
/**
@@ -7038,50 +7854,45 @@ public final class UserBitShared {
return carriesTwoByteSelectionVector_;
}
- // optional int32 affected_rows_count = 4;
public static final int AFFECTED_ROWS_COUNT_FIELD_NUMBER = 4;
private int affectedRowsCount_;
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public boolean hasAffectedRowsCount() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public int getAffectedRowsCount() {
return affectedRowsCount_;
}
- private void initFields() {
- recordCount_ = 0;
- field_ = java.util.Collections.emptyList();
- carriesTwoByteSelectionVector_ = false;
- affectedRowsCount_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, recordCount_);
}
@@ -7094,12 +7905,12 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, affectedRowsCount_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -7119,19 +7930,84 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, affectedRowsCount_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.RecordBatchDef)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.RecordBatchDef other = (org.apache.drill.exec.proto.UserBitShared.RecordBatchDef) obj;
+
+ boolean result = true;
+ result = result && (hasRecordCount() == other.hasRecordCount());
+ if (hasRecordCount()) {
+ result = result && (getRecordCount()
+ == other.getRecordCount());
+ }
+ result = result && getFieldList()
+ .equals(other.getFieldList());
+ result = result && (hasCarriesTwoByteSelectionVector() == other.hasCarriesTwoByteSelectionVector());
+ if (hasCarriesTwoByteSelectionVector()) {
+ result = result && (getCarriesTwoByteSelectionVector()
+ == other.getCarriesTwoByteSelectionVector());
+ }
+ result = result && (hasAffectedRowsCount() == other.hasAffectedRowsCount());
+ if (hasAffectedRowsCount()) {
+ result = result && (getAffectedRowsCount()
+ == other.getAffectedRowsCount());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRecordCount()) {
+ hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRecordCount();
+ }
+ if (getFieldCount() > 0) {
+ hash = (37 * hash) + FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldList().hashCode();
+ }
+ if (hasCarriesTwoByteSelectionVector()) {
+ hash = (37 * hash) + CARRIES_TWO_BYTE_SELECTION_VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCarriesTwoByteSelectionVector());
+ }
+ if (hasAffectedRowsCount()) {
+ hash = (37 * hash) + AFFECTED_ROWS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAffectedRowsCount();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -7154,46 +8030,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.RecordBatchDef prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7201,14 +8090,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.RecordBatchDef}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.RecordBatchDef)
+ org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_RecordBatchDef_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_RecordBatchDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7221,19 +8112,17 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getFieldFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
recordCount_ = 0;
@@ -7251,19 +8140,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_RecordBatchDef_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef build() {
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef result = buildPartial();
if (!result.isInitialized()) {
@@ -7272,6 +8160,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef buildPartial() {
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef result = new org.apache.drill.exec.proto.UserBitShared.RecordBatchDef(this);
int from_bitField0_ = bitField0_;
@@ -7302,6 +8191,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.RecordBatchDef) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.RecordBatchDef)other);
@@ -7335,7 +8257,7 @@ public final class UserBitShared {
field_ = other.field_;
bitField0_ = (bitField0_ & ~0x00000002);
fieldBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldFieldBuilder() : null;
} else {
fieldBuilder_.addAllMessages(other.field_);
@@ -7348,14 +8270,17 @@ public final class UserBitShared {
if (other.hasAffectedRowsCount()) {
setAffectedRowsCount(other.getAffectedRowsCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7365,7 +8290,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.RecordBatchDef) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -7375,7 +8300,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int32 record_count = 1;
private int recordCount_ ;
/**
* <code>optional int32 record_count = 1;</code>
@@ -7408,7 +8332,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.SerializedField field = 2;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> field_ =
java.util.Collections.emptyList();
private void ensureFieldIsMutable() {
@@ -7418,7 +8341,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder> fieldBuilder_;
/**
@@ -7550,7 +8473,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.SerializedField> values) {
if (fieldBuilder_ == null) {
ensureFieldIsMutable();
- super.addAll(values, field_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, field_);
onChanged();
} else {
fieldBuilder_.addAllMessages(values);
@@ -7633,11 +8557,11 @@ public final class UserBitShared {
getFieldBuilderList() {
return getFieldFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>
getFieldFieldBuilder() {
if (fieldBuilder_ == null) {
- fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>(
field_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -7648,7 +8572,6 @@ public final class UserBitShared {
return fieldBuilder_;
}
- // optional bool carries_two_byte_selection_vector = 3;
private boolean carriesTwoByteSelectionVector_ ;
/**
* <code>optional bool carries_two_byte_selection_vector = 3;</code>
@@ -7681,37 +8604,36 @@ public final class UserBitShared {
return this;
}
- // optional int32 affected_rows_count = 4;
private int affectedRowsCount_ ;
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public boolean hasAffectedRowsCount() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public int getAffectedRowsCount() {
return affectedRowsCount_;
}
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public Builder setAffectedRowsCount(int value) {
bitField0_ |= 0x00000008;
@@ -7720,12 +8642,12 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional int32 affected_rows_count = 4;</code>
- *
* <pre>
* The value is set when result set is disabled and its value corresponds to number
* of rows affected by query (see JDBC java.sql.ResultSet#getUpdateCount())
* </pre>
+ *
+ * <code>optional int32 affected_rows_count = 4;</code>
*/
public Builder clearAffectedRowsCount() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -7733,22 +8655,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.RecordBatchDef)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.RecordBatchDef)
+ private static final org.apache.drill.exec.proto.UserBitShared.RecordBatchDef DEFAULT_INSTANCE;
static {
- defaultInstance = new RecordBatchDef(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.RecordBatchDef();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RecordBatchDef>
+ PARSER = new com.google.protobuf.AbstractParser<RecordBatchDef>() {
+ @java.lang.Override
+ public RecordBatchDef parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RecordBatchDef(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RecordBatchDef> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RecordBatchDef> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.RecordBatchDef)
}
- public interface NamePartOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface NamePartOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.NamePart)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.NamePart.Type type = 1;
/**
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
*/
@@ -7758,7 +8721,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.NamePart.Type getType();
- // optional string name = 2;
/**
* <code>optional string name = 2;</code>
*/
@@ -7773,7 +8735,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getNameBytes();
- // optional .exec.shared.NamePart child = 3;
/**
* <code>optional .exec.shared.NamePart child = 3;</code>
*/
@@ -7790,36 +8751,33 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.NamePart}
*/
- public static final class NamePart extends
- com.google.protobuf.GeneratedMessage
- implements NamePartOrBuilder {
+ public static final class NamePart extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.NamePart)
+ NamePartOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use NamePart.newBuilder() to construct.
- private NamePart(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private NamePart(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private NamePart(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final NamePart defaultInstance;
- public static NamePart getDefaultInstance() {
- return defaultInstance;
}
-
- public NamePart getDefaultInstanceForType() {
- return defaultInstance;
+ private NamePart() {
+ type_ = 0;
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private NamePart(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -7831,27 +8789,22 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.NamePart.Type value = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- type_ = value;
+ type_ = rawValue;
}
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 26: {
@@ -7867,13 +8820,20 @@ public final class UserBitShared {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -7884,28 +8844,14 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NamePart_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NamePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.NamePart.class, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder.class);
}
- public static com.google.protobuf.Parser<NamePart> PARSER =
- new com.google.protobuf.AbstractParser<NamePart>() {
- public NamePart parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new NamePart(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<NamePart> getParserForType() {
- return PARSER;
- }
-
/**
* Protobuf enum {@code exec.shared.NamePart.Type}
*/
@@ -7914,11 +8860,11 @@ public final class UserBitShared {
/**
* <code>NAME = 0;</code>
*/
- NAME(0, 0),
+ NAME(0),
/**
* <code>ARRAY = 1;</code>
*/
- ARRAY(1, 1),
+ ARRAY(1),
;
/**
@@ -7931,9 +8877,19 @@ public final class UserBitShared {
public static final int ARRAY_VALUE = 1;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static Type valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Type forNumber(int value) {
switch (value) {
case 0: return NAME;
case 1: return ARRAY;
@@ -7945,17 +8901,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<Type>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Type>() {
public Type findValueByNumber(int number) {
- return Type.valueOf(number);
+ return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -7977,11 +8933,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private Type(int index, int value) {
- this.index = index;
+ private Type(int value) {
this.value = value;
}
@@ -7989,9 +8943,8 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.NamePart.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserBitShared.NamePart.Type type_;
+ private int type_;
/**
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
*/
@@ -8002,12 +8955,13 @@ public final class UserBitShared {
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart.Type getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.NamePart.Type result = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME : result;
}
- // optional string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 2;</code>
*/
@@ -8048,7 +9002,6 @@ public final class UserBitShared {
}
}
- // optional .exec.shared.NamePart child = 3;
public static final int CHILD_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.NamePart child_;
/**
@@ -8061,74 +9014,127 @@ public final class UserBitShared {
* <code>optional .exec.shared.NamePart child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart getChild() {
- return child_;
+ return child_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : child_;
}
/**
* <code>optional .exec.shared.NamePart child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder getChildOrBuilder() {
- return child_;
+ return child_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : child_;
}
- private void initFields() {
- type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME;
- name_ = "";
- child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, type_.getNumber());
+ output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, child_);
+ output.writeMessage(3, getChild());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_.getNumber());
+ .computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, child_);
+ .computeMessageSize(3, getChild());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.NamePart)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.NamePart other = (org.apache.drill.exec.proto.UserBitShared.NamePart) obj;
+
+ boolean result = true;
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && type_ == other.type_;
+ }
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && (hasChild() == other.hasChild());
+ if (hasChild()) {
+ result = result && getChild()
+ .equals(other.getChild());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (hasChild()) {
+ hash = (37 * hash) + CHILD_FIELD_NUMBER;
+ hash = (53 * hash) + getChild().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8152,46 +9158,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NamePart parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.NamePart prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8199,14 +9218,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.NamePart}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.NamePart)
+ org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NamePart_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NamePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8219,27 +9240,25 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getChildFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME;
+ type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (childBuilder_ == null) {
- child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
+ child_ = null;
} else {
childBuilder_.clear();
}
@@ -8247,19 +9266,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NamePart_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NamePart getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NamePart build() {
org.apache.drill.exec.proto.UserBitShared.NamePart result = buildPartial();
if (!result.isInitialized()) {
@@ -8268,6 +9286,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NamePart buildPartial() {
org.apache.drill.exec.proto.UserBitShared.NamePart result = new org.apache.drill.exec.proto.UserBitShared.NamePart(this);
int from_bitField0_ = bitField0_;
@@ -8293,6 +9312,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.NamePart) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.NamePart)other);
@@ -8315,14 +9367,17 @@ public final class UserBitShared {
if (other.hasChild()) {
mergeChild(other.getChild());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8332,7 +9387,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.NamePart) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -8342,8 +9397,7 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.NamePart.Type type = 1;
- private org.apache.drill.exec.proto.UserBitShared.NamePart.Type type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME;
+ private int type_ = 0;
/**
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
*/
@@ -8354,7 +9408,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart.Type getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.NamePart.Type result = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME : result;
}
/**
* <code>optional .exec.shared.NamePart.Type type = 1;</code>
@@ -8364,7 +9420,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
@@ -8373,12 +9429,11 @@ public final class UserBitShared {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.apache.drill.exec.proto.UserBitShared.NamePart.Type.NAME;
+ type_ = 0;
onChanged();
return this;
}
- // optional string name = 2;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 2;</code>
@@ -8392,9 +9447,12 @@ public final class UserBitShared {
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -8452,9 +9510,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.shared.NamePart child = 3;
- private org.apache.drill.exec.proto.UserBitShared.NamePart child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.NamePart child_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder> childBuilder_;
/**
* <code>optional .exec.shared.NamePart child = 3;</code>
@@ -8467,7 +9524,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart getChild() {
if (childBuilder_ == null) {
- return child_;
+ return child_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : child_;
} else {
return childBuilder_.getMessage();
}
@@ -8508,6 +9565,7 @@ public final class UserBitShared {
public Builder mergeChild(org.apache.drill.exec.proto.UserBitShared.NamePart value) {
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ child_ != null &&
child_ != org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) {
child_ =
org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(child_).mergeFrom(value).buildPartial();
@@ -8526,7 +9584,7 @@ public final class UserBitShared {
*/
public Builder clearChild() {
if (childBuilder_ == null) {
- child_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
+ child_ = null;
onChanged();
} else {
childBuilder_.clear();
@@ -8549,67 +9607,108 @@ public final class UserBitShared {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilder();
} else {
- return child_;
+ return child_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : child_;
}
}
/**
* <code>optional .exec.shared.NamePart child = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
- childBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder>(
- child_,
+ getChild(),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.NamePart)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.NamePart)
+ private static final org.apache.drill.exec.proto.UserBitShared.NamePart DEFAULT_INSTANCE;
static {
- defaultInstance = new NamePart(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.NamePart();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.NamePart getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<NamePart>
+ PARSER = new com.google.protobuf.AbstractParser<NamePart>() {
+ @java.lang.Override
+ public NamePart parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new NamePart(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<NamePart> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<NamePart> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.NamePart getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.NamePart)
}
- public interface SerializedFieldOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface SerializedFieldOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.SerializedField)
+ com.google.protobuf.MessageOrBuilder {
- // optional .common.MajorType major_type = 1;
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
boolean hasMajorType();
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
org.apache.drill.common.types.TypeProtos.MajorType getMajorType();
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder getMajorTypeOrBuilder();
- // optional .exec.shared.NamePart name_part = 2;
/**
* <code>optional .exec.shared.NamePart name_part = 2;</code>
*/
@@ -8623,52 +9722,50 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder getNamePartOrBuilder();
- // repeated .exec.shared.SerializedField child = 3;
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField>
getChildList();
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
org.apache.drill.exec.proto.UserBitShared.SerializedField getChild(int index);
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
int getChildCount();
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>
getChildOrBuilderList();
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder getChildOrBuilder(
int index);
- // optional int32 value_count = 4;
/**
* <code>optional int32 value_count = 4;</code>
*/
@@ -8678,7 +9775,6 @@ public final class UserBitShared {
*/
int getValueCount();
- // optional int32 var_byte_length = 5;
/**
* <code>optional int32 var_byte_length = 5;</code>
*/
@@ -8688,7 +9784,6 @@ public final class UserBitShared {
*/
int getVarByteLength();
- // optional int32 buffer_length = 7;
/**
* <code>optional int32 buffer_length = 7;</code>
*/
@@ -8701,36 +9796,35 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.SerializedField}
*/
- public static final class SerializedField extends
- com.google.protobuf.GeneratedMessage
- implements SerializedFieldOrBuilder {
+ public static final class SerializedField extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.SerializedField)
+ SerializedFieldOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use SerializedField.newBuilder() to construct.
- private SerializedField(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SerializedField(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private SerializedField(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final SerializedField defaultInstance;
- public static SerializedField getDefaultInstance() {
- return defaultInstance;
}
-
- public SerializedField getDefaultInstanceForType() {
- return defaultInstance;
+ private SerializedField() {
+ child_ = java.util.Collections.emptyList();
+ valueCount_ = 0;
+ varByteLength_ = 0;
+ bufferLength_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private SerializedField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -8742,13 +9836,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.common.types.TypeProtos.MajorType.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -8780,7 +9867,8 @@ public final class UserBitShared {
child_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.SerializedField>();
mutable_bitField0_ |= 0x00000004;
}
- child_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.SerializedField.PARSER, extensionRegistry));
+ child_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.SerializedField.PARSER, extensionRegistry));
break;
}
case 32: {
@@ -8798,13 +9886,20 @@ public final class UserBitShared {
bufferLength_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
child_ = java.util.Collections.unmodifiableList(child_);
@@ -8818,64 +9913,48 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SerializedField_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SerializedField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.SerializedField.class, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder.class);
}
- public static com.google.protobuf.Parser<SerializedField> PARSER =
- new com.google.protobuf.AbstractParser<SerializedField>() {
- public SerializedField parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SerializedField(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<SerializedField> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .common.MajorType major_type = 1;
public static final int MAJOR_TYPE_FIELD_NUMBER = 1;
private org.apache.drill.common.types.TypeProtos.MajorType majorType_;
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public boolean hasMajorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MajorType getMajorType() {
- return majorType_;
+ return majorType_ == null ? org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance() : majorType_;
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder getMajorTypeOrBuilder() {
- return majorType_;
+ return majorType_ == null ? org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance() : majorType_;
}
- // optional .exec.shared.NamePart name_part = 2;
public static final int NAME_PART_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserBitShared.NamePart namePart_;
/**
@@ -8888,72 +9967,70 @@ public final class UserBitShared {
* <code>optional .exec.shared.NamePart name_part = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart getNamePart() {
- return namePart_;
+ return namePart_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : namePart_;
}
/**
* <code>optional .exec.shared.NamePart name_part = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder getNamePartOrBuilder() {
- return namePart_;
+ return namePart_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : namePart_;
}
- // repeated .exec.shared.SerializedField child = 3;
public static final int CHILD_FIELD_NUMBER = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> child_;
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> getChildList() {
return child_;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>
getChildOrBuilderList() {
return child_;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public int getChildCount() {
return child_.size();
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedField getChild(int index) {
return child_.get(index);
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder getChildOrBuilder(
int index) {
return child_.get(index);
}
- // optional int32 value_count = 4;
public static final int VALUE_COUNT_FIELD_NUMBER = 4;
private int valueCount_;
/**
@@ -8969,7 +10046,6 @@ public final class UserBitShared {
return valueCount_;
}
- // optional int32 var_byte_length = 5;
public static final int VAR_BYTE_LENGTH_FIELD_NUMBER = 5;
private int varByteLength_;
/**
@@ -8985,7 +10061,6 @@ public final class UserBitShared {
return varByteLength_;
}
- // optional int32 buffer_length = 7;
public static final int BUFFER_LENGTH_FIELD_NUMBER = 7;
private int bufferLength_;
/**
@@ -9001,31 +10076,25 @@ public final class UserBitShared {
return bufferLength_;
}
- private void initFields() {
- majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();
- namePart_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
- child_ = java.util.Collections.emptyList();
- valueCount_ = 0;
- varByteLength_ = 0;
- bufferLength_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, majorType_);
+ output.writeMessage(1, getMajorType());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, namePart_);
+ output.writeMessage(2, getNamePart());
}
for (int i = 0; i < child_.size(); i++) {
output.writeMessage(3, child_.get(i));
@@ -9039,22 +10108,22 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(7, bufferLength_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, majorType_);
+ .computeMessageSize(1, getMajorType());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, namePart_);
+ .computeMessageSize(2, getNamePart());
}
for (int i = 0; i < child_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -9072,18 +10141,100 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, bufferLength_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.SerializedField)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.SerializedField other = (org.apache.drill.exec.proto.UserBitShared.SerializedField) obj;
+
+ boolean result = true;
+ result = result && (hasMajorType() == other.hasMajorType());
+ if (hasMajorType()) {
+ result = result && getMajorType()
+ .equals(other.getMajorType());
+ }
+ result = result && (hasNamePart() == other.hasNamePart());
+ if (hasNamePart()) {
+ result = result && getNamePart()
+ .equals(other.getNamePart());
+ }
+ result = result && getChildList()
+ .equals(other.getChildList());
+ result = result && (hasValueCount() == other.hasValueCount());
+ if (hasValueCount()) {
+ result = result && (getValueCount()
+ == other.getValueCount());
+ }
+ result = result && (hasVarByteLength() == other.hasVarByteLength());
+ if (hasVarByteLength()) {
+ result = result && (getVarByteLength()
+ == other.getVarByteLength());
+ }
+ result = result && (hasBufferLength() == other.hasBufferLength());
+ if (hasBufferLength()) {
+ result = result && (getBufferLength()
+ == other.getBufferLength());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMajorType()) {
+ hash = (37 * hash) + MAJOR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMajorType().hashCode();
+ }
+ if (hasNamePart()) {
+ hash = (37 * hash) + NAME_PART_FIELD_NUMBER;
+ hash = (53 * hash) + getNamePart().hashCode();
+ }
+ if (getChildCount() > 0) {
+ hash = (37 * hash) + CHILD_FIELD_NUMBER;
+ hash = (53 * hash) + getChildList().hashCode();
+ }
+ if (hasValueCount()) {
+ hash = (37 * hash) + VALUE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getValueCount();
+ }
+ if (hasVarByteLength()) {
+ hash = (37 * hash) + VAR_BYTE_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getVarByteLength();
+ }
+ if (hasBufferLength()) {
+ hash = (37 * hash) + BUFFER_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getBufferLength();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -9107,46 +10258,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SerializedField parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.SerializedField prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -9154,14 +10318,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.SerializedField}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.SerializedField)
+ org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SerializedField_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SerializedField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -9174,31 +10340,29 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getMajorTypeFieldBuilder();
getNamePartFieldBuilder();
getChildFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (majorTypeBuilder_ == null) {
- majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();
+ majorType_ = null;
} else {
majorTypeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (namePartBuilder_ == null) {
- namePart_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
+ namePart_ = null;
} else {
namePartBuilder_.clear();
}
@@ -9218,19 +10382,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SerializedField_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SerializedField getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.SerializedField.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SerializedField build() {
org.apache.drill.exec.proto.UserBitShared.SerializedField result = buildPartial();
if (!result.isInitialized()) {
@@ -9239,6 +10402,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SerializedField buildPartial() {
org.apache.drill.exec.proto.UserBitShared.SerializedField result = new org.apache.drill.exec.proto.UserBitShared.SerializedField(this);
int from_bitField0_ = bitField0_;
@@ -9285,6 +10449,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.SerializedField) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.SerializedField)other);
@@ -9321,7 +10518,7 @@ public final class UserBitShared {
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000004);
childBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildFieldBuilder() : null;
} else {
childBuilder_.addAllMessages(other.child_);
@@ -9337,14 +10534,17 @@ public final class UserBitShared {
if (other.hasBufferLength()) {
setBufferLength(other.getBufferLength());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -9354,7 +10554,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.SerializedField) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -9364,40 +10564,39 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .common.MajorType major_type = 1;
- private org.apache.drill.common.types.TypeProtos.MajorType majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.common.types.TypeProtos.MajorType majorType_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.common.types.TypeProtos.MajorType, org.apache.drill.common.types.TypeProtos.MajorType.Builder, org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder> majorTypeBuilder_;
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public boolean hasMajorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MajorType getMajorType() {
if (majorTypeBuilder_ == null) {
- return majorType_;
+ return majorType_ == null ? org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance() : majorType_;
} else {
return majorTypeBuilder_.getMessage();
}
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public Builder setMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) {
if (majorTypeBuilder_ == null) {
@@ -9413,11 +10612,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public Builder setMajorType(
org.apache.drill.common.types.TypeProtos.MajorType.Builder builderForValue) {
@@ -9431,15 +10630,16 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public Builder mergeMajorType(org.apache.drill.common.types.TypeProtos.MajorType value) {
if (majorTypeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ majorType_ != null &&
majorType_ != org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) {
majorType_ =
org.apache.drill.common.types.TypeProtos.MajorType.newBuilder(majorType_).mergeFrom(value).buildPartial();
@@ -9454,15 +10654,15 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public Builder clearMajorType() {
if (majorTypeBuilder_ == null) {
- majorType_ = org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();
+ majorType_ = null;
onChanged();
} else {
majorTypeBuilder_.clear();
@@ -9471,11 +10671,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MajorType.Builder getMajorTypeBuilder() {
bitField0_ |= 0x00000001;
@@ -9483,33 +10683,34 @@ public final class UserBitShared {
return getMajorTypeFieldBuilder().getBuilder();
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder getMajorTypeOrBuilder() {
if (majorTypeBuilder_ != null) {
return majorTypeBuilder_.getMessageOrBuilder();
} else {
- return majorType_;
+ return majorType_ == null ?
+ org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance() : majorType_;
}
}
/**
- * <code>optional .common.MajorType major_type = 1;</code>
- *
* <pre>
* the type associated with this field.
* </pre>
+ *
+ * <code>optional .common.MajorType major_type = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.common.types.TypeProtos.MajorType, org.apache.drill.common.types.TypeProtos.MajorType.Builder, org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder>
getMajorTypeFieldBuilder() {
if (majorTypeBuilder_ == null) {
- majorTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ majorTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.common.types.TypeProtos.MajorType, org.apache.drill.common.types.TypeProtos.MajorType.Builder, org.apache.drill.common.types.TypeProtos.MajorTypeOrBuilder>(
- majorType_,
+ getMajorType(),
getParentForChildren(),
isClean());
majorType_ = null;
@@ -9517,9 +10718,8 @@ public final class UserBitShared {
return majorTypeBuilder_;
}
- // optional .exec.shared.NamePart name_part = 2;
- private org.apache.drill.exec.proto.UserBitShared.NamePart namePart_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.NamePart namePart_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder> namePartBuilder_;
/**
* <code>optional .exec.shared.NamePart name_part = 2;</code>
@@ -9532,7 +10732,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.NamePart getNamePart() {
if (namePartBuilder_ == null) {
- return namePart_;
+ return namePart_ == null ? org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : namePart_;
} else {
return namePartBuilder_.getMessage();
}
@@ -9573,6 +10773,7 @@ public final class UserBitShared {
public Builder mergeNamePart(org.apache.drill.exec.proto.UserBitShared.NamePart value) {
if (namePartBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ namePart_ != null &&
namePart_ != org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance()) {
namePart_ =
org.apache.drill.exec.proto.UserBitShared.NamePart.newBuilder(namePart_).mergeFrom(value).buildPartial();
@@ -9591,7 +10792,7 @@ public final class UserBitShared {
*/
public Builder clearNamePart() {
if (namePartBuilder_ == null) {
- namePart_ = org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance();
+ namePart_ = null;
onChanged();
} else {
namePartBuilder_.clear();
@@ -9614,19 +10815,20 @@ public final class UserBitShared {
if (namePartBuilder_ != null) {
return namePartBuilder_.getMessageOrBuilder();
} else {
- return namePart_;
+ return namePart_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.NamePart.getDefaultInstance() : namePart_;
}
}
/**
* <code>optional .exec.shared.NamePart name_part = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder>
getNamePartFieldBuilder() {
if (namePartBuilder_ == null) {
- namePartBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ namePartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.NamePart, org.apache.drill.exec.proto.UserBitShared.NamePart.Builder, org.apache.drill.exec.proto.UserBitShared.NamePartOrBuilder>(
- namePart_,
+ getNamePart(),
getParentForChildren(),
isClean());
namePart_ = null;
@@ -9634,7 +10836,6 @@ public final class UserBitShared {
return namePartBuilder_;
}
- // repeated .exec.shared.SerializedField child = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> child_ =
java.util.Collections.emptyList();
private void ensureChildIsMutable() {
@@ -9644,15 +10845,15 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder> childBuilder_;
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField> getChildList() {
if (childBuilder_ == null) {
@@ -9662,11 +10863,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public int getChildCount() {
if (childBuilder_ == null) {
@@ -9676,11 +10877,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedField getChild(int index) {
if (childBuilder_ == null) {
@@ -9690,11 +10891,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder setChild(
int index, org.apache.drill.exec.proto.UserBitShared.SerializedField value) {
@@ -9711,11 +10912,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder setChild(
int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) {
@@ -9729,11 +10930,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder addChild(org.apache.drill.exec.proto.UserBitShared.SerializedField value) {
if (childBuilder_ == null) {
@@ -9749,11 +10950,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder addChild(
int index, org.apache.drill.exec.proto.UserBitShared.SerializedField value) {
@@ -9770,11 +10971,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder addChild(
org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) {
@@ -9788,11 +10989,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder addChild(
int index, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder builderForValue) {
@@ -9806,17 +11007,18 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder addAllChild(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.SerializedField> values) {
if (childBuilder_ == null) {
ensureChildIsMutable();
- super.addAll(values, child_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, child_);
onChanged();
} else {
childBuilder_.addAllMessages(values);
@@ -9824,11 +11026,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder clearChild() {
if (childBuilder_ == null) {
@@ -9841,11 +11043,11 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public Builder removeChild(int index) {
if (childBuilder_ == null) {
@@ -9858,22 +11060,22 @@ public final class UserBitShared {
return this;
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder getChildBuilder(
int index) {
return getChildFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder getChildOrBuilder(
int index) {
@@ -9883,11 +11085,11 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>
getChildOrBuilderList() {
@@ -9898,22 +11100,22 @@ public final class UserBitShared {
}
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder addChildBuilder() {
return getChildFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserBitShared.SerializedField.getDefaultInstance());
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder addChildBuilder(
int index) {
@@ -9921,21 +11123,21 @@ public final class UserBitShared {
index, org.apache.drill.exec.proto.UserBitShared.SerializedField.getDefaultInstance());
}
/**
- * <code>repeated .exec.shared.SerializedField child = 3;</code>
- *
* <pre>
* only in the cases of type == MAP or REPEAT_MAP or REPEATED_LIST
* </pre>
+ *
+ * <code>repeated .exec.shared.SerializedField child = 3;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder>
getChildBuilderList() {
return getChildFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
- childBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ childBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.SerializedField, org.apache.drill.exec.proto.UserBitShared.SerializedField.Builder, org.apache.drill.exec.proto.UserBitShared.SerializedFieldOrBuilder>(
child_,
((bitField0_ & 0x00000004) == 0x00000004),
@@ -9946,7 +11148,6 @@ public final class UserBitShared {
return childBuilder_;
}
- // optional int32 value_count = 4;
private int valueCount_ ;
/**
* <code>optional int32 value_count = 4;</code>
@@ -9979,7 +11180,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 var_byte_length = 5;
private int varByteLength_ ;
/**
* <code>optional int32 var_byte_length = 5;</code>
@@ -10012,7 +11212,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 buffer_length = 7;
private int bufferLength_ ;
/**
* <code>optional int32 buffer_length = 7;</code>
@@ -10044,22 +11243,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.SerializedField)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.SerializedField)
+ private static final org.apache.drill.exec.proto.UserBitShared.SerializedField DEFAULT_INSTANCE;
static {
- defaultInstance = new SerializedField(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.SerializedField();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.SerializedField getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<SerializedField>
+ PARSER = new com.google.protobuf.AbstractParser<SerializedField>() {
+ @java.lang.Override
+ public SerializedField parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SerializedField(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<SerializedField> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<SerializedField> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.SerializedField getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.SerializedField)
}
- public interface NodeStatusOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface NodeStatusOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.NodeStatus)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 node_id = 1;
/**
* <code>optional int32 node_id = 1;</code>
*/
@@ -10069,7 +11309,6 @@ public final class UserBitShared {
*/
int getNodeId();
- // optional int64 memory_footprint = 2;
/**
* <code>optional int64 memory_footprint = 2;</code>
*/
@@ -10082,36 +11321,33 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.NodeStatus}
*/
- public static final class NodeStatus extends
- com.google.protobuf.GeneratedMessage
- implements NodeStatusOrBuilder {
+ public static final class NodeStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.NodeStatus)
+ NodeStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use NodeStatus.newBuilder() to construct.
- private NodeStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private NodeStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private NodeStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final NodeStatus defaultInstance;
- public static NodeStatus getDefaultInstance() {
- return defaultInstance;
}
-
- public NodeStatus getDefaultInstanceForType() {
- return defaultInstance;
+ private NodeStatus() {
+ nodeId_ = 0;
+ memoryFootprint_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private NodeStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -10123,13 +11359,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
nodeId_ = input.readInt32();
@@ -10140,13 +11369,20 @@ public final class UserBitShared {
memoryFootprint_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -10157,30 +11393,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NodeStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NodeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.NodeStatus.class, org.apache.drill.exec.proto.UserBitShared.NodeStatus.Builder.class);
}
- public static com.google.protobuf.Parser<NodeStatus> PARSER =
- new com.google.protobuf.AbstractParser<NodeStatus>() {
- public NodeStatus parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new NodeStatus(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<NodeStatus> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 node_id = 1;
public static final int NODE_ID_FIELD_NUMBER = 1;
private int nodeId_;
/**
@@ -10196,7 +11417,6 @@ public final class UserBitShared {
return nodeId_;
}
- // optional int64 memory_footprint = 2;
public static final int MEMORY_FOOTPRINT_FIELD_NUMBER = 2;
private long memoryFootprint_;
/**
@@ -10212,34 +11432,32 @@ public final class UserBitShared {
return memoryFootprint_;
}
- private void initFields() {
- nodeId_ = 0;
- memoryFootprint_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, nodeId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, memoryFootprint_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -10251,18 +11469,68 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, memoryFootprint_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.NodeStatus)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.NodeStatus other = (org.apache.drill.exec.proto.UserBitShared.NodeStatus) obj;
+
+ boolean result = true;
+ result = result && (hasNodeId() == other.hasNodeId());
+ if (hasNodeId()) {
+ result = result && (getNodeId()
+ == other.getNodeId());
+ }
+ result = result && (hasMemoryFootprint() == other.hasMemoryFootprint());
+ if (hasMemoryFootprint()) {
+ result = result && (getMemoryFootprint()
+ == other.getMemoryFootprint());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasNodeId()) {
+ hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getNodeId();
+ }
+ if (hasMemoryFootprint()) {
+ hash = (37 * hash) + MEMORY_FOOTPRINT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMemoryFootprint());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10286,46 +11554,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.NodeStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.NodeStatus prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -10333,14 +11614,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.NodeStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.NodeStatusOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.NodeStatus)
+ org.apache.drill.exec.proto.UserBitShared.NodeStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NodeStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NodeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10353,18 +11636,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
nodeId_ = 0;
@@ -10374,19 +11655,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_NodeStatus_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NodeStatus getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.NodeStatus.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NodeStatus build() {
org.apache.drill.exec.proto.UserBitShared.NodeStatus result = buildPartial();
if (!result.isInitialized()) {
@@ -10395,6 +11675,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.NodeStatus buildPartial() {
org.apache.drill.exec.proto.UserBitShared.NodeStatus result = new org.apache.drill.exec.proto.UserBitShared.NodeStatus(this);
int from_bitField0_ = bitField0_;
@@ -10412,6 +11693,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.NodeStatus) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.NodeStatus)other);
@@ -10429,14 +11743,17 @@ public final class UserBitShared {
if (other.hasMemoryFootprint()) {
setMemoryFootprint(other.getMemoryFootprint());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -10446,7 +11763,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.NodeStatus) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -10456,7 +11773,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int32 node_id = 1;
private int nodeId_ ;
/**
* <code>optional int32 node_id = 1;</code>
@@ -10489,7 +11805,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 memory_footprint = 2;
private long memoryFootprint_ ;
/**
* <code>optional int64 memory_footprint = 2;</code>
@@ -10521,22 +11836,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.NodeStatus)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.NodeStatus)
+ private static final org.apache.drill.exec.proto.UserBitShared.NodeStatus DEFAULT_INSTANCE;
static {
- defaultInstance = new NodeStatus(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.NodeStatus();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.NodeStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<NodeStatus>
+ PARSER = new com.google.protobuf.AbstractParser<NodeStatus>() {
+ @java.lang.Override
+ public NodeStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new NodeStatus(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<NodeStatus> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<NodeStatus> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.NodeStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.NodeStatus)
}
- public interface QueryResultOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.QueryResult)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryResult.QueryState query_state = 1;
/**
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
*/
@@ -10546,7 +11902,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getQueryState();
- // optional .exec.shared.QueryId query_id = 2;
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
@@ -10560,7 +11915,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // repeated .exec.shared.DrillPBError error = 3;
/**
* <code>repeated .exec.shared.DrillPBError error = 3;</code>
*/
@@ -10586,43 +11940,39 @@ public final class UserBitShared {
int index);
}
/**
- * Protobuf type {@code exec.shared.QueryResult}
- *
* <pre>
- *
* Used by the server to report informations about the query state to the client
* </pre>
+ *
+ * Protobuf type {@code exec.shared.QueryResult}
*/
- public static final class QueryResult extends
- com.google.protobuf.GeneratedMessage
- implements QueryResultOrBuilder {
+ public static final class QueryResult extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.QueryResult)
+ QueryResultOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryResult.newBuilder() to construct.
- private QueryResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private QueryResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryResult defaultInstance;
- public static QueryResult getDefaultInstance() {
- return defaultInstance;
}
-
- public QueryResult getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryResult() {
+ queryState_ = 0;
+ error_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -10634,21 +11984,15 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- queryState_ = value;
+ queryState_ = rawValue;
}
break;
}
@@ -10670,7 +12014,15 @@ public final class UserBitShared {
error_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.DrillPBError>();
mutable_bitField0_ |= 0x00000004;
}
- error_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry));
+ error_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -10679,7 +12031,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
error_ = java.util.Collections.unmodifiableList(error_);
@@ -10693,105 +12045,91 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryResult_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.QueryResult.class, org.apache.drill.exec.proto.UserBitShared.QueryResult.Builder.class);
}
- public static com.google.protobuf.Parser<QueryResult> PARSER =
- new com.google.protobuf.AbstractParser<QueryResult>() {
- public QueryResult parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryResult(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryResult> getParserForType() {
- return PARSER;
- }
-
/**
* Protobuf enum {@code exec.shared.QueryResult.QueryState}
*/
public enum QueryState
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>STARTING = 0;</code>
- *
* <pre>
* query has been scheduled for execution. This is post-enqueued.
* </pre>
+ *
+ * <code>STARTING = 0;</code>
*/
- STARTING(0, 0),
+ STARTING(0),
/**
* <code>RUNNING = 1;</code>
*/
- RUNNING(1, 1),
+ RUNNING(1),
/**
- * <code>COMPLETED = 2;</code>
- *
* <pre>
* query has completed successfully
* </pre>
+ *
+ * <code>COMPLETED = 2;</code>
*/
- COMPLETED(2, 2),
+ COMPLETED(2),
/**
- * <code>CANCELED = 3;</code>
- *
* <pre>
* query has been cancelled, and all cleanup is complete
* </pre>
+ *
+ * <code>CANCELED = 3;</code>
*/
- CANCELED(3, 3),
+ CANCELED(3),
/**
* <code>FAILED = 4;</code>
*/
- FAILED(4, 4),
+ FAILED(4),
/**
- * <code>CANCELLATION_REQUESTED = 5;</code>
- *
* <pre>
* cancellation has been requested, and is being processed
* </pre>
+ *
+ * <code>CANCELLATION_REQUESTED = 5;</code>
*/
- CANCELLATION_REQUESTED(5, 5),
+ CANCELLATION_REQUESTED(5),
/**
- * <code>ENQUEUED = 6;</code>
- *
* <pre>
* query has been enqueued. this is pre-starting.
* </pre>
+ *
+ * <code>ENQUEUED = 6;</code>
*/
- ENQUEUED(6, 6),
+ ENQUEUED(6),
/**
- * <code>PREPARING = 7;</code>
- *
* <pre>
* query is at preparation stage, foreman is initializing
* </pre>
+ *
+ * <code>PREPARING = 7;</code>
*/
- PREPARING(7, 7),
+ PREPARING(7),
/**
- * <code>PLANNING = 8;</code>
- *
* <pre>
* query is at planning stage (includes logical or / and physical planning)
* </pre>
+ *
+ * <code>PLANNING = 8;</code>
*/
- PLANNING(8, 8),
+ PLANNING(8),
;
/**
- * <code>STARTING = 0;</code>
- *
* <pre>
* query has been scheduled for execution. This is post-enqueued.
* </pre>
+ *
+ * <code>STARTING = 0;</code>
*/
public static final int STARTING_VALUE = 0;
/**
@@ -10799,19 +12137,19 @@ public final class UserBitShared {
*/
public static final int RUNNING_VALUE = 1;
/**
- * <code>COMPLETED = 2;</code>
- *
* <pre>
* query has completed successfully
* </pre>
+ *
+ * <code>COMPLETED = 2;</code>
*/
public static final int COMPLETED_VALUE = 2;
/**
- * <code>CANCELED = 3;</code>
- *
* <pre>
* query has been cancelled, and all cleanup is complete
* </pre>
+ *
+ * <code>CANCELED = 3;</code>
*/
public static final int CANCELED_VALUE = 3;
/**
@@ -10819,42 +12157,52 @@ public final class UserBitShared {
*/
public static final int FAILED_VALUE = 4;
/**
- * <code>CANCELLATION_REQUESTED = 5;</code>
- *
* <pre>
* cancellation has been requested, and is being processed
* </pre>
+ *
+ * <code>CANCELLATION_REQUESTED = 5;</code>
*/
public static final int CANCELLATION_REQUESTED_VALUE = 5;
/**
- * <code>ENQUEUED = 6;</code>
- *
* <pre>
* query has been enqueued. this is pre-starting.
* </pre>
+ *
+ * <code>ENQUEUED = 6;</code>
*/
public static final int ENQUEUED_VALUE = 6;
/**
- * <code>PREPARING = 7;</code>
- *
* <pre>
* query is at preparation stage, foreman is initializing
* </pre>
+ *
+ * <code>PREPARING = 7;</code>
*/
public static final int PREPARING_VALUE = 7;
/**
- * <code>PLANNING = 8;</code>
- *
* <pre>
* query is at planning stage (includes logical or / and physical planning)
* </pre>
+ *
+ * <code>PLANNING = 8;</code>
*/
public static final int PLANNING_VALUE = 8;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static QueryState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static QueryState forNumber(int value) {
switch (value) {
case 0: return STARTING;
case 1: return RUNNING;
@@ -10873,17 +12221,17 @@ public final class UserBitShared {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<QueryState>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ QueryState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<QueryState>() {
public QueryState findValueByNumber(int number) {
- return QueryState.valueOf(number);
+ return QueryState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -10905,11 +12253,9 @@ public final class UserBitShared {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private QueryState(int index, int value) {
- this.index = index;
+ private QueryState(int value) {
this.value = value;
}
@@ -10917,9 +12263,8 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.QueryResult.QueryState query_state = 1;
public static final int QUERY_STATE_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState queryState_;
+ private int queryState_;
/**
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
*/
@@ -10930,10 +12275,11 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getQueryState() {
- return queryState_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(queryState_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
- // optional .exec.shared.QueryId query_id = 2;
public static final int QUERY_ID_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -10946,16 +12292,15 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // repeated .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.DrillPBError> error_;
/**
@@ -10991,66 +12336,117 @@ public final class UserBitShared {
return error_.get(index);
}
- private void initFields() {
- queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- error_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, queryState_.getNumber());
+ output.writeEnum(1, queryState_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, queryId_);
+ output.writeMessage(2, getQueryId());
}
for (int i = 0; i < error_.size(); i++) {
output.writeMessage(3, error_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, queryState_.getNumber());
+ .computeEnumSize(1, queryState_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, queryId_);
+ .computeMessageSize(2, getQueryId());
}
for (int i = 0; i < error_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, error_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.QueryResult)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.QueryResult other = (org.apache.drill.exec.proto.UserBitShared.QueryResult) obj;
+
+ boolean result = true;
+ result = result && (hasQueryState() == other.hasQueryState());
+ if (hasQueryState()) {
+ result = result && queryState_ == other.queryState_;
+ }
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && getErrorList()
+ .equals(other.getErrorList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryState()) {
+ hash = (37 * hash) + QUERY_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + queryState_;
+ }
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (getErrorCount() > 0) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -11073,66 +12469,80 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.QueryResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.shared.QueryResult}
- *
* <pre>
- *
* Used by the server to report informations about the query state to the client
* </pre>
+ *
+ * Protobuf type {@code exec.shared.QueryResult}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.QueryResultOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.QueryResult)
+ org.apache.drill.exec.proto.UserBitShared.QueryResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryResult_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -11145,26 +12555,24 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ queryState_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -11178,19 +12586,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryResult_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryResult getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.QueryResult.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryResult build() {
org.apache.drill.exec.proto.UserBitShared.QueryResult result = buildPartial();
if (!result.isInitialized()) {
@@ -11199,6 +12606,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryResult buildPartial() {
org.apache.drill.exec.proto.UserBitShared.QueryResult result = new org.apache.drill.exec.proto.UserBitShared.QueryResult(this);
int from_bitField0_ = bitField0_;
@@ -11229,6 +12637,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.QueryResult) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.QueryResult)other);
@@ -11265,21 +12706,24 @@ public final class UserBitShared {
error_ = other.error_;
bitField0_ = (bitField0_ & ~0x00000004);
errorBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getErrorFieldBuilder() : null;
} else {
errorBuilder_.addAllMessages(other.error_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -11289,7 +12733,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.QueryResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -11299,8 +12743,7 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.QueryResult.QueryState query_state = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ private int queryState_ = 0;
/**
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
*/
@@ -11311,7 +12754,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getQueryState() {
- return queryState_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(queryState_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
/**
* <code>optional .exec.shared.QueryResult.QueryState query_state = 1;</code>
@@ -11321,7 +12766,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- queryState_ = value;
+ queryState_ = value.getNumber();
onChanged();
return this;
}
@@ -11330,14 +12775,13 @@ public final class UserBitShared {
*/
public Builder clearQueryState() {
bitField0_ = (bitField0_ & ~0x00000001);
- queryState_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ queryState_ = 0;
onChanged();
return this;
}
- // optional .exec.shared.QueryId query_id = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
@@ -11350,7 +12794,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -11391,6 +12835,7 @@ public final class UserBitShared {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -11409,7 +12854,7 @@ public final class UserBitShared {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -11432,19 +12877,20 @@ public final class UserBitShared {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -11452,7 +12898,6 @@ public final class UserBitShared {
return queryIdBuilder_;
}
- // repeated .exec.shared.DrillPBError error = 3;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.DrillPBError> error_ =
java.util.Collections.emptyList();
private void ensureErrorIsMutable() {
@@ -11462,7 +12907,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
@@ -11594,7 +13039,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.DrillPBError> values) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
- super.addAll(values, error_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, error_);
onChanged();
} else {
errorBuilder_.addAllMessages(values);
@@ -11677,11 +13123,11 @@ public final class UserBitShared {
getErrorBuilderList() {
return getErrorFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
error_,
((bitField0_ & 0x00000004) == 0x00000004),
@@ -11691,22 +13137,63 @@ public final class UserBitShared {
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.QueryResult)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.QueryResult)
+ private static final org.apache.drill.exec.proto.UserBitShared.QueryResult DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryResult(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.QueryResult();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryResult>
+ PARSER = new com.google.protobuf.AbstractParser<QueryResult>() {
+ @java.lang.Override
+ public QueryResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryResult(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryResult> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryResult> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.QueryResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.QueryResult)
}
- public interface QueryDataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryDataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.QueryData)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId query_id = 1;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
@@ -11720,7 +13207,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // optional int32 row_count = 2;
/**
* <code>optional int32 row_count = 2;</code>
*/
@@ -11730,7 +13216,6 @@ public final class UserBitShared {
*/
int getRowCount();
- // optional .exec.shared.RecordBatchDef def = 3;
/**
* <code>optional .exec.shared.RecordBatchDef def = 3;</code>
*/
@@ -11744,7 +13229,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder();
- // optional int32 affected_rows_count = 4;
/**
* <code>optional int32 affected_rows_count = 4;</code>
*/
@@ -11755,43 +13239,39 @@ public final class UserBitShared {
int getAffectedRowsCount();
}
/**
- * Protobuf type {@code exec.shared.QueryData}
- *
* <pre>
- *
* Used by the server when sending query result data batches to the client
* </pre>
+ *
+ * Protobuf type {@code exec.shared.QueryData}
*/
- public static final class QueryData extends
- com.google.protobuf.GeneratedMessage
- implements QueryDataOrBuilder {
+ public static final class QueryData extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.QueryData)
+ QueryDataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryData.newBuilder() to construct.
- private QueryData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private QueryData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryData defaultInstance;
- public static QueryData getDefaultInstance() {
- return defaultInstance;
}
-
- public QueryData getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryData() {
+ rowCount_ = 0;
+ affectedRowsCount_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -11803,13 +13283,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -11846,13 +13319,20 @@ public final class UserBitShared {
affectedRowsCount_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -11863,30 +13343,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryData_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.QueryData.class, org.apache.drill.exec.proto.UserBitShared.QueryData.Builder.class);
}
- public static com.google.protobuf.Parser<QueryData> PARSER =
- new com.google.protobuf.AbstractParser<QueryData>() {
- public QueryData parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryData(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryData> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
public static final int QUERY_ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -11899,16 +13364,15 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // optional int32 row_count = 2;
public static final int ROW_COUNT_FIELD_NUMBER = 2;
private int rowCount_;
/**
@@ -11924,7 +13388,6 @@ public final class UserBitShared {
return rowCount_;
}
- // optional .exec.shared.RecordBatchDef def = 3;
public static final int DEF_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_;
/**
@@ -11937,16 +13400,15 @@ public final class UserBitShared {
* <code>optional .exec.shared.RecordBatchDef def = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
/**
* <code>optional .exec.shared.RecordBatchDef def = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder() {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
- // optional int32 affected_rows_count = 4;
public static final int AFFECTED_ROWS_COUNT_FIELD_NUMBER = 4;
private int affectedRowsCount_;
/**
@@ -11962,48 +13424,44 @@ public final class UserBitShared {
return affectedRowsCount_;
}
- private void initFields() {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- rowCount_ = 0;
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
- affectedRowsCount_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, queryId_);
+ output.writeMessage(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, rowCount_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, def_);
+ output.writeMessage(3, getDef());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, affectedRowsCount_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, queryId_);
+ .computeMessageSize(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -12011,24 +13469,91 @@ public final class UserBitShared {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, def_);
+ .computeMessageSize(3, getDef());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, affectedRowsCount_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.QueryData)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.QueryData other = (org.apache.drill.exec.proto.UserBitShared.QueryData) obj;
+
+ boolean result = true;
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && (hasRowCount() == other.hasRowCount());
+ if (hasRowCount()) {
+ result = result && (getRowCount()
+ == other.getRowCount());
+ }
+ result = result && (hasDef() == other.hasDef());
+ if (hasDef()) {
+ result = result && getDef()
+ .equals(other.getDef());
+ }
+ result = result && (hasAffectedRowsCount() == other.hasAffectedRowsCount());
+ if (hasAffectedRowsCount()) {
+ result = result && (getAffectedRowsCount()
+ == other.getAffectedRowsCount());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (hasRowCount()) {
+ hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRowCount();
+ }
+ if (hasDef()) {
+ hash = (37 * hash) + DEF_FIELD_NUMBER;
+ hash = (53 * hash) + getDef().hashCode();
+ }
+ if (hasAffectedRowsCount()) {
+ hash = (37 * hash) + AFFECTED_ROWS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAffectedRowsCount();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -12052,66 +13577,80 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.QueryData prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.shared.QueryData}
- *
* <pre>
- *
* Used by the server when sending query result data batches to the client
* </pre>
+ *
+ * Protobuf type {@code exec.shared.QueryData}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.QueryDataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.QueryData)
+ org.apache.drill.exec.proto.UserBitShared.QueryDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryData_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -12124,24 +13663,22 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
getDefFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -12149,7 +13686,7 @@ public final class UserBitShared {
rowCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (defBuilder_ == null) {
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
+ def_ = null;
} else {
defBuilder_.clear();
}
@@ -12159,19 +13696,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryData_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryData getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.QueryData.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryData build() {
org.apache.drill.exec.proto.UserBitShared.QueryData result = buildPartial();
if (!result.isInitialized()) {
@@ -12180,6 +13716,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryData buildPartial() {
org.apache.drill.exec.proto.UserBitShared.QueryData result = new org.apache.drill.exec.proto.UserBitShared.QueryData(this);
int from_bitField0_ = bitField0_;
@@ -12213,6 +13750,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.QueryData) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.QueryData)other);
@@ -12236,14 +13806,17 @@ public final class UserBitShared {
if (other.hasAffectedRowsCount()) {
setAffectedRowsCount(other.getAffectedRowsCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -12253,7 +13826,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.QueryData) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -12263,9 +13836,8 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
@@ -12278,7 +13850,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -12319,6 +13891,7 @@ public final class UserBitShared {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -12337,7 +13910,7 @@ public final class UserBitShared {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -12360,19 +13933,20 @@ public final class UserBitShared {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -12380,7 +13954,6 @@ public final class UserBitShared {
return queryIdBuilder_;
}
- // optional int32 row_count = 2;
private int rowCount_ ;
/**
* <code>optional int32 row_count = 2;</code>
@@ -12413,9 +13986,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.shared.RecordBatchDef def = 3;
- private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.RecordBatchDef def_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder> defBuilder_;
/**
* <code>optional .exec.shared.RecordBatchDef def = 3;</code>
@@ -12428,7 +14000,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef() {
if (defBuilder_ == null) {
- return def_;
+ return def_ == null ? org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
} else {
return defBuilder_.getMessage();
}
@@ -12469,6 +14041,7 @@ public final class UserBitShared {
public Builder mergeDef(org.apache.drill.exec.proto.UserBitShared.RecordBatchDef value) {
if (defBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ def_ != null &&
def_ != org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance()) {
def_ =
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.newBuilder(def_).mergeFrom(value).buildPartial();
@@ -12487,7 +14060,7 @@ public final class UserBitShared {
*/
public Builder clearDef() {
if (defBuilder_ == null) {
- def_ = org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance();
+ def_ = null;
onChanged();
} else {
defBuilder_.clear();
@@ -12510,19 +14083,20 @@ public final class UserBitShared {
if (defBuilder_ != null) {
return defBuilder_.getMessageOrBuilder();
} else {
- return def_;
+ return def_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.getDefaultInstance() : def_;
}
}
/**
* <code>optional .exec.shared.RecordBatchDef def = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>
getDefFieldBuilder() {
if (defBuilder_ == null) {
- defBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ defBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>(
- def_,
+ getDef(),
getParentForChildren(),
isClean());
def_ = null;
@@ -12530,7 +14104,6 @@ public final class UserBitShared {
return defBuilder_;
}
- // optional int32 affected_rows_count = 4;
private int affectedRowsCount_ ;
/**
* <code>optional int32 affected_rows_count = 4;</code>
@@ -12562,22 +14135,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.QueryData)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.QueryData)
+ private static final org.apache.drill.exec.proto.UserBitShared.QueryData DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryData(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.QueryData();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryData>
+ PARSER = new com.google.protobuf.AbstractParser<QueryData>() {
+ @java.lang.Override
+ public QueryData parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryData(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryData> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryData> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.QueryData getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.QueryData)
}
- public interface QueryInfoOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryInfoOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.QueryInfo)
+ com.google.protobuf.MessageOrBuilder {
- // optional string query = 1;
/**
* <code>optional string query = 1;</code>
*/
@@ -12592,7 +14206,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getQueryBytes();
- // optional int64 start = 2;
/**
* <code>optional int64 start = 2;</code>
*/
@@ -12602,7 +14215,6 @@ public final class UserBitShared {
*/
long getStart();
- // optional .exec.shared.QueryResult.QueryState state = 3;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
*/
@@ -12612,7 +14224,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState();
- // optional string user = 4 [default = "-"];
/**
* <code>optional string user = 4 [default = "-"];</code>
*/
@@ -12627,7 +14238,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getUserBytes();
- // optional .exec.DrillbitEndpoint foreman = 5;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 5;</code>
*/
@@ -12641,7 +14251,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder();
- // optional string options_json = 6;
/**
* <code>optional string options_json = 6;</code>
*/
@@ -12656,7 +14265,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getOptionsJsonBytes();
- // optional double total_cost = 7;
/**
* <code>optional double total_cost = 7;</code>
*/
@@ -12666,7 +14274,6 @@ public final class UserBitShared {
*/
double getTotalCost();
- // optional string queue_name = 8 [default = "-"];
/**
* <code>optional string queue_name = 8 [default = "-"];</code>
*/
@@ -12684,36 +14291,38 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.QueryInfo}
*/
- public static final class QueryInfo extends
- com.google.protobuf.GeneratedMessage
- implements QueryInfoOrBuilder {
+ public static final class QueryInfo extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.QueryInfo)
+ QueryInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryInfo.newBuilder() to construct.
- private QueryInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private QueryInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryInfo defaultInstance;
- public static QueryInfo getDefaultInstance() {
- return defaultInstance;
}
-
- public QueryInfo getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryInfo() {
+ query_ = "";
+ start_ = 0L;
+ state_ = 0;
+ user_ = "-";
+ optionsJson_ = "";
+ totalCost_ = 0D;
+ queueName_ = "-";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -12725,16 +14334,10 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- query_ = input.readBytes();
+ query_ = bs;
break;
}
case 16: {
@@ -12744,18 +14347,20 @@ public final class UserBitShared {
}
case 24: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
- state_ = value;
+ state_ = rawValue;
}
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- user_ = input.readBytes();
+ user_ = bs;
break;
}
case 42: {
@@ -12772,8 +14377,9 @@ public final class UserBitShared {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- optionsJson_ = input.readBytes();
+ optionsJson_ = bs;
break;
}
case 57: {
@@ -12782,8 +14388,16 @@ public final class UserBitShared {
break;
}
case 66: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- queueName_ = input.readBytes();
+ queueName_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -12792,7 +14406,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -12803,32 +14417,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.QueryInfo.class, org.apache.drill.exec.proto.UserBitShared.QueryInfo.Builder.class);
}
- public static com.google.protobuf.Parser<QueryInfo> PARSER =
- new com.google.protobuf.AbstractParser<QueryInfo>() {
- public QueryInfo parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryInfo(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryInfo> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string query = 1;
public static final int QUERY_FIELD_NUMBER = 1;
- private java.lang.Object query_;
+ private volatile java.lang.Object query_;
/**
* <code>optional string query = 1;</code>
*/
@@ -12869,7 +14468,6 @@ public final class UserBitShared {
}
}
- // optional int64 start = 2;
public static final int START_FIELD_NUMBER = 2;
private long start_;
/**
@@ -12885,9 +14483,8 @@ public final class UserBitShared {
return start_;
}
- // optional .exec.shared.QueryResult.QueryState state = 3;
public static final int STATE_FIELD_NUMBER = 3;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state_;
+ private int state_;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
*/
@@ -12898,12 +14495,13 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
- // optional string user = 4 [default = "-"];
public static final int USER_FIELD_NUMBER = 4;
- private java.lang.Object user_;
+ private volatile java.lang.Object user_;
/**
* <code>optional string user = 4 [default = "-"];</code>
*/
@@ -12944,7 +14542,6 @@ public final class UserBitShared {
}
}
- // optional .exec.DrillbitEndpoint foreman = 5;
public static final int FOREMAN_FIELD_NUMBER = 5;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_;
/**
@@ -12957,18 +14554,17 @@ public final class UserBitShared {
* <code>optional .exec.DrillbitEndpoint foreman = 5;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 5;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
- // optional string options_json = 6;
public static final int OPTIONS_JSON_FIELD_NUMBER = 6;
- private java.lang.Object optionsJson_;
+ private volatile java.lang.Object optionsJson_;
/**
* <code>optional string options_json = 6;</code>
*/
@@ -13009,7 +14605,6 @@ public final class UserBitShared {
}
}
- // optional double total_cost = 7;
public static final int TOTAL_COST_FIELD_NUMBER = 7;
private double totalCost_;
/**
@@ -13025,9 +14620,8 @@ public final class UserBitShared {
return totalCost_;
}
- // optional string queue_name = 8 [default = "-"];
public static final int QUEUE_NAME_FIELD_NUMBER = 8;
- private java.lang.Object queueName_;
+ private volatile java.lang.Object queueName_;
/**
* <code>optional string queue_name = 8 [default = "-"];</code>
*/
@@ -13068,64 +14662,55 @@ public final class UserBitShared {
}
}
- private void initFields() {
- query_ = "";
- start_ = 0L;
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
- user_ = "-";
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- optionsJson_ = "";
- totalCost_ = 0D;
- queueName_ = "-";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getQueryBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, start_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, state_.getNumber());
+ output.writeEnum(3, state_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getUserBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, foreman_);
+ output.writeMessage(5, getForeman());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getOptionsJsonBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, optionsJson_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeDouble(7, totalCost_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getQueueNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, queueName_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getQueryBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -13133,41 +14718,144 @@ public final class UserBitShared {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, state_.getNumber());
+ .computeEnumSize(3, state_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getUserBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, foreman_);
+ .computeMessageSize(5, getForeman());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getOptionsJsonBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, optionsJson_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, totalCost_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getQueueNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, queueName_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.QueryInfo)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.QueryInfo other = (org.apache.drill.exec.proto.UserBitShared.QueryInfo) obj;
+
+ boolean result = true;
+ result = result && (hasQuery() == other.hasQuery());
+ if (hasQuery()) {
+ result = result && getQuery()
+ .equals(other.getQuery());
+ }
+ result = result && (hasStart() == other.hasStart());
+ if (hasStart()) {
+ result = result && (getStart()
+ == other.getStart());
+ }
+ result = result && (hasState() == other.hasState());
+ if (hasState()) {
+ result = result && state_ == other.state_;
+ }
+ result = result && (hasUser() == other.hasUser());
+ if (hasUser()) {
+ result = result && getUser()
+ .equals(other.getUser());
+ }
+ result = result && (hasForeman() == other.hasForeman());
+ if (hasForeman()) {
+ result = result && getForeman()
+ .equals(other.getForeman());
+ }
+ result = result && (hasOptionsJson() == other.hasOptionsJson());
+ if (hasOptionsJson()) {
+ result = result && getOptionsJson()
+ .equals(other.getOptionsJson());
+ }
+ result = result && (hasTotalCost() == other.hasTotalCost());
+ if (hasTotalCost()) {
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTotalCost())
+ == java.lang.Double.doubleToLongBits(
+ other.getTotalCost()));
+ }
+ result = result && (hasQueueName() == other.hasQueueName());
+ if (hasQueueName()) {
+ result = result && getQueueName()
+ .equals(other.getQueueName());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (hasStart()) {
+ hash = (37 * hash) + START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getStart());
+ }
+ if (hasState()) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ }
+ if (hasUser()) {
+ hash = (37 * hash) + USER_FIELD_NUMBER;
+ hash = (53 * hash) + getUser().hashCode();
+ }
+ if (hasForeman()) {
+ hash = (37 * hash) + FOREMAN_FIELD_NUMBER;
+ hash = (53 * hash) + getForeman().hashCode();
+ }
+ if (hasOptionsJson()) {
+ hash = (37 * hash) + OPTIONS_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionsJson().hashCode();
+ }
+ if (hasTotalCost()) {
+ hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTotalCost()));
+ }
+ if (hasQueueName()) {
+ hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getQueueName().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -13190,46 +14878,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.QueryInfo prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -13237,14 +14938,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.QueryInfo}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.QueryInfoOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.QueryInfo)
+ org.apache.drill.exec.proto.UserBitShared.QueryInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -13257,31 +14960,29 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getForemanFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
query_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
start_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ state_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
user_ = "-";
bitField0_ = (bitField0_ & ~0x00000008);
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
} else {
foremanBuilder_.clear();
}
@@ -13295,19 +14996,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryInfo_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryInfo getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.QueryInfo.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryInfo build() {
org.apache.drill.exec.proto.UserBitShared.QueryInfo result = buildPartial();
if (!result.isInitialized()) {
@@ -13316,6 +15016,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryInfo buildPartial() {
org.apache.drill.exec.proto.UserBitShared.QueryInfo result = new org.apache.drill.exec.proto.UserBitShared.QueryInfo(this);
int from_bitField0_ = bitField0_;
@@ -13361,6 +15062,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.QueryInfo) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.QueryInfo)other);
@@ -13404,14 +15138,17 @@ public final class UserBitShared {
queueName_ = other.queueName_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -13421,7 +15158,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.QueryInfo) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -13431,7 +15168,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string query = 1;
private java.lang.Object query_ = "";
/**
* <code>optional string query = 1;</code>
@@ -13445,9 +15181,12 @@ public final class UserBitShared {
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- query_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ query_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -13505,7 +15244,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 start = 2;
private long start_ ;
/**
* <code>optional int64 start = 2;</code>
@@ -13538,8 +15276,7 @@ public final class UserBitShared {
return this;
}
- // optional .exec.shared.QueryResult.QueryState state = 3;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ private int state_ = 0;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
*/
@@ -13550,7 +15287,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 3;</code>
@@ -13560,7 +15299,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
- state_ = value;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -13569,12 +15308,11 @@ public final class UserBitShared {
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ state_ = 0;
onChanged();
return this;
}
- // optional string user = 4 [default = "-"];
private java.lang.Object user_ = "-";
/**
* <code>optional string user = 4 [default = "-"];</code>
@@ -13588,9 +15326,12 @@ public final class UserBitShared {
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- user_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ user_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -13648,9 +15389,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.DrillbitEndpoint foreman = 5;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> foremanBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 5;</code>
@@ -13663,7 +15403,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
if (foremanBuilder_ == null) {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
} else {
return foremanBuilder_.getMessage();
}
@@ -13704,6 +15444,7 @@ public final class UserBitShared {
public Builder mergeForeman(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (foremanBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ foreman_ != null &&
foreman_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
foreman_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(foreman_).mergeFrom(value).buildPartial();
@@ -13722,7 +15463,7 @@ public final class UserBitShared {
*/
public Builder clearForeman() {
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
onChanged();
} else {
foremanBuilder_.clear();
@@ -13745,19 +15486,20 @@ public final class UserBitShared {
if (foremanBuilder_ != null) {
return foremanBuilder_.getMessageOrBuilder();
} else {
- return foreman_;
+ return foreman_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getForemanFieldBuilder() {
if (foremanBuilder_ == null) {
- foremanBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ foremanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- foreman_,
+ getForeman(),
getParentForChildren(),
isClean());
foreman_ = null;
@@ -13765,7 +15507,6 @@ public final class UserBitShared {
return foremanBuilder_;
}
- // optional string options_json = 6;
private java.lang.Object optionsJson_ = "";
/**
* <code>optional string options_json = 6;</code>
@@ -13779,9 +15520,12 @@ public final class UserBitShared {
public java.lang.String getOptionsJson() {
java.lang.Object ref = optionsJson_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- optionsJson_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ optionsJson_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -13839,7 +15583,6 @@ public final class UserBitShared {
return this;
}
- // optional double total_cost = 7;
private double totalCost_ ;
/**
* <code>optional double total_cost = 7;</code>
@@ -13872,7 +15615,6 @@ public final class UserBitShared {
return this;
}
- // optional string queue_name = 8 [default = "-"];
private java.lang.Object queueName_ = "-";
/**
* <code>optional string queue_name = 8 [default = "-"];</code>
@@ -13886,9 +15628,12 @@ public final class UserBitShared {
public java.lang.String getQueueName() {
java.lang.Object ref = queueName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- queueName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ queueName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -13945,22 +15690,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.QueryInfo)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.QueryInfo)
+ private static final org.apache.drill.exec.proto.UserBitShared.QueryInfo DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryInfo(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.QueryInfo();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryInfo>
+ PARSER = new com.google.protobuf.AbstractParser<QueryInfo>() {
+ @java.lang.Override
+ public QueryInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryInfo(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryInfo> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryInfo> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.QueryInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.QueryInfo)
}
- public interface QueryProfileOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.QueryProfile)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId id = 1;
/**
* <code>optional .exec.shared.QueryId id = 1;</code>
*/
@@ -13974,7 +15760,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getIdOrBuilder();
- // optional .exec.shared.QueryType type = 2;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -13984,7 +15769,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryType getType();
- // optional int64 start = 3;
/**
* <code>optional int64 start = 3;</code>
*/
@@ -13994,7 +15778,6 @@ public final class UserBitShared {
*/
long getStart();
- // optional int64 end = 4;
/**
* <code>optional int64 end = 4;</code>
*/
@@ -14004,7 +15787,6 @@ public final class UserBitShared {
*/
long getEnd();
- // optional string query = 5;
/**
* <code>optional string query = 5;</code>
*/
@@ -14019,7 +15801,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getQueryBytes();
- // optional string plan = 6;
/**
* <code>optional string plan = 6;</code>
*/
@@ -14034,7 +15815,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getPlanBytes();
- // optional .exec.DrillbitEndpoint foreman = 7;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 7;</code>
*/
@@ -14048,7 +15828,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder();
- // optional .exec.shared.QueryResult.QueryState state = 8;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
*/
@@ -14058,7 +15837,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState();
- // optional int32 total_fragments = 9;
/**
* <code>optional int32 total_fragments = 9;</code>
*/
@@ -14068,7 +15846,6 @@ public final class UserBitShared {
*/
int getTotalFragments();
- // optional int32 finished_fragments = 10;
/**
* <code>optional int32 finished_fragments = 10;</code>
*/
@@ -14078,7 +15855,6 @@ public final class UserBitShared {
*/
int getFinishedFragments();
- // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
/**
* <code>repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;</code>
*/
@@ -14103,7 +15879,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder getFragmentProfileOrBuilder(
int index);
- // optional string user = 12 [default = "-"];
/**
* <code>optional string user = 12 [default = "-"];</code>
*/
@@ -14118,7 +15893,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getUserBytes();
- // optional string error = 13;
/**
* <code>optional string error = 13;</code>
*/
@@ -14133,7 +15907,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getErrorBytes();
- // optional string verboseError = 14;
/**
* <code>optional string verboseError = 14;</code>
*/
@@ -14148,7 +15921,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getVerboseErrorBytes();
- // optional string error_id = 15;
/**
* <code>optional string error_id = 15;</code>
*/
@@ -14163,7 +15935,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getErrorIdBytes();
- // optional string error_node = 16;
/**
* <code>optional string error_node = 16;</code>
*/
@@ -14178,7 +15949,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getErrorNodeBytes();
- // optional string options_json = 17;
/**
* <code>optional string options_json = 17;</code>
*/
@@ -14193,7 +15963,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getOptionsJsonBytes();
- // optional int64 planEnd = 18;
/**
* <code>optional int64 planEnd = 18;</code>
*/
@@ -14203,7 +15972,6 @@ public final class UserBitShared {
*/
long getPlanEnd();
- // optional int64 queueWaitEnd = 19;
/**
* <code>optional int64 queueWaitEnd = 19;</code>
*/
@@ -14213,7 +15981,6 @@ public final class UserBitShared {
*/
long getQueueWaitEnd();
- // optional double total_cost = 20;
/**
* <code>optional double total_cost = 20;</code>
*/
@@ -14223,7 +15990,6 @@ public final class UserBitShared {
*/
double getTotalCost();
- // optional string queue_name = 21 [default = "-"];
/**
* <code>optional string queue_name = 21 [default = "-"];</code>
*/
@@ -14238,7 +16004,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getQueueNameBytes();
- // optional string queryId = 22;
/**
* <code>optional string queryId = 22;</code>
*/
@@ -14256,36 +16021,51 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.QueryProfile}
*/
- public static final class QueryProfile extends
- com.google.protobuf.GeneratedMessage
- implements QueryProfileOrBuilder {
+ public static final class QueryProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.QueryProfile)
+ QueryProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryProfile.newBuilder() to construct.
- private QueryProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private QueryProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryProfile defaultInstance;
- public static QueryProfile getDefaultInstance() {
- return defaultInstance;
- }
-
- public QueryProfile getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryProfile() {
+ type_ = 1;
+ start_ = 0L;
+ end_ = 0L;
+ query_ = "";
+ plan_ = "";
+ state_ = 0;
+ totalFragments_ = 0;
+ finishedFragments_ = 0;
+ fragmentProfile_ = java.util.Collections.emptyList();
+ user_ = "-";
+ error_ = "";
+ verboseError_ = "";
+ errorId_ = "";
+ errorNode_ = "";
+ optionsJson_ = "";
+ planEnd_ = 0L;
+ queueWaitEnd_ = 0L;
+ totalCost_ = 0D;
+ queueName_ = "-";
+ queryId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -14297,13 +16077,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -14319,12 +16092,13 @@ public final class UserBitShared {
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryType value = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = rawValue;
}
break;
}
@@ -14339,13 +16113,15 @@ public final class UserBitShared {
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
- query_ = input.readBytes();
+ query_ = bs;
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- plan_ = input.readBytes();
+ plan_ = bs;
break;
}
case 58: {
@@ -14363,12 +16139,13 @@ public final class UserBitShared {
}
case 64: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(8, rawValue);
} else {
bitField0_ |= 0x00000080;
- state_ = value;
+ state_ = rawValue;
}
break;
}
@@ -14387,37 +16164,44 @@ public final class UserBitShared {
fragmentProfile_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile>();
mutable_bitField0_ |= 0x00000400;
}
- fragmentProfile_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.PARSER, extensionRegistry));
+ fragmentProfile_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.PARSER, extensionRegistry));
break;
}
case 98: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
- user_ = input.readBytes();
+ user_ = bs;
break;
}
case 106: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
- error_ = input.readBytes();
+ error_ = bs;
break;
}
case 114: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
- verboseError_ = input.readBytes();
+ verboseError_ = bs;
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
- errorId_ = input.readBytes();
+ errorId_ = bs;
break;
}
case 130: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- errorNode_ = input.readBytes();
+ errorNode_ = bs;
break;
}
case 138: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
- optionsJson_ = input.readBytes();
+ optionsJson_ = bs;
break;
}
case 144: {
@@ -14436,13 +16220,22 @@ public final class UserBitShared {
break;
}
case 170: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00080000;
- queueName_ = input.readBytes();
+ queueName_ = bs;
break;
}
case 178: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00100000;
- queryId_ = input.readBytes();
+ queryId_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -14451,7 +16244,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
fragmentProfile_ = java.util.Collections.unmodifiableList(fragmentProfile_);
@@ -14465,30 +16258,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.QueryProfile.class, org.apache.drill.exec.proto.UserBitShared.QueryProfile.Builder.class);
}
- public static com.google.protobuf.Parser<QueryProfile> PARSER =
- new com.google.protobuf.AbstractParser<QueryProfile>() {
- public QueryProfile parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryProfile(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryProfile> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId id = 1;
public static final int ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId id_;
/**
@@ -14501,18 +16279,17 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryId id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getId() {
- return id_;
+ return id_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : id_;
}
/**
* <code>optional .exec.shared.QueryId id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getIdOrBuilder() {
- return id_;
+ return id_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : id_;
}
- // optional .exec.shared.QueryType type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_;
+ private int type_;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -14523,10 +16300,11 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
- // optional int64 start = 3;
public static final int START_FIELD_NUMBER = 3;
private long start_;
/**
@@ -14542,7 +16320,6 @@ public final class UserBitShared {
return start_;
}
- // optional int64 end = 4;
public static final int END_FIELD_NUMBER = 4;
private long end_;
/**
@@ -14558,9 +16335,8 @@ public final class UserBitShared {
return end_;
}
- // optional string query = 5;
public static final int QUERY_FIELD_NUMBER = 5;
- private java.lang.Object query_;
+ private volatile java.lang.Object query_;
/**
* <code>optional string query = 5;</code>
*/
@@ -14601,9 +16377,8 @@ public final class UserBitShared {
}
}
- // optional string plan = 6;
public static final int PLAN_FIELD_NUMBER = 6;
- private java.lang.Object plan_;
+ private volatile java.lang.Object plan_;
/**
* <code>optional string plan = 6;</code>
*/
@@ -14644,7 +16419,6 @@ public final class UserBitShared {
}
}
- // optional .exec.DrillbitEndpoint foreman = 7;
public static final int FOREMAN_FIELD_NUMBER = 7;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_;
/**
@@ -14657,18 +16431,17 @@ public final class UserBitShared {
* <code>optional .exec.DrillbitEndpoint foreman = 7;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 7;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getForemanOrBuilder() {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
- // optional .exec.shared.QueryResult.QueryState state = 8;
public static final int STATE_FIELD_NUMBER = 8;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state_;
+ private int state_;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
*/
@@ -14679,10 +16452,11 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
- // optional int32 total_fragments = 9;
public static final int TOTAL_FRAGMENTS_FIELD_NUMBER = 9;
private int totalFragments_;
/**
@@ -14698,7 +16472,6 @@ public final class UserBitShared {
return totalFragments_;
}
- // optional int32 finished_fragments = 10;
public static final int FINISHED_FRAGMENTS_FIELD_NUMBER = 10;
private int finishedFragments_;
/**
@@ -14714,7 +16487,6 @@ public final class UserBitShared {
return finishedFragments_;
}
- // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
public static final int FRAGMENT_PROFILE_FIELD_NUMBER = 11;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile> fragmentProfile_;
/**
@@ -14750,9 +16522,8 @@ public final class UserBitShared {
return fragmentProfile_.get(index);
}
- // optional string user = 12 [default = "-"];
public static final int USER_FIELD_NUMBER = 12;
- private java.lang.Object user_;
+ private volatile java.lang.Object user_;
/**
* <code>optional string user = 12 [default = "-"];</code>
*/
@@ -14793,9 +16564,8 @@ public final class UserBitShared {
}
}
- // optional string error = 13;
public static final int ERROR_FIELD_NUMBER = 13;
- private java.lang.Object error_;
+ private volatile java.lang.Object error_;
/**
* <code>optional string error = 13;</code>
*/
@@ -14836,9 +16606,8 @@ public final class UserBitShared {
}
}
- // optional string verboseError = 14;
public static final int VERBOSEERROR_FIELD_NUMBER = 14;
- private java.lang.Object verboseError_;
+ private volatile java.lang.Object verboseError_;
/**
* <code>optional string verboseError = 14;</code>
*/
@@ -14879,9 +16648,8 @@ public final class UserBitShared {
}
}
- // optional string error_id = 15;
public static final int ERROR_ID_FIELD_NUMBER = 15;
- private java.lang.Object errorId_;
+ private volatile java.lang.Object errorId_;
/**
* <code>optional string error_id = 15;</code>
*/
@@ -14922,9 +16690,8 @@ public final class UserBitShared {
}
}
- // optional string error_node = 16;
public static final int ERROR_NODE_FIELD_NUMBER = 16;
- private java.lang.Object errorNode_;
+ private volatile java.lang.Object errorNode_;
/**
* <code>optional string error_node = 16;</code>
*/
@@ -14965,9 +16732,8 @@ public final class UserBitShared {
}
}
- // optional string options_json = 17;
public static final int OPTIONS_JSON_FIELD_NUMBER = 17;
- private java.lang.Object optionsJson_;
+ private volatile java.lang.Object optionsJson_;
/**
* <code>optional string options_json = 17;</code>
*/
@@ -15008,7 +16774,6 @@ public final class UserBitShared {
}
}
- // optional int64 planEnd = 18;
public static final int PLANEND_FIELD_NUMBER = 18;
private long planEnd_;
/**
@@ -15024,7 +16789,6 @@ public final class UserBitShared {
return planEnd_;
}
- // optional int64 queueWaitEnd = 19;
public static final int QUEUEWAITEND_FIELD_NUMBER = 19;
private long queueWaitEnd_;
/**
@@ -15040,7 +16804,6 @@ public final class UserBitShared {
return queueWaitEnd_;
}
- // optional double total_cost = 20;
public static final int TOTAL_COST_FIELD_NUMBER = 20;
private double totalCost_;
/**
@@ -15056,9 +16819,8 @@ public final class UserBitShared {
return totalCost_;
}
- // optional string queue_name = 21 [default = "-"];
public static final int QUEUE_NAME_FIELD_NUMBER = 21;
- private java.lang.Object queueName_;
+ private volatile java.lang.Object queueName_;
/**
* <code>optional string queue_name = 21 [default = "-"];</code>
*/
@@ -15099,9 +16861,8 @@ public final class UserBitShared {
}
}
- // optional string queryId = 22;
public static final int QUERYID_FIELD_NUMBER = 22;
- private java.lang.Object queryId_;
+ private volatile java.lang.Object queryId_;
/**
* <code>optional string queryId = 22;</code>
*/
@@ -15142,47 +16903,25 @@ public final class UserBitShared {
}
}
- private void initFields() {
- id_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
- start_ = 0L;
- end_ = 0L;
- query_ = "";
- plan_ = "";
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
- totalFragments_ = 0;
- finishedFragments_ = 0;
- fragmentProfile_ = java.util.Collections.emptyList();
- user_ = "-";
- error_ = "";
- verboseError_ = "";
- errorId_ = "";
- errorNode_ = "";
- optionsJson_ = "";
- planEnd_ = 0L;
- queueWaitEnd_ = 0L;
- totalCost_ = 0D;
- queueName_ = "-";
- queryId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, id_);
+ output.writeMessage(1, getId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, type_.getNumber());
+ output.writeEnum(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, start_);
@@ -15191,16 +16930,16 @@ public final class UserBitShared {
output.writeInt64(4, end_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getQueryBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, query_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getPlanBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, plan_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeMessage(7, foreman_);
+ output.writeMessage(7, getForeman());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeEnum(8, state_.getNumber());
+ output.writeEnum(8, state_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, totalFragments_);
@@ -15212,22 +16951,22 @@ public final class UserBitShared {
output.writeMessage(11, fragmentProfile_.get(i));
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeBytes(12, getUserBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, user_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeBytes(13, getErrorBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeBytes(14, getVerboseErrorBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, verboseError_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeBytes(15, getErrorIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, errorId_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeBytes(16, getErrorNodeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, errorNode_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
- output.writeBytes(17, getOptionsJsonBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 17, optionsJson_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeInt64(18, planEnd_);
@@ -15239,27 +16978,27 @@ public final class UserBitShared {
output.writeDouble(20, totalCost_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
- output.writeBytes(21, getQueueNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 21, queueName_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
- output.writeBytes(22, getQueryIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 22, queryId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, id_);
+ .computeMessageSize(1, getId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, type_.getNumber());
+ .computeEnumSize(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
@@ -15270,20 +17009,18 @@ public final class UserBitShared {
.computeInt64Size(4, end_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getQueryBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, query_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getPlanBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, plan_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, foreman_);
+ .computeMessageSize(7, getForeman());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(8, state_.getNumber());
+ .computeEnumSize(8, state_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
@@ -15298,28 +17035,22 @@ public final class UserBitShared {
.computeMessageSize(11, fragmentProfile_.get(i));
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(12, getUserBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, user_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(13, getErrorBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(14, getVerboseErrorBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, verboseError_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(15, getErrorIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, errorId_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(16, getErrorNodeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, errorNode_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(17, getOptionsJsonBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, optionsJson_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
@@ -15334,26 +17065,255 @@ public final class UserBitShared {
.computeDoubleSize(20, totalCost_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(21, getQueueNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, queueName_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(22, getQueryIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, queryId_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.QueryProfile)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.QueryProfile other = (org.apache.drill.exec.proto.UserBitShared.QueryProfile) obj;
+
+ boolean result = true;
+ result = result && (hasId() == other.hasId());
+ if (hasId()) {
+ result = result && getId()
+ .equals(other.getId());
+ }
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && type_ == other.type_;
+ }
+ result = result && (hasStart() == other.hasStart());
+ if (hasStart()) {
+ result = result && (getStart()
+ == other.getStart());
+ }
+ result = result && (hasEnd() == other.hasEnd());
+ if (hasEnd()) {
+ result = result && (getEnd()
+ == other.getEnd());
+ }
+ result = result && (hasQuery() == other.hasQuery());
+ if (hasQuery()) {
+ result = result && getQuery()
+ .equals(other.getQuery());
+ }
+ result = result && (hasPlan() == other.hasPlan());
+ if (hasPlan()) {
+ result = result && getPlan()
+ .equals(other.getPlan());
+ }
+ result = result && (hasForeman() == other.hasForeman());
+ if (hasForeman()) {
+ result = result && getForeman()
+ .equals(other.getForeman());
+ }
+ result = result && (hasState() == other.hasState());
+ if (hasState()) {
+ result = result && state_ == other.state_;
+ }
+ result = result && (hasTotalFragments() == other.hasTotalFragments());
+ if (hasTotalFragments()) {
+ result = result && (getTotalFragments()
+ == other.getTotalFragments());
+ }
+ result = result && (hasFinishedFragments() == other.hasFinishedFragments());
+ if (hasFinishedFragments()) {
+ result = result && (getFinishedFragments()
+ == other.getFinishedFragments());
+ }
+ result = result && getFragmentProfileList()
+ .equals(other.getFragmentProfileList());
+ result = result && (hasUser() == other.hasUser());
+ if (hasUser()) {
+ result = result && getUser()
+ .equals(other.getUser());
+ }
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && (hasVerboseError() == other.hasVerboseError());
+ if (hasVerboseError()) {
+ result = result && getVerboseError()
+ .equals(other.getVerboseError());
+ }
+ result = result && (hasErrorId() == other.hasErrorId());
+ if (hasErrorId()) {
+ result = result && getErrorId()
+ .equals(other.getErrorId());
+ }
+ result = result && (hasErrorNode() == other.hasErrorNode());
+ if (hasErrorNode()) {
+ result = result && getErrorNode()
+ .equals(other.getErrorNode());
+ }
+ result = result && (hasOptionsJson() == other.hasOptionsJson());
+ if (hasOptionsJson()) {
+ result = result && getOptionsJson()
+ .equals(other.getOptionsJson());
+ }
+ result = result && (hasPlanEnd() == other.hasPlanEnd());
+ if (hasPlanEnd()) {
+ result = result && (getPlanEnd()
+ == other.getPlanEnd());
+ }
+ result = result && (hasQueueWaitEnd() == other.hasQueueWaitEnd());
+ if (hasQueueWaitEnd()) {
+ result = result && (getQueueWaitEnd()
+ == other.getQueueWaitEnd());
+ }
+ result = result && (hasTotalCost() == other.hasTotalCost());
+ if (hasTotalCost()) {
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTotalCost())
+ == java.lang.Double.doubleToLongBits(
+ other.getTotalCost()));
+ }
+ result = result && (hasQueueName() == other.hasQueueName());
+ if (hasQueueName()) {
+ result = result && getQueueName()
+ .equals(other.getQueueName());
+ }
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasId()) {
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasStart()) {
+ hash = (37 * hash) + START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getStart());
+ }
+ if (hasEnd()) {
+ hash = (37 * hash) + END_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getEnd());
+ }
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (hasPlan()) {
+ hash = (37 * hash) + PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + getPlan().hashCode();
+ }
+ if (hasForeman()) {
+ hash = (37 * hash) + FOREMAN_FIELD_NUMBER;
+ hash = (53 * hash) + getForeman().hashCode();
+ }
+ if (hasState()) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ }
+ if (hasTotalFragments()) {
+ hash = (37 * hash) + TOTAL_FRAGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalFragments();
+ }
+ if (hasFinishedFragments()) {
+ hash = (37 * hash) + FINISHED_FRAGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getFinishedFragments();
+ }
+ if (getFragmentProfileCount() > 0) {
+ hash = (37 * hash) + FRAGMENT_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentProfileList().hashCode();
+ }
+ if (hasUser()) {
+ hash = (37 * hash) + USER_FIELD_NUMBER;
+ hash = (53 * hash) + getUser().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ if (hasVerboseError()) {
+ hash = (37 * hash) + VERBOSEERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getVerboseError().hashCode();
+ }
+ if (hasErrorId()) {
+ hash = (37 * hash) + ERROR_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorId().hashCode();
+ }
+ if (hasErrorNode()) {
+ hash = (37 * hash) + ERROR_NODE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorNode().hashCode();
+ }
+ if (hasOptionsJson()) {
+ hash = (37 * hash) + OPTIONS_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionsJson().hashCode();
+ }
+ if (hasPlanEnd()) {
+ hash = (37 * hash) + PLANEND_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPlanEnd());
+ }
+ if (hasQueueWaitEnd()) {
+ hash = (37 * hash) + QUEUEWAITEND_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getQueueWaitEnd());
+ }
+ if (hasTotalCost()) {
+ hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTotalCost()));
+ }
+ if (hasQueueName()) {
+ hash = (37 * hash) + QUEUE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getQueueName().hashCode();
+ }
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERYID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -15376,46 +17336,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.QueryProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.QueryProfile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -15423,14 +17396,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.QueryProfile}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.QueryProfileOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.QueryProfile)
+ org.apache.drill.exec.proto.UserBitShared.QueryProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -15443,30 +17418,28 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getIdFieldBuilder();
getForemanFieldBuilder();
getFragmentProfileFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
- id_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ id_ = null;
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
start_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
@@ -15477,12 +17450,12 @@ public final class UserBitShared {
plan_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
} else {
foremanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ state_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
totalFragments_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
@@ -15519,19 +17492,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_QueryProfile_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryProfile getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.QueryProfile.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryProfile build() {
org.apache.drill.exec.proto.UserBitShared.QueryProfile result = buildPartial();
if (!result.isInitialized()) {
@@ -15540,6 +17512,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.QueryProfile buildPartial() {
org.apache.drill.exec.proto.UserBitShared.QueryProfile result = new org.apache.drill.exec.proto.UserBitShared.QueryProfile(this);
int from_bitField0_ = bitField0_;
@@ -15650,6 +17623,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.QueryProfile) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.QueryProfile)other);
@@ -15714,7 +17720,7 @@ public final class UserBitShared {
fragmentProfile_ = other.fragmentProfile_;
bitField0_ = (bitField0_ & ~0x00000400);
fragmentProfileBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentProfileFieldBuilder() : null;
} else {
fragmentProfileBuilder_.addAllMessages(other.fragmentProfile_);
@@ -15770,14 +17776,17 @@ public final class UserBitShared {
queryId_ = other.queryId_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -15787,7 +17796,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.QueryProfile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -15797,9 +17806,8 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.QueryId id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId id_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId id_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> idBuilder_;
/**
* <code>optional .exec.shared.QueryId id = 1;</code>
@@ -15812,7 +17820,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getId() {
if (idBuilder_ == null) {
- return id_;
+ return id_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
@@ -15853,6 +17861,7 @@ public final class UserBitShared {
public Builder mergeId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ id_ != null &&
id_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
id_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(id_).mergeFrom(value).buildPartial();
@@ -15871,7 +17880,7 @@ public final class UserBitShared {
*/
public Builder clearId() {
if (idBuilder_ == null) {
- id_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ id_ = null;
onChanged();
} else {
idBuilder_.clear();
@@ -15894,19 +17903,20 @@ public final class UserBitShared {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
- return id_;
+ return id_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : id_;
}
}
/**
* <code>optional .exec.shared.QueryId id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
- idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- id_,
+ getId(),
getParentForChildren(),
isClean());
id_ = null;
@@ -15914,8 +17924,7 @@ public final class UserBitShared {
return idBuilder_;
}
- // optional .exec.shared.QueryType type = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ private int type_ = 1;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -15926,7 +17935,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
@@ -15936,7 +17947,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
@@ -15945,12 +17956,11 @@ public final class UserBitShared {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
onChanged();
return this;
}
- // optional int64 start = 3;
private long start_ ;
/**
* <code>optional int64 start = 3;</code>
@@ -15983,7 +17993,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 end = 4;
private long end_ ;
/**
* <code>optional int64 end = 4;</code>
@@ -16016,7 +18025,6 @@ public final class UserBitShared {
return this;
}
- // optional string query = 5;
private java.lang.Object query_ = "";
/**
* <code>optional string query = 5;</code>
@@ -16030,9 +18038,12 @@ public final class UserBitShared {
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- query_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ query_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16090,7 +18101,6 @@ public final class UserBitShared {
return this;
}
- // optional string plan = 6;
private java.lang.Object plan_ = "";
/**
* <code>optional string plan = 6;</code>
@@ -16104,9 +18114,12 @@ public final class UserBitShared {
public java.lang.String getPlan() {
java.lang.Object ref = plan_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- plan_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ plan_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16164,9 +18177,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.DrillbitEndpoint foreman = 7;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint foreman_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> foremanBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint foreman = 7;</code>
@@ -16179,7 +18191,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getForeman() {
if (foremanBuilder_ == null) {
- return foreman_;
+ return foreman_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
} else {
return foremanBuilder_.getMessage();
}
@@ -16220,6 +18232,7 @@ public final class UserBitShared {
public Builder mergeForeman(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (foremanBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
+ foreman_ != null &&
foreman_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
foreman_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(foreman_).mergeFrom(value).buildPartial();
@@ -16238,7 +18251,7 @@ public final class UserBitShared {
*/
public Builder clearForeman() {
if (foremanBuilder_ == null) {
- foreman_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ foreman_ = null;
onChanged();
} else {
foremanBuilder_.clear();
@@ -16261,19 +18274,20 @@ public final class UserBitShared {
if (foremanBuilder_ != null) {
return foremanBuilder_.getMessageOrBuilder();
} else {
- return foreman_;
+ return foreman_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : foreman_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint foreman = 7;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getForemanFieldBuilder() {
if (foremanBuilder_ == null) {
- foremanBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ foremanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- foreman_,
+ getForeman(),
getParentForChildren(),
isClean());
foreman_ = null;
@@ -16281,8 +18295,7 @@ public final class UserBitShared {
return foremanBuilder_;
}
- // optional .exec.shared.QueryResult.QueryState state = 8;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ private int state_ = 0;
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
*/
@@ -16293,7 +18306,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
/**
* <code>optional .exec.shared.QueryResult.QueryState state = 8;</code>
@@ -16303,7 +18318,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
- state_ = value;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -16312,12 +18327,11 @@ public final class UserBitShared {
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000080);
- state_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ state_ = 0;
onChanged();
return this;
}
- // optional int32 total_fragments = 9;
private int totalFragments_ ;
/**
* <code>optional int32 total_fragments = 9;</code>
@@ -16350,7 +18364,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 finished_fragments = 10;
private int finishedFragments_ ;
/**
* <code>optional int32 finished_fragments = 10;</code>
@@ -16383,7 +18396,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile> fragmentProfile_ =
java.util.Collections.emptyList();
private void ensureFragmentProfileIsMutable() {
@@ -16393,7 +18405,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder> fragmentProfileBuilder_;
/**
@@ -16525,7 +18537,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile> values) {
if (fragmentProfileBuilder_ == null) {
ensureFragmentProfileIsMutable();
- super.addAll(values, fragmentProfile_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, fragmentProfile_);
onChanged();
} else {
fragmentProfileBuilder_.addAllMessages(values);
@@ -16608,11 +18621,11 @@ public final class UserBitShared {
getFragmentProfileBuilderList() {
return getFragmentProfileFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder>
getFragmentProfileFieldBuilder() {
if (fragmentProfileBuilder_ == null) {
- fragmentProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fragmentProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder>(
fragmentProfile_,
((bitField0_ & 0x00000400) == 0x00000400),
@@ -16623,7 +18636,6 @@ public final class UserBitShared {
return fragmentProfileBuilder_;
}
- // optional string user = 12 [default = "-"];
private java.lang.Object user_ = "-";
/**
* <code>optional string user = 12 [default = "-"];</code>
@@ -16637,9 +18649,12 @@ public final class UserBitShared {
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- user_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ user_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16697,7 +18712,6 @@ public final class UserBitShared {
return this;
}
- // optional string error = 13;
private java.lang.Object error_ = "";
/**
* <code>optional string error = 13;</code>
@@ -16711,9 +18725,12 @@ public final class UserBitShared {
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- error_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ error_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16771,7 +18788,6 @@ public final class UserBitShared {
return this;
}
- // optional string verboseError = 14;
private java.lang.Object verboseError_ = "";
/**
* <code>optional string verboseError = 14;</code>
@@ -16785,9 +18801,12 @@ public final class UserBitShared {
public java.lang.String getVerboseError() {
java.lang.Object ref = verboseError_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- verboseError_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ verboseError_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16845,7 +18864,6 @@ public final class UserBitShared {
return this;
}
- // optional string error_id = 15;
private java.lang.Object errorId_ = "";
/**
* <code>optional string error_id = 15;</code>
@@ -16859,9 +18877,12 @@ public final class UserBitShared {
public java.lang.String getErrorId() {
java.lang.Object ref = errorId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- errorId_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ errorId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16919,7 +18940,6 @@ public final class UserBitShared {
return this;
}
- // optional string error_node = 16;
private java.lang.Object errorNode_ = "";
/**
* <code>optional string error_node = 16;</code>
@@ -16933,9 +18953,12 @@ public final class UserBitShared {
public java.lang.String getErrorNode() {
java.lang.Object ref = errorNode_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- errorNode_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ errorNode_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -16993,7 +19016,6 @@ public final class UserBitShared {
return this;
}
- // optional string options_json = 17;
private java.lang.Object optionsJson_ = "";
/**
* <code>optional string options_json = 17;</code>
@@ -17007,9 +19029,12 @@ public final class UserBitShared {
public java.lang.String getOptionsJson() {
java.lang.Object ref = optionsJson_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- optionsJson_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ optionsJson_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -17067,7 +19092,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 planEnd = 18;
private long planEnd_ ;
/**
* <code>optional int64 planEnd = 18;</code>
@@ -17100,7 +19124,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 queueWaitEnd = 19;
private long queueWaitEnd_ ;
/**
* <code>optional int64 queueWaitEnd = 19;</code>
@@ -17133,7 +19156,6 @@ public final class UserBitShared {
return this;
}
- // optional double total_cost = 20;
private double totalCost_ ;
/**
* <code>optional double total_cost = 20;</code>
@@ -17166,7 +19188,6 @@ public final class UserBitShared {
return this;
}
- // optional string queue_name = 21 [default = "-"];
private java.lang.Object queueName_ = "-";
/**
* <code>optional string queue_name = 21 [default = "-"];</code>
@@ -17180,9 +19201,12 @@ public final class UserBitShared {
public java.lang.String getQueueName() {
java.lang.Object ref = queueName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- queueName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ queueName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -17240,7 +19264,6 @@ public final class UserBitShared {
return this;
}
- // optional string queryId = 22;
private java.lang.Object queryId_ = "";
/**
* <code>optional string queryId = 22;</code>
@@ -17254,9 +19277,12 @@ public final class UserBitShared {
public java.lang.String getQueryId() {
java.lang.Object ref = queryId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- queryId_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ queryId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -17313,22 +19339,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.QueryProfile)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.QueryProfile)
+ private static final org.apache.drill.exec.proto.UserBitShared.QueryProfile DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryProfile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.QueryProfile();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.QueryProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryProfile>
+ PARSER = new com.google.protobuf.AbstractParser<QueryProfile>() {
+ @java.lang.Override
+ public QueryProfile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryProfile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryProfile> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryProfile> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.QueryProfile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.QueryProfile)
}
- public interface MajorFragmentProfileOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface MajorFragmentProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.MajorFragmentProfile)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 major_fragment_id = 1;
/**
* <code>optional int32 major_fragment_id = 1;</code>
*/
@@ -17338,7 +19405,6 @@ public final class UserBitShared {
*/
int getMajorFragmentId();
- // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
/**
* <code>repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;</code>
*/
@@ -17366,36 +19432,33 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.MajorFragmentProfile}
*/
- public static final class MajorFragmentProfile extends
- com.google.protobuf.GeneratedMessage
- implements MajorFragmentProfileOrBuilder {
+ public static final class MajorFragmentProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.MajorFragmentProfile)
+ MajorFragmentProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MajorFragmentProfile.newBuilder() to construct.
- private MajorFragmentProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private MajorFragmentProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MajorFragmentProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MajorFragmentProfile defaultInstance;
- public static MajorFragmentProfile getDefaultInstance() {
- return defaultInstance;
- }
-
- public MajorFragmentProfile getDefaultInstanceForType() {
- return defaultInstance;
+ private MajorFragmentProfile() {
+ majorFragmentId_ = 0;
+ minorFragmentProfile_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private MajorFragmentProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -17407,13 +19470,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
majorFragmentId_ = input.readInt32();
@@ -17424,7 +19480,15 @@ public final class UserBitShared {
minorFragmentProfile_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile>();
mutable_bitField0_ |= 0x00000002;
}
- minorFragmentProfile_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.PARSER, extensionRegistry));
+ minorFragmentProfile_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -17433,7 +19497,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
minorFragmentProfile_ = java.util.Collections.unmodifiableList(minorFragmentProfile_);
@@ -17447,30 +19511,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MajorFragmentProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MajorFragmentProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.class, org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.Builder.class);
}
- public static com.google.protobuf.Parser<MajorFragmentProfile> PARSER =
- new com.google.protobuf.AbstractParser<MajorFragmentProfile>() {
- public MajorFragmentProfile parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new MajorFragmentProfile(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<MajorFragmentProfile> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 major_fragment_id = 1;
public static final int MAJOR_FRAGMENT_ID_FIELD_NUMBER = 1;
private int majorFragmentId_;
/**
@@ -17486,7 +19535,6 @@ public final class UserBitShared {
return majorFragmentId_;
}
- // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
public static final int MINOR_FRAGMENT_PROFILE_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile> minorFragmentProfile_;
/**
@@ -17522,34 +19570,32 @@ public final class UserBitShared {
return minorFragmentProfile_.get(index);
}
- private void initFields() {
- majorFragmentId_ = 0;
- minorFragmentProfile_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, majorFragmentId_);
}
for (int i = 0; i < minorFragmentProfile_.size(); i++) {
output.writeMessage(2, minorFragmentProfile_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -17561,19 +19607,65 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, minorFragmentProfile_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile other = (org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile) obj;
+
+ boolean result = true;
+ result = result && (hasMajorFragmentId() == other.hasMajorFragmentId());
+ if (hasMajorFragmentId()) {
+ result = result && (getMajorFragmentId()
+ == other.getMajorFragmentId());
+ }
+ result = result && getMinorFragmentProfileList()
+ .equals(other.getMinorFragmentProfileList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMajorFragmentId()) {
+ hash = (37 * hash) + MAJOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMajorFragmentId();
+ }
+ if (getMinorFragmentProfileCount() > 0) {
+ hash = (37 * hash) + MINOR_FRAGMENT_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getMinorFragmentProfileList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -17596,46 +19688,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -17643,14 +19748,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.MajorFragmentProfile}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.MajorFragmentProfile)
+ org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MajorFragmentProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MajorFragmentProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -17663,19 +19770,17 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getMinorFragmentProfileFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
majorFragmentId_ = 0;
@@ -17689,19 +19794,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MajorFragmentProfile_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile build() {
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile result = buildPartial();
if (!result.isInitialized()) {
@@ -17710,6 +19814,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile buildPartial() {
org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile result = new org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile(this);
int from_bitField0_ = bitField0_;
@@ -17732,6 +19837,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile)other);
@@ -17765,21 +19903,24 @@ public final class UserBitShared {
minorFragmentProfile_ = other.minorFragmentProfile_;
bitField0_ = (bitField0_ & ~0x00000002);
minorFragmentProfileBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMinorFragmentProfileFieldBuilder() : null;
} else {
minorFragmentProfileBuilder_.addAllMessages(other.minorFragmentProfile_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -17789,7 +19930,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -17799,7 +19940,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int32 major_fragment_id = 1;
private int majorFragmentId_ ;
/**
* <code>optional int32 major_fragment_id = 1;</code>
@@ -17832,7 +19972,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile> minorFragmentProfile_ =
java.util.Collections.emptyList();
private void ensureMinorFragmentProfileIsMutable() {
@@ -17842,7 +19981,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder> minorFragmentProfileBuilder_;
/**
@@ -17974,7 +20113,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile> values) {
if (minorFragmentProfileBuilder_ == null) {
ensureMinorFragmentProfileIsMutable();
- super.addAll(values, minorFragmentProfile_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, minorFragmentProfile_);
onChanged();
} else {
minorFragmentProfileBuilder_.addAllMessages(values);
@@ -18057,11 +20197,11 @@ public final class UserBitShared {
getMinorFragmentProfileBuilderList() {
return getMinorFragmentProfileFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder>
getMinorFragmentProfileFieldBuilder() {
if (minorFragmentProfileBuilder_ == null) {
- minorFragmentProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ minorFragmentProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder>(
minorFragmentProfile_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -18071,22 +20211,63 @@ public final class UserBitShared {
}
return minorFragmentProfileBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.MajorFragmentProfile)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.MajorFragmentProfile)
+ private static final org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile DEFAULT_INSTANCE;
static {
- defaultInstance = new MajorFragmentProfile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<MajorFragmentProfile>
+ PARSER = new com.google.protobuf.AbstractParser<MajorFragmentProfile>() {
+ @java.lang.Override
+ public MajorFragmentProfile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MajorFragmentProfile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<MajorFragmentProfile> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<MajorFragmentProfile> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.MajorFragmentProfile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.MajorFragmentProfile)
}
- public interface MinorFragmentProfileOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface MinorFragmentProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.MinorFragmentProfile)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.FragmentState state = 1;
/**
* <code>optional .exec.shared.FragmentState state = 1;</code>
*/
@@ -18096,7 +20277,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.FragmentState getState();
- // optional .exec.shared.DrillPBError error = 2;
/**
* <code>optional .exec.shared.DrillPBError error = 2;</code>
*/
@@ -18110,7 +20290,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
- // optional int32 minor_fragment_id = 3;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
*/
@@ -18120,7 +20299,6 @@ public final class UserBitShared {
*/
int getMinorFragmentId();
- // repeated .exec.shared.OperatorProfile operator_profile = 4;
/**
* <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code>
*/
@@ -18145,7 +20323,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder getOperatorProfileOrBuilder(
int index);
- // optional int64 start_time = 5;
/**
* <code>optional int64 start_time = 5;</code>
*/
@@ -18155,7 +20332,6 @@ public final class UserBitShared {
*/
long getStartTime();
- // optional int64 end_time = 6;
/**
* <code>optional int64 end_time = 6;</code>
*/
@@ -18165,7 +20341,6 @@ public final class UserBitShared {
*/
long getEndTime();
- // optional int64 memory_used = 7;
/**
* <code>optional int64 memory_used = 7;</code>
*/
@@ -18175,7 +20350,6 @@ public final class UserBitShared {
*/
long getMemoryUsed();
- // optional int64 max_memory_used = 8;
/**
* <code>optional int64 max_memory_used = 8;</code>
*/
@@ -18185,7 +20359,6 @@ public final class UserBitShared {
*/
long getMaxMemoryUsed();
- // optional .exec.DrillbitEndpoint endpoint = 9;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 9;</code>
*/
@@ -18199,7 +20372,6 @@ public final class UserBitShared {
*/
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder();
- // optional int64 last_update = 10;
/**
* <code>optional int64 last_update = 10;</code>
*/
@@ -18209,7 +20381,6 @@ public final class UserBitShared {
*/
long getLastUpdate();
- // optional int64 last_progress = 11;
/**
* <code>optional int64 last_progress = 11;</code>
*/
@@ -18222,36 +20393,40 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.MinorFragmentProfile}
*/
- public static final class MinorFragmentProfile extends
- com.google.protobuf.GeneratedMessage
- implements MinorFragmentProfileOrBuilder {
+ public static final class MinorFragmentProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.MinorFragmentProfile)
+ MinorFragmentProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MinorFragmentProfile.newBuilder() to construct.
- private MinorFragmentProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private MinorFragmentProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private MinorFragmentProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MinorFragmentProfile defaultInstance;
- public static MinorFragmentProfile getDefaultInstance() {
- return defaultInstance;
}
-
- public MinorFragmentProfile getDefaultInstanceForType() {
- return defaultInstance;
+ private MinorFragmentProfile() {
+ state_ = 0;
+ minorFragmentId_ = 0;
+ operatorProfile_ = java.util.Collections.emptyList();
+ startTime_ = 0L;
+ endTime_ = 0L;
+ memoryUsed_ = 0L;
+ maxMemoryUsed_ = 0L;
+ lastUpdate_ = 0L;
+ lastProgress_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private MinorFragmentProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -18263,21 +20438,15 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.FragmentState value = org.apache.drill.exec.proto.UserBitShared.FragmentState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- state_ = value;
+ state_ = rawValue;
}
break;
}
@@ -18304,7 +20473,8 @@ public final class UserBitShared {
operatorProfile_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.OperatorProfile>();
mutable_bitField0_ |= 0x00000008;
}
- operatorProfile_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.OperatorProfile.PARSER, extensionRegistry));
+ operatorProfile_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.OperatorProfile.PARSER, extensionRegistry));
break;
}
case 40: {
@@ -18350,13 +20520,20 @@ public final class UserBitShared {
lastProgress_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
operatorProfile_ = java.util.Collections.unmodifiableList(operatorProfile_);
@@ -18370,32 +20547,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MinorFragmentProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MinorFragmentProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.class, org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.Builder.class);
}
- public static com.google.protobuf.Parser<MinorFragmentProfile> PARSER =
- new com.google.protobuf.AbstractParser<MinorFragmentProfile>() {
- public MinorFragmentProfile parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new MinorFragmentProfile(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<MinorFragmentProfile> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.FragmentState state = 1;
public static final int STATE_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserBitShared.FragmentState state_;
+ private int state_;
/**
* <code>optional .exec.shared.FragmentState state = 1;</code>
*/
@@ -18406,10 +20568,11 @@ public final class UserBitShared {
* <code>optional .exec.shared.FragmentState state = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.FragmentState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.FragmentState result = org.apache.drill.exec.proto.UserBitShared.FragmentState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING : result;
}
- // optional .exec.shared.DrillPBError error = 2;
public static final int ERROR_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -18422,16 +20585,15 @@ public final class UserBitShared {
* <code>optional .exec.shared.DrillPBError error = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- // optional int32 minor_fragment_id = 3;
public static final int MINOR_FRAGMENT_ID_FIELD_NUMBER = 3;
private int minorFragmentId_;
/**
@@ -18447,7 +20609,6 @@ public final class UserBitShared {
return minorFragmentId_;
}
- // repeated .exec.shared.OperatorProfile operator_profile = 4;
public static final int OPERATOR_PROFILE_FIELD_NUMBER = 4;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.OperatorProfile> operatorProfile_;
/**
@@ -18483,7 +20644,6 @@ public final class UserBitShared {
return operatorProfile_.get(index);
}
- // optional int64 start_time = 5;
public static final int START_TIME_FIELD_NUMBER = 5;
private long startTime_;
/**
@@ -18499,7 +20659,6 @@ public final class UserBitShared {
return startTime_;
}
- // optional int64 end_time = 6;
public static final int END_TIME_FIELD_NUMBER = 6;
private long endTime_;
/**
@@ -18515,7 +20674,6 @@ public final class UserBitShared {
return endTime_;
}
- // optional int64 memory_used = 7;
public static final int MEMORY_USED_FIELD_NUMBER = 7;
private long memoryUsed_;
/**
@@ -18531,7 +20689,6 @@ public final class UserBitShared {
return memoryUsed_;
}
- // optional int64 max_memory_used = 8;
public static final int MAX_MEMORY_USED_FIELD_NUMBER = 8;
private long maxMemoryUsed_;
/**
@@ -18547,7 +20704,6 @@ public final class UserBitShared {
return maxMemoryUsed_;
}
- // optional .exec.DrillbitEndpoint endpoint = 9;
public static final int ENDPOINT_FIELD_NUMBER = 9;
private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_;
/**
@@ -18560,16 +20716,15 @@ public final class UserBitShared {
* <code>optional .exec.DrillbitEndpoint endpoint = 9;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 9;</code>
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder getEndpointOrBuilder() {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
- // optional int64 last_update = 10;
public static final int LAST_UPDATE_FIELD_NUMBER = 10;
private long lastUpdate_;
/**
@@ -18585,7 +20740,6 @@ public final class UserBitShared {
return lastUpdate_;
}
- // optional int64 last_progress = 11;
public static final int LAST_PROGRESS_FIELD_NUMBER = 11;
private long lastProgress_;
/**
@@ -18601,36 +20755,25 @@ public final class UserBitShared {
return lastProgress_;
}
- private void initFields() {
- state_ = org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING;
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- minorFragmentId_ = 0;
- operatorProfile_ = java.util.Collections.emptyList();
- startTime_ = 0L;
- endTime_ = 0L;
- memoryUsed_ = 0L;
- maxMemoryUsed_ = 0L;
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- lastUpdate_ = 0L;
- lastProgress_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, state_.getNumber());
+ output.writeEnum(1, state_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, error_);
+ output.writeMessage(2, getError());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, minorFragmentId_);
@@ -18651,7 +20794,7 @@ public final class UserBitShared {
output.writeInt64(8, maxMemoryUsed_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(9, endpoint_);
+ output.writeMessage(9, getEndpoint());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(10, lastUpdate_);
@@ -18659,22 +20802,22 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt64(11, lastProgress_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, state_.getNumber());
+ .computeEnumSize(1, state_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, error_);
+ .computeMessageSize(2, getError());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
@@ -18702,7 +20845,7 @@ public final class UserBitShared {
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, endpoint_);
+ .computeMessageSize(9, getEndpoint());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
@@ -18712,18 +20855,150 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, lastProgress_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile other = (org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile) obj;
+
+ boolean result = true;
+ result = result && (hasState() == other.hasState());
+ if (hasState()) {
+ result = result && state_ == other.state_;
+ }
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && (hasMinorFragmentId() == other.hasMinorFragmentId());
+ if (hasMinorFragmentId()) {
+ result = result && (getMinorFragmentId()
+ == other.getMinorFragmentId());
+ }
+ result = result && getOperatorProfileList()
+ .equals(other.getOperatorProfileList());
+ result = result && (hasStartTime() == other.hasStartTime());
+ if (hasStartTime()) {
+ result = result && (getStartTime()
+ == other.getStartTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && (getEndTime()
+ == other.getEndTime());
+ }
+ result = result && (hasMemoryUsed() == other.hasMemoryUsed());
+ if (hasMemoryUsed()) {
+ result = result && (getMemoryUsed()
+ == other.getMemoryUsed());
+ }
+ result = result && (hasMaxMemoryUsed() == other.hasMaxMemoryUsed());
+ if (hasMaxMemoryUsed()) {
+ result = result && (getMaxMemoryUsed()
+ == other.getMaxMemoryUsed());
+ }
+ result = result && (hasEndpoint() == other.hasEndpoint());
+ if (hasEndpoint()) {
+ result = result && getEndpoint()
+ .equals(other.getEndpoint());
+ }
+ result = result && (hasLastUpdate() == other.hasLastUpdate());
+ if (hasLastUpdate()) {
+ result = result && (getLastUpdate()
+ == other.getLastUpdate());
+ }
+ result = result && (hasLastProgress() == other.hasLastProgress());
+ if (hasLastProgress()) {
+ result = result && (getLastProgress()
+ == other.getLastProgress());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasState()) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ if (hasMinorFragmentId()) {
+ hash = (37 * hash) + MINOR_FRAGMENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMinorFragmentId();
+ }
+ if (getOperatorProfileCount() > 0) {
+ hash = (37 * hash) + OPERATOR_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getOperatorProfileList().hashCode();
+ }
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getStartTime());
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getEndTime());
+ }
+ if (hasMemoryUsed()) {
+ hash = (37 * hash) + MEMORY_USED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMemoryUsed());
+ }
+ if (hasMaxMemoryUsed()) {
+ hash = (37 * hash) + MAX_MEMORY_USED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxMemoryUsed());
+ }
+ if (hasEndpoint()) {
+ hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpoint().hashCode();
+ }
+ if (hasLastUpdate()) {
+ hash = (37 * hash) + LAST_UPDATE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLastUpdate());
+ }
+ if (hasLastProgress()) {
+ hash = (37 * hash) + LAST_PROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLastProgress());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -18747,46 +21022,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -18794,14 +21082,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.MinorFragmentProfile}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.MinorFragmentProfile)
+ org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MinorFragmentProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MinorFragmentProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -18814,27 +21104,25 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getErrorFieldBuilder();
getOperatorProfileFieldBuilder();
getEndpointFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- state_ = org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING;
+ state_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -18856,7 +21144,7 @@ public final class UserBitShared {
maxMemoryUsed_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
} else {
endpointBuilder_.clear();
}
@@ -18868,19 +21156,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MinorFragmentProfile_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile build() {
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile result = buildPartial();
if (!result.isInitialized()) {
@@ -18889,6 +21176,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile buildPartial() {
org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile result = new org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile(this);
int from_bitField0_ = bitField0_;
@@ -18955,6 +21243,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile)other);
@@ -18994,7 +21315,7 @@ public final class UserBitShared {
operatorProfile_ = other.operatorProfile_;
bitField0_ = (bitField0_ & ~0x00000008);
operatorProfileBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperatorProfileFieldBuilder() : null;
} else {
operatorProfileBuilder_.addAllMessages(other.operatorProfile_);
@@ -19022,14 +21343,17 @@ public final class UserBitShared {
if (other.hasLastProgress()) {
setLastProgress(other.getLastProgress());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -19039,7 +21363,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -19049,8 +21373,7 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional .exec.shared.FragmentState state = 1;
- private org.apache.drill.exec.proto.UserBitShared.FragmentState state_ = org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING;
+ private int state_ = 0;
/**
* <code>optional .exec.shared.FragmentState state = 1;</code>
*/
@@ -19061,7 +21384,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.FragmentState state = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.FragmentState getState() {
- return state_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.FragmentState result = org.apache.drill.exec.proto.UserBitShared.FragmentState.valueOf(state_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING : result;
}
/**
* <code>optional .exec.shared.FragmentState state = 1;</code>
@@ -19071,7 +21396,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- state_ = value;
+ state_ = value.getNumber();
onChanged();
return this;
}
@@ -19080,14 +21405,13 @@ public final class UserBitShared {
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
- state_ = org.apache.drill.exec.proto.UserBitShared.FragmentState.SENDING;
+ state_ = 0;
onChanged();
return this;
}
- // optional .exec.shared.DrillPBError error = 2;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 2;</code>
@@ -19100,7 +21424,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -19141,6 +21465,7 @@ public final class UserBitShared {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -19159,7 +21484,7 @@ public final class UserBitShared {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -19182,19 +21507,20 @@ public final class UserBitShared {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
@@ -19202,7 +21528,6 @@ public final class UserBitShared {
return errorBuilder_;
}
- // optional int32 minor_fragment_id = 3;
private int minorFragmentId_ ;
/**
* <code>optional int32 minor_fragment_id = 3;</code>
@@ -19235,7 +21560,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.OperatorProfile operator_profile = 4;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.OperatorProfile> operatorProfile_ =
java.util.Collections.emptyList();
private void ensureOperatorProfileIsMutable() {
@@ -19245,7 +21569,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.OperatorProfile, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder, org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder> operatorProfileBuilder_;
/**
@@ -19377,7 +21701,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.OperatorProfile> values) {
if (operatorProfileBuilder_ == null) {
ensureOperatorProfileIsMutable();
- super.addAll(values, operatorProfile_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, operatorProfile_);
onChanged();
} else {
operatorProfileBuilder_.addAllMessages(values);
@@ -19460,11 +21785,11 @@ public final class UserBitShared {
getOperatorProfileBuilderList() {
return getOperatorProfileFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.OperatorProfile, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder, org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder>
getOperatorProfileFieldBuilder() {
if (operatorProfileBuilder_ == null) {
- operatorProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ operatorProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.OperatorProfile, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder, org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder>(
operatorProfile_,
((bitField0_ & 0x00000008) == 0x00000008),
@@ -19475,7 +21800,6 @@ public final class UserBitShared {
return operatorProfileBuilder_;
}
- // optional int64 start_time = 5;
private long startTime_ ;
/**
* <code>optional int64 start_time = 5;</code>
@@ -19508,7 +21832,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 end_time = 6;
private long endTime_ ;
/**
* <code>optional int64 end_time = 6;</code>
@@ -19541,7 +21864,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 memory_used = 7;
private long memoryUsed_ ;
/**
* <code>optional int64 memory_used = 7;</code>
@@ -19574,7 +21896,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 max_memory_used = 8;
private long maxMemoryUsed_ ;
/**
* <code>optional int64 max_memory_used = 8;</code>
@@ -19607,9 +21928,8 @@ public final class UserBitShared {
return this;
}
- // optional .exec.DrillbitEndpoint endpoint = 9;
- private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint endpoint_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder> endpointBuilder_;
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 9;</code>
@@ -19622,7 +21942,7 @@ public final class UserBitShared {
*/
public org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint getEndpoint() {
if (endpointBuilder_ == null) {
- return endpoint_;
+ return endpoint_ == null ? org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
} else {
return endpointBuilder_.getMessage();
}
@@ -19663,6 +21983,7 @@ public final class UserBitShared {
public Builder mergeEndpoint(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint value) {
if (endpointBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
+ endpoint_ != null &&
endpoint_ != org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance()) {
endpoint_ =
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
@@ -19681,7 +22002,7 @@ public final class UserBitShared {
*/
public Builder clearEndpoint() {
if (endpointBuilder_ == null) {
- endpoint_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance();
+ endpoint_ = null;
onChanged();
} else {
endpointBuilder_.clear();
@@ -19704,19 +22025,20 @@ public final class UserBitShared {
if (endpointBuilder_ != null) {
return endpointBuilder_.getMessageOrBuilder();
} else {
- return endpoint_;
+ return endpoint_ == null ?
+ org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.getDefaultInstance() : endpoint_;
}
}
/**
* <code>optional .exec.DrillbitEndpoint endpoint = 9;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>
getEndpointFieldBuilder() {
if (endpointBuilder_ == null) {
- endpointBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.Builder, org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpointOrBuilder>(
- endpoint_,
+ getEndpoint(),
getParentForChildren(),
isClean());
endpoint_ = null;
@@ -19724,7 +22046,6 @@ public final class UserBitShared {
return endpointBuilder_;
}
- // optional int64 last_update = 10;
private long lastUpdate_ ;
/**
* <code>optional int64 last_update = 10;</code>
@@ -19757,7 +22078,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 last_progress = 11;
private long lastProgress_ ;
/**
* <code>optional int64 last_progress = 11;</code>
@@ -19789,22 +22109,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.MinorFragmentProfile)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.MinorFragmentProfile)
+ private static final org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile DEFAULT_INSTANCE;
static {
- defaultInstance = new MinorFragmentProfile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<MinorFragmentProfile>
+ PARSER = new com.google.protobuf.AbstractParser<MinorFragmentProfile>() {
+ @java.lang.Override
+ public MinorFragmentProfile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MinorFragmentProfile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<MinorFragmentProfile> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<MinorFragmentProfile> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.MinorFragmentProfile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.MinorFragmentProfile)
}
- public interface OperatorProfileOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface OperatorProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.OperatorProfile)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.shared.StreamProfile input_profile = 1;
/**
* <code>repeated .exec.shared.StreamProfile input_profile = 1;</code>
*/
@@ -19829,7 +22190,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder getInputProfileOrBuilder(
int index);
- // optional int32 operator_id = 3;
/**
* <code>optional int32 operator_id = 3;</code>
*/
@@ -19839,7 +22199,6 @@ public final class UserBitShared {
*/
int getOperatorId();
- // optional int32 operator_type = 4;
/**
* <code>optional int32 operator_type = 4;</code>
*/
@@ -19849,7 +22208,6 @@ public final class UserBitShared {
*/
int getOperatorType();
- // optional int64 setup_nanos = 5;
/**
* <code>optional int64 setup_nanos = 5;</code>
*/
@@ -19859,7 +22217,6 @@ public final class UserBitShared {
*/
long getSetupNanos();
- // optional int64 process_nanos = 6;
/**
* <code>optional int64 process_nanos = 6;</code>
*/
@@ -19869,7 +22226,6 @@ public final class UserBitShared {
*/
long getProcessNanos();
- // optional int64 peak_local_memory_allocated = 7;
/**
* <code>optional int64 peak_local_memory_allocated = 7;</code>
*/
@@ -19879,7 +22235,6 @@ public final class UserBitShared {
*/
long getPeakLocalMemoryAllocated();
- // repeated .exec.shared.MetricValue metric = 8;
/**
* <code>repeated .exec.shared.MetricValue metric = 8;</code>
*/
@@ -19904,7 +22259,6 @@ public final class UserBitShared {
org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder getMetricOrBuilder(
int index);
- // optional int64 wait_nanos = 9;
/**
* <code>optional int64 wait_nanos = 9;</code>
*/
@@ -19917,36 +22271,39 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.OperatorProfile}
*/
- public static final class OperatorProfile extends
- com.google.protobuf.GeneratedMessage
- implements OperatorProfileOrBuilder {
+ public static final class OperatorProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.OperatorProfile)
+ OperatorProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use OperatorProfile.newBuilder() to construct.
- private OperatorProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private OperatorProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private OperatorProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final OperatorProfile defaultInstance;
- public static OperatorProfile getDefaultInstance() {
- return defaultInstance;
}
-
- public OperatorProfile getDefaultInstanceForType() {
- return defaultInstance;
+ private OperatorProfile() {
+ inputProfile_ = java.util.Collections.emptyList();
+ operatorId_ = 0;
+ operatorType_ = 0;
+ setupNanos_ = 0L;
+ processNanos_ = 0L;
+ peakLocalMemoryAllocated_ = 0L;
+ metric_ = java.util.Collections.emptyList();
+ waitNanos_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private OperatorProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -19958,19 +22315,13 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
inputProfile_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.StreamProfile>();
mutable_bitField0_ |= 0x00000001;
}
- inputProfile_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.StreamProfile.PARSER, extensionRegistry));
+ inputProfile_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.StreamProfile.PARSER, extensionRegistry));
break;
}
case 24: {
@@ -20003,7 +22354,8 @@ public final class UserBitShared {
metric_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.MetricValue>();
mutable_bitField0_ |= 0x00000040;
}
- metric_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.MetricValue.PARSER, extensionRegistry));
+ metric_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.MetricValue.PARSER, extensionRegistry));
break;
}
case 72: {
@@ -20011,13 +22363,20 @@ public final class UserBitShared {
waitNanos_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
inputProfile_ = java.util.Collections.unmodifiableList(inputProfile_);
@@ -20034,30 +22393,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_OperatorProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_OperatorProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.OperatorProfile.class, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder.class);
}
- public static com.google.protobuf.Parser<OperatorProfile> PARSER =
- new com.google.protobuf.AbstractParser<OperatorProfile>() {
- public OperatorProfile parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new OperatorProfile(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<OperatorProfile> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // repeated .exec.shared.StreamProfile input_profile = 1;
public static final int INPUT_PROFILE_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.StreamProfile> inputProfile_;
/**
@@ -20093,7 +22437,6 @@ public final class UserBitShared {
return inputProfile_.get(index);
}
- // optional int32 operator_id = 3;
public static final int OPERATOR_ID_FIELD_NUMBER = 3;
private int operatorId_;
/**
@@ -20109,7 +22452,6 @@ public final class UserBitShared {
return operatorId_;
}
- // optional int32 operator_type = 4;
public static final int OPERATOR_TYPE_FIELD_NUMBER = 4;
private int operatorType_;
/**
@@ -20125,7 +22467,6 @@ public final class UserBitShared {
return operatorType_;
}
- // optional int64 setup_nanos = 5;
public static final int SETUP_NANOS_FIELD_NUMBER = 5;
private long setupNanos_;
/**
@@ -20141,7 +22482,6 @@ public final class UserBitShared {
return setupNanos_;
}
- // optional int64 process_nanos = 6;
public static final int PROCESS_NANOS_FIELD_NUMBER = 6;
private long processNanos_;
/**
@@ -20157,7 +22497,6 @@ public final class UserBitShared {
return processNanos_;
}
- // optional int64 peak_local_memory_allocated = 7;
public static final int PEAK_LOCAL_MEMORY_ALLOCATED_FIELD_NUMBER = 7;
private long peakLocalMemoryAllocated_;
/**
@@ -20173,7 +22512,6 @@ public final class UserBitShared {
return peakLocalMemoryAllocated_;
}
- // repeated .exec.shared.MetricValue metric = 8;
public static final int METRIC_FIELD_NUMBER = 8;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MetricValue> metric_;
/**
@@ -20209,7 +22547,6 @@ public final class UserBitShared {
return metric_.get(index);
}
- // optional int64 wait_nanos = 9;
public static final int WAIT_NANOS_FIELD_NUMBER = 9;
private long waitNanos_;
/**
@@ -20225,28 +22562,20 @@ public final class UserBitShared {
return waitNanos_;
}
- private void initFields() {
- inputProfile_ = java.util.Collections.emptyList();
- operatorId_ = 0;
- operatorType_ = 0;
- setupNanos_ = 0L;
- processNanos_ = 0L;
- peakLocalMemoryAllocated_ = 0L;
- metric_ = java.util.Collections.emptyList();
- waitNanos_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < inputProfile_.size(); i++) {
output.writeMessage(1, inputProfile_.get(i));
}
@@ -20271,12 +22600,12 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt64(9, waitNanos_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -20312,18 +22641,119 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, waitNanos_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.OperatorProfile)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.OperatorProfile other = (org.apache.drill.exec.proto.UserBitShared.OperatorProfile) obj;
+
+ boolean result = true;
+ result = result && getInputProfileList()
+ .equals(other.getInputProfileList());
+ result = result && (hasOperatorId() == other.hasOperatorId());
+ if (hasOperatorId()) {
+ result = result && (getOperatorId()
+ == other.getOperatorId());
+ }
+ result = result && (hasOperatorType() == other.hasOperatorType());
+ if (hasOperatorType()) {
+ result = result && (getOperatorType()
+ == other.getOperatorType());
+ }
+ result = result && (hasSetupNanos() == other.hasSetupNanos());
+ if (hasSetupNanos()) {
+ result = result && (getSetupNanos()
+ == other.getSetupNanos());
+ }
+ result = result && (hasProcessNanos() == other.hasProcessNanos());
+ if (hasProcessNanos()) {
+ result = result && (getProcessNanos()
+ == other.getProcessNanos());
+ }
+ result = result && (hasPeakLocalMemoryAllocated() == other.hasPeakLocalMemoryAllocated());
+ if (hasPeakLocalMemoryAllocated()) {
+ result = result && (getPeakLocalMemoryAllocated()
+ == other.getPeakLocalMemoryAllocated());
+ }
+ result = result && getMetricList()
+ .equals(other.getMetricList());
+ result = result && (hasWaitNanos() == other.hasWaitNanos());
+ if (hasWaitNanos()) {
+ result = result && (getWaitNanos()
+ == other.getWaitNanos());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getInputProfileCount() > 0) {
+ hash = (37 * hash) + INPUT_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getInputProfileList().hashCode();
+ }
+ if (hasOperatorId()) {
+ hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOperatorId();
+ }
+ if (hasOperatorType()) {
+ hash = (37 * hash) + OPERATOR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getOperatorType();
+ }
+ if (hasSetupNanos()) {
+ hash = (37 * hash) + SETUP_NANOS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSetupNanos());
+ }
+ if (hasProcessNanos()) {
+ hash = (37 * hash) + PROCESS_NANOS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getProcessNanos());
+ }
+ if (hasPeakLocalMemoryAllocated()) {
+ hash = (37 * hash) + PEAK_LOCAL_MEMORY_ALLOCATED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPeakLocalMemoryAllocated());
+ }
+ if (getMetricCount() > 0) {
+ hash = (37 * hash) + METRIC_FIELD_NUMBER;
+ hash = (53 * hash) + getMetricList().hashCode();
+ }
+ if (hasWaitNanos()) {
+ hash = (37 * hash) + WAIT_NANOS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getWaitNanos());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -20347,46 +22777,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.OperatorProfile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -20394,14 +22837,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.OperatorProfile}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.OperatorProfile)
+ org.apache.drill.exec.proto.UserBitShared.OperatorProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_OperatorProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_OperatorProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -20414,20 +22859,18 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getInputProfileFieldBuilder();
getMetricFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (inputProfileBuilder_ == null) {
@@ -20457,19 +22900,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_OperatorProfile_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.OperatorProfile getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.OperatorProfile.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.OperatorProfile build() {
org.apache.drill.exec.proto.UserBitShared.OperatorProfile result = buildPartial();
if (!result.isInitialized()) {
@@ -20478,6 +22920,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.OperatorProfile buildPartial() {
org.apache.drill.exec.proto.UserBitShared.OperatorProfile result = new org.apache.drill.exec.proto.UserBitShared.OperatorProfile(this);
int from_bitField0_ = bitField0_;
@@ -20529,6 +22972,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.OperatorProfile) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.OperatorProfile)other);
@@ -20559,7 +23035,7 @@ public final class UserBitShared {
inputProfile_ = other.inputProfile_;
bitField0_ = (bitField0_ & ~0x00000001);
inputProfileBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputProfileFieldBuilder() : null;
} else {
inputProfileBuilder_.addAllMessages(other.inputProfile_);
@@ -20600,7 +23076,7 @@ public final class UserBitShared {
metric_ = other.metric_;
bitField0_ = (bitField0_ & ~0x00000040);
metricBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMetricFieldBuilder() : null;
} else {
metricBuilder_.addAllMessages(other.metric_);
@@ -20610,14 +23086,17 @@ public final class UserBitShared {
if (other.hasWaitNanos()) {
setWaitNanos(other.getWaitNanos());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -20627,7 +23106,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.OperatorProfile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -20637,7 +23116,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // repeated .exec.shared.StreamProfile input_profile = 1;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.StreamProfile> inputProfile_ =
java.util.Collections.emptyList();
private void ensureInputProfileIsMutable() {
@@ -20647,7 +23125,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StreamProfile, org.apache.drill.exec.proto.UserBitShared.StreamProfile.Builder, org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder> inputProfileBuilder_;
/**
@@ -20779,7 +23257,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.StreamProfile> values) {
if (inputProfileBuilder_ == null) {
ensureInputProfileIsMutable();
- super.addAll(values, inputProfile_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, inputProfile_);
onChanged();
} else {
inputProfileBuilder_.addAllMessages(values);
@@ -20862,11 +23341,11 @@ public final class UserBitShared {
getInputProfileBuilderList() {
return getInputProfileFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StreamProfile, org.apache.drill.exec.proto.UserBitShared.StreamProfile.Builder, org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder>
getInputProfileFieldBuilder() {
if (inputProfileBuilder_ == null) {
- inputProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ inputProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.StreamProfile, org.apache.drill.exec.proto.UserBitShared.StreamProfile.Builder, org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder>(
inputProfile_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -20877,7 +23356,6 @@ public final class UserBitShared {
return inputProfileBuilder_;
}
- // optional int32 operator_id = 3;
private int operatorId_ ;
/**
* <code>optional int32 operator_id = 3;</code>
@@ -20910,7 +23388,6 @@ public final class UserBitShared {
return this;
}
- // optional int32 operator_type = 4;
private int operatorType_ ;
/**
* <code>optional int32 operator_type = 4;</code>
@@ -20943,7 +23420,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 setup_nanos = 5;
private long setupNanos_ ;
/**
* <code>optional int64 setup_nanos = 5;</code>
@@ -20976,7 +23452,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 process_nanos = 6;
private long processNanos_ ;
/**
* <code>optional int64 process_nanos = 6;</code>
@@ -21009,7 +23484,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 peak_local_memory_allocated = 7;
private long peakLocalMemoryAllocated_ ;
/**
* <code>optional int64 peak_local_memory_allocated = 7;</code>
@@ -21042,7 +23516,6 @@ public final class UserBitShared {
return this;
}
- // repeated .exec.shared.MetricValue metric = 8;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.MetricValue> metric_ =
java.util.Collections.emptyList();
private void ensureMetricIsMutable() {
@@ -21052,7 +23525,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MetricValue, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder, org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder> metricBuilder_;
/**
@@ -21184,7 +23657,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.MetricValue> values) {
if (metricBuilder_ == null) {
ensureMetricIsMutable();
- super.addAll(values, metric_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, metric_);
onChanged();
} else {
metricBuilder_.addAllMessages(values);
@@ -21267,11 +23741,11 @@ public final class UserBitShared {
getMetricBuilderList() {
return getMetricFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MetricValue, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder, org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder>
getMetricFieldBuilder() {
if (metricBuilder_ == null) {
- metricBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ metricBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.MetricValue, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder, org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder>(
metric_,
((bitField0_ & 0x00000040) == 0x00000040),
@@ -21282,7 +23756,6 @@ public final class UserBitShared {
return metricBuilder_;
}
- // optional int64 wait_nanos = 9;
private long waitNanos_ ;
/**
* <code>optional int64 wait_nanos = 9;</code>
@@ -21314,22 +23787,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.OperatorProfile)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.OperatorProfile)
+ private static final org.apache.drill.exec.proto.UserBitShared.OperatorProfile DEFAULT_INSTANCE;
static {
- defaultInstance = new OperatorProfile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.OperatorProfile();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.OperatorProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<OperatorProfile>
+ PARSER = new com.google.protobuf.AbstractParser<OperatorProfile>() {
+ @java.lang.Override
+ public OperatorProfile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new OperatorProfile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<OperatorProfile> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<OperatorProfile> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.OperatorProfile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.OperatorProfile)
}
- public interface StreamProfileOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface StreamProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.StreamProfile)
+ com.google.protobuf.MessageOrBuilder {
- // optional int64 records = 1;
/**
* <code>optional int64 records = 1;</code>
*/
@@ -21339,7 +23853,6 @@ public final class UserBitShared {
*/
long getRecords();
- // optional int64 batches = 2;
/**
* <code>optional int64 batches = 2;</code>
*/
@@ -21349,7 +23862,6 @@ public final class UserBitShared {
*/
long getBatches();
- // optional int64 schemas = 3;
/**
* <code>optional int64 schemas = 3;</code>
*/
@@ -21362,36 +23874,34 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.StreamProfile}
*/
- public static final class StreamProfile extends
- com.google.protobuf.GeneratedMessage
- implements StreamProfileOrBuilder {
+ public static final class StreamProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.StreamProfile)
+ StreamProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use StreamProfile.newBuilder() to construct.
- private StreamProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private StreamProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final StreamProfile defaultInstance;
- public static StreamProfile getDefaultInstance() {
- return defaultInstance;
}
-
- public StreamProfile getDefaultInstanceForType() {
- return defaultInstance;
+ private StreamProfile() {
+ records_ = 0L;
+ batches_ = 0L;
+ schemas_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private StreamProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -21403,13 +23913,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
records_ = input.readInt64();
@@ -21425,13 +23928,20 @@ public final class UserBitShared {
schemas_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -21442,30 +23952,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StreamProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StreamProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.StreamProfile.class, org.apache.drill.exec.proto.UserBitShared.StreamProfile.Builder.class);
}
- public static com.google.protobuf.Parser<StreamProfile> PARSER =
- new com.google.protobuf.AbstractParser<StreamProfile>() {
- public StreamProfile parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new StreamProfile(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<StreamProfile> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int64 records = 1;
public static final int RECORDS_FIELD_NUMBER = 1;
private long records_;
/**
@@ -21481,7 +23976,6 @@ public final class UserBitShared {
return records_;
}
- // optional int64 batches = 2;
public static final int BATCHES_FIELD_NUMBER = 2;
private long batches_;
/**
@@ -21497,7 +23991,6 @@ public final class UserBitShared {
return batches_;
}
- // optional int64 schemas = 3;
public static final int SCHEMAS_FIELD_NUMBER = 3;
private long schemas_;
/**
@@ -21513,23 +24006,20 @@ public final class UserBitShared {
return schemas_;
}
- private void initFields() {
- records_ = 0L;
- batches_ = 0L;
- schemas_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, records_);
}
@@ -21539,12 +24029,12 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, schemas_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -21560,18 +24050,79 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, schemas_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.StreamProfile)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.StreamProfile other = (org.apache.drill.exec.proto.UserBitShared.StreamProfile) obj;
+
+ boolean result = true;
+ result = result && (hasRecords() == other.hasRecords());
+ if (hasRecords()) {
+ result = result && (getRecords()
+ == other.getRecords());
+ }
+ result = result && (hasBatches() == other.hasBatches());
+ if (hasBatches()) {
+ result = result && (getBatches()
+ == other.getBatches());
+ }
+ result = result && (hasSchemas() == other.hasSchemas());
+ if (hasSchemas()) {
+ result = result && (getSchemas()
+ == other.getSchemas());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRecords()) {
+ hash = (37 * hash) + RECORDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRecords());
+ }
+ if (hasBatches()) {
+ hash = (37 * hash) + BATCHES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getBatches());
+ }
+ if (hasSchemas()) {
+ hash = (37 * hash) + SCHEMAS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSchemas());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -21595,46 +24146,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.StreamProfile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.StreamProfile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -21642,14 +24206,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.StreamProfile}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.StreamProfile)
+ org.apache.drill.exec.proto.UserBitShared.StreamProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StreamProfile_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StreamProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -21662,18 +24228,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
records_ = 0L;
@@ -21685,19 +24249,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_StreamProfile_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StreamProfile getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.StreamProfile.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StreamProfile build() {
org.apache.drill.exec.proto.UserBitShared.StreamProfile result = buildPartial();
if (!result.isInitialized()) {
@@ -21706,6 +24269,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.StreamProfile buildPartial() {
org.apache.drill.exec.proto.UserBitShared.StreamProfile result = new org.apache.drill.exec.proto.UserBitShared.StreamProfile(this);
int from_bitField0_ = bitField0_;
@@ -21727,6 +24291,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.StreamProfile) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.StreamProfile)other);
@@ -21747,14 +24344,17 @@ public final class UserBitShared {
if (other.hasSchemas()) {
setSchemas(other.getSchemas());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -21764,7 +24364,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.StreamProfile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -21774,7 +24374,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int64 records = 1;
private long records_ ;
/**
* <code>optional int64 records = 1;</code>
@@ -21807,7 +24406,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 batches = 2;
private long batches_ ;
/**
* <code>optional int64 batches = 2;</code>
@@ -21840,7 +24438,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 schemas = 3;
private long schemas_ ;
/**
* <code>optional int64 schemas = 3;</code>
@@ -21872,22 +24469,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.StreamProfile)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.StreamProfile)
+ private static final org.apache.drill.exec.proto.UserBitShared.StreamProfile DEFAULT_INSTANCE;
static {
- defaultInstance = new StreamProfile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.StreamProfile();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.StreamProfile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<StreamProfile>
+ PARSER = new com.google.protobuf.AbstractParser<StreamProfile>() {
+ @java.lang.Override
+ public StreamProfile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StreamProfile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StreamProfile> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StreamProfile> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.StreamProfile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.StreamProfile)
}
- public interface MetricValueOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface MetricValueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.MetricValue)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 metric_id = 1;
/**
* <code>optional int32 metric_id = 1;</code>
*/
@@ -21897,7 +24535,6 @@ public final class UserBitShared {
*/
int getMetricId();
- // optional int64 long_value = 2;
/**
* <code>optional int64 long_value = 2;</code>
*/
@@ -21907,7 +24544,6 @@ public final class UserBitShared {
*/
long getLongValue();
- // optional double double_value = 3;
/**
* <code>optional double double_value = 3;</code>
*/
@@ -21920,36 +24556,34 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.MetricValue}
*/
- public static final class MetricValue extends
- com.google.protobuf.GeneratedMessage
- implements MetricValueOrBuilder {
+ public static final class MetricValue extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.MetricValue)
+ MetricValueOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MetricValue.newBuilder() to construct.
- private MetricValue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private MetricValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MetricValue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MetricValue defaultInstance;
- public static MetricValue getDefaultInstance() {
- return defaultInstance;
- }
-
- public MetricValue getDefaultInstanceForType() {
- return defaultInstance;
+ private MetricValue() {
+ metricId_ = 0;
+ longValue_ = 0L;
+ doubleValue_ = 0D;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private MetricValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -21961,13 +24595,6 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
metricId_ = input.readInt32();
@@ -21983,13 +24610,20 @@ public final class UserBitShared {
doubleValue_ = input.readDouble();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -22000,30 +24634,15 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MetricValue_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MetricValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.MetricValue.class, org.apache.drill.exec.proto.UserBitShared.MetricValue.Builder.class);
}
- public static com.google.protobuf.Parser<MetricValue> PARSER =
- new com.google.protobuf.AbstractParser<MetricValue>() {
- public MetricValue parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new MetricValue(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<MetricValue> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 metric_id = 1;
public static final int METRIC_ID_FIELD_NUMBER = 1;
private int metricId_;
/**
@@ -22039,7 +24658,6 @@ public final class UserBitShared {
return metricId_;
}
- // optional int64 long_value = 2;
public static final int LONG_VALUE_FIELD_NUMBER = 2;
private long longValue_;
/**
@@ -22055,7 +24673,6 @@ public final class UserBitShared {
return longValue_;
}
- // optional double double_value = 3;
public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
private double doubleValue_;
/**
@@ -22071,23 +24688,20 @@ public final class UserBitShared {
return doubleValue_;
}
- private void initFields() {
- metricId_ = 0;
- longValue_ = 0L;
- doubleValue_ = 0D;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, metricId_);
}
@@ -22097,12 +24711,12 @@ public final class UserBitShared {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, doubleValue_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -22118,19 +24732,81 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, doubleValue_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.MetricValue)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.MetricValue other = (org.apache.drill.exec.proto.UserBitShared.MetricValue) obj;
+
+ boolean result = true;
+ result = result && (hasMetricId() == other.hasMetricId());
+ if (hasMetricId()) {
+ result = result && (getMetricId()
+ == other.getMetricId());
+ }
+ result = result && (hasLongValue() == other.hasLongValue());
+ if (hasLongValue()) {
+ result = result && (getLongValue()
+ == other.getLongValue());
+ }
+ result = result && (hasDoubleValue() == other.hasDoubleValue());
+ if (hasDoubleValue()) {
+ result = result && (
+ java.lang.Double.doubleToLongBits(getDoubleValue())
+ == java.lang.Double.doubleToLongBits(
+ other.getDoubleValue()));
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMetricId()) {
+ hash = (37 * hash) + METRIC_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getMetricId();
+ }
+ if (hasLongValue()) {
+ hash = (37 * hash) + LONG_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLongValue());
+ }
+ if (hasDoubleValue()) {
+ hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDoubleValue()));
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -22153,46 +24829,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.MetricValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.MetricValue prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -22200,14 +24889,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.MetricValue}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.MetricValue)
+ org.apache.drill.exec.proto.UserBitShared.MetricValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MetricValue_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MetricValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -22220,18 +24911,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
metricId_ = 0;
@@ -22243,19 +24932,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_MetricValue_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MetricValue getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.MetricValue.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MetricValue build() {
org.apache.drill.exec.proto.UserBitShared.MetricValue result = buildPartial();
if (!result.isInitialized()) {
@@ -22264,6 +24952,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.MetricValue buildPartial() {
org.apache.drill.exec.proto.UserBitShared.MetricValue result = new org.apache.drill.exec.proto.UserBitShared.MetricValue(this);
int from_bitField0_ = bitField0_;
@@ -22285,6 +24974,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.MetricValue) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.MetricValue)other);
@@ -22305,14 +25027,17 @@ public final class UserBitShared {
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -22322,7 +25047,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.MetricValue) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -22332,7 +25057,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional int32 metric_id = 1;
private int metricId_ ;
/**
* <code>optional int32 metric_id = 1;</code>
@@ -22365,7 +25089,6 @@ public final class UserBitShared {
return this;
}
- // optional int64 long_value = 2;
private long longValue_ ;
/**
* <code>optional int64 long_value = 2;</code>
@@ -22398,7 +25121,6 @@ public final class UserBitShared {
return this;
}
- // optional double double_value = 3;
private double doubleValue_ ;
/**
* <code>optional double double_value = 3;</code>
@@ -22430,22 +25152,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.MetricValue)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.MetricValue)
+ private static final org.apache.drill.exec.proto.UserBitShared.MetricValue DEFAULT_INSTANCE;
static {
- defaultInstance = new MetricValue(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.MetricValue();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.MetricValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<MetricValue>
+ PARSER = new com.google.protobuf.AbstractParser<MetricValue>() {
+ @java.lang.Override
+ public MetricValue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MetricValue(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<MetricValue> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<MetricValue> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.MetricValue getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.MetricValue)
}
- public interface RegistryOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RegistryOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.Registry)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.shared.Jar jar = 1;
/**
* <code>repeated .exec.shared.Jar jar = 1;</code>
*/
@@ -22471,48 +25234,43 @@ public final class UserBitShared {
int index);
}
/**
- * Protobuf type {@code exec.shared.Registry}
- *
* <pre>
* Registry that contains list of jars, each jar contains its name and list of function signatures.
*Structure example:
*REGISTRY -&gt; Jar1.jar -&gt; upper(VARCHAR-REQUIRED)
*-&gt; upper(VARCHAR-OPTIONAL)
- *
*-&gt; Jar2.jar -&gt; lower(VARCHAR-REQUIRED)
*-&gt; lower(VARCHAR-OPTIONAL)
* </pre>
+ *
+ * Protobuf type {@code exec.shared.Registry}
*/
- public static final class Registry extends
- com.google.protobuf.GeneratedMessage
- implements RegistryOrBuilder {
+ public static final class Registry extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.Registry)
+ RegistryOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Registry.newBuilder() to construct.
- private Registry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Registry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Registry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Registry defaultInstance;
- public static Registry getDefaultInstance() {
- return defaultInstance;
- }
-
- public Registry getDefaultInstanceForType() {
- return defaultInstance;
+ private Registry() {
+ jar_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Registry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -22524,19 +25282,20 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
jar_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserBitShared.Jar>();
mutable_bitField0_ |= 0x00000001;
}
- jar_.add(input.readMessage(org.apache.drill.exec.proto.UserBitShared.Jar.PARSER, extensionRegistry));
+ jar_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserBitShared.Jar.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -22545,7 +25304,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
jar_ = java.util.Collections.unmodifiableList(jar_);
@@ -22559,29 +25318,14 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Registry_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Registry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.Registry.class, org.apache.drill.exec.proto.UserBitShared.Registry.Builder.class);
}
- public static com.google.protobuf.Parser<Registry> PARSER =
- new com.google.protobuf.AbstractParser<Registry>() {
- public Registry parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Registry(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Registry> getParserForType() {
- return PARSER;
- }
-
- // repeated .exec.shared.Jar jar = 1;
public static final int JAR_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.Jar> jar_;
/**
@@ -22617,30 +25361,29 @@ public final class UserBitShared {
return jar_.get(index);
}
- private void initFields() {
- jar_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < jar_.size(); i++) {
output.writeMessage(1, jar_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -22648,18 +25391,55 @@ public final class UserBitShared {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, jar_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.Registry)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.Registry other = (org.apache.drill.exec.proto.UserBitShared.Registry) obj;
+
+ boolean result = true;
+ result = result && getJarList()
+ .equals(other.getJarList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getJarCount() > 0) {
+ hash = (37 * hash) + JAR_FIELD_NUMBER;
+ hash = (53 * hash) + getJarList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -22683,71 +25463,85 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Registry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.Registry prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.shared.Registry}
- *
* <pre>
* Registry that contains list of jars, each jar contains its name and list of function signatures.
*Structure example:
*REGISTRY -&gt; Jar1.jar -&gt; upper(VARCHAR-REQUIRED)
*-&gt; upper(VARCHAR-OPTIONAL)
- *
*-&gt; Jar2.jar -&gt; lower(VARCHAR-REQUIRED)
*-&gt; lower(VARCHAR-OPTIONAL)
* </pre>
+ *
+ * Protobuf type {@code exec.shared.Registry}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.RegistryOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.Registry)
+ org.apache.drill.exec.proto.UserBitShared.RegistryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Registry_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Registry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -22760,19 +25554,17 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getJarFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (jarBuilder_ == null) {
@@ -22784,19 +25576,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Registry_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Registry getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.Registry.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Registry build() {
org.apache.drill.exec.proto.UserBitShared.Registry result = buildPartial();
if (!result.isInitialized()) {
@@ -22805,6 +25596,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Registry buildPartial() {
org.apache.drill.exec.proto.UserBitShared.Registry result = new org.apache.drill.exec.proto.UserBitShared.Registry(this);
int from_bitField0_ = bitField0_;
@@ -22821,6 +25613,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.Registry) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.Registry)other);
@@ -22851,21 +25676,24 @@ public final class UserBitShared {
jar_ = other.jar_;
bitField0_ = (bitField0_ & ~0x00000001);
jarBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getJarFieldBuilder() : null;
} else {
jarBuilder_.addAllMessages(other.jar_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -22875,7 +25703,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.Registry) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -22885,7 +25713,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // repeated .exec.shared.Jar jar = 1;
private java.util.List<org.apache.drill.exec.proto.UserBitShared.Jar> jar_ =
java.util.Collections.emptyList();
private void ensureJarIsMutable() {
@@ -22895,7 +25722,7 @@ public final class UserBitShared {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.Jar, org.apache.drill.exec.proto.UserBitShared.Jar.Builder, org.apache.drill.exec.proto.UserBitShared.JarOrBuilder> jarBuilder_;
/**
@@ -23027,7 +25854,8 @@ public final class UserBitShared {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserBitShared.Jar> values) {
if (jarBuilder_ == null) {
ensureJarIsMutable();
- super.addAll(values, jar_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, jar_);
onChanged();
} else {
jarBuilder_.addAllMessages(values);
@@ -23110,11 +25938,11 @@ public final class UserBitShared {
getJarBuilderList() {
return getJarFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.Jar, org.apache.drill.exec.proto.UserBitShared.Jar.Builder, org.apache.drill.exec.proto.UserBitShared.JarOrBuilder>
getJarFieldBuilder() {
if (jarBuilder_ == null) {
- jarBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ jarBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.Jar, org.apache.drill.exec.proto.UserBitShared.Jar.Builder, org.apache.drill.exec.proto.UserBitShared.JarOrBuilder>(
jar_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -23124,22 +25952,63 @@ public final class UserBitShared {
}
return jarBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.Registry)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.Registry)
+ private static final org.apache.drill.exec.proto.UserBitShared.Registry DEFAULT_INSTANCE;
static {
- defaultInstance = new Registry(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.Registry();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.Registry getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Registry>
+ PARSER = new com.google.protobuf.AbstractParser<Registry>() {
+ @java.lang.Override
+ public Registry parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Registry(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Registry> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Registry> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.Registry getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.Registry)
}
- public interface JarOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface JarOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.Jar)
+ com.google.protobuf.MessageOrBuilder {
- // optional string name = 1;
/**
* <code>optional string name = 1;</code>
*/
@@ -23154,12 +26023,11 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getNameBytes();
- // repeated string function_signature = 2;
/**
* <code>repeated string function_signature = 2;</code>
*/
java.util.List<java.lang.String>
- getFunctionSignatureList();
+ getFunctionSignatureList();
/**
* <code>repeated string function_signature = 2;</code>
*/
@@ -23175,43 +26043,40 @@ public final class UserBitShared {
getFunctionSignatureBytes(int index);
}
/**
- * Protobuf type {@code exec.shared.Jar}
- *
* <pre>
* Jar contains jar name and list of function signatures.
*Function signature is concatenation of function name and its input parameters.
* </pre>
+ *
+ * Protobuf type {@code exec.shared.Jar}
*/
- public static final class Jar extends
- com.google.protobuf.GeneratedMessage
- implements JarOrBuilder {
+ public static final class Jar extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.Jar)
+ JarOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Jar.newBuilder() to construct.
- private Jar(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Jar(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Jar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Jar defaultInstance;
- public static Jar getDefaultInstance() {
- return defaultInstance;
- }
-
- public Jar getDefaultInstanceForType() {
- return defaultInstance;
+ private Jar() {
+ name_ = "";
+ functionSignature_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Jar(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -23223,24 +26088,26 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
functionSignature_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
- functionSignature_.add(input.readBytes());
+ functionSignature_.add(bs);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -23249,10 +26116,10 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- functionSignature_ = new com.google.protobuf.UnmodifiableLazyStringList(functionSignature_);
+ functionSignature_ = functionSignature_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -23263,32 +26130,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Jar_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Jar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.Jar.class, org.apache.drill.exec.proto.UserBitShared.Jar.Builder.class);
}
- public static com.google.protobuf.Parser<Jar> PARSER =
- new com.google.protobuf.AbstractParser<Jar>() {
- public Jar parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Jar(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Jar> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 1;</code>
*/
@@ -23329,13 +26181,12 @@ public final class UserBitShared {
}
}
- // repeated string function_signature = 2;
public static final int FUNCTION_SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList functionSignature_;
/**
* <code>repeated string function_signature = 2;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getFunctionSignatureList() {
return functionSignature_;
}
@@ -23359,63 +26210,105 @@ public final class UserBitShared {
return functionSignature_.getByteString(index);
}
- private void initFields() {
- name_ = "";
- functionSignature_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < functionSignature_.size(); i++) {
- output.writeBytes(2, functionSignature_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionSignature_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < functionSignature_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(functionSignature_.getByteString(i));
+ dataSize += computeStringSizeNoTag(functionSignature_.getRaw(i));
}
size += dataSize;
size += 1 * getFunctionSignatureList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.Jar)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.Jar other = (org.apache.drill.exec.proto.UserBitShared.Jar) obj;
+
+ boolean result = true;
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && getFunctionSignatureList()
+ .equals(other.getFunctionSignatureList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (getFunctionSignatureCount() > 0) {
+ hash = (37 * hash) + FUNCTION_SIGNATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getFunctionSignatureList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -23438,66 +26331,81 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.Jar parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.Jar prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.shared.Jar}
- *
* <pre>
* Jar contains jar name and list of function signatures.
*Function signature is concatenation of function name and its input parameters.
* </pre>
+ *
+ * Protobuf type {@code exec.shared.Jar}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.JarOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.Jar)
+ org.apache.drill.exec.proto.UserBitShared.JarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Jar_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Jar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -23510,18 +26418,16 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
@@ -23531,19 +26437,18 @@ public final class UserBitShared {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_Jar_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Jar getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.Jar.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Jar build() {
org.apache.drill.exec.proto.UserBitShared.Jar result = buildPartial();
if (!result.isInitialized()) {
@@ -23552,6 +26457,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.Jar buildPartial() {
org.apache.drill.exec.proto.UserBitShared.Jar result = new org.apache.drill.exec.proto.UserBitShared.Jar(this);
int from_bitField0_ = bitField0_;
@@ -23561,8 +26467,7 @@ public final class UserBitShared {
}
result.name_ = name_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- functionSignature_ = new com.google.protobuf.UnmodifiableLazyStringList(
- functionSignature_);
+ functionSignature_ = functionSignature_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.functionSignature_ = functionSignature_;
@@ -23571,6 +26476,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.Jar) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.Jar)other);
@@ -23597,14 +26535,17 @@ public final class UserBitShared {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -23614,7 +26555,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.Jar) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -23624,7 +26565,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string name = 1;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 1;</code>
@@ -23638,9 +26578,12 @@ public final class UserBitShared {
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -23698,7 +26641,6 @@ public final class UserBitShared {
return this;
}
- // repeated string function_signature = 2;
private com.google.protobuf.LazyStringList functionSignature_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFunctionSignatureIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
@@ -23709,9 +26651,9 @@ public final class UserBitShared {
/**
* <code>repeated string function_signature = 2;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getFunctionSignatureList() {
- return java.util.Collections.unmodifiableList(functionSignature_);
+ return functionSignature_.getUnmodifiableView();
}
/**
* <code>repeated string function_signature = 2;</code>
@@ -23764,7 +26706,8 @@ public final class UserBitShared {
public Builder addAllFunctionSignature(
java.lang.Iterable<java.lang.String> values) {
ensureFunctionSignatureIsMutable();
- super.addAll(values, functionSignature_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, functionSignature_);
onChanged();
return this;
}
@@ -23790,22 +26733,63 @@ public final class UserBitShared {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.Jar)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.Jar)
+ private static final org.apache.drill.exec.proto.UserBitShared.Jar DEFAULT_INSTANCE;
static {
- defaultInstance = new Jar(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.Jar();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.Jar getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Jar>
+ PARSER = new com.google.protobuf.AbstractParser<Jar>() {
+ @java.lang.Override
+ public Jar parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Jar(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Jar> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Jar> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.Jar getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.Jar)
}
- public interface SaslMessageOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface SaslMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.shared.SaslMessage)
+ com.google.protobuf.MessageOrBuilder {
- // optional string mechanism = 1;
/**
* <code>optional string mechanism = 1;</code>
*/
@@ -23820,7 +26804,6 @@ public final class UserBitShared {
com.google.protobuf.ByteString
getMechanismBytes();
- // optional bytes data = 2;
/**
* <code>optional bytes data = 2;</code>
*/
@@ -23830,7 +26813,6 @@ public final class UserBitShared {
*/
com.google.protobuf.ByteString getData();
- // optional .exec.shared.SaslStatus status = 3;
/**
* <code>optional .exec.shared.SaslStatus status = 3;</code>
*/
@@ -23843,36 +26825,34 @@ public final class UserBitShared {
/**
* Protobuf type {@code exec.shared.SaslMessage}
*/
- public static final class SaslMessage extends
- com.google.protobuf.GeneratedMessage
- implements SaslMessageOrBuilder {
+ public static final class SaslMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.shared.SaslMessage)
+ SaslMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use SaslMessage.newBuilder() to construct.
- private SaslMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SaslMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private SaslMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final SaslMessage defaultInstance;
- public static SaslMessage getDefaultInstance() {
- return defaultInstance;
}
-
- public SaslMessage getDefaultInstanceForType() {
- return defaultInstance;
+ private SaslMessage() {
+ mechanism_ = "";
+ data_ = com.google.protobuf.ByteString.EMPTY;
+ status_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private SaslMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -23884,16 +26864,10 @@ public final class UserBitShared {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- mechanism_ = input.readBytes();
+ mechanism_ = bs;
break;
}
case 18: {
@@ -23903,12 +26877,20 @@ public final class UserBitShared {
}
case 24: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.SaslStatus value = org.apache.drill.exec.proto.UserBitShared.SaslStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
- status_ = value;
+ status_ = rawValue;
+ }
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
}
break;
}
@@ -23918,7 +26900,7 @@ public final class UserBitShared {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -23929,32 +26911,17 @@ public final class UserBitShared {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SaslMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SaslMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserBitShared.SaslMessage.class, org.apache.drill.exec.proto.UserBitShared.SaslMessage.Builder.class);
}
- public static com.google.protobuf.Parser<SaslMessage> PARSER =
- new com.google.protobuf.AbstractParser<SaslMessage>() {
- public SaslMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SaslMessage(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<SaslMessage> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string mechanism = 1;
public static final int MECHANISM_FIELD_NUMBER = 1;
- private java.lang.Object mechanism_;
+ private volatile java.lang.Object mechanism_;
/**
* <code>optional string mechanism = 1;</code>
*/
@@ -23995,7 +26962,6 @@ public final class UserBitShared {
}
}
- // optional bytes data = 2;
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
@@ -24011,9 +26977,8 @@ public final class UserBitShared {
return data_;
}
- // optional .exec.shared.SaslStatus status = 3;
public static final int STATUS_FIELD_NUMBER = 3;
- private org.apache.drill.exec.proto.UserBitShared.SaslStatus status_;
+ private int status_;
/**
* <code>optional .exec.shared.SaslStatus status = 3;</code>
*/
@@ -24024,47 +26989,45 @@ public final class UserBitShared {
* <code>optional .exec.shared.SaslStatus status = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SaslStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.SaslStatus result = org.apache.drill.exec.proto.UserBitShared.SaslStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN : result;
}
- private void initFields() {
- mechanism_ = "";
- data_ = com.google.protobuf.ByteString.EMPTY;
- status_ = org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getMechanismBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mechanism_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, data_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, status_.getNumber());
+ output.writeEnum(3, status_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getMechanismBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mechanism_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -24072,20 +27035,77 @@ public final class UserBitShared {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, status_.getNumber());
+ .computeEnumSize(3, status_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserBitShared.SaslMessage)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserBitShared.SaslMessage other = (org.apache.drill.exec.proto.UserBitShared.SaslMessage) obj;
+
+ boolean result = true;
+ result = result && (hasMechanism() == other.hasMechanism());
+ if (hasMechanism()) {
+ result = result && getMechanism()
+ .equals(other.getMechanism());
+ }
+ result = result && (hasData() == other.hasData());
+ if (hasData()) {
+ result = result && getData()
+ .equals(other.getData());
+ }
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMechanism()) {
+ hash = (37 * hash) + MECHANISM_FIELD_NUMBER;
+ hash = (53 * hash) + getMechanism().hashCode();
+ }
+ if (hasData()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ }
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -24109,46 +27129,59 @@ public final class UserBitShared {
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserBitShared.SaslMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.SaslMessage prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -24156,14 +27189,16 @@ public final class UserBitShared {
* Protobuf type {@code exec.shared.SaslMessage}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserBitShared.SaslMessageOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.shared.SaslMessage)
+ org.apache.drill.exec.proto.UserBitShared.SaslMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SaslMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SaslMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -24176,42 +27211,39 @@ public final class UserBitShared {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
mechanism_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
- status_ = org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserBitShared.internal_static_exec_shared_SaslMessage_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SaslMessage getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserBitShared.SaslMessage.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SaslMessage build() {
org.apache.drill.exec.proto.UserBitShared.SaslMessage result = buildPartial();
if (!result.isInitialized()) {
@@ -24220,6 +27252,7 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.SaslMessage buildPartial() {
org.apache.drill.exec.proto.UserBitShared.SaslMessage result = new org.apache.drill.exec.proto.UserBitShared.SaslMessage(this);
int from_bitField0_ = bitField0_;
@@ -24241,6 +27274,39 @@ public final class UserBitShared {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserBitShared.SaslMessage) {
return mergeFrom((org.apache.drill.exec.proto.UserBitShared.SaslMessage)other);
@@ -24263,14 +27329,17 @@ public final class UserBitShared {
if (other.hasStatus()) {
setStatus(other.getStatus());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -24280,7 +27349,7 @@ public final class UserBitShared {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserBitShared.SaslMessage) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -24290,7 +27359,6 @@ public final class UserBitShared {
}
private int bitField0_;
- // optional string mechanism = 1;
private java.lang.Object mechanism_ = "";
/**
* <code>optional string mechanism = 1;</code>
@@ -24304,9 +27372,12 @@ public final class UserBitShared {
public java.lang.String getMechanism() {
java.lang.Object ref = mechanism_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- mechanism_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ mechanism_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -24364,7 +27435,6 @@ public final class UserBitShared {
return this;
}
- // optional bytes data = 2;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes data = 2;</code>
@@ -24400,8 +27470,7 @@ public final class UserBitShared {
return this;
}
- // optional .exec.shared.SaslStatus status = 3;
- private org.apache.drill.exec.proto.UserBitShared.SaslStatus status_ = org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN;
+ private int status_ = 0;
/**
* <code>optional .exec.shared.SaslStatus status = 3;</code>
*/
@@ -24412,7 +27481,9 @@ public final class UserBitShared {
* <code>optional .exec.shared.SaslStatus status = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.SaslStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.SaslStatus result = org.apache.drill.exec.proto.UserBitShared.SaslStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN : result;
}
/**
* <code>optional .exec.shared.SaslStatus status = 3;</code>
@@ -24422,7 +27493,7 @@ public final class UserBitShared {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -24431,138 +27502,179 @@ public final class UserBitShared {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
- status_ = org.apache.drill.exec.proto.UserBitShared.SaslStatus.SASL_UNKNOWN;
+ status_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.shared.SaslMessage)
}
+ // @@protoc_insertion_point(class_scope:exec.shared.SaslMessage)
+ private static final org.apache.drill.exec.proto.UserBitShared.SaslMessage DEFAULT_INSTANCE;
static {
- defaultInstance = new SaslMessage(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserBitShared.SaslMessage();
+ }
+
+ public static org.apache.drill.exec.proto.UserBitShared.SaslMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<SaslMessage>
+ PARSER = new com.google.protobuf.AbstractParser<SaslMessage>() {
+ @java.lang.Override
+ public SaslMessage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SaslMessage(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<SaslMessage> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<SaslMessage> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserBitShared.SaslMessage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.shared.SaslMessage)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_UserCredentials_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_UserCredentials_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_QueryId_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_QueryId_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_DrillPBError_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_DrillPBError_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_ExceptionWrapper_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_ExceptionWrapper_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_StackTraceElementWrapper_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_StackTraceElementWrapper_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_ParsingError_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_ParsingError_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_RecordBatchDef_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_RecordBatchDef_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_NamePart_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_NamePart_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_SerializedField_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_SerializedField_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_NodeStatus_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_NodeStatus_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_QueryResult_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_QueryResult_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_QueryData_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_QueryData_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_QueryInfo_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_QueryInfo_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_QueryProfile_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_QueryProfile_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_MajorFragmentProfile_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_MajorFragmentProfile_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_MinorFragmentProfile_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_MinorFragmentProfile_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_OperatorProfile_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_OperatorProfile_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_StreamProfile_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_StreamProfile_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_MetricValue_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_MetricValue_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_Registry_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_Registry_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_Jar_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_Jar_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_shared_SaslMessage_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_shared_SaslMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -24575,7 +27687,7 @@ public final class UserBitShared {
"\0227\n\nerror_type\030\003 \001(\0162#.exec.shared.Drill" +
"PBError.ErrorType\022\017\n\007message\030\004 \001(\t\0220\n\tex" +
"ception\030\005 \001(\0132\035.exec.shared.ExceptionWra" +
- "pper\0220\n\rparsing_error\030\006 \003(\0132\031.exec.share",
+ "pper\0220\n\rparsing_error\030\006 \003(\0132\031.exec.share" +
"d.ParsingError\"\362\001\n\tErrorType\022\016\n\nCONNECTI" +
"ON\020\000\022\r\n\tDATA_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\014\n\010F" +
"UNCTION\020\003\022\t\n\005PARSE\020\004\022\016\n\nPERMISSION\020\005\022\010\n\004" +
@@ -24585,7 +27697,7 @@ public final class UserBitShared {
"UNSPECIFIED_ERROR\020\r\"\246\001\n\020ExceptionWrapper" +
"\022\027\n\017exception_class\030\001 \001(\t\022\017\n\007message\030\002 \001" +
"(\t\022:\n\013stack_trace\030\003 \003(\0132%.exec.shared.St" +
- "ackTraceElementWrapper\022,\n\005cause\030\004 \001(\0132\035.",
+ "ackTraceElementWrapper\022,\n\005cause\030\004 \001(\0132\035." +
"exec.shared.ExceptionWrapper\"\205\001\n\030StackTr" +
"aceElementWrapper\022\022\n\nclass_name\030\001 \001(\t\022\021\n" +
"\tfile_name\030\002 \001(\t\022\023\n\013line_number\030\003 \001(\005\022\023\n" +
@@ -24595,7 +27707,7 @@ public final class UserBitShared {
"\005\022\017\n\007end_row\030\005 \001(\005\"\233\001\n\016RecordBatchDef\022\024\n" +
"\014record_count\030\001 \001(\005\022+\n\005field\030\002 \003(\0132\034.exe" +
"c.shared.SerializedField\022)\n!carries_two_" +
- "byte_selection_vector\030\003 \001(\010\022\033\n\023affected_",
+ "byte_selection_vector\030\003 \001(\010\022\033\n\023affected_" +
"rows_count\030\004 \001(\005\"\205\001\n\010NamePart\022(\n\004type\030\001 " +
"\001(\0162\032.exec.shared.NamePart.Type\022\014\n\004name\030" +
"\002 \001(\t\022$\n\005child\030\003 \001(\0132\025.exec.shared.NameP" +
@@ -24605,7 +27717,7 @@ public final class UserBitShared {
"ared.NamePart\022+\n\005child\030\003 \003(\0132\034.exec.shar" +
"ed.SerializedField\022\023\n\013value_count\030\004 \001(\005\022" +
"\027\n\017var_byte_length\030\005 \001(\005\022\025\n\rbuffer_lengt" +
- "h\030\007 \001(\005\"7\n\nNodeStatus\022\017\n\007node_id\030\001 \001(\005\022\030",
+ "h\030\007 \001(\005\"7\n\nNodeStatus\022\017\n\007node_id\030\001 \001(\005\022\030" +
"\n\020memory_footprint\030\002 \001(\003\"\263\002\n\013QueryResult" +
"\0228\n\013query_state\030\001 \001(\0162#.exec.shared.Quer" +
"yResult.QueryState\022&\n\010query_id\030\002 \001(\0132\024.e" +
@@ -24615,7 +27727,7 @@ public final class UserBitShared {
"\010CANCELED\020\003\022\n\n\006FAILED\020\004\022\032\n\026CANCELLATION_" +
"REQUESTED\020\005\022\014\n\010ENQUEUED\020\006\022\r\n\tPREPARING\020\007" +
"\022\014\n\010PLANNING\020\010\"\215\001\n\tQueryData\022&\n\010query_id" +
- "\030\001 \001(\0132\024.exec.shared.QueryId\022\021\n\trow_coun",
+ "\030\001 \001(\0132\024.exec.shared.QueryId\022\021\n\trow_coun" +
"t\030\002 \001(\005\022(\n\003def\030\003 \001(\0132\033.exec.shared.Recor" +
"dBatchDef\022\033\n\023affected_rows_count\030\004 \001(\005\"\330" +
"\001\n\tQueryInfo\022\r\n\005query\030\001 \001(\t\022\r\n\005start\030\002 \001" +
@@ -24625,7 +27737,7 @@ public final class UserBitShared {
"ons_json\030\006 \001(\t\022\022\n\ntotal_cost\030\007 \001(\001\022\025\n\nqu" +
"eue_name\030\010 \001(\t:\001-\"\263\004\n\014QueryProfile\022 \n\002id" +
"\030\001 \001(\0132\024.exec.shared.QueryId\022$\n\004type\030\002 \001" +
- "(\0162\026.exec.shared.QueryType\022\r\n\005start\030\003 \001(",
+ "(\0162\026.exec.shared.QueryType\022\r\n\005start\030\003 \001(" +
"\003\022\013\n\003end\030\004 \001(\003\022\r\n\005query\030\005 \001(\t\022\014\n\004plan\030\006 " +
"\001(\t\022\'\n\007foreman\030\007 \001(\0132\026.exec.DrillbitEndp" +
"oint\0222\n\005state\030\010 \001(\0162#.exec.shared.QueryR" +
@@ -24635,7 +27747,7 @@ public final class UserBitShared {
"entProfile\022\017\n\004user\030\014 \001(\t:\001-\022\r\n\005error\030\r \001" +
"(\t\022\024\n\014verboseError\030\016 \001(\t\022\020\n\010error_id\030\017 \001" +
"(\t\022\022\n\nerror_node\030\020 \001(\t\022\024\n\014options_json\030\021" +
- " \001(\t\022\017\n\007planEnd\030\022 \001(\003\022\024\n\014queueWaitEnd\030\023 ",
+ " \001(\t\022\017\n\007planEnd\030\022 \001(\003\022\024\n\014queueWaitEnd\030\023 " +
"\001(\003\022\022\n\ntotal_cost\030\024 \001(\001\022\025\n\nqueue_name\030\025 " +
"\001(\t:\001-\022\017\n\007queryId\030\026 \001(\t\"t\n\024MajorFragment" +
"Profile\022\031\n\021major_fragment_id\030\001 \001(\005\022A\n\026mi" +
@@ -24645,7 +27757,7 @@ public final class UserBitShared {
"mentState\022(\n\005error\030\002 \001(\0132\031.exec.shared.D" +
"rillPBError\022\031\n\021minor_fragment_id\030\003 \001(\005\0226" +
"\n\020operator_profile\030\004 \003(\0132\034.exec.shared.O" +
- "peratorProfile\022\022\n\nstart_time\030\005 \001(\003\022\020\n\010en",
+ "peratorProfile\022\022\n\nstart_time\030\005 \001(\003\022\020\n\010en" +
"d_time\030\006 \001(\003\022\023\n\013memory_used\030\007 \001(\003\022\027\n\017max" +
"_memory_used\030\010 \001(\003\022(\n\010endpoint\030\t \001(\0132\026.e" +
"xec.DrillbitEndpoint\022\023\n\013last_update\030\n \001(" +
@@ -24655,7 +27767,7 @@ public final class UserBitShared {
"operator_type\030\004 \001(\005\022\023\n\013setup_nanos\030\005 \001(\003" +
"\022\025\n\rprocess_nanos\030\006 \001(\003\022#\n\033peak_local_me" +
"mory_allocated\030\007 \001(\003\022(\n\006metric\030\010 \003(\0132\030.e" +
- "xec.shared.MetricValue\022\022\n\nwait_nanos\030\t \001",
+ "xec.shared.MetricValue\022\022\n\nwait_nanos\030\t \001" +
"(\003\"B\n\rStreamProfile\022\017\n\007records\030\001 \001(\003\022\017\n\007" +
"batches\030\002 \001(\003\022\017\n\007schemas\030\003 \001(\003\"J\n\013Metric" +
"Value\022\021\n\tmetric_id\030\001 \001(\005\022\022\n\nlong_value\030\002" +
@@ -24665,7 +27777,7 @@ public final class UserBitShared {
"\n\013SaslMessage\022\021\n\tmechanism\030\001 \001(\t\022\014\n\004data" +
"\030\002 \001(\014\022\'\n\006status\030\003 \001(\0162\027.exec.shared.Sas" +
"lStatus*5\n\nRpcChannel\022\017\n\013BIT_CONTROL\020\000\022\014" +
- "\n\010BIT_DATA\020\001\022\010\n\004USER\020\002*V\n\tQueryType\022\007\n\003S",
+ "\n\010BIT_DATA\020\001\022\010\n\004USER\020\002*V\n\tQueryType\022\007\n\003S" +
"QL\020\001\022\013\n\007LOGICAL\020\002\022\014\n\010PHYSICAL\020\003\022\r\n\tEXECU" +
"TION\020\004\022\026\n\022PREPARED_STATEMENT\020\005*\207\001\n\rFragm" +
"entState\022\013\n\007SENDING\020\000\022\027\n\023AWAITING_ALLOCA" +
@@ -24675,7 +27787,7 @@ public final class UserBitShared {
"SENDER\020\000\022\024\n\020BROADCAST_SENDER\020\001\022\n\n\006FILTER" +
"\020\002\022\022\n\016HASH_AGGREGATE\020\003\022\r\n\tHASH_JOIN\020\004\022\016\n" +
"\nMERGE_JOIN\020\005\022\031\n\025HASH_PARTITION_SENDER\020\006" +
- "\022\t\n\005LIMIT\020\007\022\024\n\020MERGING_RECEIVER\020\010\022\034\n\030ORD",
+ "\022\t\n\005LIMIT\020\007\022\024\n\020MERGING_RECEIVER\020\010\022\034\n\030ORD" +
"ERED_PARTITION_SENDER\020\t\022\013\n\007PROJECT\020\n\022\026\n\022" +
"UNORDERED_RECEIVER\020\013\022\032\n\026RANGE_PARTITION_" +
"SENDER\020\014\022\n\n\006SCREEN\020\r\022\034\n\030SELECTION_VECTOR" +
@@ -24685,7 +27797,7 @@ public final class UserBitShared {
"W_GROUP_SCAN\020\025\022\021\n\rHIVE_SUB_SCAN\020\026\022\025\n\021SYS" +
"TEM_TABLE_SCAN\020\027\022\021\n\rMOCK_SUB_SCAN\020\030\022\022\n\016P" +
"ARQUET_WRITER\020\031\022\023\n\017DIRECT_SUB_SCAN\020\032\022\017\n\013" +
- "TEXT_WRITER\020\033\022\021\n\rTEXT_SUB_SCAN\020\034\022\021\n\rJSON",
+ "TEXT_WRITER\020\033\022\021\n\rTEXT_SUB_SCAN\020\034\022\021\n\rJSON" +
"_SUB_SCAN\020\035\022\030\n\024INFO_SCHEMA_SUB_SCAN\020\036\022\023\n" +
"\017COMPLEX_TO_JSON\020\037\022\025\n\021PRODUCER_CONSUMER\020" +
" \022\022\n\016HBASE_SUB_SCAN\020!\022\n\n\006WINDOW\020\"\022\024\n\020NES" +
@@ -24695,7 +27807,7 @@ public final class UserBitShared {
"N\020)\022\n\n\006UNNEST\020*\022,\n(HIVE_DRILL_NATIVE_PAR" +
"QUET_ROW_GROUP_SCAN\020+\022\r\n\tJDBC_SCAN\020,\022\022\n\016" +
"REGEX_SUB_SCAN\020-\022\023\n\017MAPRDB_SUB_SCAN\020.\022\022\n" +
- "\016MONGO_SUB_SCAN\020/\022\017\n\013KUDU_WRITER\0200\022\026\n\022OP",
+ "\016MONGO_SUB_SCAN\020/\022\017\n\013KUDU_WRITER\0200\022\026\n\022OP" +
"EN_TSDB_SUB_SCAN\0201\022\017\n\013JSON_WRITER\0202\022\026\n\022H" +
"TPPD_LOG_SUB_SCAN\0203\022\022\n\016IMAGE_SUB_SCAN\0204\022" +
"\025\n\021SEQUENCE_SUB_SCAN\0205\022\023\n\017PARTITION_LIMI" +
@@ -24705,149 +27817,17 @@ public final class UserBitShared {
"MAPS\020<\022\024\n\020STATISTICS_MERGE\020=*g\n\nSaslStat" +
"us\022\020\n\014SASL_UNKNOWN\020\000\022\016\n\nSASL_START\020\001\022\024\n\020" +
"SASL_IN_PROGRESS\020\002\022\020\n\014SASL_SUCCESS\020\003\022\017\n\013" +
- "SASL_FAILED\020\004B.\n\033org.apache.drill.exec.p",
+ "SASL_FAILED\020\004B.\n\033org.apache.drill.exec.p" +
"rotoB\rUserBitSharedH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_shared_UserCredentials_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_shared_UserCredentials_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_UserCredentials_descriptor,
- new java.lang.String[] { "UserName", });
- internal_static_exec_shared_QueryId_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_shared_QueryId_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_QueryId_descriptor,
- new java.lang.String[] { "Part1", "Part2", });
- internal_static_exec_shared_DrillPBError_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_shared_DrillPBError_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_DrillPBError_descriptor,
- new java.lang.String[] { "ErrorId", "Endpoint", "ErrorType", "Message", "Exception", "ParsingError", });
- internal_static_exec_shared_ExceptionWrapper_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_exec_shared_ExceptionWrapper_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_ExceptionWrapper_descriptor,
- new java.lang.String[] { "ExceptionClass", "Message", "StackTrace", "Cause", });
- internal_static_exec_shared_StackTraceElementWrapper_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_exec_shared_StackTraceElementWrapper_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_StackTraceElementWrapper_descriptor,
- new java.lang.String[] { "ClassName", "FileName", "LineNumber", "MethodName", "IsNativeMethod", });
- internal_static_exec_shared_ParsingError_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_exec_shared_ParsingError_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_ParsingError_descriptor,
- new java.lang.String[] { "StartColumn", "StartRow", "EndColumn", "EndRow", });
- internal_static_exec_shared_RecordBatchDef_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_exec_shared_RecordBatchDef_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_RecordBatchDef_descriptor,
- new java.lang.String[] { "RecordCount", "Field", "CarriesTwoByteSelectionVector", "AffectedRowsCount", });
- internal_static_exec_shared_NamePart_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_exec_shared_NamePart_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_NamePart_descriptor,
- new java.lang.String[] { "Type", "Name", "Child", });
- internal_static_exec_shared_SerializedField_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_exec_shared_SerializedField_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_SerializedField_descriptor,
- new java.lang.String[] { "MajorType", "NamePart", "Child", "ValueCount", "VarByteLength", "BufferLength", });
- internal_static_exec_shared_NodeStatus_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_exec_shared_NodeStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_NodeStatus_descriptor,
- new java.lang.String[] { "NodeId", "MemoryFootprint", });
- internal_static_exec_shared_QueryResult_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_exec_shared_QueryResult_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_QueryResult_descriptor,
- new java.lang.String[] { "QueryState", "QueryId", "Error", });
- internal_static_exec_shared_QueryData_descriptor =
- getDescriptor().getMessageTypes().get(11);
- internal_static_exec_shared_QueryData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_QueryData_descriptor,
- new java.lang.String[] { "QueryId", "RowCount", "Def", "AffectedRowsCount", });
- internal_static_exec_shared_QueryInfo_descriptor =
- getDescriptor().getMessageTypes().get(12);
- internal_static_exec_shared_QueryInfo_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_QueryInfo_descriptor,
- new java.lang.String[] { "Query", "Start", "State", "User", "Foreman", "OptionsJson", "TotalCost", "QueueName", });
- internal_static_exec_shared_QueryProfile_descriptor =
- getDescriptor().getMessageTypes().get(13);
- internal_static_exec_shared_QueryProfile_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_QueryProfile_descriptor,
- new java.lang.String[] { "Id", "Type", "Start", "End", "Query", "Plan", "Foreman", "State", "TotalFragments", "FinishedFragments", "FragmentProfile", "User", "Error", "VerboseError", "ErrorId", "ErrorNode", "OptionsJson", "PlanEnd", "QueueWaitEnd", "TotalCost", "QueueName", "QueryId", });
- internal_static_exec_shared_MajorFragmentProfile_descriptor =
- getDescriptor().getMessageTypes().get(14);
- internal_static_exec_shared_MajorFragmentProfile_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_MajorFragmentProfile_descriptor,
- new java.lang.String[] { "MajorFragmentId", "MinorFragmentProfile", });
- internal_static_exec_shared_MinorFragmentProfile_descriptor =
- getDescriptor().getMessageTypes().get(15);
- internal_static_exec_shared_MinorFragmentProfile_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_MinorFragmentProfile_descriptor,
- new java.lang.String[] { "State", "Error", "MinorFragmentId", "OperatorProfile", "StartTime", "EndTime", "MemoryUsed", "MaxMemoryUsed", "Endpoint", "LastUpdate", "LastProgress", });
- internal_static_exec_shared_OperatorProfile_descriptor =
- getDescriptor().getMessageTypes().get(16);
- internal_static_exec_shared_OperatorProfile_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_OperatorProfile_descriptor,
- new java.lang.String[] { "InputProfile", "OperatorId", "OperatorType", "SetupNanos", "ProcessNanos", "PeakLocalMemoryAllocated", "Metric", "WaitNanos", });
- internal_static_exec_shared_StreamProfile_descriptor =
- getDescriptor().getMessageTypes().get(17);
- internal_static_exec_shared_StreamProfile_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_StreamProfile_descriptor,
- new java.lang.String[] { "Records", "Batches", "Schemas", });
- internal_static_exec_shared_MetricValue_descriptor =
- getDescriptor().getMessageTypes().get(18);
- internal_static_exec_shared_MetricValue_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_MetricValue_descriptor,
- new java.lang.String[] { "MetricId", "LongValue", "DoubleValue", });
- internal_static_exec_shared_Registry_descriptor =
- getDescriptor().getMessageTypes().get(19);
- internal_static_exec_shared_Registry_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_Registry_descriptor,
- new java.lang.String[] { "Jar", });
- internal_static_exec_shared_Jar_descriptor =
- getDescriptor().getMessageTypes().get(20);
- internal_static_exec_shared_Jar_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_Jar_descriptor,
- new java.lang.String[] { "Name", "FunctionSignature", });
- internal_static_exec_shared_SaslMessage_descriptor =
- getDescriptor().getMessageTypes().get(21);
- internal_static_exec_shared_SaslMessage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_shared_SaslMessage_descriptor,
- new java.lang.String[] { "Mechanism", "Data", "Status", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
@@ -24855,6 +27835,141 @@ public final class UserBitShared {
org.apache.drill.exec.proto.CoordinationProtos.getDescriptor(),
org.apache.drill.exec.proto.SchemaDefProtos.getDescriptor(),
}, assigner);
+ internal_static_exec_shared_UserCredentials_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_shared_UserCredentials_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_UserCredentials_descriptor,
+ new java.lang.String[] { "UserName", });
+ internal_static_exec_shared_QueryId_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_shared_QueryId_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_QueryId_descriptor,
+ new java.lang.String[] { "Part1", "Part2", });
+ internal_static_exec_shared_DrillPBError_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_shared_DrillPBError_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_DrillPBError_descriptor,
+ new java.lang.String[] { "ErrorId", "Endpoint", "ErrorType", "Message", "Exception", "ParsingError", });
+ internal_static_exec_shared_ExceptionWrapper_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_exec_shared_ExceptionWrapper_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_ExceptionWrapper_descriptor,
+ new java.lang.String[] { "ExceptionClass", "Message", "StackTrace", "Cause", });
+ internal_static_exec_shared_StackTraceElementWrapper_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_exec_shared_StackTraceElementWrapper_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_StackTraceElementWrapper_descriptor,
+ new java.lang.String[] { "ClassName", "FileName", "LineNumber", "MethodName", "IsNativeMethod", });
+ internal_static_exec_shared_ParsingError_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_exec_shared_ParsingError_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_ParsingError_descriptor,
+ new java.lang.String[] { "StartColumn", "StartRow", "EndColumn", "EndRow", });
+ internal_static_exec_shared_RecordBatchDef_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_exec_shared_RecordBatchDef_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_RecordBatchDef_descriptor,
+ new java.lang.String[] { "RecordCount", "Field", "CarriesTwoByteSelectionVector", "AffectedRowsCount", });
+ internal_static_exec_shared_NamePart_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_exec_shared_NamePart_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_NamePart_descriptor,
+ new java.lang.String[] { "Type", "Name", "Child", });
+ internal_static_exec_shared_SerializedField_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_exec_shared_SerializedField_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_SerializedField_descriptor,
+ new java.lang.String[] { "MajorType", "NamePart", "Child", "ValueCount", "VarByteLength", "BufferLength", });
+ internal_static_exec_shared_NodeStatus_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_exec_shared_NodeStatus_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_NodeStatus_descriptor,
+ new java.lang.String[] { "NodeId", "MemoryFootprint", });
+ internal_static_exec_shared_QueryResult_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_exec_shared_QueryResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_QueryResult_descriptor,
+ new java.lang.String[] { "QueryState", "QueryId", "Error", });
+ internal_static_exec_shared_QueryData_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_exec_shared_QueryData_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_QueryData_descriptor,
+ new java.lang.String[] { "QueryId", "RowCount", "Def", "AffectedRowsCount", });
+ internal_static_exec_shared_QueryInfo_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_exec_shared_QueryInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_QueryInfo_descriptor,
+ new java.lang.String[] { "Query", "Start", "State", "User", "Foreman", "OptionsJson", "TotalCost", "QueueName", });
+ internal_static_exec_shared_QueryProfile_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_exec_shared_QueryProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_QueryProfile_descriptor,
+ new java.lang.String[] { "Id", "Type", "Start", "End", "Query", "Plan", "Foreman", "State", "TotalFragments", "FinishedFragments", "FragmentProfile", "User", "Error", "VerboseError", "ErrorId", "ErrorNode", "OptionsJson", "PlanEnd", "QueueWaitEnd", "TotalCost", "QueueName", "QueryId", });
+ internal_static_exec_shared_MajorFragmentProfile_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_exec_shared_MajorFragmentProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_MajorFragmentProfile_descriptor,
+ new java.lang.String[] { "MajorFragmentId", "MinorFragmentProfile", });
+ internal_static_exec_shared_MinorFragmentProfile_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_exec_shared_MinorFragmentProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_MinorFragmentProfile_descriptor,
+ new java.lang.String[] { "State", "Error", "MinorFragmentId", "OperatorProfile", "StartTime", "EndTime", "MemoryUsed", "MaxMemoryUsed", "Endpoint", "LastUpdate", "LastProgress", });
+ internal_static_exec_shared_OperatorProfile_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_exec_shared_OperatorProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_OperatorProfile_descriptor,
+ new java.lang.String[] { "InputProfile", "OperatorId", "OperatorType", "SetupNanos", "ProcessNanos", "PeakLocalMemoryAllocated", "Metric", "WaitNanos", });
+ internal_static_exec_shared_StreamProfile_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_exec_shared_StreamProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_StreamProfile_descriptor,
+ new java.lang.String[] { "Records", "Batches", "Schemas", });
+ internal_static_exec_shared_MetricValue_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_exec_shared_MetricValue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_MetricValue_descriptor,
+ new java.lang.String[] { "MetricId", "LongValue", "DoubleValue", });
+ internal_static_exec_shared_Registry_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_exec_shared_Registry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_Registry_descriptor,
+ new java.lang.String[] { "Jar", });
+ internal_static_exec_shared_Jar_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_exec_shared_Jar_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_Jar_descriptor,
+ new java.lang.String[] { "Name", "FunctionSignature", });
+ internal_static_exec_shared_SaslMessage_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_exec_shared_SaslMessage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_shared_SaslMessage_descriptor,
+ new java.lang.String[] { "Mechanism", "Data", "Status", });
+ org.apache.drill.common.types.TypeProtos.getDescriptor();
+ org.apache.drill.exec.proto.CoordinationProtos.getDescriptor();
+ org.apache.drill.exec.proto.SchemaDefProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
index d621e9434..270639ba3 100644
--- a/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/UserProtos.java
@@ -23,197 +23,203 @@ package org.apache.drill.exec.proto;
public final class UserProtos {
private UserProtos() {}
public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
- * Protobuf enum {@code exec.user.RpcType}
- *
* <pre>
*&#47;/// User &lt;-&gt; Bit RPC ///////
* </pre>
+ *
+ * Protobuf enum {@code exec.user.RpcType}
*/
public enum RpcType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>HANDSHAKE = 0;</code>
*/
- HANDSHAKE(0, 0),
+ HANDSHAKE(0),
/**
* <code>ACK = 1;</code>
*/
- ACK(1, 1),
+ ACK(1),
/**
* <code>GOODBYE = 2;</code>
*/
- GOODBYE(2, 2),
+ GOODBYE(2),
/**
- * <code>RUN_QUERY = 3;</code>
- *
* <pre>
* user to bit
* </pre>
+ *
+ * <code>RUN_QUERY = 3;</code>
*/
- RUN_QUERY(3, 3),
+ RUN_QUERY(3),
/**
- * <code>CANCEL_QUERY = 4;</code>
- *
* <pre>
* user is sending a query cancellation request to the drillbit
* </pre>
+ *
+ * <code>CANCEL_QUERY = 4;</code>
*/
- CANCEL_QUERY(4, 4),
+ CANCEL_QUERY(4),
/**
* <code>REQUEST_RESULTS = 5;</code>
*/
- REQUEST_RESULTS(5, 5),
+ REQUEST_RESULTS(5),
/**
- * <code>RESUME_PAUSED_QUERY = 11;</code>
- *
* <pre>
* user is sending a query resume request to the drillbit
* </pre>
+ *
+ * <code>RESUME_PAUSED_QUERY = 11;</code>
*/
- RESUME_PAUSED_QUERY(6, 11),
+ RESUME_PAUSED_QUERY(11),
/**
- * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code>
- *
* <pre>
* to get plan fragments from query
* </pre>
+ *
+ * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code>
*/
- GET_QUERY_PLAN_FRAGMENTS(7, 12),
+ GET_QUERY_PLAN_FRAGMENTS(12),
/**
- * <code>GET_CATALOGS = 14;</code>
- *
* <pre>
* user is requesting metadata of catalog(s).
* </pre>
+ *
+ * <code>GET_CATALOGS = 14;</code>
*/
- GET_CATALOGS(8, 14),
+ GET_CATALOGS(14),
/**
- * <code>GET_SCHEMAS = 15;</code>
- *
* <pre>
* user is requesting metadata of schema(s)
* </pre>
+ *
+ * <code>GET_SCHEMAS = 15;</code>
*/
- GET_SCHEMAS(9, 15),
+ GET_SCHEMAS(15),
/**
- * <code>GET_TABLES = 16;</code>
- *
* <pre>
* user is requesting metadata of table(s)
* </pre>
+ *
+ * <code>GET_TABLES = 16;</code>
*/
- GET_TABLES(10, 16),
+ GET_TABLES(16),
/**
- * <code>GET_COLUMNS = 17;</code>
- *
* <pre>
* user is requesting metadata of column(s)
* </pre>
+ *
+ * <code>GET_COLUMNS = 17;</code>
*/
- GET_COLUMNS(11, 17),
+ GET_COLUMNS(17),
/**
- * <code>CREATE_PREPARED_STATEMENT = 22;</code>
- *
* <pre>
* user is sending a request to create prepared statement
* </pre>
+ *
+ * <code>CREATE_PREPARED_STATEMENT = 22;</code>
*/
- CREATE_PREPARED_STATEMENT(12, 22),
+ CREATE_PREPARED_STATEMENT(22),
/**
- * <code>GET_SERVER_META = 8;</code>
- *
* <pre>
* user is sending a request to receive server metadata
* </pre>
+ *
+ * <code>GET_SERVER_META = 8;</code>
*/
- GET_SERVER_META(13, 8),
+ GET_SERVER_META(8),
/**
- * <code>QUERY_DATA = 6;</code>
- *
* <pre>
* bit to user
* </pre>
+ *
+ * <code>QUERY_DATA = 6;</code>
*/
- QUERY_DATA(14, 6),
+ QUERY_DATA(6),
/**
* <code>QUERY_HANDLE = 7;</code>
*/
- QUERY_HANDLE(15, 7),
+ QUERY_HANDLE(7),
/**
- * <code>QUERY_PLAN_FRAGMENTS = 13;</code>
- *
* <pre>
* return plan fragments
* </pre>
+ *
+ * <code>QUERY_PLAN_FRAGMENTS = 13;</code>
*/
- QUERY_PLAN_FRAGMENTS(16, 13),
+ QUERY_PLAN_FRAGMENTS(13),
/**
- * <code>CATALOGS = 18;</code>
- *
* <pre>
* return catalogs metadata in response to GET_CATALOGS
* </pre>
+ *
+ * <code>CATALOGS = 18;</code>
*/
- CATALOGS(17, 18),
+ CATALOGS(18),
/**
- * <code>SCHEMAS = 19;</code>
- *
* <pre>
* return schema metadata in response to GET_SCHEMAS
* </pre>
+ *
+ * <code>SCHEMAS = 19;</code>
*/
- SCHEMAS(18, 19),
+ SCHEMAS(19),
/**
- * <code>TABLES = 20;</code>
- *
* <pre>
* return table metadata in response to GET_TABLES
* </pre>
+ *
+ * <code>TABLES = 20;</code>
*/
- TABLES(19, 20),
+ TABLES(20),
/**
- * <code>COLUMNS = 21;</code>
- *
* <pre>
* return column metadata in response to GET_COLUMNS
* </pre>
+ *
+ * <code>COLUMNS = 21;</code>
*/
- COLUMNS(20, 21),
+ COLUMNS(21),
/**
- * <code>PREPARED_STATEMENT = 23;</code>
- *
* <pre>
* return preparated statement in response to CREATE_PREPARED_STATEMENT
* </pre>
+ *
+ * <code>PREPARED_STATEMENT = 23;</code>
*/
- PREPARED_STATEMENT(21, 23),
+ PREPARED_STATEMENT(23),
/**
- * <code>SERVER_META = 9;</code>
- *
* <pre>
* return server infos in respose to GET_SERVER_META
* </pre>
+ *
+ * <code>SERVER_META = 9;</code>
*/
- SERVER_META(22, 9),
+ SERVER_META(9),
/**
- * <code>QUERY_RESULT = 10;</code>
- *
* <pre>
* drillbit is reporting a query status change, most likely a terminal message, to the user
* </pre>
+ *
+ * <code>QUERY_RESULT = 10;</code>
*/
- QUERY_RESULT(23, 10),
+ QUERY_RESULT(10),
/**
- * <code>SASL_MESSAGE = 24;</code>
- *
* <pre>
* user to bit and bit to user
* </pre>
+ *
+ * <code>SASL_MESSAGE = 24;</code>
*/
- SASL_MESSAGE(24, 24),
+ SASL_MESSAGE(24),
;
/**
@@ -229,19 +235,19 @@ public final class UserProtos {
*/
public static final int GOODBYE_VALUE = 2;
/**
- * <code>RUN_QUERY = 3;</code>
- *
* <pre>
* user to bit
* </pre>
+ *
+ * <code>RUN_QUERY = 3;</code>
*/
public static final int RUN_QUERY_VALUE = 3;
/**
- * <code>CANCEL_QUERY = 4;</code>
- *
* <pre>
* user is sending a query cancellation request to the drillbit
* </pre>
+ *
+ * <code>CANCEL_QUERY = 4;</code>
*/
public static final int CANCEL_QUERY_VALUE = 4;
/**
@@ -249,75 +255,75 @@ public final class UserProtos {
*/
public static final int REQUEST_RESULTS_VALUE = 5;
/**
- * <code>RESUME_PAUSED_QUERY = 11;</code>
- *
* <pre>
* user is sending a query resume request to the drillbit
* </pre>
+ *
+ * <code>RESUME_PAUSED_QUERY = 11;</code>
*/
public static final int RESUME_PAUSED_QUERY_VALUE = 11;
/**
- * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code>
- *
* <pre>
* to get plan fragments from query
* </pre>
+ *
+ * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code>
*/
public static final int GET_QUERY_PLAN_FRAGMENTS_VALUE = 12;
/**
- * <code>GET_CATALOGS = 14;</code>
- *
* <pre>
* user is requesting metadata of catalog(s).
* </pre>
+ *
+ * <code>GET_CATALOGS = 14;</code>
*/
public static final int GET_CATALOGS_VALUE = 14;
/**
- * <code>GET_SCHEMAS = 15;</code>
- *
* <pre>
* user is requesting metadata of schema(s)
* </pre>
+ *
+ * <code>GET_SCHEMAS = 15;</code>
*/
public static final int GET_SCHEMAS_VALUE = 15;
/**
- * <code>GET_TABLES = 16;</code>
- *
* <pre>
* user is requesting metadata of table(s)
* </pre>
+ *
+ * <code>GET_TABLES = 16;</code>
*/
public static final int GET_TABLES_VALUE = 16;
/**
- * <code>GET_COLUMNS = 17;</code>
- *
* <pre>
* user is requesting metadata of column(s)
* </pre>
+ *
+ * <code>GET_COLUMNS = 17;</code>
*/
public static final int GET_COLUMNS_VALUE = 17;
/**
- * <code>CREATE_PREPARED_STATEMENT = 22;</code>
- *
* <pre>
* user is sending a request to create prepared statement
* </pre>
+ *
+ * <code>CREATE_PREPARED_STATEMENT = 22;</code>
*/
public static final int CREATE_PREPARED_STATEMENT_VALUE = 22;
/**
- * <code>GET_SERVER_META = 8;</code>
- *
* <pre>
* user is sending a request to receive server metadata
* </pre>
+ *
+ * <code>GET_SERVER_META = 8;</code>
*/
public static final int GET_SERVER_META_VALUE = 8;
/**
- * <code>QUERY_DATA = 6;</code>
- *
* <pre>
* bit to user
* </pre>
+ *
+ * <code>QUERY_DATA = 6;</code>
*/
public static final int QUERY_DATA_VALUE = 6;
/**
@@ -325,82 +331,92 @@ public final class UserProtos {
*/
public static final int QUERY_HANDLE_VALUE = 7;
/**
- * <code>QUERY_PLAN_FRAGMENTS = 13;</code>
- *
* <pre>
* return plan fragments
* </pre>
+ *
+ * <code>QUERY_PLAN_FRAGMENTS = 13;</code>
*/
public static final int QUERY_PLAN_FRAGMENTS_VALUE = 13;
/**
- * <code>CATALOGS = 18;</code>
- *
* <pre>
* return catalogs metadata in response to GET_CATALOGS
* </pre>
+ *
+ * <code>CATALOGS = 18;</code>
*/
public static final int CATALOGS_VALUE = 18;
/**
- * <code>SCHEMAS = 19;</code>
- *
* <pre>
* return schema metadata in response to GET_SCHEMAS
* </pre>
+ *
+ * <code>SCHEMAS = 19;</code>
*/
public static final int SCHEMAS_VALUE = 19;
/**
- * <code>TABLES = 20;</code>
- *
* <pre>
* return table metadata in response to GET_TABLES
* </pre>
+ *
+ * <code>TABLES = 20;</code>
*/
public static final int TABLES_VALUE = 20;
/**
- * <code>COLUMNS = 21;</code>
- *
* <pre>
* return column metadata in response to GET_COLUMNS
* </pre>
+ *
+ * <code>COLUMNS = 21;</code>
*/
public static final int COLUMNS_VALUE = 21;
/**
- * <code>PREPARED_STATEMENT = 23;</code>
- *
* <pre>
* return preparated statement in response to CREATE_PREPARED_STATEMENT
* </pre>
+ *
+ * <code>PREPARED_STATEMENT = 23;</code>
*/
public static final int PREPARED_STATEMENT_VALUE = 23;
/**
- * <code>SERVER_META = 9;</code>
- *
* <pre>
* return server infos in respose to GET_SERVER_META
* </pre>
+ *
+ * <code>SERVER_META = 9;</code>
*/
public static final int SERVER_META_VALUE = 9;
/**
- * <code>QUERY_RESULT = 10;</code>
- *
* <pre>
* drillbit is reporting a query status change, most likely a terminal message, to the user
* </pre>
+ *
+ * <code>QUERY_RESULT = 10;</code>
*/
public static final int QUERY_RESULT_VALUE = 10;
/**
- * <code>SASL_MESSAGE = 24;</code>
- *
* <pre>
* user to bit and bit to user
* </pre>
+ *
+ * <code>SASL_MESSAGE = 24;</code>
*/
public static final int SASL_MESSAGE_VALUE = 24;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RpcType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RpcType forNumber(int value) {
switch (value) {
case 0: return HANDSHAKE;
case 1: return ACK;
@@ -435,17 +451,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RpcType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
public RpcType findValueByNumber(int number) {
- return RpcType.valueOf(number);
+ return RpcType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -467,11 +483,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RpcType(int index, int value) {
- this.index = index;
+ private RpcType(int value) {
this.value = value;
}
@@ -486,15 +500,15 @@ public final class UserProtos {
/**
* <code>UNKNOWN_SASL_SUPPORT = 0;</code>
*/
- UNKNOWN_SASL_SUPPORT(0, 0),
+ UNKNOWN_SASL_SUPPORT(0),
/**
* <code>SASL_AUTH = 1;</code>
*/
- SASL_AUTH(1, 1),
+ SASL_AUTH(1),
/**
* <code>SASL_PRIVACY = 2;</code>
*/
- SASL_PRIVACY(2, 2),
+ SASL_PRIVACY(2),
;
/**
@@ -511,9 +525,19 @@ public final class UserProtos {
public static final int SASL_PRIVACY_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static SaslSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SaslSupport forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_SASL_SUPPORT;
case 1: return SASL_AUTH;
@@ -526,17 +550,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<SaslSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ SaslSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<SaslSupport>() {
public SaslSupport findValueByNumber(int number) {
- return SaslSupport.valueOf(number);
+ return SaslSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -558,11 +582,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private SaslSupport(int index, int value) {
- this.index = index;
+ private SaslSupport(int value) {
this.value = value;
}
@@ -575,28 +597,38 @@ public final class UserProtos {
public enum QueryResultsMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>STREAM_FULL = 1;</code>
- *
* <pre>
* Server will inform the client regularly on the status of the query. Once the query is completed, service will inform the client as each query chunk is made available.
* </pre>
+ *
+ * <code>STREAM_FULL = 1;</code>
*/
- STREAM_FULL(0, 1),
+ STREAM_FULL(1),
;
/**
- * <code>STREAM_FULL = 1;</code>
- *
* <pre>
* Server will inform the client regularly on the status of the query. Once the query is completed, service will inform the client as each query chunk is made available.
* </pre>
+ *
+ * <code>STREAM_FULL = 1;</code>
*/
public static final int STREAM_FULL_VALUE = 1;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static QueryResultsMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static QueryResultsMode forNumber(int value) {
switch (value) {
case 1: return STREAM_FULL;
default: return null;
@@ -607,17 +639,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<QueryResultsMode>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ QueryResultsMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<QueryResultsMode>() {
public QueryResultsMode findValueByNumber(int number) {
- return QueryResultsMode.valueOf(number);
+ return QueryResultsMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -639,11 +671,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private QueryResultsMode(int index, int value) {
- this.index = index;
+ private QueryResultsMode(int value) {
this.value = value;
}
@@ -656,92 +686,102 @@ public final class UserProtos {
public enum HandshakeStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>SUCCESS = 1;</code>
- *
* <pre>
* Handshake is successful (including authentication if any)
* </pre>
+ *
+ * <code>SUCCESS = 1;</code>
*/
- SUCCESS(0, 1),
+ SUCCESS(1),
/**
- * <code>RPC_VERSION_MISMATCH = 2;</code>
- *
* <pre>
* Client and Server RPC versions are different
* </pre>
+ *
+ * <code>RPC_VERSION_MISMATCH = 2;</code>
*/
- RPC_VERSION_MISMATCH(1, 2),
+ RPC_VERSION_MISMATCH(2),
/**
- * <code>AUTH_FAILED = 3;</code>
- *
* <pre>
* User authentication failed
* </pre>
+ *
+ * <code>AUTH_FAILED = 3;</code>
*/
- AUTH_FAILED(2, 3),
+ AUTH_FAILED(3),
/**
- * <code>UNKNOWN_FAILURE = 4;</code>
- *
* <pre>
* Unknown failure, refer to the error message for more details
* </pre>
+ *
+ * <code>UNKNOWN_FAILURE = 4;</code>
*/
- UNKNOWN_FAILURE(3, 4),
+ UNKNOWN_FAILURE(4),
/**
- * <code>AUTH_REQUIRED = 5;</code>
- *
* <pre>
* User authentication required
* </pre>
+ *
+ * <code>AUTH_REQUIRED = 5;</code>
*/
- AUTH_REQUIRED(4, 5),
+ AUTH_REQUIRED(5),
;
/**
- * <code>SUCCESS = 1;</code>
- *
* <pre>
* Handshake is successful (including authentication if any)
* </pre>
+ *
+ * <code>SUCCESS = 1;</code>
*/
public static final int SUCCESS_VALUE = 1;
/**
- * <code>RPC_VERSION_MISMATCH = 2;</code>
- *
* <pre>
* Client and Server RPC versions are different
* </pre>
+ *
+ * <code>RPC_VERSION_MISMATCH = 2;</code>
*/
public static final int RPC_VERSION_MISMATCH_VALUE = 2;
/**
- * <code>AUTH_FAILED = 3;</code>
- *
* <pre>
* User authentication failed
* </pre>
+ *
+ * <code>AUTH_FAILED = 3;</code>
*/
public static final int AUTH_FAILED_VALUE = 3;
/**
- * <code>UNKNOWN_FAILURE = 4;</code>
- *
* <pre>
* Unknown failure, refer to the error message for more details
* </pre>
+ *
+ * <code>UNKNOWN_FAILURE = 4;</code>
*/
public static final int UNKNOWN_FAILURE_VALUE = 4;
/**
- * <code>AUTH_REQUIRED = 5;</code>
- *
* <pre>
* User authentication required
* </pre>
+ *
+ * <code>AUTH_REQUIRED = 5;</code>
*/
public static final int AUTH_REQUIRED_VALUE = 5;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static HandshakeStatus valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HandshakeStatus forNumber(int value) {
switch (value) {
case 1: return SUCCESS;
case 2: return RPC_VERSION_MISMATCH;
@@ -756,17 +796,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<HandshakeStatus>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ HandshakeStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<HandshakeStatus>() {
public HandshakeStatus findValueByNumber(int number) {
- return HandshakeStatus.valueOf(number);
+ return HandshakeStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -788,11 +828,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private HandshakeStatus(int index, int value) {
- this.index = index;
+ private HandshakeStatus(int value) {
this.value = value;
}
@@ -800,36 +838,35 @@ public final class UserProtos {
}
/**
- * Protobuf enum {@code exec.user.RequestStatus}
- *
* <pre>
- *
* Enum indicating the request status.
* </pre>
+ *
+ * Protobuf enum {@code exec.user.RequestStatus}
*/
public enum RequestStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UNKNOWN_STATUS = 0;</code>
*/
- UNKNOWN_STATUS(0, 0),
+ UNKNOWN_STATUS(0),
/**
* <code>OK = 1;</code>
*/
- OK(1, 1),
+ OK(1),
/**
* <code>FAILED = 2;</code>
*/
- FAILED(2, 2),
+ FAILED(2),
/**
- * <code>TIMEOUT = 3;</code>
- *
* <pre>
**
* Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request.
* </pre>
+ *
+ * <code>TIMEOUT = 3;</code>
*/
- TIMEOUT(3, 3),
+ TIMEOUT(3),
;
/**
@@ -845,19 +882,29 @@ public final class UserProtos {
*/
public static final int FAILED_VALUE = 2;
/**
- * <code>TIMEOUT = 3;</code>
- *
* <pre>
**
* Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request.
* </pre>
+ *
+ * <code>TIMEOUT = 3;</code>
*/
public static final int TIMEOUT_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static RequestStatus valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static RequestStatus forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_STATUS;
case 1: return OK;
@@ -871,17 +918,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<RequestStatus>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RequestStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RequestStatus>() {
public RequestStatus findValueByNumber(int number) {
- return RequestStatus.valueOf(number);
+ return RequestStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -903,11 +950,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private RequestStatus(int index, int value) {
- this.index = index;
+ private RequestStatus(int value) {
this.value = value;
}
@@ -915,51 +960,50 @@ public final class UserProtos {
}
/**
- * Protobuf enum {@code exec.user.ColumnSearchability}
- *
* <pre>
- *
* How a column can be used in WHERE clause
* </pre>
+ *
+ * Protobuf enum {@code exec.user.ColumnSearchability}
*/
public enum ColumnSearchability
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UNKNOWN_SEARCHABILITY = 0;</code>
*/
- UNKNOWN_SEARCHABILITY(0, 0),
+ UNKNOWN_SEARCHABILITY(0),
/**
- * <code>NONE = 1;</code>
- *
* <pre>
* can't be used in WHERE clause
* </pre>
+ *
+ * <code>NONE = 1;</code>
*/
- NONE(1, 1),
+ NONE(1),
/**
- * <code>CHAR = 2;</code>
- *
* <pre>
* can be used in WHERE clause but only with LIKE predicate
* </pre>
+ *
+ * <code>CHAR = 2;</code>
*/
- CHAR(2, 2),
+ CHAR(2),
/**
- * <code>NUMBER = 3;</code>
- *
* <pre>
* can be used in a WHERE clause with all the comparison operators except LIKE
* </pre>
+ *
+ * <code>NUMBER = 3;</code>
*/
- NUMBER(3, 3),
+ NUMBER(3),
/**
- * <code>ALL = 4;</code>
- *
* <pre>
* can be used in a WHERE clause with all the comparison operators
* </pre>
+ *
+ * <code>ALL = 4;</code>
*/
- ALL(4, 4),
+ ALL(4),
;
/**
@@ -967,42 +1011,52 @@ public final class UserProtos {
*/
public static final int UNKNOWN_SEARCHABILITY_VALUE = 0;
/**
- * <code>NONE = 1;</code>
- *
* <pre>
* can't be used in WHERE clause
* </pre>
+ *
+ * <code>NONE = 1;</code>
*/
public static final int NONE_VALUE = 1;
/**
- * <code>CHAR = 2;</code>
- *
* <pre>
* can be used in WHERE clause but only with LIKE predicate
* </pre>
+ *
+ * <code>CHAR = 2;</code>
*/
public static final int CHAR_VALUE = 2;
/**
- * <code>NUMBER = 3;</code>
- *
* <pre>
* can be used in a WHERE clause with all the comparison operators except LIKE
* </pre>
+ *
+ * <code>NUMBER = 3;</code>
*/
public static final int NUMBER_VALUE = 3;
/**
- * <code>ALL = 4;</code>
- *
* <pre>
* can be used in a WHERE clause with all the comparison operators
* </pre>
+ *
+ * <code>ALL = 4;</code>
*/
public static final int ALL_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static ColumnSearchability valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ColumnSearchability forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_SEARCHABILITY;
case 1: return NONE;
@@ -1017,17 +1071,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<ColumnSearchability>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ColumnSearchability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ColumnSearchability>() {
public ColumnSearchability findValueByNumber(int number) {
- return ColumnSearchability.valueOf(number);
+ return ColumnSearchability.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1049,11 +1103,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private ColumnSearchability(int index, int value) {
- this.index = index;
+ private ColumnSearchability(int value) {
this.value = value;
}
@@ -1061,27 +1113,26 @@ public final class UserProtos {
}
/**
- * Protobuf enum {@code exec.user.ColumnUpdatability}
- *
* <pre>
- *
* Whether a column can be updatable.
* </pre>
+ *
+ * Protobuf enum {@code exec.user.ColumnUpdatability}
*/
public enum ColumnUpdatability
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UNKNOWN_UPDATABILITY = 0;</code>
*/
- UNKNOWN_UPDATABILITY(0, 0),
+ UNKNOWN_UPDATABILITY(0),
/**
* <code>READ_ONLY = 1;</code>
*/
- READ_ONLY(1, 1),
+ READ_ONLY(1),
/**
* <code>WRITABLE = 2;</code>
*/
- WRITABLE(2, 2),
+ WRITABLE(2),
;
/**
@@ -1098,9 +1149,19 @@ public final class UserProtos {
public static final int WRITABLE_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static ColumnUpdatability valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ColumnUpdatability forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_UPDATABILITY;
case 1: return READ_ONLY;
@@ -1113,17 +1174,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<ColumnUpdatability>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ColumnUpdatability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ColumnUpdatability>() {
public ColumnUpdatability findValueByNumber(int number) {
- return ColumnUpdatability.valueOf(number);
+ return ColumnUpdatability.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1145,11 +1206,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private ColumnUpdatability(int index, int value) {
- this.index = index;
+ private ColumnUpdatability(int value) {
this.value = value;
}
@@ -1162,44 +1221,54 @@ public final class UserProtos {
public enum CollateSupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>CS_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>CS_UNKNOWN = 0;</code>
*/
- CS_UNKNOWN(0, 0),
+ CS_UNKNOWN(0),
/**
- * <code>CS_GROUP_BY = 1;</code>
- *
* <pre>
* COLLATE clause can be added after each grouping column
* </pre>
+ *
+ * <code>CS_GROUP_BY = 1;</code>
*/
- CS_GROUP_BY(1, 1),
+ CS_GROUP_BY(1),
;
/**
- * <code>CS_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>CS_UNKNOWN = 0;</code>
*/
public static final int CS_UNKNOWN_VALUE = 0;
/**
- * <code>CS_GROUP_BY = 1;</code>
- *
* <pre>
* COLLATE clause can be added after each grouping column
* </pre>
+ *
+ * <code>CS_GROUP_BY = 1;</code>
*/
public static final int CS_GROUP_BY_VALUE = 1;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CollateSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CollateSupport forNumber(int value) {
switch (value) {
case 0: return CS_UNKNOWN;
case 1: return CS_GROUP_BY;
@@ -1211,17 +1280,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<CollateSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ CollateSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CollateSupport>() {
public CollateSupport findValueByNumber(int number) {
- return CollateSupport.valueOf(number);
+ return CollateSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1243,11 +1312,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private CollateSupport(int index, int value) {
- this.index = index;
+ private CollateSupport(int value) {
this.value = value;
}
@@ -1260,60 +1327,70 @@ public final class UserProtos {
public enum CorrelationNamesSupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>CN_NONE = 1;</code>
- *
* <pre>
* Correlation names are not supported
* </pre>
+ *
+ * <code>CN_NONE = 1;</code>
*/
- CN_NONE(0, 1),
+ CN_NONE(1),
/**
- * <code>CN_DIFFERENT_NAMES = 2;</code>
- *
* <pre>
* Correlation names are supported, but names have to
* </pre>
+ *
+ * <code>CN_DIFFERENT_NAMES = 2;</code>
*/
- CN_DIFFERENT_NAMES(1, 2),
+ CN_DIFFERENT_NAMES(2),
/**
- * <code>CN_ANY = 3;</code>
- *
* <pre>
* be different from the tables they represent
* </pre>
+ *
+ * <code>CN_ANY = 3;</code>
*/
- CN_ANY(2, 3),
+ CN_ANY(3),
;
/**
- * <code>CN_NONE = 1;</code>
- *
* <pre>
* Correlation names are not supported
* </pre>
+ *
+ * <code>CN_NONE = 1;</code>
*/
public static final int CN_NONE_VALUE = 1;
/**
- * <code>CN_DIFFERENT_NAMES = 2;</code>
- *
* <pre>
* Correlation names are supported, but names have to
* </pre>
+ *
+ * <code>CN_DIFFERENT_NAMES = 2;</code>
*/
public static final int CN_DIFFERENT_NAMES_VALUE = 2;
/**
- * <code>CN_ANY = 3;</code>
- *
* <pre>
* be different from the tables they represent
* </pre>
+ *
+ * <code>CN_ANY = 3;</code>
*/
public static final int CN_ANY_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CorrelationNamesSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CorrelationNamesSupport forNumber(int value) {
switch (value) {
case 1: return CN_NONE;
case 2: return CN_DIFFERENT_NAMES;
@@ -1326,17 +1403,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<CorrelationNamesSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ CorrelationNamesSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CorrelationNamesSupport>() {
public CorrelationNamesSupport findValueByNumber(int number) {
- return CorrelationNamesSupport.valueOf(number);
+ return CorrelationNamesSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1358,11 +1435,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private CorrelationNamesSupport(int index, int value) {
- this.index = index;
+ private CorrelationNamesSupport(int value) {
this.value = value;
}
@@ -1375,284 +1450,294 @@ public final class UserProtos {
public enum DateTimeLiteralsSupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>DL_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>DL_UNKNOWN = 0;</code>
*/
- DL_UNKNOWN(0, 0),
+ DL_UNKNOWN(0),
/**
- * <code>DL_DATE = 1;</code>
- *
* <pre>
* DATE literal is supported
* </pre>
+ *
+ * <code>DL_DATE = 1;</code>
*/
- DL_DATE(1, 1),
+ DL_DATE(1),
/**
- * <code>DL_TIME = 2;</code>
- *
* <pre>
* TIME literal is supported
* </pre>
+ *
+ * <code>DL_TIME = 2;</code>
*/
- DL_TIME(2, 2),
+ DL_TIME(2),
/**
- * <code>DL_TIMESTAMP = 3;</code>
- *
* <pre>
* TIMESTAMP literal is supported
* </pre>
+ *
+ * <code>DL_TIMESTAMP = 3;</code>
*/
- DL_TIMESTAMP(3, 3),
+ DL_TIMESTAMP(3),
/**
- * <code>DL_INTERVAL_YEAR = 4;</code>
- *
* <pre>
* INTERVAL YEAR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_YEAR = 4;</code>
*/
- DL_INTERVAL_YEAR(4, 4),
+ DL_INTERVAL_YEAR(4),
/**
- * <code>DL_INTERVAL_MONTH = 5;</code>
- *
* <pre>
* INTERVAL MONTH literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MONTH = 5;</code>
*/
- DL_INTERVAL_MONTH(5, 5),
+ DL_INTERVAL_MONTH(5),
/**
- * <code>DL_INTERVAL_DAY = 6;</code>
- *
* <pre>
* INTERVAL DAY literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY = 6;</code>
*/
- DL_INTERVAL_DAY(6, 6),
+ DL_INTERVAL_DAY(6),
/**
- * <code>DL_INTERVAL_HOUR = 7;</code>
- *
* <pre>
* INTERVAL HOUR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR = 7;</code>
*/
- DL_INTERVAL_HOUR(7, 7),
+ DL_INTERVAL_HOUR(7),
/**
- * <code>DL_INTERVAL_MINUTE = 8;</code>
- *
* <pre>
* INTERVAL MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MINUTE = 8;</code>
*/
- DL_INTERVAL_MINUTE(8, 8),
+ DL_INTERVAL_MINUTE(8),
/**
- * <code>DL_INTERVAL_SECOND = 9;</code>
- *
* <pre>
* INTERVAL SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_SECOND = 9;</code>
*/
- DL_INTERVAL_SECOND(9, 9),
+ DL_INTERVAL_SECOND(9),
/**
- * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code>
- *
* <pre>
* INTERVAL YEAR TO MONTH literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code>
*/
- DL_INTERVAL_YEAR_TO_MONTH(10, 10),
+ DL_INTERVAL_YEAR_TO_MONTH(10),
/**
- * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code>
- *
* <pre>
* INTERVAL DAY TO HOUR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code>
*/
- DL_INTERVAL_DAY_TO_HOUR(11, 11),
+ DL_INTERVAL_DAY_TO_HOUR(11),
/**
- * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code>
- *
* <pre>
* INTERVAL DAY TO MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code>
*/
- DL_INTERVAL_DAY_TO_MINUTE(12, 12),
+ DL_INTERVAL_DAY_TO_MINUTE(12),
/**
- * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code>
- *
* <pre>
* INTERVAL DAY TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code>
*/
- DL_INTERVAL_DAY_TO_SECOND(13, 13),
+ DL_INTERVAL_DAY_TO_SECOND(13),
/**
- * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code>
- *
* <pre>
* INTERVAL HOUR TO MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code>
*/
- DL_INTERVAL_HOUR_TO_MINUTE(14, 14),
+ DL_INTERVAL_HOUR_TO_MINUTE(14),
/**
- * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code>
- *
* <pre>
* INTERVAL HOUR TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code>
*/
- DL_INTERVAL_HOUR_TO_SECOND(15, 15),
+ DL_INTERVAL_HOUR_TO_SECOND(15),
/**
- * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code>
- *
* <pre>
* INTERVAL MINUTE TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code>
*/
- DL_INTERVAL_MINUTE_TO_SECOND(16, 16),
+ DL_INTERVAL_MINUTE_TO_SECOND(16),
;
/**
- * <code>DL_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>DL_UNKNOWN = 0;</code>
*/
public static final int DL_UNKNOWN_VALUE = 0;
/**
- * <code>DL_DATE = 1;</code>
- *
* <pre>
* DATE literal is supported
* </pre>
+ *
+ * <code>DL_DATE = 1;</code>
*/
public static final int DL_DATE_VALUE = 1;
/**
- * <code>DL_TIME = 2;</code>
- *
* <pre>
* TIME literal is supported
* </pre>
+ *
+ * <code>DL_TIME = 2;</code>
*/
public static final int DL_TIME_VALUE = 2;
/**
- * <code>DL_TIMESTAMP = 3;</code>
- *
* <pre>
* TIMESTAMP literal is supported
* </pre>
+ *
+ * <code>DL_TIMESTAMP = 3;</code>
*/
public static final int DL_TIMESTAMP_VALUE = 3;
/**
- * <code>DL_INTERVAL_YEAR = 4;</code>
- *
* <pre>
* INTERVAL YEAR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_YEAR = 4;</code>
*/
public static final int DL_INTERVAL_YEAR_VALUE = 4;
/**
- * <code>DL_INTERVAL_MONTH = 5;</code>
- *
* <pre>
* INTERVAL MONTH literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MONTH = 5;</code>
*/
public static final int DL_INTERVAL_MONTH_VALUE = 5;
/**
- * <code>DL_INTERVAL_DAY = 6;</code>
- *
* <pre>
* INTERVAL DAY literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY = 6;</code>
*/
public static final int DL_INTERVAL_DAY_VALUE = 6;
/**
- * <code>DL_INTERVAL_HOUR = 7;</code>
- *
* <pre>
* INTERVAL HOUR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR = 7;</code>
*/
public static final int DL_INTERVAL_HOUR_VALUE = 7;
/**
- * <code>DL_INTERVAL_MINUTE = 8;</code>
- *
* <pre>
* INTERVAL MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MINUTE = 8;</code>
*/
public static final int DL_INTERVAL_MINUTE_VALUE = 8;
/**
- * <code>DL_INTERVAL_SECOND = 9;</code>
- *
* <pre>
* INTERVAL SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_SECOND = 9;</code>
*/
public static final int DL_INTERVAL_SECOND_VALUE = 9;
/**
- * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code>
- *
* <pre>
* INTERVAL YEAR TO MONTH literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code>
*/
public static final int DL_INTERVAL_YEAR_TO_MONTH_VALUE = 10;
/**
- * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code>
- *
* <pre>
* INTERVAL DAY TO HOUR literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code>
*/
public static final int DL_INTERVAL_DAY_TO_HOUR_VALUE = 11;
/**
- * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code>
- *
* <pre>
* INTERVAL DAY TO MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code>
*/
public static final int DL_INTERVAL_DAY_TO_MINUTE_VALUE = 12;
/**
- * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code>
- *
* <pre>
* INTERVAL DAY TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code>
*/
public static final int DL_INTERVAL_DAY_TO_SECOND_VALUE = 13;
/**
- * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code>
- *
* <pre>
* INTERVAL HOUR TO MINUTE literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code>
*/
public static final int DL_INTERVAL_HOUR_TO_MINUTE_VALUE = 14;
/**
- * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code>
- *
* <pre>
* INTERVAL HOUR TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code>
*/
public static final int DL_INTERVAL_HOUR_TO_SECOND_VALUE = 15;
/**
- * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code>
- *
* <pre>
* INTERVAL MINUTE TO SECOND literal is supported
* </pre>
+ *
+ * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code>
*/
public static final int DL_INTERVAL_MINUTE_TO_SECOND_VALUE = 16;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static DateTimeLiteralsSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DateTimeLiteralsSupport forNumber(int value) {
switch (value) {
case 0: return DL_UNKNOWN;
case 1: return DL_DATE;
@@ -1679,17 +1764,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<DateTimeLiteralsSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ DateTimeLiteralsSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DateTimeLiteralsSupport>() {
public DateTimeLiteralsSupport findValueByNumber(int number) {
- return DateTimeLiteralsSupport.valueOf(number);
+ return DateTimeLiteralsSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1711,11 +1796,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private DateTimeLiteralsSupport(int index, int value) {
- this.index = index;
+ private DateTimeLiteralsSupport(int value) {
this.value = value;
}
@@ -1728,78 +1811,88 @@ public final class UserProtos {
public enum GroupBySupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>GB_NONE = 1;</code>
- *
* <pre>
* Group by is not supported
* </pre>
+ *
+ * <code>GB_NONE = 1;</code>
*/
- GB_NONE(0, 1),
+ GB_NONE(1),
/**
- * <code>GB_SELECT_ONLY = 2;</code>
- *
* <pre>
* Group by supported with non aggregated columns in select
* </pre>
+ *
+ * <code>GB_SELECT_ONLY = 2;</code>
*/
- GB_SELECT_ONLY(1, 2),
+ GB_SELECT_ONLY(2),
/**
- * <code>GB_BEYOND_SELECT = 3;</code>
- *
* <pre>
* Group by supported with columns absent from the select list
*if all the non-aggregated colums from the select list are also added
* </pre>
+ *
+ * <code>GB_BEYOND_SELECT = 3;</code>
*/
- GB_BEYOND_SELECT(2, 3),
+ GB_BEYOND_SELECT(3),
/**
- * <code>GB_UNRELATED = 4;</code>
- *
* <pre>
* Group by supported with columns absent from the select list
* </pre>
+ *
+ * <code>GB_UNRELATED = 4;</code>
*/
- GB_UNRELATED(3, 4),
+ GB_UNRELATED(4),
;
/**
- * <code>GB_NONE = 1;</code>
- *
* <pre>
* Group by is not supported
* </pre>
+ *
+ * <code>GB_NONE = 1;</code>
*/
public static final int GB_NONE_VALUE = 1;
/**
- * <code>GB_SELECT_ONLY = 2;</code>
- *
* <pre>
* Group by supported with non aggregated columns in select
* </pre>
+ *
+ * <code>GB_SELECT_ONLY = 2;</code>
*/
public static final int GB_SELECT_ONLY_VALUE = 2;
/**
- * <code>GB_BEYOND_SELECT = 3;</code>
- *
* <pre>
* Group by supported with columns absent from the select list
*if all the non-aggregated colums from the select list are also added
* </pre>
+ *
+ * <code>GB_BEYOND_SELECT = 3;</code>
*/
public static final int GB_BEYOND_SELECT_VALUE = 3;
/**
- * <code>GB_UNRELATED = 4;</code>
- *
* <pre>
* Group by supported with columns absent from the select list
* </pre>
+ *
+ * <code>GB_UNRELATED = 4;</code>
*/
public static final int GB_UNRELATED_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static GroupBySupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static GroupBySupport forNumber(int value) {
switch (value) {
case 1: return GB_NONE;
case 2: return GB_SELECT_ONLY;
@@ -1813,17 +1906,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<GroupBySupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ GroupBySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GroupBySupport>() {
public GroupBySupport findValueByNumber(int number) {
- return GroupBySupport.valueOf(number);
+ return GroupBySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -1845,11 +1938,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private GroupBySupport(int index, int value) {
- this.index = index;
+ private GroupBySupport(int value) {
this.value = value;
}
@@ -1862,100 +1953,110 @@ public final class UserProtos {
public enum IdentifierCasing
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>IC_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>IC_UNKNOWN = 0;</code>
*/
- IC_UNKNOWN(0, 0),
+ IC_UNKNOWN(0),
/**
- * <code>IC_STORES_LOWER = 1;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in lower case
* </pre>
+ *
+ * <code>IC_STORES_LOWER = 1;</code>
*/
- IC_STORES_LOWER(1, 1),
+ IC_STORES_LOWER(1),
/**
- * <code>IC_STORES_MIXED = 2;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in mixed case
* </pre>
+ *
+ * <code>IC_STORES_MIXED = 2;</code>
*/
- IC_STORES_MIXED(2, 2),
+ IC_STORES_MIXED(2),
/**
- * <code>IC_STORES_UPPER = 3;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in upper case
* </pre>
+ *
+ * <code>IC_STORES_UPPER = 3;</code>
*/
- IC_STORES_UPPER(3, 3),
+ IC_STORES_UPPER(3),
/**
- * <code>IC_SUPPORTS_MIXED = 4;</code>
- *
* <pre>
* Mixed case identifier is treated as case sensitive
*and stored in mixed case
* </pre>
+ *
+ * <code>IC_SUPPORTS_MIXED = 4;</code>
*/
- IC_SUPPORTS_MIXED(4, 4),
+ IC_SUPPORTS_MIXED(4),
;
/**
- * <code>IC_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>IC_UNKNOWN = 0;</code>
*/
public static final int IC_UNKNOWN_VALUE = 0;
/**
- * <code>IC_STORES_LOWER = 1;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in lower case
* </pre>
+ *
+ * <code>IC_STORES_LOWER = 1;</code>
*/
public static final int IC_STORES_LOWER_VALUE = 1;
/**
- * <code>IC_STORES_MIXED = 2;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in mixed case
* </pre>
+ *
+ * <code>IC_STORES_MIXED = 2;</code>
*/
public static final int IC_STORES_MIXED_VALUE = 2;
/**
- * <code>IC_STORES_UPPER = 3;</code>
- *
* <pre>
* Mixed case identifier is treated as case insensitive
*and stored in upper case
* </pre>
+ *
+ * <code>IC_STORES_UPPER = 3;</code>
*/
public static final int IC_STORES_UPPER_VALUE = 3;
/**
- * <code>IC_SUPPORTS_MIXED = 4;</code>
- *
* <pre>
* Mixed case identifier is treated as case sensitive
*and stored in mixed case
* </pre>
+ *
+ * <code>IC_SUPPORTS_MIXED = 4;</code>
*/
public static final int IC_SUPPORTS_MIXED_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static IdentifierCasing valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static IdentifierCasing forNumber(int value) {
switch (value) {
case 0: return IC_UNKNOWN;
case 1: return IC_STORES_LOWER;
@@ -1970,17 +2071,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<IdentifierCasing>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ IdentifierCasing> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<IdentifierCasing>() {
public IdentifierCasing findValueByNumber(int number) {
- return IdentifierCasing.valueOf(number);
+ return IdentifierCasing.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2002,11 +2103,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private IdentifierCasing(int index, int value) {
- this.index = index;
+ private IdentifierCasing(int value) {
this.value = value;
}
@@ -2019,92 +2118,102 @@ public final class UserProtos {
public enum NullCollation
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>NC_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>NC_UNKNOWN = 0;</code>
*/
- NC_UNKNOWN(0, 0),
+ NC_UNKNOWN(0),
/**
- * <code>NC_AT_START = 1;</code>
- *
* <pre>
* NULL values are sorted at the start regardless of the order
* </pre>
+ *
+ * <code>NC_AT_START = 1;</code>
*/
- NC_AT_START(1, 1),
+ NC_AT_START(1),
/**
- * <code>NC_AT_END = 2;</code>
- *
* <pre>
* NULL values are sorted at the end regardless of the order
* </pre>
+ *
+ * <code>NC_AT_END = 2;</code>
*/
- NC_AT_END(2, 2),
+ NC_AT_END(2),
/**
- * <code>NC_HIGH = 3;</code>
- *
* <pre>
* NULL is the highest value
* </pre>
+ *
+ * <code>NC_HIGH = 3;</code>
*/
- NC_HIGH(3, 3),
+ NC_HIGH(3),
/**
- * <code>NC_LOW = 4;</code>
- *
* <pre>
* NULL is the lowest value
* </pre>
+ *
+ * <code>NC_LOW = 4;</code>
*/
- NC_LOW(4, 4),
+ NC_LOW(4),
;
/**
- * <code>NC_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>NC_UNKNOWN = 0;</code>
*/
public static final int NC_UNKNOWN_VALUE = 0;
/**
- * <code>NC_AT_START = 1;</code>
- *
* <pre>
* NULL values are sorted at the start regardless of the order
* </pre>
+ *
+ * <code>NC_AT_START = 1;</code>
*/
public static final int NC_AT_START_VALUE = 1;
/**
- * <code>NC_AT_END = 2;</code>
- *
* <pre>
* NULL values are sorted at the end regardless of the order
* </pre>
+ *
+ * <code>NC_AT_END = 2;</code>
*/
public static final int NC_AT_END_VALUE = 2;
/**
- * <code>NC_HIGH = 3;</code>
- *
* <pre>
* NULL is the highest value
* </pre>
+ *
+ * <code>NC_HIGH = 3;</code>
*/
public static final int NC_HIGH_VALUE = 3;
/**
- * <code>NC_LOW = 4;</code>
- *
* <pre>
* NULL is the lowest value
* </pre>
+ *
+ * <code>NC_LOW = 4;</code>
*/
public static final int NC_LOW_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static NullCollation valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static NullCollation forNumber(int value) {
switch (value) {
case 0: return NC_UNKNOWN;
case 1: return NC_AT_START;
@@ -2119,17 +2228,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<NullCollation>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ NullCollation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<NullCollation>() {
public NullCollation findValueByNumber(int number) {
- return NullCollation.valueOf(number);
+ return NullCollation.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2151,11 +2260,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private NullCollation(int index, int value) {
- this.index = index;
+ private NullCollation(int value) {
this.value = value;
}
@@ -2168,60 +2275,70 @@ public final class UserProtos {
public enum OrderBySupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>OB_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>OB_UNKNOWN = 0;</code>
*/
- OB_UNKNOWN(0, 0),
+ OB_UNKNOWN(0),
/**
- * <code>OB_UNRELATED = 1;</code>
- *
* <pre>
* ORDER BY supported with columns not in SELECT list
* </pre>
+ *
+ * <code>OB_UNRELATED = 1;</code>
*/
- OB_UNRELATED(1, 1),
+ OB_UNRELATED(1),
/**
- * <code>OB_EXPRESSION = 2;</code>
- *
* <pre>
* ORDER BY with expressions is supported
* </pre>
+ *
+ * <code>OB_EXPRESSION = 2;</code>
*/
- OB_EXPRESSION(2, 2),
+ OB_EXPRESSION(2),
;
/**
- * <code>OB_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>OB_UNKNOWN = 0;</code>
*/
public static final int OB_UNKNOWN_VALUE = 0;
/**
- * <code>OB_UNRELATED = 1;</code>
- *
* <pre>
* ORDER BY supported with columns not in SELECT list
* </pre>
+ *
+ * <code>OB_UNRELATED = 1;</code>
*/
public static final int OB_UNRELATED_VALUE = 1;
/**
- * <code>OB_EXPRESSION = 2;</code>
- *
* <pre>
* ORDER BY with expressions is supported
* </pre>
+ *
+ * <code>OB_EXPRESSION = 2;</code>
*/
public static final int OB_EXPRESSION_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static OrderBySupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OrderBySupport forNumber(int value) {
switch (value) {
case 0: return OB_UNKNOWN;
case 1: return OB_UNRELATED;
@@ -2234,17 +2351,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<OrderBySupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ OrderBySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<OrderBySupport>() {
public OrderBySupport findValueByNumber(int number) {
- return OrderBySupport.valueOf(number);
+ return OrderBySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2266,11 +2383,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private OrderBySupport(int index, int value) {
- this.index = index;
+ private OrderBySupport(int value) {
this.value = value;
}
@@ -2283,142 +2398,152 @@ public final class UserProtos {
public enum OuterJoinSupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>OJ_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>OJ_UNKNOWN = 0;</code>
*/
- OJ_UNKNOWN(0, 0),
+ OJ_UNKNOWN(0),
/**
- * <code>OJ_LEFT = 1;</code>
- *
* <pre>
* Left outer join is supported
* </pre>
+ *
+ * <code>OJ_LEFT = 1;</code>
*/
- OJ_LEFT(1, 1),
+ OJ_LEFT(1),
/**
- * <code>OJ_RIGHT = 2;</code>
- *
* <pre>
* Right outer join is supported
* </pre>
+ *
+ * <code>OJ_RIGHT = 2;</code>
*/
- OJ_RIGHT(2, 2),
+ OJ_RIGHT(2),
/**
- * <code>OJ_FULL = 3;</code>
- *
* <pre>
* Full outer join is supported
* </pre>
+ *
+ * <code>OJ_FULL = 3;</code>
*/
- OJ_FULL(3, 3),
+ OJ_FULL(3),
/**
- * <code>OJ_NESTED = 4;</code>
- *
* <pre>
* Nested outer join is supported
* </pre>
+ *
+ * <code>OJ_NESTED = 4;</code>
*/
- OJ_NESTED(4, 4),
+ OJ_NESTED(4),
/**
- * <code>OJ_NOT_ORDERED = 5;</code>
- *
* <pre>
* Column names in the ON clause don't have to share the same order
*as their respective table names in the OUTER JOIN clase
* </pre>
+ *
+ * <code>OJ_NOT_ORDERED = 5;</code>
*/
- OJ_NOT_ORDERED(5, 5),
+ OJ_NOT_ORDERED(5),
/**
- * <code>OJ_INNER = 6;</code>
- *
* <pre>
* Inner table can also be used in an inner join
* </pre>
+ *
+ * <code>OJ_INNER = 6;</code>
*/
- OJ_INNER(6, 6),
+ OJ_INNER(6),
/**
- * <code>OJ_ALL_COMPARISON_OPS = 7;</code>
- *
* <pre>
* Any comparison operator is supported in the ON clause
* </pre>
+ *
+ * <code>OJ_ALL_COMPARISON_OPS = 7;</code>
*/
- OJ_ALL_COMPARISON_OPS(7, 7),
+ OJ_ALL_COMPARISON_OPS(7),
;
/**
- * <code>OJ_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>OJ_UNKNOWN = 0;</code>
*/
public static final int OJ_UNKNOWN_VALUE = 0;
/**
- * <code>OJ_LEFT = 1;</code>
- *
* <pre>
* Left outer join is supported
* </pre>
+ *
+ * <code>OJ_LEFT = 1;</code>
*/
public static final int OJ_LEFT_VALUE = 1;
/**
- * <code>OJ_RIGHT = 2;</code>
- *
* <pre>
* Right outer join is supported
* </pre>
+ *
+ * <code>OJ_RIGHT = 2;</code>
*/
public static final int OJ_RIGHT_VALUE = 2;
/**
- * <code>OJ_FULL = 3;</code>
- *
* <pre>
* Full outer join is supported
* </pre>
+ *
+ * <code>OJ_FULL = 3;</code>
*/
public static final int OJ_FULL_VALUE = 3;
/**
- * <code>OJ_NESTED = 4;</code>
- *
* <pre>
* Nested outer join is supported
* </pre>
+ *
+ * <code>OJ_NESTED = 4;</code>
*/
public static final int OJ_NESTED_VALUE = 4;
/**
- * <code>OJ_NOT_ORDERED = 5;</code>
- *
* <pre>
* Column names in the ON clause don't have to share the same order
*as their respective table names in the OUTER JOIN clase
* </pre>
+ *
+ * <code>OJ_NOT_ORDERED = 5;</code>
*/
public static final int OJ_NOT_ORDERED_VALUE = 5;
/**
- * <code>OJ_INNER = 6;</code>
- *
* <pre>
* Inner table can also be used in an inner join
* </pre>
+ *
+ * <code>OJ_INNER = 6;</code>
*/
public static final int OJ_INNER_VALUE = 6;
/**
- * <code>OJ_ALL_COMPARISON_OPS = 7;</code>
- *
* <pre>
* Any comparison operator is supported in the ON clause
* </pre>
+ *
+ * <code>OJ_ALL_COMPARISON_OPS = 7;</code>
*/
public static final int OJ_ALL_COMPARISON_OPS_VALUE = 7;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static OuterJoinSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static OuterJoinSupport forNumber(int value) {
switch (value) {
case 0: return OJ_UNKNOWN;
case 1: return OJ_LEFT;
@@ -2436,17 +2561,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<OuterJoinSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ OuterJoinSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<OuterJoinSupport>() {
public OuterJoinSupport findValueByNumber(int number) {
- return OuterJoinSupport.valueOf(number);
+ return OuterJoinSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2468,11 +2593,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private OuterJoinSupport(int index, int value) {
- this.index = index;
+ private OuterJoinSupport(int value) {
this.value = value;
}
@@ -2485,108 +2608,118 @@ public final class UserProtos {
public enum SubQuerySupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>SQ_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>SQ_UNKNOWN = 0;</code>
*/
- SQ_UNKNOWN(0, 0),
+ SQ_UNKNOWN(0),
/**
- * <code>SQ_CORRELATED = 1;</code>
- *
* <pre>
* Correlated subquery is supported
* </pre>
+ *
+ * <code>SQ_CORRELATED = 1;</code>
*/
- SQ_CORRELATED(1, 1),
+ SQ_CORRELATED(1),
/**
- * <code>SQ_IN_COMPARISON = 2;</code>
- *
* <pre>
* Subquery in comparison expression is supported
* </pre>
+ *
+ * <code>SQ_IN_COMPARISON = 2;</code>
*/
- SQ_IN_COMPARISON(2, 2),
+ SQ_IN_COMPARISON(2),
/**
- * <code>SQ_IN_EXISTS = 3;</code>
- *
* <pre>
* Subquery in EXISTS expression is supported
* </pre>
+ *
+ * <code>SQ_IN_EXISTS = 3;</code>
*/
- SQ_IN_EXISTS(3, 3),
+ SQ_IN_EXISTS(3),
/**
- * <code>SQ_IN_INSERT = 4;</code>
- *
* <pre>
* Subquery in INSERT expression is supported
* </pre>
+ *
+ * <code>SQ_IN_INSERT = 4;</code>
*/
- SQ_IN_INSERT(4, 4),
+ SQ_IN_INSERT(4),
/**
- * <code>SQ_IN_QUANTIFIED = 5;</code>
- *
* <pre>
* Subquery in quantified expression is supported
* </pre>
+ *
+ * <code>SQ_IN_QUANTIFIED = 5;</code>
*/
- SQ_IN_QUANTIFIED(5, 5),
+ SQ_IN_QUANTIFIED(5),
;
/**
- * <code>SQ_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>SQ_UNKNOWN = 0;</code>
*/
public static final int SQ_UNKNOWN_VALUE = 0;
/**
- * <code>SQ_CORRELATED = 1;</code>
- *
* <pre>
* Correlated subquery is supported
* </pre>
+ *
+ * <code>SQ_CORRELATED = 1;</code>
*/
public static final int SQ_CORRELATED_VALUE = 1;
/**
- * <code>SQ_IN_COMPARISON = 2;</code>
- *
* <pre>
* Subquery in comparison expression is supported
* </pre>
+ *
+ * <code>SQ_IN_COMPARISON = 2;</code>
*/
public static final int SQ_IN_COMPARISON_VALUE = 2;
/**
- * <code>SQ_IN_EXISTS = 3;</code>
- *
* <pre>
* Subquery in EXISTS expression is supported
* </pre>
+ *
+ * <code>SQ_IN_EXISTS = 3;</code>
*/
public static final int SQ_IN_EXISTS_VALUE = 3;
/**
- * <code>SQ_IN_INSERT = 4;</code>
- *
* <pre>
* Subquery in INSERT expression is supported
* </pre>
+ *
+ * <code>SQ_IN_INSERT = 4;</code>
*/
public static final int SQ_IN_INSERT_VALUE = 4;
/**
- * <code>SQ_IN_QUANTIFIED = 5;</code>
- *
* <pre>
* Subquery in quantified expression is supported
* </pre>
+ *
+ * <code>SQ_IN_QUANTIFIED = 5;</code>
*/
public static final int SQ_IN_QUANTIFIED_VALUE = 5;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static SubQuerySupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SubQuerySupport forNumber(int value) {
switch (value) {
case 0: return SQ_UNKNOWN;
case 1: return SQ_CORRELATED;
@@ -2602,17 +2735,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<SubQuerySupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ SubQuerySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<SubQuerySupport>() {
public SubQuerySupport findValueByNumber(int number) {
- return SubQuerySupport.valueOf(number);
+ return SubQuerySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2634,11 +2767,9 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private SubQuerySupport(int index, int value) {
- this.index = index;
+ private SubQuerySupport(int value) {
this.value = value;
}
@@ -2651,60 +2782,70 @@ public final class UserProtos {
public enum UnionSupport
implements com.google.protobuf.ProtocolMessageEnum {
/**
- * <code>U_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>U_UNKNOWN = 0;</code>
*/
- U_UNKNOWN(0, 0),
+ U_UNKNOWN(0),
/**
- * <code>U_UNION = 1;</code>
- *
* <pre>
* UNION is supported
* </pre>
+ *
+ * <code>U_UNION = 1;</code>
*/
- U_UNION(1, 1),
+ U_UNION(1),
/**
- * <code>U_UNION_ALL = 2;</code>
- *
* <pre>
* UNION_ALL is supported
* </pre>
+ *
+ * <code>U_UNION_ALL = 2;</code>
*/
- U_UNION_ALL(2, 2),
+ U_UNION_ALL(2),
;
/**
- * <code>U_UNKNOWN = 0;</code>
- *
* <pre>
* Unknown support (for forward compatibility)
* </pre>
+ *
+ * <code>U_UNKNOWN = 0;</code>
*/
public static final int U_UNKNOWN_VALUE = 0;
/**
- * <code>U_UNION = 1;</code>
- *
* <pre>
* UNION is supported
* </pre>
+ *
+ * <code>U_UNION = 1;</code>
*/
public static final int U_UNION_VALUE = 1;
/**
- * <code>U_UNION_ALL = 2;</code>
- *
* <pre>
* UNION_ALL is supported
* </pre>
+ *
+ * <code>U_UNION_ALL = 2;</code>
*/
public static final int U_UNION_ALL_VALUE = 2;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static UnionSupport valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static UnionSupport forNumber(int value) {
switch (value) {
case 0: return U_UNKNOWN;
case 1: return U_UNION;
@@ -2717,17 +2858,17 @@ public final class UserProtos {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMap<UnionSupport>
- internalValueMap =
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ UnionSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<UnionSupport>() {
public UnionSupport findValueByNumber(int number) {
- return UnionSupport.valueOf(number);
+ return UnionSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
+ return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
@@ -2749,21 +2890,19 @@ public final class UserProtos {
return VALUES[desc.getIndex()];
}
- private final int index;
private final int value;
- private UnionSupport(int index, int value) {
- this.index = index;
+ private UnionSupport(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.user.UnionSupport)
}
- public interface PropertyOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface PropertyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.Property)
+ com.google.protobuf.MessageOrBuilder {
- // required string key = 1;
/**
* <code>required string key = 1;</code>
*/
@@ -2778,7 +2917,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getKeyBytes();
- // required string value = 2;
/**
* <code>required string value = 2;</code>
*/
@@ -2796,36 +2934,33 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.Property}
*/
- public static final class Property extends
- com.google.protobuf.GeneratedMessage
- implements PropertyOrBuilder {
+ public static final class Property extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.Property)
+ PropertyOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Property.newBuilder() to construct.
- private Property(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Property(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Property(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Property defaultInstance;
- public static Property getDefaultInstance() {
- return defaultInstance;
- }
-
- public Property getDefaultInstanceForType() {
- return defaultInstance;
+ private Property() {
+ key_ = "";
+ value_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Property(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -2837,21 +2972,23 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- key_ = input.readBytes();
+ key_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- value_ = input.readBytes();
+ value_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -2860,7 +2997,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -2871,32 +3008,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.Property.class, org.apache.drill.exec.proto.UserProtos.Property.Builder.class);
}
- public static com.google.protobuf.Parser<Property> PARSER =
- new com.google.protobuf.AbstractParser<Property>() {
- public Property parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Property(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Property> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // required string key = 1;
public static final int KEY_FIELD_NUMBER = 1;
- private java.lang.Object key_;
+ private volatile java.lang.Object key_;
/**
* <code>required string key = 1;</code>
*/
@@ -2937,9 +3059,8 @@ public final class UserProtos {
}
}
- // required string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
- private java.lang.Object value_;
+ private volatile java.lang.Object value_;
/**
* <code>required string value = 2;</code>
*/
@@ -2980,14 +3101,12 @@ public final class UserProtos {
}
}
- private void initFields() {
- key_ = "";
- value_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
@@ -3001,45 +3120,92 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getKeyBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getValueBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getKeyBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getValueBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.Property)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.Property other = (org.apache.drill.exec.proto.UserProtos.Property) obj;
+
+ boolean result = true;
+ result = result && (hasKey() == other.hasKey());
+ if (hasKey()) {
+ result = result && getKey()
+ .equals(other.getKey());
+ }
+ result = result && (hasValue() == other.hasValue());
+ if (hasValue()) {
+ result = result && getValue()
+ .equals(other.getValue());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasKey()) {
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ }
+ if (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -3062,46 +3228,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.Property prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3109,14 +3288,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.Property}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.Property)
+ org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3129,18 +3310,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
@@ -3150,19 +3329,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property build() {
org.apache.drill.exec.proto.UserProtos.Property result = buildPartial();
if (!result.isInitialized()) {
@@ -3171,6 +3349,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property buildPartial() {
org.apache.drill.exec.proto.UserProtos.Property result = new org.apache.drill.exec.proto.UserProtos.Property(this);
int from_bitField0_ = bitField0_;
@@ -3188,6 +3367,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.Property) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.Property)other);
@@ -3209,22 +3421,23 @@ public final class UserProtos {
value_ = other.value_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
-
return false;
}
if (!hasValue()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3234,7 +3447,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.Property) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -3244,7 +3457,6 @@ public final class UserProtos {
}
private int bitField0_;
- // required string key = 1;
private java.lang.Object key_ = "";
/**
* <code>required string key = 1;</code>
@@ -3258,9 +3470,12 @@ public final class UserProtos {
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- key_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ key_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -3318,7 +3533,6 @@ public final class UserProtos {
return this;
}
- // required string value = 2;
private java.lang.Object value_ = "";
/**
* <code>required string value = 2;</code>
@@ -3332,9 +3546,12 @@ public final class UserProtos {
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- value_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -3391,22 +3608,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.Property)
}
+ // @@protoc_insertion_point(class_scope:exec.user.Property)
+ private static final org.apache.drill.exec.proto.UserProtos.Property DEFAULT_INSTANCE;
static {
- defaultInstance = new Property(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.Property();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.Property getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<Property>
+ PARSER = new com.google.protobuf.AbstractParser<Property>() {
+ @java.lang.Override
+ public Property parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Property(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<Property> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Property> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.Property getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.Property)
}
- public interface UserPropertiesOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface UserPropertiesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.UserProperties)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.user.Property properties = 1;
/**
* <code>repeated .exec.user.Property properties = 1;</code>
*/
@@ -3434,36 +3692,32 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.UserProperties}
*/
- public static final class UserProperties extends
- com.google.protobuf.GeneratedMessage
- implements UserPropertiesOrBuilder {
+ public static final class UserProperties extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.UserProperties)
+ UserPropertiesOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use UserProperties.newBuilder() to construct.
- private UserProperties(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private UserProperties(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private UserProperties(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final UserProperties defaultInstance;
- public static UserProperties getDefaultInstance() {
- return defaultInstance;
}
-
- public UserProperties getDefaultInstanceForType() {
- return defaultInstance;
+ private UserProperties() {
+ properties_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private UserProperties(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -3475,19 +3729,20 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
properties_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.Property>();
mutable_bitField0_ |= 0x00000001;
}
- properties_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.Property.PARSER, extensionRegistry));
+ properties_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.Property.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -3496,7 +3751,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
@@ -3510,29 +3765,14 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.UserProperties.class, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder.class);
}
- public static com.google.protobuf.Parser<UserProperties> PARSER =
- new com.google.protobuf.AbstractParser<UserProperties>() {
- public UserProperties parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new UserProperties(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<UserProperties> getParserForType() {
- return PARSER;
- }
-
- // repeated .exec.user.Property properties = 1;
public static final int PROPERTIES_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.UserProtos.Property> properties_;
/**
@@ -3568,13 +3808,12 @@ public final class UserProtos {
return properties_.get(index);
}
- private void initFields() {
- properties_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
for (int i = 0; i < getPropertiesCount(); i++) {
if (!getProperties(i).isInitialized()) {
@@ -3586,18 +3825,18 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(1, properties_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -3605,19 +3844,56 @@ public final class UserProtos {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, properties_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.UserProperties)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.UserProperties other = (org.apache.drill.exec.proto.UserProtos.UserProperties) obj;
+
+ boolean result = true;
+ result = result && getPropertiesList()
+ .equals(other.getPropertiesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getPropertiesCount() > 0) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getPropertiesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -3640,46 +3916,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.UserProperties prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3687,14 +3976,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.UserProperties}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.UserProperties)
+ org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3707,19 +3998,17 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getPropertiesFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (propertiesBuilder_ == null) {
@@ -3731,19 +4020,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserProperties build() {
org.apache.drill.exec.proto.UserProtos.UserProperties result = buildPartial();
if (!result.isInitialized()) {
@@ -3752,6 +4040,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserProperties buildPartial() {
org.apache.drill.exec.proto.UserProtos.UserProperties result = new org.apache.drill.exec.proto.UserProtos.UserProperties(this);
int from_bitField0_ = bitField0_;
@@ -3768,6 +4057,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.UserProperties) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.UserProperties)other);
@@ -3798,27 +4120,29 @@ public final class UserProtos {
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000001);
propertiesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getPropertiesCount(); i++) {
if (!getProperties(i).isInitialized()) {
-
return false;
}
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3828,7 +4152,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.UserProperties) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -3838,7 +4162,6 @@ public final class UserProtos {
}
private int bitField0_;
- // repeated .exec.user.Property properties = 1;
private java.util.List<org.apache.drill.exec.proto.UserProtos.Property> properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
@@ -3848,7 +4171,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> propertiesBuilder_;
/**
@@ -3980,7 +4303,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.Property> values) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
- super.addAll(values, properties_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, properties_);
onChanged();
} else {
propertiesBuilder_.addAllMessages(values);
@@ -4063,11 +4387,11 @@ public final class UserProtos {
getPropertiesBuilderList() {
return getPropertiesFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder>
getPropertiesFieldBuilder() {
if (propertiesBuilder_ == null) {
- propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder>(
properties_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -4077,197 +4401,231 @@ public final class UserProtos {
}
return propertiesBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.UserProperties)
}
+ // @@protoc_insertion_point(class_scope:exec.user.UserProperties)
+ private static final org.apache.drill.exec.proto.UserProtos.UserProperties DEFAULT_INSTANCE;
static {
- defaultInstance = new UserProperties(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.UserProperties();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<UserProperties>
+ PARSER = new com.google.protobuf.AbstractParser<UserProperties>() {
+ @java.lang.Override
+ public UserProperties parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UserProperties(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<UserProperties> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<UserProperties> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.UserProperties)
}
- public interface RpcEndpointInfosOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RpcEndpointInfosOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.RpcEndpointInfos)
+ com.google.protobuf.MessageOrBuilder {
- // optional string name = 1;
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
boolean hasName();
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
java.lang.String getName();
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
- // optional string version = 2;
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
boolean hasVersion();
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
java.lang.String getVersion();
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
com.google.protobuf.ByteString
getVersionBytes();
- // optional uint32 majorVersion = 3;
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
boolean hasMajorVersion();
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
int getMajorVersion();
- // optional uint32 minorVersion = 4;
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
boolean hasMinorVersion();
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
int getMinorVersion();
- // optional uint32 patchVersion = 5;
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
boolean hasPatchVersion();
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
int getPatchVersion();
- // optional string application = 6;
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
boolean hasApplication();
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
java.lang.String getApplication();
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
com.google.protobuf.ByteString
getApplicationBytes();
- // optional uint32 buildNumber = 7;
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
boolean hasBuildNumber();
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
int getBuildNumber();
- // optional string versionQualifier = 8;
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
boolean hasVersionQualifier();
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
java.lang.String getVersionQualifier();
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
com.google.protobuf.ByteString
getVersionQualifierBytes();
@@ -4275,36 +4633,39 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.RpcEndpointInfos}
*/
- public static final class RpcEndpointInfos extends
- com.google.protobuf.GeneratedMessage
- implements RpcEndpointInfosOrBuilder {
+ public static final class RpcEndpointInfos extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.RpcEndpointInfos)
+ RpcEndpointInfosOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RpcEndpointInfos.newBuilder() to construct.
- private RpcEndpointInfos(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RpcEndpointInfos(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private RpcEndpointInfos(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RpcEndpointInfos defaultInstance;
- public static RpcEndpointInfos getDefaultInstance() {
- return defaultInstance;
}
-
- public RpcEndpointInfos getDefaultInstanceForType() {
- return defaultInstance;
+ private RpcEndpointInfos() {
+ name_ = "";
+ version_ = "";
+ majorVersion_ = 0;
+ minorVersion_ = 0;
+ patchVersion_ = 0;
+ application_ = "";
+ buildNumber_ = 0;
+ versionQualifier_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RpcEndpointInfos(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -4316,21 +4677,16 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- name_ = input.readBytes();
+ name_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- version_ = input.readBytes();
+ version_ = bs;
break;
}
case 24: {
@@ -4349,8 +4705,9 @@ public final class UserProtos {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- application_ = input.readBytes();
+ application_ = bs;
break;
}
case 56: {
@@ -4359,8 +4716,16 @@ public final class UserProtos {
break;
}
case 66: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- versionQualifier_ = input.readBytes();
+ versionQualifier_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -4369,7 +4734,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -4380,48 +4745,33 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.class, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder.class);
}
- public static com.google.protobuf.Parser<RpcEndpointInfos> PARSER =
- new com.google.protobuf.AbstractParser<RpcEndpointInfos>() {
- public RpcEndpointInfos parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RpcEndpointInfos(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RpcEndpointInfos> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -4438,11 +4788,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
@@ -4458,25 +4808,24 @@ public final class UserProtos {
}
}
- // optional string version = 2;
public static final int VERSION_FIELD_NUMBER = 2;
- private java.lang.Object version_;
+ private volatile java.lang.Object version_;
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
@@ -4493,11 +4842,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
@@ -4513,97 +4862,93 @@ public final class UserProtos {
}
}
- // optional uint32 majorVersion = 3;
public static final int MAJORVERSION_FIELD_NUMBER = 3;
private int majorVersion_;
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public boolean hasMajorVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public int getMajorVersion() {
return majorVersion_;
}
- // optional uint32 minorVersion = 4;
public static final int MINORVERSION_FIELD_NUMBER = 4;
private int minorVersion_;
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public boolean hasMinorVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public int getMinorVersion() {
return minorVersion_;
}
- // optional uint32 patchVersion = 5;
public static final int PATCHVERSION_FIELD_NUMBER = 5;
private int patchVersion_;
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public boolean hasPatchVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public int getPatchVersion() {
return patchVersion_;
}
- // optional string application = 6;
public static final int APPLICATION_FIELD_NUMBER = 6;
- private java.lang.Object application_;
+ private volatile java.lang.Object application_;
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public boolean hasApplication() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public java.lang.String getApplication() {
java.lang.Object ref = application_;
@@ -4620,11 +4965,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public com.google.protobuf.ByteString
getApplicationBytes() {
@@ -4640,49 +4985,47 @@ public final class UserProtos {
}
}
- // optional uint32 buildNumber = 7;
public static final int BUILDNUMBER_FIELD_NUMBER = 7;
private int buildNumber_;
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public boolean hasBuildNumber() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public int getBuildNumber() {
return buildNumber_;
}
- // optional string versionQualifier = 8;
public static final int VERSIONQUALIFIER_FIELD_NUMBER = 8;
- private java.lang.Object versionQualifier_;
+ private volatile java.lang.Object versionQualifier_;
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public boolean hasVersionQualifier() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public java.lang.String getVersionQualifier() {
java.lang.Object ref = versionQualifier_;
@@ -4699,11 +5042,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public com.google.protobuf.ByteString
getVersionQualifierBytes() {
@@ -4719,33 +5062,25 @@ public final class UserProtos {
}
}
- private void initFields() {
- name_ = "";
- version_ = "";
- majorVersion_ = 0;
- minorVersion_ = 0;
- patchVersion_ = 0;
- application_ = "";
- buildNumber_ = 0;
- versionQualifier_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getVersionBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, majorVersion_);
@@ -4757,30 +5092,28 @@ public final class UserProtos {
output.writeUInt32(5, patchVersion_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getApplicationBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, application_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(7, buildNumber_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getVersionQualifierBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, versionQualifier_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getVersionBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
@@ -4795,30 +5128,131 @@ public final class UserProtos {
.computeUInt32Size(5, patchVersion_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getApplicationBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, application_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, buildNumber_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getVersionQualifierBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, versionQualifier_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos other = (org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) obj;
+
+ boolean result = true;
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ result = result && (hasMajorVersion() == other.hasMajorVersion());
+ if (hasMajorVersion()) {
+ result = result && (getMajorVersion()
+ == other.getMajorVersion());
+ }
+ result = result && (hasMinorVersion() == other.hasMinorVersion());
+ if (hasMinorVersion()) {
+ result = result && (getMinorVersion()
+ == other.getMinorVersion());
+ }
+ result = result && (hasPatchVersion() == other.hasPatchVersion());
+ if (hasPatchVersion()) {
+ result = result && (getPatchVersion()
+ == other.getPatchVersion());
+ }
+ result = result && (hasApplication() == other.hasApplication());
+ if (hasApplication()) {
+ result = result && getApplication()
+ .equals(other.getApplication());
+ }
+ result = result && (hasBuildNumber() == other.hasBuildNumber());
+ if (hasBuildNumber()) {
+ result = result && (getBuildNumber()
+ == other.getBuildNumber());
+ }
+ result = result && (hasVersionQualifier() == other.hasVersionQualifier());
+ if (hasVersionQualifier()) {
+ result = result && getVersionQualifier()
+ .equals(other.getVersionQualifier());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ if (hasMajorVersion()) {
+ hash = (37 * hash) + MAJORVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getMajorVersion();
+ }
+ if (hasMinorVersion()) {
+ hash = (37 * hash) + MINORVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getMinorVersion();
+ }
+ if (hasPatchVersion()) {
+ hash = (37 * hash) + PATCHVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getPatchVersion();
+ }
+ if (hasApplication()) {
+ hash = (37 * hash) + APPLICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getApplication().hashCode();
+ }
+ if (hasBuildNumber()) {
+ hash = (37 * hash) + BUILDNUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getBuildNumber();
+ }
+ if (hasVersionQualifier()) {
+ hash = (37 * hash) + VERSIONQUALIFIER_FIELD_NUMBER;
+ hash = (53 * hash) + getVersionQualifier().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -4841,46 +5275,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4888,14 +5335,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.RpcEndpointInfos}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.RpcEndpointInfos)
+ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4908,18 +5357,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
@@ -4941,19 +5388,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos build() {
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos result = buildPartial();
if (!result.isInitialized()) {
@@ -4962,6 +5408,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos buildPartial() {
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos result = new org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos(this);
int from_bitField0_ = bitField0_;
@@ -5003,6 +5450,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos)other);
@@ -5046,14 +5526,17 @@ public final class UserProtos {
versionQualifier_ = other.versionQualifier_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5063,7 +5546,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -5073,42 +5556,44 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string name = 1;
private java.lang.Object name_ = "";
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- name_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ name_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
@@ -5124,11 +5609,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public Builder setName(
java.lang.String value) {
@@ -5141,11 +5626,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -5154,11 +5639,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string name = 1;</code>
- *
* <pre>
* example: Apache Drill Server, Apache Drill C++ client
* </pre>
+ *
+ * <code>optional string name = 1;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
@@ -5171,42 +5656,44 @@ public final class UserProtos {
return this;
}
- // optional string version = 2;
private java.lang.Object version_ = "";
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- version_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ version_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public com.google.protobuf.ByteString
getVersionBytes() {
@@ -5222,11 +5709,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public Builder setVersion(
java.lang.String value) {
@@ -5239,11 +5726,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -5252,11 +5739,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string version = 2;</code>
- *
* <pre>
* example: 1.9.0
* </pre>
+ *
+ * <code>optional string version = 2;</code>
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
@@ -5269,34 +5756,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 majorVersion = 3;
private int majorVersion_ ;
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public boolean hasMajorVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public int getMajorVersion() {
return majorVersion_;
}
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public Builder setMajorVersion(int value) {
bitField0_ |= 0x00000004;
@@ -5305,11 +5791,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 majorVersion = 3;</code>
- *
* <pre>
* example: 1
* </pre>
+ *
+ * <code>optional uint32 majorVersion = 3;</code>
*/
public Builder clearMajorVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -5318,34 +5804,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 minorVersion = 4;
private int minorVersion_ ;
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public boolean hasMinorVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public int getMinorVersion() {
return minorVersion_;
}
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public Builder setMinorVersion(int value) {
bitField0_ |= 0x00000008;
@@ -5354,11 +5839,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 minorVersion = 4;</code>
- *
* <pre>
* example: 9
* </pre>
+ *
+ * <code>optional uint32 minorVersion = 4;</code>
*/
public Builder clearMinorVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -5367,34 +5852,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 patchVersion = 5;
private int patchVersion_ ;
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public boolean hasPatchVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public int getPatchVersion() {
return patchVersion_;
}
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public Builder setPatchVersion(int value) {
bitField0_ |= 0x00000010;
@@ -5403,11 +5887,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 patchVersion = 5;</code>
- *
* <pre>
* example: 0
* </pre>
+ *
+ * <code>optional uint32 patchVersion = 5;</code>
*/
public Builder clearPatchVersion() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -5416,42 +5900,44 @@ public final class UserProtos {
return this;
}
- // optional string application = 6;
private java.lang.Object application_ = "";
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public boolean hasApplication() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public java.lang.String getApplication() {
java.lang.Object ref = application_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- application_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ application_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public com.google.protobuf.ByteString
getApplicationBytes() {
@@ -5467,11 +5953,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public Builder setApplication(
java.lang.String value) {
@@ -5484,11 +5970,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public Builder clearApplication() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -5497,11 +5983,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string application = 6;</code>
- *
* <pre>
* example: Tableau 9.3
* </pre>
+ *
+ * <code>optional string application = 6;</code>
*/
public Builder setApplicationBytes(
com.google.protobuf.ByteString value) {
@@ -5514,34 +6000,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 buildNumber = 7;
private int buildNumber_ ;
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public boolean hasBuildNumber() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public int getBuildNumber() {
return buildNumber_;
}
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public Builder setBuildNumber(int value) {
bitField0_ |= 0x00000040;
@@ -5550,11 +6035,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 buildNumber = 7;</code>
- *
* <pre>
* example: 32
* </pre>
+ *
+ * <code>optional uint32 buildNumber = 7;</code>
*/
public Builder clearBuildNumber() {
bitField0_ = (bitField0_ & ~0x00000040);
@@ -5563,42 +6048,44 @@ public final class UserProtos {
return this;
}
- // optional string versionQualifier = 8;
private java.lang.Object versionQualifier_ = "";
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public boolean hasVersionQualifier() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public java.lang.String getVersionQualifier() {
java.lang.Object ref = versionQualifier_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- versionQualifier_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ versionQualifier_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public com.google.protobuf.ByteString
getVersionQualifierBytes() {
@@ -5614,11 +6101,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public Builder setVersionQualifier(
java.lang.String value) {
@@ -5631,11 +6118,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public Builder clearVersionQualifier() {
bitField0_ = (bitField0_ & ~0x00000080);
@@ -5644,11 +6131,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string versionQualifier = 8;</code>
- *
* <pre>
* example: SNAPSHOT
* </pre>
+ *
+ * <code>optional string versionQualifier = 8;</code>
*/
public Builder setVersionQualifierBytes(
com.google.protobuf.ByteString value) {
@@ -5660,22 +6147,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.RpcEndpointInfos)
}
+ // @@protoc_insertion_point(class_scope:exec.user.RpcEndpointInfos)
+ private static final org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos DEFAULT_INSTANCE;
static {
- defaultInstance = new RpcEndpointInfos(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RpcEndpointInfos>
+ PARSER = new com.google.protobuf.AbstractParser<RpcEndpointInfos>() {
+ @java.lang.Override
+ public RpcEndpointInfos parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RpcEndpointInfos(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RpcEndpointInfos> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RpcEndpointInfos> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.RpcEndpointInfos)
}
- public interface UserToBitHandshakeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface UserToBitHandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.UserToBitHandshake)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.RpcChannel channel = 1 [default = USER];
/**
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
*/
@@ -5685,7 +6213,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();
- // optional bool support_listening = 2;
/**
* <code>optional bool support_listening = 2;</code>
*/
@@ -5695,7 +6222,6 @@ public final class UserProtos {
*/
boolean getSupportListening();
- // optional int32 rpc_version = 3;
/**
* <code>optional int32 rpc_version = 3;</code>
*/
@@ -5705,7 +6231,6 @@ public final class UserProtos {
*/
int getRpcVersion();
- // optional .exec.shared.UserCredentials credentials = 4;
/**
* <code>optional .exec.shared.UserCredentials credentials = 4;</code>
*/
@@ -5719,7 +6244,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder();
- // optional .exec.user.UserProperties properties = 5;
/**
* <code>optional .exec.user.UserProperties properties = 5;</code>
*/
@@ -5733,7 +6257,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder getPropertiesOrBuilder();
- // optional bool support_complex_types = 6 [default = false];
/**
* <code>optional bool support_complex_types = 6 [default = false];</code>
*/
@@ -5743,7 +6266,6 @@ public final class UserProtos {
*/
boolean getSupportComplexTypes();
- // optional bool support_timeout = 7 [default = false];
/**
* <code>optional bool support_timeout = 7 [default = false];</code>
*/
@@ -5753,7 +6275,6 @@ public final class UserProtos {
*/
boolean getSupportTimeout();
- // optional .exec.user.RpcEndpointInfos client_infos = 8;
/**
* <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code>
*/
@@ -5767,7 +6288,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getClientInfosOrBuilder();
- // optional .exec.user.SaslSupport sasl_support = 9;
/**
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
*/
@@ -5780,36 +6300,37 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.UserToBitHandshake}
*/
- public static final class UserToBitHandshake extends
- com.google.protobuf.GeneratedMessage
- implements UserToBitHandshakeOrBuilder {
+ public static final class UserToBitHandshake extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.UserToBitHandshake)
+ UserToBitHandshakeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use UserToBitHandshake.newBuilder() to construct.
- private UserToBitHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private UserToBitHandshake(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private UserToBitHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final UserToBitHandshake defaultInstance;
- public static UserToBitHandshake getDefaultInstance() {
- return defaultInstance;
- }
-
- public UserToBitHandshake getDefaultInstanceForType() {
- return defaultInstance;
+ private UserToBitHandshake() {
+ channel_ = 2;
+ supportListening_ = false;
+ rpcVersion_ = 0;
+ supportComplexTypes_ = false;
+ supportTimeout_ = false;
+ saslSupport_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private UserToBitHandshake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -5821,21 +6342,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.RpcChannel value = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- channel_ = value;
+ channel_ = rawValue;
}
break;
}
@@ -5900,12 +6415,20 @@ public final class UserProtos {
}
case 72: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.SaslSupport value = org.apache.drill.exec.proto.UserProtos.SaslSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(9, rawValue);
} else {
bitField0_ |= 0x00000100;
- saslSupport_ = value;
+ saslSupport_ = rawValue;
+ }
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
}
break;
}
@@ -5915,7 +6438,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -5926,32 +6449,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.class, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.Builder.class);
}
- public static com.google.protobuf.Parser<UserToBitHandshake> PARSER =
- new com.google.protobuf.AbstractParser<UserToBitHandshake>() {
- public UserToBitHandshake parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new UserToBitHandshake(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<UserToBitHandshake> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.RpcChannel channel = 1 [default = USER];
public static final int CHANNEL_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_;
+ private int channel_;
/**
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
*/
@@ -5962,10 +6470,11 @@ public final class UserProtos {
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER : result;
}
- // optional bool support_listening = 2;
public static final int SUPPORT_LISTENING_FIELD_NUMBER = 2;
private boolean supportListening_;
/**
@@ -5981,7 +6490,6 @@ public final class UserProtos {
return supportListening_;
}
- // optional int32 rpc_version = 3;
public static final int RPC_VERSION_FIELD_NUMBER = 3;
private int rpcVersion_;
/**
@@ -5997,7 +6505,6 @@ public final class UserProtos {
return rpcVersion_;
}
- // optional .exec.shared.UserCredentials credentials = 4;
public static final int CREDENTIALS_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_;
/**
@@ -6010,16 +6517,15 @@ public final class UserProtos {
* <code>optional .exec.shared.UserCredentials credentials = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
/**
* <code>optional .exec.shared.UserCredentials credentials = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder() {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
- // optional .exec.user.UserProperties properties = 5;
public static final int PROPERTIES_FIELD_NUMBER = 5;
private org.apache.drill.exec.proto.UserProtos.UserProperties properties_;
/**
@@ -6032,16 +6538,15 @@ public final class UserProtos {
* <code>optional .exec.user.UserProperties properties = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.UserProperties getProperties() {
- return properties_;
+ return properties_ == null ? org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance() : properties_;
}
/**
* <code>optional .exec.user.UserProperties properties = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder getPropertiesOrBuilder() {
- return properties_;
+ return properties_ == null ? org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance() : properties_;
}
- // optional bool support_complex_types = 6 [default = false];
public static final int SUPPORT_COMPLEX_TYPES_FIELD_NUMBER = 6;
private boolean supportComplexTypes_;
/**
@@ -6057,7 +6562,6 @@ public final class UserProtos {
return supportComplexTypes_;
}
- // optional bool support_timeout = 7 [default = false];
public static final int SUPPORT_TIMEOUT_FIELD_NUMBER = 7;
private boolean supportTimeout_;
/**
@@ -6073,7 +6577,6 @@ public final class UserProtos {
return supportTimeout_;
}
- // optional .exec.user.RpcEndpointInfos client_infos = 8;
public static final int CLIENT_INFOS_FIELD_NUMBER = 8;
private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos clientInfos_;
/**
@@ -6086,18 +6589,17 @@ public final class UserProtos {
* <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getClientInfos() {
- return clientInfos_;
+ return clientInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : clientInfos_;
}
/**
* <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getClientInfosOrBuilder() {
- return clientInfos_;
+ return clientInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : clientInfos_;
}
- // optional .exec.user.SaslSupport sasl_support = 9;
public static final int SASL_SUPPORT_FIELD_NUMBER = 9;
- private org.apache.drill.exec.proto.UserProtos.SaslSupport saslSupport_;
+ private int saslSupport_;
/**
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
*/
@@ -6108,24 +6610,17 @@ public final class UserProtos {
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
*/
public org.apache.drill.exec.proto.UserProtos.SaslSupport getSaslSupport() {
- return saslSupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.SaslSupport result = org.apache.drill.exec.proto.UserProtos.SaslSupport.valueOf(saslSupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT : result;
}
- private void initFields() {
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER;
- supportListening_ = false;
- rpcVersion_ = 0;
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
- properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
- supportComplexTypes_ = false;
- supportTimeout_ = false;
- clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
- saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (hasProperties()) {
if (!getProperties().isInitialized()) {
@@ -6137,11 +6632,11 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, channel_.getNumber());
+ output.writeEnum(1, channel_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, supportListening_);
@@ -6150,10 +6645,10 @@ public final class UserProtos {
output.writeInt32(3, rpcVersion_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, credentials_);
+ output.writeMessage(4, getCredentials());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, properties_);
+ output.writeMessage(5, getProperties());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, supportComplexTypes_);
@@ -6162,23 +6657,23 @@ public final class UserProtos {
output.writeBool(7, supportTimeout_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(8, clientInfos_);
+ output.writeMessage(8, getClientInfos());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeEnum(9, saslSupport_.getNumber());
+ output.writeEnum(9, saslSupport_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, channel_.getNumber());
+ .computeEnumSize(1, channel_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -6190,11 +6685,11 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, credentials_);
+ .computeMessageSize(4, getCredentials());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, properties_);
+ .computeMessageSize(5, getProperties());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
@@ -6206,24 +6701,137 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, clientInfos_);
+ .computeMessageSize(8, getClientInfos());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(9, saslSupport_.getNumber());
+ .computeEnumSize(9, saslSupport_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.UserToBitHandshake)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.UserToBitHandshake other = (org.apache.drill.exec.proto.UserProtos.UserToBitHandshake) obj;
+
+ boolean result = true;
+ result = result && (hasChannel() == other.hasChannel());
+ if (hasChannel()) {
+ result = result && channel_ == other.channel_;
+ }
+ result = result && (hasSupportListening() == other.hasSupportListening());
+ if (hasSupportListening()) {
+ result = result && (getSupportListening()
+ == other.getSupportListening());
+ }
+ result = result && (hasRpcVersion() == other.hasRpcVersion());
+ if (hasRpcVersion()) {
+ result = result && (getRpcVersion()
+ == other.getRpcVersion());
+ }
+ result = result && (hasCredentials() == other.hasCredentials());
+ if (hasCredentials()) {
+ result = result && getCredentials()
+ .equals(other.getCredentials());
+ }
+ result = result && (hasProperties() == other.hasProperties());
+ if (hasProperties()) {
+ result = result && getProperties()
+ .equals(other.getProperties());
+ }
+ result = result && (hasSupportComplexTypes() == other.hasSupportComplexTypes());
+ if (hasSupportComplexTypes()) {
+ result = result && (getSupportComplexTypes()
+ == other.getSupportComplexTypes());
+ }
+ result = result && (hasSupportTimeout() == other.hasSupportTimeout());
+ if (hasSupportTimeout()) {
+ result = result && (getSupportTimeout()
+ == other.getSupportTimeout());
+ }
+ result = result && (hasClientInfos() == other.hasClientInfos());
+ if (hasClientInfos()) {
+ result = result && getClientInfos()
+ .equals(other.getClientInfos());
+ }
+ result = result && (hasSaslSupport() == other.hasSaslSupport());
+ if (hasSaslSupport()) {
+ result = result && saslSupport_ == other.saslSupport_;
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasChannel()) {
+ hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + channel_;
+ }
+ if (hasSupportListening()) {
+ hash = (37 * hash) + SUPPORT_LISTENING_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSupportListening());
+ }
+ if (hasRpcVersion()) {
+ hash = (37 * hash) + RPC_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcVersion();
+ }
+ if (hasCredentials()) {
+ hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER;
+ hash = (53 * hash) + getCredentials().hashCode();
+ }
+ if (hasProperties()) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getProperties().hashCode();
+ }
+ if (hasSupportComplexTypes()) {
+ hash = (37 * hash) + SUPPORT_COMPLEX_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSupportComplexTypes());
+ }
+ if (hasSupportTimeout()) {
+ hash = (37 * hash) + SUPPORT_TIMEOUT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSupportTimeout());
+ }
+ if (hasClientInfos()) {
+ hash = (37 * hash) + CLIENT_INFOS_FIELD_NUMBER;
+ hash = (53 * hash) + getClientInfos().hashCode();
+ }
+ if (hasSaslSupport()) {
+ hash = (37 * hash) + SASL_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + saslSupport_;
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6247,46 +6855,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6294,14 +6915,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.UserToBitHandshake}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.UserToBitHandshakeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.UserToBitHandshake)
+ org.apache.drill.exec.proto.UserProtos.UserToBitHandshakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6314,37 +6937,35 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCredentialsFieldBuilder();
getPropertiesFieldBuilder();
getClientInfosFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER;
+ channel_ = 2;
bitField0_ = (bitField0_ & ~0x00000001);
supportListening_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
rpcVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (credentialsBuilder_ == null) {
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
+ credentials_ = null;
} else {
credentialsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (propertiesBuilder_ == null) {
- properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
+ properties_ = null;
} else {
propertiesBuilder_.clear();
}
@@ -6354,29 +6975,28 @@ public final class UserProtos {
supportTimeout_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
if (clientInfosBuilder_ == null) {
- clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
+ clientInfos_ = null;
} else {
clientInfosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
- saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT;
+ saslSupport_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake build() {
org.apache.drill.exec.proto.UserProtos.UserToBitHandshake result = buildPartial();
if (!result.isInitialized()) {
@@ -6385,6 +7005,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake buildPartial() {
org.apache.drill.exec.proto.UserProtos.UserToBitHandshake result = new org.apache.drill.exec.proto.UserProtos.UserToBitHandshake(this);
int from_bitField0_ = bitField0_;
@@ -6442,6 +7063,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.UserToBitHandshake) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.UserToBitHandshake)other);
@@ -6480,20 +7134,22 @@ public final class UserProtos {
if (other.hasSaslSupport()) {
setSaslSupport(other.getSaslSupport());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasProperties()) {
if (!getProperties().isInitialized()) {
-
return false;
}
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6503,7 +7159,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.UserToBitHandshake) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -6513,8 +7169,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.shared.RpcChannel channel = 1 [default = USER];
- private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER;
+ private int channel_ = 2;
/**
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
*/
@@ -6525,7 +7180,9 @@ public final class UserProtos {
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
*/
public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {
- return channel_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER : result;
}
/**
* <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code>
@@ -6535,7 +7192,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- channel_ = value;
+ channel_ = value.getNumber();
onChanged();
return this;
}
@@ -6544,12 +7201,11 @@ public final class UserProtos {
*/
public Builder clearChannel() {
bitField0_ = (bitField0_ & ~0x00000001);
- channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER;
+ channel_ = 2;
onChanged();
return this;
}
- // optional bool support_listening = 2;
private boolean supportListening_ ;
/**
* <code>optional bool support_listening = 2;</code>
@@ -6582,7 +7238,6 @@ public final class UserProtos {
return this;
}
- // optional int32 rpc_version = 3;
private int rpcVersion_ ;
/**
* <code>optional int32 rpc_version = 3;</code>
@@ -6615,9 +7270,8 @@ public final class UserProtos {
return this;
}
- // optional .exec.shared.UserCredentials credentials = 4;
- private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder> credentialsBuilder_;
/**
* <code>optional .exec.shared.UserCredentials credentials = 4;</code>
@@ -6630,7 +7284,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() {
if (credentialsBuilder_ == null) {
- return credentials_;
+ return credentials_ == null ? org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
} else {
return credentialsBuilder_.getMessage();
}
@@ -6671,6 +7325,7 @@ public final class UserProtos {
public Builder mergeCredentials(org.apache.drill.exec.proto.UserBitShared.UserCredentials value) {
if (credentialsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ credentials_ != null &&
credentials_ != org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) {
credentials_ =
org.apache.drill.exec.proto.UserBitShared.UserCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial();
@@ -6689,7 +7344,7 @@ public final class UserProtos {
*/
public Builder clearCredentials() {
if (credentialsBuilder_ == null) {
- credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance();
+ credentials_ = null;
onChanged();
} else {
credentialsBuilder_.clear();
@@ -6712,19 +7367,20 @@ public final class UserProtos {
if (credentialsBuilder_ != null) {
return credentialsBuilder_.getMessageOrBuilder();
} else {
- return credentials_;
+ return credentials_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance() : credentials_;
}
}
/**
* <code>optional .exec.shared.UserCredentials credentials = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder>
getCredentialsFieldBuilder() {
if (credentialsBuilder_ == null) {
- credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder>(
- credentials_,
+ getCredentials(),
getParentForChildren(),
isClean());
credentials_ = null;
@@ -6732,9 +7388,8 @@ public final class UserProtos {
return credentialsBuilder_;
}
- // optional .exec.user.UserProperties properties = 5;
- private org.apache.drill.exec.proto.UserProtos.UserProperties properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.UserProperties properties_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder> propertiesBuilder_;
/**
* <code>optional .exec.user.UserProperties properties = 5;</code>
@@ -6747,7 +7402,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.UserProperties getProperties() {
if (propertiesBuilder_ == null) {
- return properties_;
+ return properties_ == null ? org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance() : properties_;
} else {
return propertiesBuilder_.getMessage();
}
@@ -6788,6 +7443,7 @@ public final class UserProtos {
public Builder mergeProperties(org.apache.drill.exec.proto.UserProtos.UserProperties value) {
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ properties_ != null &&
properties_ != org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance()) {
properties_ =
org.apache.drill.exec.proto.UserProtos.UserProperties.newBuilder(properties_).mergeFrom(value).buildPartial();
@@ -6806,7 +7462,7 @@ public final class UserProtos {
*/
public Builder clearProperties() {
if (propertiesBuilder_ == null) {
- properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
+ properties_ = null;
onChanged();
} else {
propertiesBuilder_.clear();
@@ -6829,19 +7485,20 @@ public final class UserProtos {
if (propertiesBuilder_ != null) {
return propertiesBuilder_.getMessageOrBuilder();
} else {
- return properties_;
+ return properties_ == null ?
+ org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance() : properties_;
}
}
/**
* <code>optional .exec.user.UserProperties properties = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder>
getPropertiesFieldBuilder() {
if (propertiesBuilder_ == null) {
- propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder>(
- properties_,
+ getProperties(),
getParentForChildren(),
isClean());
properties_ = null;
@@ -6849,7 +7506,6 @@ public final class UserProtos {
return propertiesBuilder_;
}
- // optional bool support_complex_types = 6 [default = false];
private boolean supportComplexTypes_ ;
/**
* <code>optional bool support_complex_types = 6 [default = false];</code>
@@ -6882,7 +7538,6 @@ public final class UserProtos {
return this;
}
- // optional bool support_timeout = 7 [default = false];
private boolean supportTimeout_ ;
/**
* <code>optional bool support_timeout = 7 [default = false];</code>
@@ -6915,9 +7570,8 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.RpcEndpointInfos client_infos = 8;
- private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos clientInfos_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> clientInfosBuilder_;
/**
* <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code>
@@ -6930,7 +7584,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getClientInfos() {
if (clientInfosBuilder_ == null) {
- return clientInfos_;
+ return clientInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : clientInfos_;
} else {
return clientInfosBuilder_.getMessage();
}
@@ -6971,6 +7625,7 @@ public final class UserProtos {
public Builder mergeClientInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) {
if (clientInfosBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
+ clientInfos_ != null &&
clientInfos_ != org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance()) {
clientInfos_ =
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.newBuilder(clientInfos_).mergeFrom(value).buildPartial();
@@ -6989,7 +7644,7 @@ public final class UserProtos {
*/
public Builder clearClientInfos() {
if (clientInfosBuilder_ == null) {
- clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
+ clientInfos_ = null;
onChanged();
} else {
clientInfosBuilder_.clear();
@@ -7012,19 +7667,20 @@ public final class UserProtos {
if (clientInfosBuilder_ != null) {
return clientInfosBuilder_.getMessageOrBuilder();
} else {
- return clientInfos_;
+ return clientInfos_ == null ?
+ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : clientInfos_;
}
}
/**
* <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>
getClientInfosFieldBuilder() {
if (clientInfosBuilder_ == null) {
- clientInfosBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ clientInfosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>(
- clientInfos_,
+ getClientInfos(),
getParentForChildren(),
isClean());
clientInfos_ = null;
@@ -7032,8 +7688,7 @@ public final class UserProtos {
return clientInfosBuilder_;
}
- // optional .exec.user.SaslSupport sasl_support = 9;
- private org.apache.drill.exec.proto.UserProtos.SaslSupport saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT;
+ private int saslSupport_ = 0;
/**
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
*/
@@ -7044,7 +7699,9 @@ public final class UserProtos {
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
*/
public org.apache.drill.exec.proto.UserProtos.SaslSupport getSaslSupport() {
- return saslSupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.SaslSupport result = org.apache.drill.exec.proto.UserProtos.SaslSupport.valueOf(saslSupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT : result;
}
/**
* <code>optional .exec.user.SaslSupport sasl_support = 9;</code>
@@ -7054,7 +7711,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
- saslSupport_ = value;
+ saslSupport_ = value.getNumber();
onChanged();
return this;
}
@@ -7063,26 +7720,67 @@ public final class UserProtos {
*/
public Builder clearSaslSupport() {
bitField0_ = (bitField0_ & ~0x00000100);
- saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT;
+ saslSupport_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.UserToBitHandshake)
}
+ // @@protoc_insertion_point(class_scope:exec.user.UserToBitHandshake)
+ private static final org.apache.drill.exec.proto.UserProtos.UserToBitHandshake DEFAULT_INSTANCE;
static {
- defaultInstance = new UserToBitHandshake(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.UserToBitHandshake();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<UserToBitHandshake>
+ PARSER = new com.google.protobuf.AbstractParser<UserToBitHandshake>() {
+ @java.lang.Override
+ public UserToBitHandshake parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UserToBitHandshake(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<UserToBitHandshake> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<UserToBitHandshake> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.UserToBitHandshake)
}
- public interface RequestResultsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RequestResultsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.RequestResults)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.shared.QueryId query_id = 1;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
@@ -7096,7 +7794,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // optional int32 maximum_responses = 2;
/**
* <code>optional int32 maximum_responses = 2;</code>
*/
@@ -7109,36 +7806,32 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.RequestResults}
*/
- public static final class RequestResults extends
- com.google.protobuf.GeneratedMessage
- implements RequestResultsOrBuilder {
+ public static final class RequestResults extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.RequestResults)
+ RequestResultsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RequestResults.newBuilder() to construct.
- private RequestResults(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RequestResults(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private RequestResults(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RequestResults defaultInstance;
- public static RequestResults getDefaultInstance() {
- return defaultInstance;
- }
-
- public RequestResults getDefaultInstanceForType() {
- return defaultInstance;
+ private RequestResults() {
+ maximumResponses_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RequestResults(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -7150,13 +7843,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -7175,13 +7861,20 @@ public final class UserProtos {
maximumResponses_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -7192,30 +7885,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.RequestResults.class, org.apache.drill.exec.proto.UserProtos.RequestResults.Builder.class);
}
- public static com.google.protobuf.Parser<RequestResults> PARSER =
- new com.google.protobuf.AbstractParser<RequestResults>() {
- public RequestResults parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RequestResults(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RequestResults> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
public static final int QUERY_ID_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -7228,16 +7906,15 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // optional int32 maximum_responses = 2;
public static final int MAXIMUM_RESPONSES_FIELD_NUMBER = 2;
private int maximumResponses_;
/**
@@ -7253,58 +7930,105 @@ public final class UserProtos {
return maximumResponses_;
}
- private void initFields() {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- maximumResponses_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, queryId_);
+ output.writeMessage(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, maximumResponses_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, queryId_);
+ .computeMessageSize(1, getQueryId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maximumResponses_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.RequestResults)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.RequestResults other = (org.apache.drill.exec.proto.UserProtos.RequestResults) obj;
+
+ boolean result = true;
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && (hasMaximumResponses() == other.hasMaximumResponses());
+ if (hasMaximumResponses()) {
+ result = result && (getMaximumResponses()
+ == other.getMaximumResponses());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (hasMaximumResponses()) {
+ hash = (37 * hash) + MAXIMUM_RESPONSES_FIELD_NUMBER;
+ hash = (53 * hash) + getMaximumResponses();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -7327,46 +8051,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RequestResults prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7374,14 +8111,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.RequestResults}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.RequestResultsOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.RequestResults)
+ org.apache.drill.exec.proto.UserProtos.RequestResultsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7394,23 +8133,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -7420,19 +8157,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestResults getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.RequestResults.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestResults build() {
org.apache.drill.exec.proto.UserProtos.RequestResults result = buildPartial();
if (!result.isInitialized()) {
@@ -7441,6 +8177,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestResults buildPartial() {
org.apache.drill.exec.proto.UserProtos.RequestResults result = new org.apache.drill.exec.proto.UserProtos.RequestResults(this);
int from_bitField0_ = bitField0_;
@@ -7462,6 +8199,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.RequestResults) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.RequestResults)other);
@@ -7479,14 +8249,17 @@ public final class UserProtos {
if (other.hasMaximumResponses()) {
setMaximumResponses(other.getMaximumResponses());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7496,7 +8269,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.RequestResults) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -7506,9 +8279,8 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.shared.QueryId query_id = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
@@ -7521,7 +8293,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -7562,6 +8334,7 @@ public final class UserProtos {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -7580,7 +8353,7 @@ public final class UserProtos {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -7603,19 +8376,20 @@ public final class UserProtos {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -7623,7 +8397,6 @@ public final class UserProtos {
return queryIdBuilder_;
}
- // optional int32 maximum_responses = 2;
private int maximumResponses_ ;
/**
* <code>optional int32 maximum_responses = 2;</code>
@@ -7655,22 +8428,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.RequestResults)
}
+ // @@protoc_insertion_point(class_scope:exec.user.RequestResults)
+ private static final org.apache.drill.exec.proto.UserProtos.RequestResults DEFAULT_INSTANCE;
static {
- defaultInstance = new RequestResults(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.RequestResults();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.RequestResults getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RequestResults>
+ PARSER = new com.google.protobuf.AbstractParser<RequestResults>() {
+ @java.lang.Override
+ public RequestResults parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RequestResults(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RequestResults> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RequestResults> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.RequestResults getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.RequestResults)
}
- public interface GetQueryPlanFragmentsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetQueryPlanFragmentsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetQueryPlanFragments)
+ com.google.protobuf.MessageOrBuilder {
- // required string query = 1;
/**
* <code>required string query = 1;</code>
*/
@@ -7685,7 +8499,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getQueryBytes();
- // optional .exec.shared.QueryType type = 2;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -7695,7 +8508,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryType getType();
- // optional bool split_plan = 3 [default = false];
/**
* <code>optional bool split_plan = 3 [default = false];</code>
*/
@@ -7708,36 +8520,34 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.GetQueryPlanFragments}
*/
- public static final class GetQueryPlanFragments extends
- com.google.protobuf.GeneratedMessage
- implements GetQueryPlanFragmentsOrBuilder {
+ public static final class GetQueryPlanFragments extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetQueryPlanFragments)
+ GetQueryPlanFragmentsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetQueryPlanFragments.newBuilder() to construct.
- private GetQueryPlanFragments(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetQueryPlanFragments(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetQueryPlanFragments(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetQueryPlanFragments defaultInstance;
- public static GetQueryPlanFragments getDefaultInstance() {
- return defaultInstance;
}
-
- public GetQueryPlanFragments getDefaultInstanceForType() {
- return defaultInstance;
+ private GetQueryPlanFragments() {
+ query_ = "";
+ type_ = 1;
+ splitPlan_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetQueryPlanFragments(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -7749,26 +8559,21 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- query_ = input.readBytes();
+ query_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryType value = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = rawValue;
}
break;
}
@@ -7777,13 +8582,20 @@ public final class UserProtos {
splitPlan_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -7794,32 +8606,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.Builder.class);
}
- public static com.google.protobuf.Parser<GetQueryPlanFragments> PARSER =
- new com.google.protobuf.AbstractParser<GetQueryPlanFragments>() {
- public GetQueryPlanFragments parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetQueryPlanFragments(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetQueryPlanFragments> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // required string query = 1;
public static final int QUERY_FIELD_NUMBER = 1;
- private java.lang.Object query_;
+ private volatile java.lang.Object query_;
/**
* <code>required string query = 1;</code>
*/
@@ -7860,9 +8657,8 @@ public final class UserProtos {
}
}
- // optional .exec.shared.QueryType type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_;
+ private int type_;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -7873,10 +8669,11 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
- // optional bool split_plan = 3 [default = false];
public static final int SPLIT_PLAN_FIELD_NUMBER = 3;
private boolean splitPlan_;
/**
@@ -7892,15 +8689,12 @@ public final class UserProtos {
return splitPlan_;
}
- private void initFields() {
- query_ = "";
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
- splitPlan_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasQuery()) {
memoizedIsInitialized = 0;
@@ -7910,52 +8704,109 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getQueryBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, type_.getNumber());
+ output.writeEnum(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, splitPlan_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getQueryBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, type_.getNumber());
+ .computeEnumSize(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, splitPlan_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments other = (org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments) obj;
+
+ boolean result = true;
+ result = result && (hasQuery() == other.hasQuery());
+ if (hasQuery()) {
+ result = result && getQuery()
+ .equals(other.getQuery());
+ }
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && type_ == other.type_;
+ }
+ result = result && (hasSplitPlan() == other.hasSplitPlan());
+ if (hasSplitPlan()) {
+ result = result && (getSplitPlan()
+ == other.getSplitPlan());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasSplitPlan()) {
+ hash = (37 * hash) + SPLIT_PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSplitPlan());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -7978,46 +8829,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8025,14 +8889,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.GetQueryPlanFragments}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragmentsOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetQueryPlanFragments)
+ org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragmentsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8045,42 +8911,39 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
query_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
splitPlan_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments build() {
org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments result = buildPartial();
if (!result.isInitialized()) {
@@ -8089,6 +8952,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments result = new org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments(this);
int from_bitField0_ = bitField0_;
@@ -8110,6 +8974,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments)other);
@@ -8132,18 +9029,20 @@ public final class UserProtos {
if (other.hasSplitPlan()) {
setSplitPlan(other.getSplitPlan());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasQuery()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8153,7 +9052,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -8163,7 +9062,6 @@ public final class UserProtos {
}
private int bitField0_;
- // required string query = 1;
private java.lang.Object query_ = "";
/**
* <code>required string query = 1;</code>
@@ -8177,9 +9075,12 @@ public final class UserProtos {
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- query_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ query_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -8237,8 +9138,7 @@ public final class UserProtos {
return this;
}
- // optional .exec.shared.QueryType type = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ private int type_ = 1;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -8249,7 +9149,9 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
@@ -8259,7 +9161,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
@@ -8268,12 +9170,11 @@ public final class UserProtos {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
onChanged();
return this;
}
- // optional bool split_plan = 3 [default = false];
private boolean splitPlan_ ;
/**
* <code>optional bool split_plan = 3 [default = false];</code>
@@ -8305,22 +9206,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetQueryPlanFragments)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetQueryPlanFragments)
+ private static final org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments DEFAULT_INSTANCE;
static {
- defaultInstance = new GetQueryPlanFragments(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetQueryPlanFragments>
+ PARSER = new com.google.protobuf.AbstractParser<GetQueryPlanFragments>() {
+ @java.lang.Override
+ public GetQueryPlanFragments parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetQueryPlanFragments(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetQueryPlanFragments> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetQueryPlanFragments> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetQueryPlanFragments)
}
- public interface QueryPlanFragmentsOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface QueryPlanFragmentsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.QueryPlanFragments)
+ com.google.protobuf.MessageOrBuilder {
- // required .exec.shared.QueryResult.QueryState status = 1;
/**
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
*/
@@ -8330,7 +9272,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus();
- // optional .exec.shared.QueryId query_id = 2;
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
@@ -8344,7 +9285,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder();
- // repeated .exec.bit.control.PlanFragment fragments = 3;
/**
* <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code>
*/
@@ -8369,7 +9309,6 @@ public final class UserProtos {
org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder(
int index);
- // optional .exec.shared.DrillPBError error = 4;
/**
* <code>optional .exec.shared.DrillPBError error = 4;</code>
*/
@@ -8386,36 +9325,33 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.QueryPlanFragments}
*/
- public static final class QueryPlanFragments extends
- com.google.protobuf.GeneratedMessage
- implements QueryPlanFragmentsOrBuilder {
+ public static final class QueryPlanFragments extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.QueryPlanFragments)
+ QueryPlanFragmentsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use QueryPlanFragments.newBuilder() to construct.
- private QueryPlanFragments(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private QueryPlanFragments(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private QueryPlanFragments(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final QueryPlanFragments defaultInstance;
- public static QueryPlanFragments getDefaultInstance() {
- return defaultInstance;
}
-
- public QueryPlanFragments getDefaultInstanceForType() {
- return defaultInstance;
+ private QueryPlanFragments() {
+ status_ = 0;
+ fragments_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private QueryPlanFragments(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -8427,21 +9363,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -8463,7 +9393,8 @@ public final class UserProtos {
fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>();
mutable_bitField0_ |= 0x00000004;
}
- fragments_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
+ fragments_.add(
+ input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
break;
}
case 34: {
@@ -8479,13 +9410,20 @@ public final class UserProtos {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
@@ -8499,32 +9437,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.Builder.class);
}
- public static com.google.protobuf.Parser<QueryPlanFragments> PARSER =
- new com.google.protobuf.AbstractParser<QueryPlanFragments>() {
- public QueryPlanFragments parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new QueryPlanFragments(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<QueryPlanFragments> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // required .exec.shared.QueryResult.QueryState status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState status_;
+ private int status_;
/**
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
*/
@@ -8535,10 +9458,11 @@ public final class UserProtos {
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
- // optional .exec.shared.QueryId query_id = 2;
public static final int QUERY_ID_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_;
/**
@@ -8551,16 +9475,15 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
- // repeated .exec.bit.control.PlanFragment fragments = 3;
public static final int FRAGMENTS_FIELD_NUMBER = 3;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_;
/**
@@ -8596,7 +9519,6 @@ public final class UserProtos {
return fragments_.get(index);
}
- // optional .exec.shared.DrillPBError error = 4;
public static final int ERROR_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -8609,25 +9531,21 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 4;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- fragments_ = java.util.Collections.emptyList();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasStatus()) {
memoizedIsInitialized = 0;
@@ -8637,37 +9555,37 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, queryId_);
+ output.writeMessage(2, getQueryId());
}
for (int i = 0; i < fragments_.size(); i++) {
output.writeMessage(3, fragments_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(4, error_);
+ output.writeMessage(4, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, queryId_);
+ .computeMessageSize(2, getQueryId());
}
for (int i = 0; i < fragments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -8675,21 +9593,84 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, error_);
+ .computeMessageSize(4, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.QueryPlanFragments)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.QueryPlanFragments other = (org.apache.drill.exec.proto.UserProtos.QueryPlanFragments) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && (hasQueryId() == other.hasQueryId());
+ if (hasQueryId()) {
+ result = result && getQueryId()
+ .equals(other.getQueryId());
+ }
+ result = result && getFragmentsList()
+ .equals(other.getFragmentsList());
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (hasQueryId()) {
+ hash = (37 * hash) + QUERY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryId().hashCode();
+ }
+ if (getFragmentsCount() > 0) {
+ hash = (37 * hash) + FRAGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentsList().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -8712,46 +9693,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.QueryPlanFragments prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8759,14 +9753,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.QueryPlanFragments}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.QueryPlanFragmentsOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.QueryPlanFragments)
+ org.apache.drill.exec.proto.UserProtos.QueryPlanFragmentsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8779,27 +9775,25 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getQueryIdFieldBuilder();
getFragmentsFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
} else {
queryIdBuilder_.clear();
}
@@ -8811,7 +9805,7 @@ public final class UserProtos {
fragmentsBuilder_.clear();
}
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -8819,19 +9813,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments build() {
org.apache.drill.exec.proto.UserProtos.QueryPlanFragments result = buildPartial();
if (!result.isInitialized()) {
@@ -8840,6 +9833,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments buildPartial() {
org.apache.drill.exec.proto.UserProtos.QueryPlanFragments result = new org.apache.drill.exec.proto.UserProtos.QueryPlanFragments(this);
int from_bitField0_ = bitField0_;
@@ -8878,6 +9872,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.QueryPlanFragments) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.QueryPlanFragments)other);
@@ -8914,7 +9941,7 @@ public final class UserProtos {
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000004);
fragmentsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentsFieldBuilder() : null;
} else {
fragmentsBuilder_.addAllMessages(other.fragments_);
@@ -8924,18 +9951,20 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasStatus()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8945,7 +9974,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.QueryPlanFragments) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -8955,8 +9984,7 @@ public final class UserProtos {
}
private int bitField0_;
- // required .exec.shared.QueryResult.QueryState status = 1;
- private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ private int status_ = 0;
/**
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
*/
@@ -8967,7 +9995,9 @@ public final class UserProtos {
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState result = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING : result;
}
/**
* <code>required .exec.shared.QueryResult.QueryState status = 1;</code>
@@ -8977,7 +10007,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -8986,14 +10016,13 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING;
+ status_ = 0;
onChanged();
return this;
}
- // optional .exec.shared.QueryId query_id = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_;
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
@@ -9006,7 +10035,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {
if (queryIdBuilder_ == null) {
- return queryId_;
+ return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
} else {
return queryIdBuilder_.getMessage();
}
@@ -9047,6 +10076,7 @@ public final class UserProtos {
public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) {
if (queryIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ queryId_ != null &&
queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
queryId_ =
org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
@@ -9065,7 +10095,7 @@ public final class UserProtos {
*/
public Builder clearQueryId() {
if (queryIdBuilder_ == null) {
- queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance();
+ queryId_ = null;
onChanged();
} else {
queryIdBuilder_.clear();
@@ -9088,19 +10118,20 @@ public final class UserProtos {
if (queryIdBuilder_ != null) {
return queryIdBuilder_.getMessageOrBuilder();
} else {
- return queryId_;
+ return queryId_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;
}
}
/**
* <code>optional .exec.shared.QueryId query_id = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>
getQueryIdFieldBuilder() {
if (queryIdBuilder_ == null) {
- queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>(
- queryId_,
+ getQueryId(),
getParentForChildren(),
isClean());
queryId_ = null;
@@ -9108,7 +10139,6 @@ public final class UserProtos {
return queryIdBuilder_;
}
- // repeated .exec.bit.control.PlanFragment fragments = 3;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_ =
java.util.Collections.emptyList();
private void ensureFragmentsIsMutable() {
@@ -9118,7 +10148,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> fragmentsBuilder_;
/**
@@ -9250,7 +10280,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.PlanFragment> values) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
- super.addAll(values, fragments_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, fragments_);
onChanged();
} else {
fragmentsBuilder_.addAllMessages(values);
@@ -9333,11 +10364,11 @@ public final class UserProtos {
getFragmentsBuilderList() {
return getFragmentsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentsFieldBuilder() {
if (fragmentsBuilder_ == null) {
- fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>(
fragments_,
((bitField0_ & 0x00000004) == 0x00000004),
@@ -9348,9 +10379,8 @@ public final class UserProtos {
return fragmentsBuilder_;
}
- // optional .exec.shared.DrillPBError error = 4;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 4;</code>
@@ -9363,7 +10393,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -9404,6 +10434,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -9422,7 +10453,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -9445,41 +10476,83 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.QueryPlanFragments)
}
+ // @@protoc_insertion_point(class_scope:exec.user.QueryPlanFragments)
+ private static final org.apache.drill.exec.proto.UserProtos.QueryPlanFragments DEFAULT_INSTANCE;
static {
- defaultInstance = new QueryPlanFragments(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.QueryPlanFragments();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<QueryPlanFragments>
+ PARSER = new com.google.protobuf.AbstractParser<QueryPlanFragments>() {
+ @java.lang.Override
+ public QueryPlanFragments parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryPlanFragments(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<QueryPlanFragments> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<QueryPlanFragments> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.QueryPlanFragments)
}
- public interface BitToUserHandshakeOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface BitToUserHandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.BitToUserHandshake)
+ com.google.protobuf.MessageOrBuilder {
- // optional int32 rpc_version = 2;
/**
* <code>optional int32 rpc_version = 2;</code>
*/
@@ -9489,7 +10562,6 @@ public final class UserProtos {
*/
int getRpcVersion();
- // optional .exec.user.HandshakeStatus status = 3;
/**
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
*/
@@ -9499,7 +10571,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus();
- // optional string errorId = 4;
/**
* <code>optional string errorId = 4;</code>
*/
@@ -9514,7 +10585,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getErrorIdBytes();
- // optional string errorMessage = 5;
/**
* <code>optional string errorMessage = 5;</code>
*/
@@ -9529,7 +10599,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getErrorMessageBytes();
- // optional .exec.user.RpcEndpointInfos server_infos = 6;
/**
* <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code>
*/
@@ -9543,12 +10612,11 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getServerInfosOrBuilder();
- // repeated string authenticationMechanisms = 7;
/**
* <code>repeated string authenticationMechanisms = 7;</code>
*/
java.util.List<java.lang.String>
- getAuthenticationMechanismsList();
+ getAuthenticationMechanismsList();
/**
* <code>repeated string authenticationMechanisms = 7;</code>
*/
@@ -9563,7 +10631,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getAuthenticationMechanismsBytes(int index);
- // repeated .exec.user.RpcType supported_methods = 8;
/**
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
*/
@@ -9577,7 +10644,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index);
- // optional bool encrypted = 9;
/**
* <code>optional bool encrypted = 9;</code>
*/
@@ -9587,7 +10653,6 @@ public final class UserProtos {
*/
boolean getEncrypted();
- // optional int32 maxWrappedSize = 10;
/**
* <code>optional int32 maxWrappedSize = 10;</code>
*/
@@ -9600,36 +10665,39 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.BitToUserHandshake}
*/
- public static final class BitToUserHandshake extends
- com.google.protobuf.GeneratedMessage
- implements BitToUserHandshakeOrBuilder {
+ public static final class BitToUserHandshake extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.BitToUserHandshake)
+ BitToUserHandshakeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use BitToUserHandshake.newBuilder() to construct.
- private BitToUserHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private BitToUserHandshake(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private BitToUserHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BitToUserHandshake defaultInstance;
- public static BitToUserHandshake getDefaultInstance() {
- return defaultInstance;
}
-
- public BitToUserHandshake getDefaultInstanceForType() {
- return defaultInstance;
+ private BitToUserHandshake() {
+ rpcVersion_ = 0;
+ status_ = 1;
+ errorId_ = "";
+ errorMessage_ = "";
+ authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ supportedMethods_ = java.util.Collections.emptyList();
+ encrypted_ = false;
+ maxWrappedSize_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private BitToUserHandshake(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -9641,13 +10709,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 16: {
bitField0_ |= 0x00000001;
rpcVersion_ = input.readInt32();
@@ -9655,23 +10716,26 @@ public final class UserProtos {
}
case 24: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.HandshakeStatus value = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000002;
- status_ = value;
+ status_ = rawValue;
}
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- errorId_ = input.readBytes();
+ errorId_ = bs;
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- errorMessage_ = input.readBytes();
+ errorMessage_ = bs;
break;
}
case 50: {
@@ -9688,24 +10752,26 @@ public final class UserProtos {
break;
}
case 58: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
authenticationMechanisms_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
- authenticationMechanisms_.add(input.readBytes());
+ authenticationMechanisms_.add(bs);
break;
}
case 64: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RpcType value = org.apache.drill.exec.proto.UserProtos.RpcType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(8, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>();
+ supportedMethods_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000040;
}
- supportedMethods_.add(value);
+ supportedMethods_.add(rawValue);
}
break;
}
@@ -9714,15 +10780,16 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RpcType value = org.apache.drill.exec.proto.UserProtos.RpcType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(8, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>();
+ supportedMethods_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000040;
}
- supportedMethods_.add(value);
+ supportedMethods_.add(rawValue);
}
}
input.popLimit(oldLimit);
@@ -9738,16 +10805,23 @@ public final class UserProtos {
maxWrappedSize_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
supportedMethods_ = java.util.Collections.unmodifiableList(supportedMethods_);
@@ -9761,30 +10835,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.class, org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.Builder.class);
}
- public static com.google.protobuf.Parser<BitToUserHandshake> PARSER =
- new com.google.protobuf.AbstractParser<BitToUserHandshake>() {
- public BitToUserHandshake parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BitToUserHandshake(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BitToUserHandshake> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional int32 rpc_version = 2;
public static final int RPC_VERSION_FIELD_NUMBER = 2;
private int rpcVersion_;
/**
@@ -9800,9 +10859,8 @@ public final class UserProtos {
return rpcVersion_;
}
- // optional .exec.user.HandshakeStatus status = 3;
public static final int STATUS_FIELD_NUMBER = 3;
- private org.apache.drill.exec.proto.UserProtos.HandshakeStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
*/
@@ -9813,12 +10871,13 @@ public final class UserProtos {
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.HandshakeStatus result = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS : result;
}
- // optional string errorId = 4;
public static final int ERRORID_FIELD_NUMBER = 4;
- private java.lang.Object errorId_;
+ private volatile java.lang.Object errorId_;
/**
* <code>optional string errorId = 4;</code>
*/
@@ -9859,9 +10918,8 @@ public final class UserProtos {
}
}
- // optional string errorMessage = 5;
public static final int ERRORMESSAGE_FIELD_NUMBER = 5;
- private java.lang.Object errorMessage_;
+ private volatile java.lang.Object errorMessage_;
/**
* <code>optional string errorMessage = 5;</code>
*/
@@ -9902,7 +10960,6 @@ public final class UserProtos {
}
}
- // optional .exec.user.RpcEndpointInfos server_infos = 6;
public static final int SERVER_INFOS_FIELD_NUMBER = 6;
private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos serverInfos_;
/**
@@ -9915,22 +10972,21 @@ public final class UserProtos {
* <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getServerInfos() {
- return serverInfos_;
+ return serverInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : serverInfos_;
}
/**
* <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getServerInfosOrBuilder() {
- return serverInfos_;
+ return serverInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : serverInfos_;
}
- // repeated string authenticationMechanisms = 7;
public static final int AUTHENTICATIONMECHANISMS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList authenticationMechanisms_;
/**
* <code>repeated string authenticationMechanisms = 7;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
return authenticationMechanisms_;
}
@@ -9954,14 +11010,24 @@ public final class UserProtos {
return authenticationMechanisms_.getByteString(index);
}
- // repeated .exec.user.RpcType supported_methods = 8;
public static final int SUPPORTED_METHODS_FIELD_NUMBER = 8;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> supportedMethods_;
+ private java.util.List<java.lang.Integer> supportedMethods_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.RpcType> supportedMethods_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.RpcType>() {
+ public org.apache.drill.exec.proto.UserProtos.RpcType convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RpcType result = org.apache.drill.exec.proto.UserProtos.RpcType.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RpcType.HANDSHAKE : result;
+ }
+ };
/**
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> getSupportedMethodsList() {
- return supportedMethods_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.RpcType>(supportedMethods_, supportedMethods_converter_);
}
/**
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
@@ -9973,10 +11039,9 @@ public final class UserProtos {
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index) {
- return supportedMethods_.get(index);
+ return supportedMethods_converter_.convert(supportedMethods_.get(index));
}
- // optional bool encrypted = 9;
public static final int ENCRYPTED_FIELD_NUMBER = 9;
private boolean encrypted_;
/**
@@ -9992,7 +11057,6 @@ public final class UserProtos {
return encrypted_;
}
- // optional int32 maxWrappedSize = 10;
public static final int MAXWRAPPEDSIZE_FIELD_NUMBER = 10;
private int maxWrappedSize_;
/**
@@ -10008,49 +11072,40 @@ public final class UserProtos {
return maxWrappedSize_;
}
- private void initFields() {
- rpcVersion_ = 0;
- status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS;
- errorId_ = "";
- errorMessage_ = "";
- serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
- authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- supportedMethods_ = java.util.Collections.emptyList();
- encrypted_ = false;
- maxWrappedSize_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, rpcVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(3, status_.getNumber());
+ output.writeEnum(3, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getErrorIdBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errorId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(5, getErrorMessageBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errorMessage_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(6, serverInfos_);
+ output.writeMessage(6, getServerInfos());
}
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- output.writeBytes(7, authenticationMechanisms_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, authenticationMechanisms_.getRaw(i));
}
for (int i = 0; i < supportedMethods_.size(); i++) {
- output.writeEnum(8, supportedMethods_.get(i).getNumber());
+ output.writeEnum(8, supportedMethods_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(9, encrypted_);
@@ -10058,12 +11113,12 @@ public final class UserProtos {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(10, maxWrappedSize_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -10073,25 +11128,22 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, status_.getNumber());
+ .computeEnumSize(3, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getErrorIdBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getErrorMessageBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, errorMessage_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, serverInfos_);
+ .computeMessageSize(6, getServerInfos());
}
{
int dataSize = 0;
for (int i = 0; i < authenticationMechanisms_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i));
+ dataSize += computeStringSizeNoTag(authenticationMechanisms_.getRaw(i));
}
size += dataSize;
size += 1 * getAuthenticationMechanismsList().size();
@@ -10100,7 +11152,7 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < supportedMethods_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(supportedMethods_.get(i).getNumber());
+ .computeEnumSizeNoTag(supportedMethods_.get(i));
}
size += dataSize;
size += 1 * supportedMethods_.size();
@@ -10113,19 +11165,124 @@ public final class UserProtos {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, maxWrappedSize_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.BitToUserHandshake)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.BitToUserHandshake other = (org.apache.drill.exec.proto.UserProtos.BitToUserHandshake) obj;
+
+ boolean result = true;
+ result = result && (hasRpcVersion() == other.hasRpcVersion());
+ if (hasRpcVersion()) {
+ result = result && (getRpcVersion()
+ == other.getRpcVersion());
+ }
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && (hasErrorId() == other.hasErrorId());
+ if (hasErrorId()) {
+ result = result && getErrorId()
+ .equals(other.getErrorId());
+ }
+ result = result && (hasErrorMessage() == other.hasErrorMessage());
+ if (hasErrorMessage()) {
+ result = result && getErrorMessage()
+ .equals(other.getErrorMessage());
+ }
+ result = result && (hasServerInfos() == other.hasServerInfos());
+ if (hasServerInfos()) {
+ result = result && getServerInfos()
+ .equals(other.getServerInfos());
+ }
+ result = result && getAuthenticationMechanismsList()
+ .equals(other.getAuthenticationMechanismsList());
+ result = result && supportedMethods_.equals(other.supportedMethods_);
+ result = result && (hasEncrypted() == other.hasEncrypted());
+ if (hasEncrypted()) {
+ result = result && (getEncrypted()
+ == other.getEncrypted());
+ }
+ result = result && (hasMaxWrappedSize() == other.hasMaxWrappedSize());
+ if (hasMaxWrappedSize()) {
+ result = result && (getMaxWrappedSize()
+ == other.getMaxWrappedSize());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRpcVersion()) {
+ hash = (37 * hash) + RPC_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getRpcVersion();
+ }
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (hasErrorId()) {
+ hash = (37 * hash) + ERRORID_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorId().hashCode();
+ }
+ if (hasErrorMessage()) {
+ hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorMessage().hashCode();
+ }
+ if (hasServerInfos()) {
+ hash = (37 * hash) + SERVER_INFOS_FIELD_NUMBER;
+ hash = (53 * hash) + getServerInfos().hashCode();
+ }
+ if (getAuthenticationMechanismsCount() > 0) {
+ hash = (37 * hash) + AUTHENTICATIONMECHANISMS_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthenticationMechanismsList().hashCode();
+ }
+ if (getSupportedMethodsCount() > 0) {
+ hash = (37 * hash) + SUPPORTED_METHODS_FIELD_NUMBER;
+ hash = (53 * hash) + supportedMethods_.hashCode();
+ }
+ if (hasEncrypted()) {
+ hash = (37 * hash) + ENCRYPTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEncrypted());
+ }
+ if (hasMaxWrappedSize()) {
+ hash = (37 * hash) + MAXWRAPPEDSIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxWrappedSize();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -10148,46 +11305,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.BitToUserHandshake prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -10195,14 +11365,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.BitToUserHandshake}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.BitToUserHandshakeOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.BitToUserHandshake)
+ org.apache.drill.exec.proto.UserProtos.BitToUserHandshakeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10215,31 +11387,29 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getServerInfosFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
rpcVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS;
+ status_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
errorId_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
errorMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (serverInfosBuilder_ == null) {
- serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
+ serverInfos_ = null;
} else {
serverInfosBuilder_.clear();
}
@@ -10255,19 +11425,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake build() {
org.apache.drill.exec.proto.UserProtos.BitToUserHandshake result = buildPartial();
if (!result.isInitialized()) {
@@ -10276,6 +11445,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake buildPartial() {
org.apache.drill.exec.proto.UserProtos.BitToUserHandshake result = new org.apache.drill.exec.proto.UserProtos.BitToUserHandshake(this);
int from_bitField0_ = bitField0_;
@@ -10305,8 +11475,7 @@ public final class UserProtos {
result.serverInfos_ = serverInfosBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(
- authenticationMechanisms_);
+ authenticationMechanisms_ = authenticationMechanisms_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.authenticationMechanisms_ = authenticationMechanisms_;
@@ -10328,6 +11497,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.BitToUserHandshake) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.BitToUserHandshake)other);
@@ -10384,14 +11586,17 @@ public final class UserProtos {
if (other.hasMaxWrappedSize()) {
setMaxWrappedSize(other.getMaxWrappedSize());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -10401,7 +11606,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.BitToUserHandshake) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -10411,7 +11616,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional int32 rpc_version = 2;
private int rpcVersion_ ;
/**
* <code>optional int32 rpc_version = 2;</code>
@@ -10444,8 +11648,7 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.HandshakeStatus status = 3;
- private org.apache.drill.exec.proto.UserProtos.HandshakeStatus status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS;
+ private int status_ = 1;
/**
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
*/
@@ -10456,7 +11659,9 @@ public final class UserProtos {
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.HandshakeStatus result = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS : result;
}
/**
* <code>optional .exec.user.HandshakeStatus status = 3;</code>
@@ -10466,7 +11671,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -10475,12 +11680,11 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
- status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS;
+ status_ = 1;
onChanged();
return this;
}
- // optional string errorId = 4;
private java.lang.Object errorId_ = "";
/**
* <code>optional string errorId = 4;</code>
@@ -10494,9 +11698,12 @@ public final class UserProtos {
public java.lang.String getErrorId() {
java.lang.Object ref = errorId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- errorId_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ errorId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -10554,7 +11761,6 @@ public final class UserProtos {
return this;
}
- // optional string errorMessage = 5;
private java.lang.Object errorMessage_ = "";
/**
* <code>optional string errorMessage = 5;</code>
@@ -10568,9 +11774,12 @@ public final class UserProtos {
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- errorMessage_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ errorMessage_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -10628,9 +11837,8 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.RpcEndpointInfos server_infos = 6;
- private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos serverInfos_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> serverInfosBuilder_;
/**
* <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code>
@@ -10643,7 +11851,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getServerInfos() {
if (serverInfosBuilder_ == null) {
- return serverInfos_;
+ return serverInfos_ == null ? org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : serverInfos_;
} else {
return serverInfosBuilder_.getMessage();
}
@@ -10684,6 +11892,7 @@ public final class UserProtos {
public Builder mergeServerInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) {
if (serverInfosBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ serverInfos_ != null &&
serverInfos_ != org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance()) {
serverInfos_ =
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.newBuilder(serverInfos_).mergeFrom(value).buildPartial();
@@ -10702,7 +11911,7 @@ public final class UserProtos {
*/
public Builder clearServerInfos() {
if (serverInfosBuilder_ == null) {
- serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
+ serverInfos_ = null;
onChanged();
} else {
serverInfosBuilder_.clear();
@@ -10725,19 +11934,20 @@ public final class UserProtos {
if (serverInfosBuilder_ != null) {
return serverInfosBuilder_.getMessageOrBuilder();
} else {
- return serverInfos_;
+ return serverInfos_ == null ?
+ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance() : serverInfos_;
}
}
/**
* <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>
getServerInfosFieldBuilder() {
if (serverInfosBuilder_ == null) {
- serverInfosBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ serverInfosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>(
- serverInfos_,
+ getServerInfos(),
getParentForChildren(),
isClean());
serverInfos_ = null;
@@ -10745,7 +11955,6 @@ public final class UserProtos {
return serverInfosBuilder_;
}
- // repeated string authenticationMechanisms = 7;
private com.google.protobuf.LazyStringList authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAuthenticationMechanismsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
@@ -10756,9 +11965,9 @@ public final class UserProtos {
/**
* <code>repeated string authenticationMechanisms = 7;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getAuthenticationMechanismsList() {
- return java.util.Collections.unmodifiableList(authenticationMechanisms_);
+ return authenticationMechanisms_.getUnmodifiableView();
}
/**
* <code>repeated string authenticationMechanisms = 7;</code>
@@ -10811,7 +12020,8 @@ public final class UserProtos {
public Builder addAllAuthenticationMechanisms(
java.lang.Iterable<java.lang.String> values) {
ensureAuthenticationMechanismsIsMutable();
- super.addAll(values, authenticationMechanisms_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, authenticationMechanisms_);
onChanged();
return this;
}
@@ -10838,12 +12048,11 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.RpcType supported_methods = 8;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> supportedMethods_ =
+ private java.util.List<java.lang.Integer> supportedMethods_ =
java.util.Collections.emptyList();
private void ensureSupportedMethodsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>(supportedMethods_);
+ supportedMethods_ = new java.util.ArrayList<java.lang.Integer>(supportedMethods_);
bitField0_ |= 0x00000040;
}
}
@@ -10851,7 +12060,8 @@ public final class UserProtos {
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> getSupportedMethodsList() {
- return java.util.Collections.unmodifiableList(supportedMethods_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.RpcType>(supportedMethods_, supportedMethods_converter_);
}
/**
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
@@ -10863,7 +12073,7 @@ public final class UserProtos {
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index) {
- return supportedMethods_.get(index);
+ return supportedMethods_converter_.convert(supportedMethods_.get(index));
}
/**
* <code>repeated .exec.user.RpcType supported_methods = 8;</code>
@@ -10874,7 +12084,7 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureSupportedMethodsIsMutable();
- supportedMethods_.set(index, value);
+ supportedMethods_.set(index, value.getNumber());
onChanged();
return this;
}
@@ -10886,7 +12096,7 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureSupportedMethodsIsMutable();
- supportedMethods_.add(value);
+ supportedMethods_.add(value.getNumber());
onChanged();
return this;
}
@@ -10896,7 +12106,9 @@ public final class UserProtos {
public Builder addAllSupportedMethods(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.RpcType> values) {
ensureSupportedMethodsIsMutable();
- super.addAll(values, supportedMethods_);
+ for (org.apache.drill.exec.proto.UserProtos.RpcType value : values) {
+ supportedMethods_.add(value.getNumber());
+ }
onChanged();
return this;
}
@@ -10910,7 +12122,6 @@ public final class UserProtos {
return this;
}
- // optional bool encrypted = 9;
private boolean encrypted_ ;
/**
* <code>optional bool encrypted = 9;</code>
@@ -10943,7 +12154,6 @@ public final class UserProtos {
return this;
}
- // optional int32 maxWrappedSize = 10;
private int maxWrappedSize_ ;
/**
* <code>optional int32 maxWrappedSize = 10;</code>
@@ -10975,113 +12185,149 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.BitToUserHandshake)
}
+ // @@protoc_insertion_point(class_scope:exec.user.BitToUserHandshake)
+ private static final org.apache.drill.exec.proto.UserProtos.BitToUserHandshake DEFAULT_INSTANCE;
static {
- defaultInstance = new BitToUserHandshake(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.BitToUserHandshake();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<BitToUserHandshake>
+ PARSER = new com.google.protobuf.AbstractParser<BitToUserHandshake>() {
+ @java.lang.Override
+ public BitToUserHandshake parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BitToUserHandshake(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<BitToUserHandshake> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BitToUserHandshake> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.BitToUserHandshake)
}
- public interface LikeFilterOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface LikeFilterOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.LikeFilter)
+ com.google.protobuf.MessageOrBuilder {
- // optional string pattern = 1;
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
boolean hasPattern();
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
java.lang.String getPattern();
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
com.google.protobuf.ByteString
getPatternBytes();
- // optional string escape = 2;
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
boolean hasEscape();
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
java.lang.String getEscape();
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
com.google.protobuf.ByteString
getEscapeBytes();
}
/**
- * Protobuf type {@code exec.user.LikeFilter}
- *
* <pre>
- *
* Simple filter which encapsulates the SQL LIKE ... ESCAPE function
* </pre>
+ *
+ * Protobuf type {@code exec.user.LikeFilter}
*/
- public static final class LikeFilter extends
- com.google.protobuf.GeneratedMessage
- implements LikeFilterOrBuilder {
+ public static final class LikeFilter extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.LikeFilter)
+ LikeFilterOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use LikeFilter.newBuilder() to construct.
- private LikeFilter(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private LikeFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private LikeFilter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final LikeFilter defaultInstance;
- public static LikeFilter getDefaultInstance() {
- return defaultInstance;
- }
-
- public LikeFilter getDefaultInstanceForType() {
- return defaultInstance;
+ private LikeFilter() {
+ pattern_ = "";
+ escape_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private LikeFilter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -11093,21 +12339,23 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- pattern_ = input.readBytes();
+ pattern_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- escape_ = input.readBytes();
+ escape_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -11116,7 +12364,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -11127,48 +12375,33 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.LikeFilter.class, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder.class);
}
- public static com.google.protobuf.Parser<LikeFilter> PARSER =
- new com.google.protobuf.AbstractParser<LikeFilter>() {
- public LikeFilter parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new LikeFilter(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<LikeFilter> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string pattern = 1;
public static final int PATTERN_FIELD_NUMBER = 1;
- private java.lang.Object pattern_;
+ private volatile java.lang.Object pattern_;
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
@@ -11185,11 +12418,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public com.google.protobuf.ByteString
getPatternBytes() {
@@ -11205,25 +12438,24 @@ public final class UserProtos {
}
}
- // optional string escape = 2;
public static final int ESCAPE_FIELD_NUMBER = 2;
- private java.lang.Object escape_;
+ private volatile java.lang.Object escape_;
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public boolean hasEscape() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public java.lang.String getEscape() {
java.lang.Object ref = escape_;
@@ -11240,11 +12472,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public com.google.protobuf.ByteString
getEscapeBytes() {
@@ -11260,58 +12492,103 @@ public final class UserProtos {
}
}
- private void initFields() {
- pattern_ = "";
- escape_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getPatternBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pattern_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getEscapeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, escape_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getPatternBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pattern_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getEscapeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, escape_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.LikeFilter)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.LikeFilter other = (org.apache.drill.exec.proto.UserProtos.LikeFilter) obj;
+
+ boolean result = true;
+ result = result && (hasPattern() == other.hasPattern());
+ if (hasPattern()) {
+ result = result && getPattern()
+ .equals(other.getPattern());
+ }
+ result = result && (hasEscape() == other.hasEscape());
+ if (hasEscape()) {
+ result = result && getEscape()
+ .equals(other.getEscape());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPattern()) {
+ hash = (37 * hash) + PATTERN_FIELD_NUMBER;
+ hash = (53 * hash) + getPattern().hashCode();
+ }
+ if (hasEscape()) {
+ hash = (37 * hash) + ESCAPE_FIELD_NUMBER;
+ hash = (53 * hash) + getEscape().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -11334,66 +12611,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.LikeFilter prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.LikeFilter}
- *
* <pre>
- *
* Simple filter which encapsulates the SQL LIKE ... ESCAPE function
* </pre>
+ *
+ * Protobuf type {@code exec.user.LikeFilter}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.LikeFilter)
+ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -11406,18 +12697,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
pattern_ = "";
@@ -11427,19 +12716,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter build() {
org.apache.drill.exec.proto.UserProtos.LikeFilter result = buildPartial();
if (!result.isInitialized()) {
@@ -11448,6 +12736,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter buildPartial() {
org.apache.drill.exec.proto.UserProtos.LikeFilter result = new org.apache.drill.exec.proto.UserProtos.LikeFilter(this);
int from_bitField0_ = bitField0_;
@@ -11465,6 +12754,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.LikeFilter) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.LikeFilter)other);
@@ -11486,14 +12808,17 @@ public final class UserProtos {
escape_ = other.escape_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -11503,7 +12828,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.LikeFilter) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -11513,42 +12838,44 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string pattern = 1;
private java.lang.Object pattern_ = "";
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- pattern_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ pattern_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public com.google.protobuf.ByteString
getPatternBytes() {
@@ -11564,11 +12891,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public Builder setPattern(
java.lang.String value) {
@@ -11581,11 +12908,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public Builder clearPattern() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -11594,11 +12921,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string pattern = 1;</code>
- *
* <pre>
* pattern to match
* </pre>
+ *
+ * <code>optional string pattern = 1;</code>
*/
public Builder setPatternBytes(
com.google.protobuf.ByteString value) {
@@ -11611,42 +12938,44 @@ public final class UserProtos {
return this;
}
- // optional string escape = 2;
private java.lang.Object escape_ = "";
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public boolean hasEscape() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public java.lang.String getEscape() {
java.lang.Object ref = escape_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- escape_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ escape_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public com.google.protobuf.ByteString
getEscapeBytes() {
@@ -11662,11 +12991,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public Builder setEscape(
java.lang.String value) {
@@ -11679,11 +13008,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public Builder clearEscape() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -11692,11 +13021,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string escape = 2;</code>
- *
* <pre>
* escape character (if any) present in the pattern
* </pre>
+ *
+ * <code>optional string escape = 2;</code>
*/
public Builder setEscapeBytes(
com.google.protobuf.ByteString value) {
@@ -11708,22 +13037,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.LikeFilter)
}
+ // @@protoc_insertion_point(class_scope:exec.user.LikeFilter)
+ private static final org.apache.drill.exec.proto.UserProtos.LikeFilter DEFAULT_INSTANCE;
static {
- defaultInstance = new LikeFilter(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.LikeFilter();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.LikeFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<LikeFilter>
+ PARSER = new com.google.protobuf.AbstractParser<LikeFilter>() {
+ @java.lang.Override
+ public LikeFilter parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new LikeFilter(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<LikeFilter> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<LikeFilter> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.LikeFilter getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.LikeFilter)
}
- public interface GetCatalogsReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetCatalogsReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetCatalogsReq)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
@@ -11738,43 +13108,37 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetCatalogsReq}
- *
* <pre>
- *
* Request message for getting the metadata for catalogs satisfying the given optional filter.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetCatalogsReq}
*/
- public static final class GetCatalogsReq extends
- com.google.protobuf.GeneratedMessage
- implements GetCatalogsReqOrBuilder {
+ public static final class GetCatalogsReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetCatalogsReq)
+ GetCatalogsReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetCatalogsReq.newBuilder() to construct.
- private GetCatalogsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetCatalogsReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetCatalogsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetCatalogsReq defaultInstance;
- public static GetCatalogsReq getDefaultInstance() {
- return defaultInstance;
}
-
- public GetCatalogsReq getDefaultInstanceForType() {
- return defaultInstance;
+ private GetCatalogsReq() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetCatalogsReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -11786,13 +13150,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -11806,13 +13163,20 @@ public final class UserProtos {
bitField0_ |= 0x00000001;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -11823,30 +13187,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.Builder.class);
}
- public static com.google.protobuf.Parser<GetCatalogsReq> PARSER =
- new com.google.protobuf.AbstractParser<GetCatalogsReq>() {
- public GetCatalogsReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetCatalogsReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetCatalogsReq> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
@@ -11859,59 +13208,98 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
- private void initFields() {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, catalogNameFilter_);
+ output.writeMessage(1, getCatalogNameFilter());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, catalogNameFilter_);
+ .computeMessageSize(1, getCatalogNameFilter());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetCatalogsReq other = (org.apache.drill.exec.proto.UserProtos.GetCatalogsReq) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogNameFilter() == other.hasCatalogNameFilter());
+ if (hasCatalogNameFilter()) {
+ result = result && getCatalogNameFilter()
+ .equals(other.getCatalogNameFilter());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogNameFilter()) {
+ hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogNameFilter().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -11934,66 +13322,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetCatalogsReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetCatalogsReq}
- *
* <pre>
- *
* Request message for getting the metadata for catalogs satisfying the given optional filter.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetCatalogsReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetCatalogsReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetCatalogsReq)
+ org.apache.drill.exec.proto.UserProtos.GetCatalogsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -12006,23 +13408,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
@@ -12030,19 +13430,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq build() {
org.apache.drill.exec.proto.UserProtos.GetCatalogsReq result = buildPartial();
if (!result.isInitialized()) {
@@ -12051,6 +13450,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetCatalogsReq result = new org.apache.drill.exec.proto.UserProtos.GetCatalogsReq(this);
int from_bitField0_ = bitField0_;
@@ -12068,6 +13468,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetCatalogsReq)other);
@@ -12082,14 +13515,17 @@ public final class UserProtos {
if (other.hasCatalogNameFilter()) {
mergeCatalogNameFilter(other.getCatalogNameFilter());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -12099,7 +13535,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetCatalogsReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -12109,9 +13545,8 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
@@ -12124,7 +13559,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
@@ -12165,6 +13600,7 @@ public final class UserProtos {
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ catalogNameFilter_ != null &&
catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
catalogNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial();
@@ -12183,7 +13619,7 @@ public final class UserProtos {
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
@@ -12206,41 +13642,83 @@ public final class UserProtos {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getCatalogNameFilterFieldBuilder() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- catalogNameFilter_,
+ getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
}
return catalogNameFilterBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetCatalogsReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsReq)
+ private static final org.apache.drill.exec.proto.UserProtos.GetCatalogsReq DEFAULT_INSTANCE;
static {
- defaultInstance = new GetCatalogsReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetCatalogsReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetCatalogsReq>
+ PARSER = new com.google.protobuf.AbstractParser<GetCatalogsReq>() {
+ @java.lang.Override
+ public GetCatalogsReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetCatalogsReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetCatalogsReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetCatalogsReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsReq)
}
- public interface CatalogMetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CatalogMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.CatalogMetadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional string catalog_name = 1;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -12255,7 +13733,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getCatalogNameBytes();
- // optional string description = 2;
/**
* <code>optional string description = 2;</code>
*/
@@ -12270,7 +13747,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getDescriptionBytes();
- // optional string connect = 3;
/**
* <code>optional string connect = 3;</code>
*/
@@ -12286,43 +13762,40 @@ public final class UserProtos {
getConnectBytes();
}
/**
- * Protobuf type {@code exec.user.CatalogMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Catalog.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CatalogMetadata}
*/
- public static final class CatalogMetadata extends
- com.google.protobuf.GeneratedMessage
- implements CatalogMetadataOrBuilder {
+ public static final class CatalogMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.CatalogMetadata)
+ CatalogMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CatalogMetadata.newBuilder() to construct.
- private CatalogMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CatalogMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CatalogMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CatalogMetadata defaultInstance;
- public static CatalogMetadata getDefaultInstance() {
- return defaultInstance;
- }
-
- public CatalogMetadata getDefaultInstanceForType() {
- return defaultInstance;
+ private CatalogMetadata() {
+ catalogName_ = "";
+ description_ = "";
+ connect_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CatalogMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -12334,26 +13807,29 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- catalogName_ = input.readBytes();
+ catalogName_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- description_ = input.readBytes();
+ description_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- connect_ = input.readBytes();
+ connect_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -12362,7 +13838,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -12373,32 +13849,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.CatalogMetadata.class, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder.class);
}
- public static com.google.protobuf.Parser<CatalogMetadata> PARSER =
- new com.google.protobuf.AbstractParser<CatalogMetadata>() {
- public CatalogMetadata parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CatalogMetadata(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CatalogMetadata> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string catalog_name = 1;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
- private java.lang.Object catalogName_;
+ private volatile java.lang.Object catalogName_;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -12439,9 +13900,8 @@ public final class UserProtos {
}
}
- // optional string description = 2;
public static final int DESCRIPTION_FIELD_NUMBER = 2;
- private java.lang.Object description_;
+ private volatile java.lang.Object description_;
/**
* <code>optional string description = 2;</code>
*/
@@ -12482,9 +13942,8 @@ public final class UserProtos {
}
}
- // optional string connect = 3;
public static final int CONNECT_FIELD_NUMBER = 3;
- private java.lang.Object connect_;
+ private volatile java.lang.Object connect_;
/**
* <code>optional string connect = 3;</code>
*/
@@ -12525,66 +13984,118 @@ public final class UserProtos {
}
}
- private void initFields() {
- catalogName_ = "";
- description_ = "";
- connect_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCatalogNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getDescriptionBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getConnectBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, connect_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCatalogNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getDescriptionBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getConnectBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, connect_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.CatalogMetadata)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.CatalogMetadata other = (org.apache.drill.exec.proto.UserProtos.CatalogMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogName() == other.hasCatalogName());
+ if (hasCatalogName()) {
+ result = result && getCatalogName()
+ .equals(other.getCatalogName());
+ }
+ result = result && (hasDescription() == other.hasDescription());
+ if (hasDescription()) {
+ result = result && getDescription()
+ .equals(other.getDescription());
+ }
+ result = result && (hasConnect() == other.hasConnect());
+ if (hasConnect()) {
+ result = result && getConnect()
+ .equals(other.getConnect());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasDescription()) {
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ }
+ if (hasConnect()) {
+ hash = (37 * hash) + CONNECT_FIELD_NUMBER;
+ hash = (53 * hash) + getConnect().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -12607,66 +14118,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CatalogMetadata prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.CatalogMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Catalog.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CatalogMetadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.CatalogMetadata)
+ org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -12679,18 +14204,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
@@ -12702,19 +14225,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CatalogMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.CatalogMetadata.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CatalogMetadata build() {
org.apache.drill.exec.proto.UserProtos.CatalogMetadata result = buildPartial();
if (!result.isInitialized()) {
@@ -12723,6 +14245,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CatalogMetadata buildPartial() {
org.apache.drill.exec.proto.UserProtos.CatalogMetadata result = new org.apache.drill.exec.proto.UserProtos.CatalogMetadata(this);
int from_bitField0_ = bitField0_;
@@ -12744,6 +14267,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.CatalogMetadata) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.CatalogMetadata)other);
@@ -12770,14 +14326,17 @@ public final class UserProtos {
connect_ = other.connect_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -12787,7 +14346,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.CatalogMetadata) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -12797,7 +14356,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string catalog_name = 1;
private java.lang.Object catalogName_ = "";
/**
* <code>optional string catalog_name = 1;</code>
@@ -12811,9 +14369,12 @@ public final class UserProtos {
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -12871,7 +14432,6 @@ public final class UserProtos {
return this;
}
- // optional string description = 2;
private java.lang.Object description_ = "";
/**
* <code>optional string description = 2;</code>
@@ -12885,9 +14445,12 @@ public final class UserProtos {
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- description_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ description_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -12945,7 +14508,6 @@ public final class UserProtos {
return this;
}
- // optional string connect = 3;
private java.lang.Object connect_ = "";
/**
* <code>optional string connect = 3;</code>
@@ -12959,9 +14521,12 @@ public final class UserProtos {
public java.lang.String getConnect() {
java.lang.Object ref = connect_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- connect_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ connect_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -13018,22 +14583,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.CatalogMetadata)
}
+ // @@protoc_insertion_point(class_scope:exec.user.CatalogMetadata)
+ private static final org.apache.drill.exec.proto.UserProtos.CatalogMetadata DEFAULT_INSTANCE;
static {
- defaultInstance = new CatalogMetadata(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.CatalogMetadata();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<CatalogMetadata>
+ PARSER = new com.google.protobuf.AbstractParser<CatalogMetadata>() {
+ @java.lang.Override
+ public CatalogMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CatalogMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<CatalogMetadata> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CatalogMetadata> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.CatalogMetadata)
}
- public interface GetCatalogsRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetCatalogsRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetCatalogsResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -13043,7 +14649,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // repeated .exec.user.CatalogMetadata catalogs = 2;
/**
* <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code>
*/
@@ -13068,7 +14673,6 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder getCatalogsOrBuilder(
int index);
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -13083,43 +14687,39 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetCatalogsResp}
- *
* <pre>
- *
* Response message for GetCatalogReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetCatalogsResp}
*/
- public static final class GetCatalogsResp extends
- com.google.protobuf.GeneratedMessage
- implements GetCatalogsRespOrBuilder {
+ public static final class GetCatalogsResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetCatalogsResp)
+ GetCatalogsRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetCatalogsResp.newBuilder() to construct.
- private GetCatalogsResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetCatalogsResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetCatalogsResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetCatalogsResp defaultInstance;
- public static GetCatalogsResp getDefaultInstance() {
- return defaultInstance;
}
-
- public GetCatalogsResp getDefaultInstanceForType() {
- return defaultInstance;
+ private GetCatalogsResp() {
+ status_ = 0;
+ catalogs_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetCatalogsResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -13131,21 +14731,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -13154,7 +14748,8 @@ public final class UserProtos {
catalogs_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CatalogMetadata>();
mutable_bitField0_ |= 0x00000002;
}
- catalogs_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.CatalogMetadata.PARSER, extensionRegistry));
+ catalogs_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.CatalogMetadata.PARSER, extensionRegistry));
break;
}
case 26: {
@@ -13170,13 +14765,20 @@ public final class UserProtos {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
catalogs_ = java.util.Collections.unmodifiableList(catalogs_);
@@ -13190,32 +14792,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.Builder.class);
}
- public static com.google.protobuf.Parser<GetCatalogsResp> PARSER =
- new com.google.protobuf.AbstractParser<GetCatalogsResp>() {
- public GetCatalogsResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetCatalogsResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetCatalogsResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -13226,10 +14813,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // repeated .exec.user.CatalogMetadata catalogs = 2;
public static final int CATALOGS_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> catalogs_;
/**
@@ -13265,7 +14853,6 @@ public final class UserProtos {
return catalogs_.get(index);
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -13278,53 +14865,50 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- catalogs_ = java.util.Collections.emptyList();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
for (int i = 0; i < catalogs_.size(); i++) {
output.writeMessage(2, catalogs_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
for (int i = 0; i < catalogs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -13332,21 +14916,75 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetCatalogsResp other = (org.apache.drill.exec.proto.UserProtos.GetCatalogsResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && getCatalogsList()
+ .equals(other.getCatalogsList());
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (getCatalogsCount() > 0) {
+ hash = (37 * hash) + CATALOGS_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogsList().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -13369,66 +15007,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetCatalogsResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetCatalogsResp}
- *
* <pre>
- *
* Response message for GetCatalogReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetCatalogsResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetCatalogsRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetCatalogsResp)
+ org.apache.drill.exec.proto.UserProtos.GetCatalogsRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -13441,23 +15093,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCatalogsFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (catalogsBuilder_ == null) {
catalogs_ = java.util.Collections.emptyList();
@@ -13466,7 +15116,7 @@ public final class UserProtos {
catalogsBuilder_.clear();
}
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -13474,19 +15124,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp build() {
org.apache.drill.exec.proto.UserProtos.GetCatalogsResp result = buildPartial();
if (!result.isInitialized()) {
@@ -13495,6 +15144,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetCatalogsResp result = new org.apache.drill.exec.proto.UserProtos.GetCatalogsResp(this);
int from_bitField0_ = bitField0_;
@@ -13525,6 +15175,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetCatalogsResp)other);
@@ -13558,7 +15241,7 @@ public final class UserProtos {
catalogs_ = other.catalogs_;
bitField0_ = (bitField0_ & ~0x00000002);
catalogsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCatalogsFieldBuilder() : null;
} else {
catalogsBuilder_.addAllMessages(other.catalogs_);
@@ -13568,14 +15251,17 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -13585,7 +15271,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetCatalogsResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -13595,8 +15281,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -13607,7 +15292,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -13617,7 +15304,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -13626,12 +15313,11 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // repeated .exec.user.CatalogMetadata catalogs = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> catalogs_ =
java.util.Collections.emptyList();
private void ensureCatalogsIsMutable() {
@@ -13641,7 +15327,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> catalogsBuilder_;
/**
@@ -13773,7 +15459,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.CatalogMetadata> values) {
if (catalogsBuilder_ == null) {
ensureCatalogsIsMutable();
- super.addAll(values, catalogs_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, catalogs_);
onChanged();
} else {
catalogsBuilder_.addAllMessages(values);
@@ -13856,11 +15543,11 @@ public final class UserProtos {
getCatalogsBuilderList() {
return getCatalogsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder>
getCatalogsFieldBuilder() {
if (catalogsBuilder_ == null) {
- catalogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ catalogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder>(
catalogs_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -13871,9 +15558,8 @@ public final class UserProtos {
return catalogsBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -13886,7 +15572,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -13927,6 +15613,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -13945,7 +15632,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -13968,41 +15655,83 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetCatalogsResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsResp)
+ private static final org.apache.drill.exec.proto.UserProtos.GetCatalogsResp DEFAULT_INSTANCE;
static {
- defaultInstance = new GetCatalogsResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetCatalogsResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetCatalogsResp>
+ PARSER = new com.google.protobuf.AbstractParser<GetCatalogsResp>() {
+ @java.lang.Override
+ public GetCatalogsResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetCatalogsResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetCatalogsResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetCatalogsResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsResp)
}
- public interface GetSchemasReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetSchemasReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetSchemasReq)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
@@ -14016,7 +15745,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
- // optional .exec.user.LikeFilter schema_name_filter = 2;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
@@ -14031,43 +15759,37 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetSchemasReq}
- *
* <pre>
- *
* Request message for getting the metadata for schemas satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetSchemasReq}
*/
- public static final class GetSchemasReq extends
- com.google.protobuf.GeneratedMessage
- implements GetSchemasReqOrBuilder {
+ public static final class GetSchemasReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetSchemasReq)
+ GetSchemasReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetSchemasReq.newBuilder() to construct.
- private GetSchemasReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetSchemasReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetSchemasReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetSchemasReq defaultInstance;
- public static GetSchemasReq getDefaultInstance() {
- return defaultInstance;
}
-
- public GetSchemasReq getDefaultInstanceForType() {
- return defaultInstance;
+ private GetSchemasReq() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetSchemasReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -14079,13 +15801,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -14112,13 +15827,20 @@ public final class UserProtos {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -14129,30 +15851,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetSchemasReq.class, org.apache.drill.exec.proto.UserProtos.GetSchemasReq.Builder.class);
}
- public static com.google.protobuf.Parser<GetSchemasReq> PARSER =
- new com.google.protobuf.AbstractParser<GetSchemasReq>() {
- public GetSchemasReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetSchemasReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetSchemasReq> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
@@ -14165,16 +15872,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
/**
@@ -14187,67 +15893,114 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
- private void initFields() {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, catalogNameFilter_);
+ output.writeMessage(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, schemaNameFilter_);
+ output.writeMessage(2, getSchemaNameFilter());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, catalogNameFilter_);
+ .computeMessageSize(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, schemaNameFilter_);
+ .computeMessageSize(2, getSchemaNameFilter());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetSchemasReq other = (org.apache.drill.exec.proto.UserProtos.GetSchemasReq) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogNameFilter() == other.hasCatalogNameFilter());
+ if (hasCatalogNameFilter()) {
+ result = result && getCatalogNameFilter()
+ .equals(other.getCatalogNameFilter());
+ }
+ result = result && (hasSchemaNameFilter() == other.hasSchemaNameFilter());
+ if (hasSchemaNameFilter()) {
+ result = result && getSchemaNameFilter()
+ .equals(other.getSchemaNameFilter());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogNameFilter()) {
+ hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogNameFilter().hashCode();
+ }
+ if (hasSchemaNameFilter()) {
+ hash = (37 * hash) + SCHEMA_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaNameFilter().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -14270,66 +16023,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetSchemasReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetSchemasReq}
- *
* <pre>
- *
* Request message for getting the metadata for schemas satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetSchemasReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetSchemasReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetSchemasReq)
+ org.apache.drill.exec.proto.UserProtos.GetSchemasReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -14342,30 +16109,28 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
getSchemaNameFilterFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
} else {
schemaNameFilterBuilder_.clear();
}
@@ -14373,19 +16138,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetSchemasReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasReq build() {
org.apache.drill.exec.proto.UserProtos.GetSchemasReq result = buildPartial();
if (!result.isInitialized()) {
@@ -14394,6 +16158,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetSchemasReq result = new org.apache.drill.exec.proto.UserProtos.GetSchemasReq(this);
int from_bitField0_ = bitField0_;
@@ -14419,6 +16184,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetSchemasReq)other);
@@ -14436,14 +16234,17 @@ public final class UserProtos {
if (other.hasSchemaNameFilter()) {
mergeSchemaNameFilter(other.getSchemaNameFilter());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -14453,7 +16254,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetSchemasReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -14463,9 +16264,8 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
@@ -14478,7 +16278,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
@@ -14519,6 +16319,7 @@ public final class UserProtos {
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ catalogNameFilter_ != null &&
catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
catalogNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial();
@@ -14537,7 +16338,7 @@ public final class UserProtos {
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
@@ -14560,19 +16361,20 @@ public final class UserProtos {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getCatalogNameFilterFieldBuilder() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- catalogNameFilter_,
+ getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
@@ -14580,9 +16382,8 @@ public final class UserProtos {
return catalogNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
@@ -14595,7 +16396,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
} else {
return schemaNameFilterBuilder_.getMessage();
}
@@ -14636,6 +16437,7 @@ public final class UserProtos {
public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (schemaNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ schemaNameFilter_ != null &&
schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
schemaNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial();
@@ -14654,7 +16456,7 @@ public final class UserProtos {
*/
public Builder clearSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
onChanged();
} else {
schemaNameFilterBuilder_.clear();
@@ -14677,41 +16479,83 @@ public final class UserProtos {
if (schemaNameFilterBuilder_ != null) {
return schemaNameFilterBuilder_.getMessageOrBuilder();
} else {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getSchemaNameFilterFieldBuilder() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- schemaNameFilter_,
+ getSchemaNameFilter(),
getParentForChildren(),
isClean());
schemaNameFilter_ = null;
}
return schemaNameFilterBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetSchemasReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetSchemasReq)
+ private static final org.apache.drill.exec.proto.UserProtos.GetSchemasReq DEFAULT_INSTANCE;
static {
- defaultInstance = new GetSchemasReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetSchemasReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetSchemasReq>
+ PARSER = new com.google.protobuf.AbstractParser<GetSchemasReq>() {
+ @java.lang.Override
+ public GetSchemasReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetSchemasReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetSchemasReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetSchemasReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetSchemasReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetSchemasReq)
}
- public interface SchemaMetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface SchemaMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.SchemaMetadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional string catalog_name = 1;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -14726,7 +16570,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getCatalogNameBytes();
- // optional string schema_name = 2;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -14741,7 +16584,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getSchemaNameBytes();
- // optional string owner = 3;
/**
* <code>optional string owner = 3;</code>
*/
@@ -14756,34 +16598,32 @@ public final class UserProtos {
com.google.protobuf.ByteString
getOwnerBytes();
- // optional string type = 4;
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
boolean hasType();
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
java.lang.String getType();
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
com.google.protobuf.ByteString
getTypeBytes();
- // optional string mutable = 5;
/**
* <code>optional string mutable = 5;</code>
*/
@@ -14799,43 +16639,42 @@ public final class UserProtos {
getMutableBytes();
}
/**
- * Protobuf type {@code exec.user.SchemaMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Schema.
* </pre>
+ *
+ * Protobuf type {@code exec.user.SchemaMetadata}
*/
- public static final class SchemaMetadata extends
- com.google.protobuf.GeneratedMessage
- implements SchemaMetadataOrBuilder {
+ public static final class SchemaMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.SchemaMetadata)
+ SchemaMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use SchemaMetadata.newBuilder() to construct.
- private SchemaMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private SchemaMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final SchemaMetadata defaultInstance;
- public static SchemaMetadata getDefaultInstance() {
- return defaultInstance;
- }
-
- public SchemaMetadata getDefaultInstanceForType() {
- return defaultInstance;
+ private SchemaMetadata() {
+ catalogName_ = "";
+ schemaName_ = "";
+ owner_ = "";
+ type_ = "";
+ mutable_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private SchemaMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -14847,36 +16686,41 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- catalogName_ = input.readBytes();
+ catalogName_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- schemaName_ = input.readBytes();
+ schemaName_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- owner_ = input.readBytes();
+ owner_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- type_ = input.readBytes();
+ type_ = bs;
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
- mutable_ = input.readBytes();
+ mutable_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -14885,7 +16729,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -14896,32 +16740,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.SchemaMetadata.class, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder.class);
}
- public static com.google.protobuf.Parser<SchemaMetadata> PARSER =
- new com.google.protobuf.AbstractParser<SchemaMetadata>() {
- public SchemaMetadata parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SchemaMetadata(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<SchemaMetadata> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string catalog_name = 1;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
- private java.lang.Object catalogName_;
+ private volatile java.lang.Object catalogName_;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -14962,9 +16791,8 @@ public final class UserProtos {
}
}
- // optional string schema_name = 2;
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
- private java.lang.Object schemaName_;
+ private volatile java.lang.Object schemaName_;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -15005,9 +16833,8 @@ public final class UserProtos {
}
}
- // optional string owner = 3;
public static final int OWNER_FIELD_NUMBER = 3;
- private java.lang.Object owner_;
+ private volatile java.lang.Object owner_;
/**
* <code>optional string owner = 3;</code>
*/
@@ -15048,25 +16875,24 @@ public final class UserProtos {
}
}
- // optional string type = 4;
public static final int TYPE_FIELD_NUMBER = 4;
- private java.lang.Object type_;
+ private volatile java.lang.Object type_;
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
@@ -15083,11 +16909,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
@@ -15103,9 +16929,8 @@ public final class UserProtos {
}
}
- // optional string mutable = 5;
public static final int MUTABLE_FIELD_NUMBER = 5;
- private java.lang.Object mutable_;
+ private volatile java.lang.Object mutable_;
/**
* <code>optional string mutable = 5;</code>
*/
@@ -15146,82 +16971,148 @@ public final class UserProtos {
}
}
- private void initFields() {
- catalogName_ = "";
- schemaName_ = "";
- owner_ = "";
- type_ = "";
- mutable_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCatalogNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSchemaNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getOwnerBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, owner_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getTypeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getMutableBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mutable_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCatalogNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSchemaNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getOwnerBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, owner_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getTypeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getMutableBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mutable_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.SchemaMetadata)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.SchemaMetadata other = (org.apache.drill.exec.proto.UserProtos.SchemaMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogName() == other.hasCatalogName());
+ if (hasCatalogName()) {
+ result = result && getCatalogName()
+ .equals(other.getCatalogName());
+ }
+ result = result && (hasSchemaName() == other.hasSchemaName());
+ if (hasSchemaName()) {
+ result = result && getSchemaName()
+ .equals(other.getSchemaName());
+ }
+ result = result && (hasOwner() == other.hasOwner());
+ if (hasOwner()) {
+ result = result && getOwner()
+ .equals(other.getOwner());
+ }
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && getType()
+ .equals(other.getType());
+ }
+ result = result && (hasMutable() == other.hasMutable());
+ if (hasMutable()) {
+ result = result && getMutable()
+ .equals(other.getMutable());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasSchemaName()) {
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ }
+ if (hasOwner()) {
+ hash = (37 * hash) + OWNER_FIELD_NUMBER;
+ hash = (53 * hash) + getOwner().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ }
+ if (hasMutable()) {
+ hash = (37 * hash) + MUTABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getMutable().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -15244,66 +17135,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.SchemaMetadata prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.SchemaMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Schema.
* </pre>
+ *
+ * Protobuf type {@code exec.user.SchemaMetadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.SchemaMetadata)
+ org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -15316,18 +17221,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
@@ -15343,19 +17246,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata build() {
org.apache.drill.exec.proto.UserProtos.SchemaMetadata result = buildPartial();
if (!result.isInitialized()) {
@@ -15364,6 +17266,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata buildPartial() {
org.apache.drill.exec.proto.UserProtos.SchemaMetadata result = new org.apache.drill.exec.proto.UserProtos.SchemaMetadata(this);
int from_bitField0_ = bitField0_;
@@ -15393,6 +17296,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.SchemaMetadata) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.SchemaMetadata)other);
@@ -15429,14 +17365,17 @@ public final class UserProtos {
mutable_ = other.mutable_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -15446,7 +17385,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.SchemaMetadata) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -15456,7 +17395,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string catalog_name = 1;
private java.lang.Object catalogName_ = "";
/**
* <code>optional string catalog_name = 1;</code>
@@ -15470,9 +17408,12 @@ public final class UserProtos {
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -15530,7 +17471,6 @@ public final class UserProtos {
return this;
}
- // optional string schema_name = 2;
private java.lang.Object schemaName_ = "";
/**
* <code>optional string schema_name = 2;</code>
@@ -15544,9 +17484,12 @@ public final class UserProtos {
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- schemaName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ schemaName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -15604,7 +17547,6 @@ public final class UserProtos {
return this;
}
- // optional string owner = 3;
private java.lang.Object owner_ = "";
/**
* <code>optional string owner = 3;</code>
@@ -15618,9 +17560,12 @@ public final class UserProtos {
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- owner_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ owner_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -15678,42 +17623,44 @@ public final class UserProtos {
return this;
}
- // optional string type = 4;
private java.lang.Object type_ = "";
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- type_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ type_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
@@ -15729,11 +17676,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder setType(
java.lang.String value) {
@@ -15746,11 +17693,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -15759,11 +17706,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "file", "mongodb", "hive" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
@@ -15776,7 +17723,6 @@ public final class UserProtos {
return this;
}
- // optional string mutable = 5;
private java.lang.Object mutable_ = "";
/**
* <code>optional string mutable = 5;</code>
@@ -15790,9 +17736,12 @@ public final class UserProtos {
public java.lang.String getMutable() {
java.lang.Object ref = mutable_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- mutable_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ mutable_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -15849,22 +17798,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.SchemaMetadata)
}
+ // @@protoc_insertion_point(class_scope:exec.user.SchemaMetadata)
+ private static final org.apache.drill.exec.proto.UserProtos.SchemaMetadata DEFAULT_INSTANCE;
static {
- defaultInstance = new SchemaMetadata(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.SchemaMetadata();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<SchemaMetadata>
+ PARSER = new com.google.protobuf.AbstractParser<SchemaMetadata>() {
+ @java.lang.Override
+ public SchemaMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SchemaMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<SchemaMetadata> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<SchemaMetadata> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.SchemaMetadata)
}
- public interface GetSchemasRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetSchemasRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetSchemasResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -15874,7 +17864,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // repeated .exec.user.SchemaMetadata schemas = 2;
/**
* <code>repeated .exec.user.SchemaMetadata schemas = 2;</code>
*/
@@ -15899,7 +17888,6 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder(
int index);
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -15914,43 +17902,39 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetSchemasResp}
- *
* <pre>
- *
* Response message for GetSchemasReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetSchemasResp}
*/
- public static final class GetSchemasResp extends
- com.google.protobuf.GeneratedMessage
- implements GetSchemasRespOrBuilder {
+ public static final class GetSchemasResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetSchemasResp)
+ GetSchemasRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetSchemasResp.newBuilder() to construct.
- private GetSchemasResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetSchemasResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetSchemasResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetSchemasResp defaultInstance;
- public static GetSchemasResp getDefaultInstance() {
- return defaultInstance;
}
-
- public GetSchemasResp getDefaultInstanceForType() {
- return defaultInstance;
+ private GetSchemasResp() {
+ status_ = 0;
+ schemas_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetSchemasResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -15962,21 +17946,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -15985,7 +17963,8 @@ public final class UserProtos {
schemas_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SchemaMetadata>();
mutable_bitField0_ |= 0x00000002;
}
- schemas_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.SchemaMetadata.PARSER, extensionRegistry));
+ schemas_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.SchemaMetadata.PARSER, extensionRegistry));
break;
}
case 26: {
@@ -16001,13 +17980,20 @@ public final class UserProtos {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
schemas_ = java.util.Collections.unmodifiableList(schemas_);
@@ -16021,32 +18007,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetSchemasResp.class, org.apache.drill.exec.proto.UserProtos.GetSchemasResp.Builder.class);
}
- public static com.google.protobuf.Parser<GetSchemasResp> PARSER =
- new com.google.protobuf.AbstractParser<GetSchemasResp>() {
- public GetSchemasResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetSchemasResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetSchemasResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -16057,10 +18028,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // repeated .exec.user.SchemaMetadata schemas = 2;
public static final int SCHEMAS_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> schemas_;
/**
@@ -16096,7 +18068,6 @@ public final class UserProtos {
return schemas_.get(index);
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -16109,53 +18080,50 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- schemas_ = java.util.Collections.emptyList();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
for (int i = 0; i < schemas_.size(); i++) {
output.writeMessage(2, schemas_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
for (int i = 0; i < schemas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -16163,21 +18131,75 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetSchemasResp other = (org.apache.drill.exec.proto.UserProtos.GetSchemasResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && getSchemasList()
+ .equals(other.getSchemasList());
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (getSchemasCount() > 0) {
+ hash = (37 * hash) + SCHEMAS_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemasList().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -16200,66 +18222,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetSchemasResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetSchemasResp}
- *
* <pre>
- *
* Response message for GetSchemasReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetSchemasResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetSchemasRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetSchemasResp)
+ org.apache.drill.exec.proto.UserProtos.GetSchemasRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -16272,23 +18308,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getSchemasFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (schemasBuilder_ == null) {
schemas_ = java.util.Collections.emptyList();
@@ -16297,7 +18331,7 @@ public final class UserProtos {
schemasBuilder_.clear();
}
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -16305,19 +18339,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetSchemasResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp build() {
org.apache.drill.exec.proto.UserProtos.GetSchemasResp result = buildPartial();
if (!result.isInitialized()) {
@@ -16326,6 +18359,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetSchemasResp result = new org.apache.drill.exec.proto.UserProtos.GetSchemasResp(this);
int from_bitField0_ = bitField0_;
@@ -16356,6 +18390,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetSchemasResp)other);
@@ -16389,7 +18456,7 @@ public final class UserProtos {
schemas_ = other.schemas_;
bitField0_ = (bitField0_ & ~0x00000002);
schemasBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSchemasFieldBuilder() : null;
} else {
schemasBuilder_.addAllMessages(other.schemas_);
@@ -16399,14 +18466,17 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -16416,7 +18486,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetSchemasResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -16426,8 +18496,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -16438,7 +18507,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -16448,7 +18519,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -16457,12 +18528,11 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // repeated .exec.user.SchemaMetadata schemas = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> schemas_ =
java.util.Collections.emptyList();
private void ensureSchemasIsMutable() {
@@ -16472,7 +18542,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> schemasBuilder_;
/**
@@ -16604,7 +18674,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.SchemaMetadata> values) {
if (schemasBuilder_ == null) {
ensureSchemasIsMutable();
- super.addAll(values, schemas_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, schemas_);
onChanged();
} else {
schemasBuilder_.addAllMessages(values);
@@ -16687,11 +18758,11 @@ public final class UserProtos {
getSchemasBuilderList() {
return getSchemasFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder>
getSchemasFieldBuilder() {
if (schemasBuilder_ == null) {
- schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder>(
schemas_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -16702,9 +18773,8 @@ public final class UserProtos {
return schemasBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -16717,7 +18787,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -16758,6 +18828,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -16776,7 +18847,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -16799,41 +18870,83 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetSchemasResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetSchemasResp)
+ private static final org.apache.drill.exec.proto.UserProtos.GetSchemasResp DEFAULT_INSTANCE;
static {
- defaultInstance = new GetSchemasResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetSchemasResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetSchemasResp>
+ PARSER = new com.google.protobuf.AbstractParser<GetSchemasResp>() {
+ @java.lang.Override
+ public GetSchemasResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetSchemasResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetSchemasResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetSchemasResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetSchemasResp)
}
- public interface GetTablesReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetTablesReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetTablesReq)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
@@ -16847,7 +18960,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
- // optional .exec.user.LikeFilter schema_name_filter = 2;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
@@ -16861,7 +18973,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder();
- // optional .exec.user.LikeFilter table_name_filter = 3;
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
@@ -16875,12 +18986,11 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder();
- // repeated string table_type_filter = 4;
/**
* <code>repeated string table_type_filter = 4;</code>
*/
java.util.List<java.lang.String>
- getTableTypeFilterList();
+ getTableTypeFilterList();
/**
* <code>repeated string table_type_filter = 4;</code>
*/
@@ -16896,43 +19006,38 @@ public final class UserProtos {
getTableTypeFilterBytes(int index);
}
/**
- * Protobuf type {@code exec.user.GetTablesReq}
- *
* <pre>
- *
* Request message for getting the metadata for tables satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetTablesReq}
*/
- public static final class GetTablesReq extends
- com.google.protobuf.GeneratedMessage
- implements GetTablesReqOrBuilder {
+ public static final class GetTablesReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetTablesReq)
+ GetTablesReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetTablesReq.newBuilder() to construct.
- private GetTablesReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetTablesReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetTablesReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetTablesReq defaultInstance;
- public static GetTablesReq getDefaultInstance() {
- return defaultInstance;
}
-
- public GetTablesReq getDefaultInstanceForType() {
- return defaultInstance;
+ private GetTablesReq() {
+ tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetTablesReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -16944,13 +19049,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -16991,11 +19089,19 @@ public final class UserProtos {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
tableTypeFilter_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
- tableTypeFilter_.add(input.readBytes());
+ tableTypeFilter_.add(bs);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -17004,10 +19110,10 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- tableTypeFilter_ = new com.google.protobuf.UnmodifiableLazyStringList(tableTypeFilter_);
+ tableTypeFilter_ = tableTypeFilter_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -17018,30 +19124,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetTablesReq.class, org.apache.drill.exec.proto.UserProtos.GetTablesReq.Builder.class);
}
- public static com.google.protobuf.Parser<GetTablesReq> PARSER =
- new com.google.protobuf.AbstractParser<GetTablesReq>() {
- public GetTablesReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetTablesReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetTablesReq> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
@@ -17054,16 +19145,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
/**
@@ -17076,16 +19166,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
- // optional .exec.user.LikeFilter table_name_filter = 3;
public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
/**
@@ -17098,22 +19187,21 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
- // repeated string table_type_filter = 4;
public static final int TABLE_TYPE_FILTER_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList tableTypeFilter_;
/**
* <code>repeated string table_type_filter = 4;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTableTypeFilterList() {
return tableTypeFilter_;
}
@@ -17137,79 +19225,138 @@ public final class UserProtos {
return tableTypeFilter_.getByteString(index);
}
- private void initFields() {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, catalogNameFilter_);
+ output.writeMessage(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, schemaNameFilter_);
+ output.writeMessage(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, tableNameFilter_);
+ output.writeMessage(3, getTableNameFilter());
}
for (int i = 0; i < tableTypeFilter_.size(); i++) {
- output.writeBytes(4, tableTypeFilter_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tableTypeFilter_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, catalogNameFilter_);
+ .computeMessageSize(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, schemaNameFilter_);
+ .computeMessageSize(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, tableNameFilter_);
+ .computeMessageSize(3, getTableNameFilter());
}
{
int dataSize = 0;
for (int i = 0; i < tableTypeFilter_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(tableTypeFilter_.getByteString(i));
+ dataSize += computeStringSizeNoTag(tableTypeFilter_.getRaw(i));
}
size += dataSize;
size += 1 * getTableTypeFilterList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetTablesReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetTablesReq other = (org.apache.drill.exec.proto.UserProtos.GetTablesReq) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogNameFilter() == other.hasCatalogNameFilter());
+ if (hasCatalogNameFilter()) {
+ result = result && getCatalogNameFilter()
+ .equals(other.getCatalogNameFilter());
+ }
+ result = result && (hasSchemaNameFilter() == other.hasSchemaNameFilter());
+ if (hasSchemaNameFilter()) {
+ result = result && getSchemaNameFilter()
+ .equals(other.getSchemaNameFilter());
+ }
+ result = result && (hasTableNameFilter() == other.hasTableNameFilter());
+ if (hasTableNameFilter()) {
+ result = result && getTableNameFilter()
+ .equals(other.getTableNameFilter());
+ }
+ result = result && getTableTypeFilterList()
+ .equals(other.getTableTypeFilterList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogNameFilter()) {
+ hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogNameFilter().hashCode();
+ }
+ if (hasSchemaNameFilter()) {
+ hash = (37 * hash) + SCHEMA_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaNameFilter().hashCode();
+ }
+ if (hasTableNameFilter()) {
+ hash = (37 * hash) + TABLE_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getTableNameFilter().hashCode();
+ }
+ if (getTableTypeFilterCount() > 0) {
+ hash = (37 * hash) + TABLE_TYPE_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getTableTypeFilterList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -17232,66 +19379,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetTablesReq}
- *
* <pre>
- *
* Request message for getting the metadata for tables satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetTablesReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetTablesReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetTablesReq)
+ org.apache.drill.exec.proto.UserProtos.GetTablesReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -17304,37 +19465,35 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
getSchemaNameFilterFieldBuilder();
getTableNameFilterFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tableNameFilterBuilder_ == null) {
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ tableNameFilter_ = null;
} else {
tableNameFilterBuilder_.clear();
}
@@ -17344,19 +19503,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetTablesReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesReq build() {
org.apache.drill.exec.proto.UserProtos.GetTablesReq result = buildPartial();
if (!result.isInitialized()) {
@@ -17365,6 +19523,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetTablesReq result = new org.apache.drill.exec.proto.UserProtos.GetTablesReq(this);
int from_bitField0_ = bitField0_;
@@ -17394,8 +19553,7 @@ public final class UserProtos {
result.tableNameFilter_ = tableNameFilterBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- tableTypeFilter_ = new com.google.protobuf.UnmodifiableLazyStringList(
- tableTypeFilter_);
+ tableTypeFilter_ = tableTypeFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.tableTypeFilter_ = tableTypeFilter_;
@@ -17404,6 +19562,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetTablesReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetTablesReq)other);
@@ -17434,14 +19625,17 @@ public final class UserProtos {
}
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -17451,7 +19645,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetTablesReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -17461,9 +19655,8 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
@@ -17476,7 +19669,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
@@ -17517,6 +19710,7 @@ public final class UserProtos {
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ catalogNameFilter_ != null &&
catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
catalogNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial();
@@ -17535,7 +19729,7 @@ public final class UserProtos {
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
@@ -17558,19 +19752,20 @@ public final class UserProtos {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getCatalogNameFilterFieldBuilder() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- catalogNameFilter_,
+ getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
@@ -17578,9 +19773,8 @@ public final class UserProtos {
return catalogNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
@@ -17593,7 +19787,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
} else {
return schemaNameFilterBuilder_.getMessage();
}
@@ -17634,6 +19828,7 @@ public final class UserProtos {
public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (schemaNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ schemaNameFilter_ != null &&
schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
schemaNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial();
@@ -17652,7 +19847,7 @@ public final class UserProtos {
*/
public Builder clearSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
onChanged();
} else {
schemaNameFilterBuilder_.clear();
@@ -17675,19 +19870,20 @@ public final class UserProtos {
if (schemaNameFilterBuilder_ != null) {
return schemaNameFilterBuilder_.getMessageOrBuilder();
} else {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getSchemaNameFilterFieldBuilder() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- schemaNameFilter_,
+ getSchemaNameFilter(),
getParentForChildren(),
isClean());
schemaNameFilter_ = null;
@@ -17695,9 +19891,8 @@ public final class UserProtos {
return schemaNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter table_name_filter = 3;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
@@ -17710,7 +19905,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
} else {
return tableNameFilterBuilder_.getMessage();
}
@@ -17751,6 +19946,7 @@ public final class UserProtos {
public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (tableNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ tableNameFilter_ != null &&
tableNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
tableNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(tableNameFilter_).mergeFrom(value).buildPartial();
@@ -17769,7 +19965,7 @@ public final class UserProtos {
*/
public Builder clearTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ tableNameFilter_ = null;
onChanged();
} else {
tableNameFilterBuilder_.clear();
@@ -17792,19 +19988,20 @@ public final class UserProtos {
if (tableNameFilterBuilder_ != null) {
return tableNameFilterBuilder_.getMessageOrBuilder();
} else {
- return tableNameFilter_;
+ return tableNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getTableNameFilterFieldBuilder() {
if (tableNameFilterBuilder_ == null) {
- tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- tableNameFilter_,
+ getTableNameFilter(),
getParentForChildren(),
isClean());
tableNameFilter_ = null;
@@ -17812,7 +20009,6 @@ public final class UserProtos {
return tableNameFilterBuilder_;
}
- // repeated string table_type_filter = 4;
private com.google.protobuf.LazyStringList tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTableTypeFilterIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
@@ -17823,9 +20019,9 @@ public final class UserProtos {
/**
* <code>repeated string table_type_filter = 4;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getTableTypeFilterList() {
- return java.util.Collections.unmodifiableList(tableTypeFilter_);
+ return tableTypeFilter_.getUnmodifiableView();
}
/**
* <code>repeated string table_type_filter = 4;</code>
@@ -17878,7 +20074,8 @@ public final class UserProtos {
public Builder addAllTableTypeFilter(
java.lang.Iterable<java.lang.String> values) {
ensureTableTypeFilterIsMutable();
- super.addAll(values, tableTypeFilter_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tableTypeFilter_);
onChanged();
return this;
}
@@ -17904,22 +20101,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetTablesReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetTablesReq)
+ private static final org.apache.drill.exec.proto.UserProtos.GetTablesReq DEFAULT_INSTANCE;
static {
- defaultInstance = new GetTablesReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetTablesReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetTablesReq>
+ PARSER = new com.google.protobuf.AbstractParser<GetTablesReq>() {
+ @java.lang.Override
+ public GetTablesReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetTablesReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetTablesReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetTablesReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetTablesReq)
}
- public interface TableMetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface TableMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.TableMetadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional string catalog_name = 1;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -17934,7 +20172,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getCatalogNameBytes();
- // optional string schema_name = 2;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -17949,7 +20186,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getSchemaNameBytes();
- // optional string table_name = 3;
/**
* <code>optional string table_name = 3;</code>
*/
@@ -17964,71 +20200,68 @@ public final class UserProtos {
com.google.protobuf.ByteString
getTableNameBytes();
- // optional string type = 4;
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
boolean hasType();
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
java.lang.String getType();
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
- * Protobuf type {@code exec.user.TableMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Table.
* </pre>
+ *
+ * Protobuf type {@code exec.user.TableMetadata}
*/
- public static final class TableMetadata extends
- com.google.protobuf.GeneratedMessage
- implements TableMetadataOrBuilder {
+ public static final class TableMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.TableMetadata)
+ TableMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use TableMetadata.newBuilder() to construct.
- private TableMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private TableMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private TableMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TableMetadata defaultInstance;
- public static TableMetadata getDefaultInstance() {
- return defaultInstance;
}
-
- public TableMetadata getDefaultInstanceForType() {
- return defaultInstance;
+ private TableMetadata() {
+ catalogName_ = "";
+ schemaName_ = "";
+ tableName_ = "";
+ type_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TableMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -18040,31 +20273,35 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- catalogName_ = input.readBytes();
+ catalogName_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- schemaName_ = input.readBytes();
+ schemaName_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- tableName_ = input.readBytes();
+ tableName_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- type_ = input.readBytes();
+ type_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -18073,7 +20310,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -18084,32 +20321,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.TableMetadata.class, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder.class);
}
- public static com.google.protobuf.Parser<TableMetadata> PARSER =
- new com.google.protobuf.AbstractParser<TableMetadata>() {
- public TableMetadata parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TableMetadata(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<TableMetadata> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string catalog_name = 1;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
- private java.lang.Object catalogName_;
+ private volatile java.lang.Object catalogName_;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -18150,9 +20372,8 @@ public final class UserProtos {
}
}
- // optional string schema_name = 2;
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
- private java.lang.Object schemaName_;
+ private volatile java.lang.Object schemaName_;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -18193,9 +20414,8 @@ public final class UserProtos {
}
}
- // optional string table_name = 3;
public static final int TABLE_NAME_FIELD_NUMBER = 3;
- private java.lang.Object tableName_;
+ private volatile java.lang.Object tableName_;
/**
* <code>optional string table_name = 3;</code>
*/
@@ -18236,25 +20456,24 @@ public final class UserProtos {
}
}
- // optional string type = 4;
public static final int TYPE_FIELD_NUMBER = 4;
- private java.lang.Object type_;
+ private volatile java.lang.Object type_;
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
@@ -18271,11 +20490,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
@@ -18291,74 +20510,133 @@ public final class UserProtos {
}
}
- private void initFields() {
- catalogName_ = "";
- schemaName_ = "";
- tableName_ = "";
- type_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCatalogNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSchemaNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getTableNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getTypeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCatalogNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSchemaNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getTableNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getTypeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.TableMetadata)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.TableMetadata other = (org.apache.drill.exec.proto.UserProtos.TableMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogName() == other.hasCatalogName());
+ if (hasCatalogName()) {
+ result = result && getCatalogName()
+ .equals(other.getCatalogName());
+ }
+ result = result && (hasSchemaName() == other.hasSchemaName());
+ if (hasSchemaName()) {
+ result = result && getSchemaName()
+ .equals(other.getSchemaName());
+ }
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && getType()
+ .equals(other.getType());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasSchemaName()) {
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ }
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -18381,66 +20659,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.TableMetadata prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.TableMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Table.
* </pre>
+ *
+ * Protobuf type {@code exec.user.TableMetadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.TableMetadata)
+ org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -18453,18 +20745,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
@@ -18478,19 +20768,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata build() {
org.apache.drill.exec.proto.UserProtos.TableMetadata result = buildPartial();
if (!result.isInitialized()) {
@@ -18499,6 +20788,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata buildPartial() {
org.apache.drill.exec.proto.UserProtos.TableMetadata result = new org.apache.drill.exec.proto.UserProtos.TableMetadata(this);
int from_bitField0_ = bitField0_;
@@ -18524,6 +20814,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.TableMetadata) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.TableMetadata)other);
@@ -18555,14 +20878,17 @@ public final class UserProtos {
type_ = other.type_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -18572,7 +20898,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.TableMetadata) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -18582,7 +20908,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string catalog_name = 1;
private java.lang.Object catalogName_ = "";
/**
* <code>optional string catalog_name = 1;</code>
@@ -18596,9 +20921,12 @@ public final class UserProtos {
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -18656,7 +20984,6 @@ public final class UserProtos {
return this;
}
- // optional string schema_name = 2;
private java.lang.Object schemaName_ = "";
/**
* <code>optional string schema_name = 2;</code>
@@ -18670,9 +20997,12 @@ public final class UserProtos {
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- schemaName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ schemaName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -18730,7 +21060,6 @@ public final class UserProtos {
return this;
}
- // optional string table_name = 3;
private java.lang.Object tableName_ = "";
/**
* <code>optional string table_name = 3;</code>
@@ -18744,9 +21073,12 @@ public final class UserProtos {
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- tableName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ tableName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -18804,42 +21136,44 @@ public final class UserProtos {
return this;
}
- // optional string type = 4;
private java.lang.Object type_ = "";
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- type_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ type_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
@@ -18855,11 +21189,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder setType(
java.lang.String value) {
@@ -18872,11 +21206,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -18885,11 +21219,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string type = 4;</code>
- *
* <pre>
* Type. Ex. "TABLE", "VIEW" etc.
* </pre>
+ *
+ * <code>optional string type = 4;</code>
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
@@ -18901,22 +21235,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.TableMetadata)
}
+ // @@protoc_insertion_point(class_scope:exec.user.TableMetadata)
+ private static final org.apache.drill.exec.proto.UserProtos.TableMetadata DEFAULT_INSTANCE;
static {
- defaultInstance = new TableMetadata(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.TableMetadata();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<TableMetadata>
+ PARSER = new com.google.protobuf.AbstractParser<TableMetadata>() {
+ @java.lang.Override
+ public TableMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TableMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<TableMetadata> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<TableMetadata> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.TableMetadata)
}
- public interface GetTablesRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetTablesRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetTablesResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -18926,7 +21301,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // repeated .exec.user.TableMetadata tables = 2;
/**
* <code>repeated .exec.user.TableMetadata tables = 2;</code>
*/
@@ -18951,7 +21325,6 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder(
int index);
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -18966,43 +21339,39 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetTablesResp}
- *
* <pre>
- *
* Response message for GetTablesReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetTablesResp}
*/
- public static final class GetTablesResp extends
- com.google.protobuf.GeneratedMessage
- implements GetTablesRespOrBuilder {
+ public static final class GetTablesResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetTablesResp)
+ GetTablesRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetTablesResp.newBuilder() to construct.
- private GetTablesResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetTablesResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetTablesResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetTablesResp defaultInstance;
- public static GetTablesResp getDefaultInstance() {
- return defaultInstance;
}
-
- public GetTablesResp getDefaultInstanceForType() {
- return defaultInstance;
+ private GetTablesResp() {
+ status_ = 0;
+ tables_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetTablesResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -19014,21 +21383,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -19037,7 +21400,8 @@ public final class UserProtos {
tables_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.TableMetadata>();
mutable_bitField0_ |= 0x00000002;
}
- tables_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.TableMetadata.PARSER, extensionRegistry));
+ tables_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.TableMetadata.PARSER, extensionRegistry));
break;
}
case 26: {
@@ -19053,13 +21417,20 @@ public final class UserProtos {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
tables_ = java.util.Collections.unmodifiableList(tables_);
@@ -19073,32 +21444,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetTablesResp.class, org.apache.drill.exec.proto.UserProtos.GetTablesResp.Builder.class);
}
- public static com.google.protobuf.Parser<GetTablesResp> PARSER =
- new com.google.protobuf.AbstractParser<GetTablesResp>() {
- public GetTablesResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetTablesResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetTablesResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -19109,10 +21465,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // repeated .exec.user.TableMetadata tables = 2;
public static final int TABLES_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> tables_;
/**
@@ -19148,7 +21505,6 @@ public final class UserProtos {
return tables_.get(index);
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -19161,53 +21517,50 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- tables_ = java.util.Collections.emptyList();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
for (int i = 0; i < tables_.size(); i++) {
output.writeMessage(2, tables_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
for (int i = 0; i < tables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -19215,21 +21568,75 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetTablesResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetTablesResp other = (org.apache.drill.exec.proto.UserProtos.GetTablesResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && getTablesList()
+ .equals(other.getTablesList());
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (getTablesCount() > 0) {
+ hash = (37 * hash) + TABLES_FIELD_NUMBER;
+ hash = (53 * hash) + getTablesList().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -19252,66 +21659,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetTablesResp}
- *
* <pre>
- *
* Response message for GetTablesReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetTablesResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetTablesRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetTablesResp)
+ org.apache.drill.exec.proto.UserProtos.GetTablesRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -19324,23 +21745,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getTablesFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (tablesBuilder_ == null) {
tables_ = java.util.Collections.emptyList();
@@ -19349,7 +21768,7 @@ public final class UserProtos {
tablesBuilder_.clear();
}
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -19357,19 +21776,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetTablesResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesResp build() {
org.apache.drill.exec.proto.UserProtos.GetTablesResp result = buildPartial();
if (!result.isInitialized()) {
@@ -19378,6 +21796,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetTablesResp result = new org.apache.drill.exec.proto.UserProtos.GetTablesResp(this);
int from_bitField0_ = bitField0_;
@@ -19408,6 +21827,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetTablesResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetTablesResp)other);
@@ -19441,7 +21893,7 @@ public final class UserProtos {
tables_ = other.tables_;
bitField0_ = (bitField0_ & ~0x00000002);
tablesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTablesFieldBuilder() : null;
} else {
tablesBuilder_.addAllMessages(other.tables_);
@@ -19451,14 +21903,17 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -19468,7 +21923,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetTablesResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -19478,8 +21933,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -19490,7 +21944,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -19500,7 +21956,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -19509,12 +21965,11 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // repeated .exec.user.TableMetadata tables = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> tables_ =
java.util.Collections.emptyList();
private void ensureTablesIsMutable() {
@@ -19524,7 +21979,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> tablesBuilder_;
/**
@@ -19656,7 +22111,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.TableMetadata> values) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
- super.addAll(values, tables_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tables_);
onChanged();
} else {
tablesBuilder_.addAllMessages(values);
@@ -19739,11 +22195,11 @@ public final class UserProtos {
getTablesBuilderList() {
return getTablesFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder>
getTablesFieldBuilder() {
if (tablesBuilder_ == null) {
- tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder>(
tables_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -19754,9 +22210,8 @@ public final class UserProtos {
return tablesBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -19769,7 +22224,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -19810,6 +22265,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -19828,7 +22284,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -19851,41 +22307,83 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetTablesResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetTablesResp)
+ private static final org.apache.drill.exec.proto.UserProtos.GetTablesResp DEFAULT_INSTANCE;
static {
- defaultInstance = new GetTablesResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetTablesResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetTablesResp>
+ PARSER = new com.google.protobuf.AbstractParser<GetTablesResp>() {
+ @java.lang.Override
+ public GetTablesResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetTablesResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetTablesResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetTablesResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetTablesResp)
}
- public interface GetColumnsReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetColumnsReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetColumnsReq)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
@@ -19899,7 +22397,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
- // optional .exec.user.LikeFilter schema_name_filter = 2;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
@@ -19913,7 +22410,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder();
- // optional .exec.user.LikeFilter table_name_filter = 3;
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
@@ -19927,7 +22423,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder();
- // optional .exec.user.LikeFilter column_name_filter = 4;
/**
* <code>optional .exec.user.LikeFilter column_name_filter = 4;</code>
*/
@@ -19942,43 +22437,37 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetColumnsReq}
- *
* <pre>
- *
* Request message for getting the metadata for columns satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetColumnsReq}
*/
- public static final class GetColumnsReq extends
- com.google.protobuf.GeneratedMessage
- implements GetColumnsReqOrBuilder {
+ public static final class GetColumnsReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetColumnsReq)
+ GetColumnsReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetColumnsReq.newBuilder() to construct.
- private GetColumnsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetColumnsReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private GetColumnsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetColumnsReq defaultInstance;
- public static GetColumnsReq getDefaultInstance() {
- return defaultInstance;
+ private GetColumnsReq() {
}
- public GetColumnsReq getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetColumnsReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -19990,13 +22479,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
@@ -20049,13 +22531,20 @@ public final class UserProtos {
bitField0_ |= 0x00000008;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -20066,30 +22555,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetColumnsReq.class, org.apache.drill.exec.proto.UserProtos.GetColumnsReq.Builder.class);
}
- public static com.google.protobuf.Parser<GetColumnsReq> PARSER =
- new com.google.protobuf.AbstractParser<GetColumnsReq>() {
- public GetColumnsReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetColumnsReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetColumnsReq> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
@@ -20102,16 +22576,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
/**
@@ -20124,16 +22597,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
- // optional .exec.user.LikeFilter table_name_filter = 3;
public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
/**
@@ -20146,16 +22618,15 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
- // optional .exec.user.LikeFilter column_name_filter = 4;
public static final int COLUMN_NAME_FILTER_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_;
/**
@@ -20168,83 +22639,146 @@ public final class UserProtos {
* <code>optional .exec.user.LikeFilter column_name_filter = 4;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() {
- return columnNameFilter_;
+ return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
/**
* <code>optional .exec.user.LikeFilter column_name_filter = 4;</code>
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder() {
- return columnNameFilter_;
+ return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
- private void initFields() {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, catalogNameFilter_);
+ output.writeMessage(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, schemaNameFilter_);
+ output.writeMessage(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, tableNameFilter_);
+ output.writeMessage(3, getTableNameFilter());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, columnNameFilter_);
+ output.writeMessage(4, getColumnNameFilter());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, catalogNameFilter_);
+ .computeMessageSize(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, schemaNameFilter_);
+ .computeMessageSize(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, tableNameFilter_);
+ .computeMessageSize(3, getTableNameFilter());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, columnNameFilter_);
+ .computeMessageSize(4, getColumnNameFilter());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetColumnsReq other = (org.apache.drill.exec.proto.UserProtos.GetColumnsReq) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogNameFilter() == other.hasCatalogNameFilter());
+ if (hasCatalogNameFilter()) {
+ result = result && getCatalogNameFilter()
+ .equals(other.getCatalogNameFilter());
+ }
+ result = result && (hasSchemaNameFilter() == other.hasSchemaNameFilter());
+ if (hasSchemaNameFilter()) {
+ result = result && getSchemaNameFilter()
+ .equals(other.getSchemaNameFilter());
+ }
+ result = result && (hasTableNameFilter() == other.hasTableNameFilter());
+ if (hasTableNameFilter()) {
+ result = result && getTableNameFilter()
+ .equals(other.getTableNameFilter());
+ }
+ result = result && (hasColumnNameFilter() == other.hasColumnNameFilter());
+ if (hasColumnNameFilter()) {
+ result = result && getColumnNameFilter()
+ .equals(other.getColumnNameFilter());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogNameFilter()) {
+ hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogNameFilter().hashCode();
+ }
+ if (hasSchemaNameFilter()) {
+ hash = (37 * hash) + SCHEMA_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaNameFilter().hashCode();
+ }
+ if (hasTableNameFilter()) {
+ hash = (37 * hash) + TABLE_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getTableNameFilter().hashCode();
+ }
+ if (hasColumnNameFilter()) {
+ hash = (37 * hash) + COLUMN_NAME_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnNameFilter().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -20267,66 +22801,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetColumnsReq}
- *
* <pre>
- *
* Request message for getting the metadata for columns satisfying the given optional filters.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetColumnsReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetColumnsReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetColumnsReq)
+ org.apache.drill.exec.proto.UserProtos.GetColumnsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -20339,44 +22887,42 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
getSchemaNameFilterFieldBuilder();
getTableNameFilterFieldBuilder();
getColumnNameFilterFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tableNameFilterBuilder_ == null) {
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ tableNameFilter_ = null;
} else {
tableNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (columnNameFilterBuilder_ == null) {
- columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ columnNameFilter_ = null;
} else {
columnNameFilterBuilder_.clear();
}
@@ -20384,19 +22930,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetColumnsReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsReq build() {
org.apache.drill.exec.proto.UserProtos.GetColumnsReq result = buildPartial();
if (!result.isInitialized()) {
@@ -20405,6 +22950,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetColumnsReq result = new org.apache.drill.exec.proto.UserProtos.GetColumnsReq(this);
int from_bitField0_ = bitField0_;
@@ -20446,6 +22992,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetColumnsReq)other);
@@ -20469,14 +23048,17 @@ public final class UserProtos {
if (other.hasColumnNameFilter()) {
mergeColumnNameFilter(other.getColumnNameFilter());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -20486,7 +23068,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetColumnsReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -20496,9 +23078,8 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.LikeFilter catalog_name_filter = 1;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
@@ -20511,7 +23092,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
@@ -20552,6 +23133,7 @@ public final class UserProtos {
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ catalogNameFilter_ != null &&
catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
catalogNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial();
@@ -20570,7 +23152,7 @@ public final class UserProtos {
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
@@ -20593,19 +23175,20 @@ public final class UserProtos {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
- return catalogNameFilter_;
+ return catalogNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getCatalogNameFilterFieldBuilder() {
if (catalogNameFilterBuilder_ == null) {
- catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- catalogNameFilter_,
+ getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
@@ -20613,9 +23196,8 @@ public final class UserProtos {
return catalogNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter schema_name_filter = 2;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
@@ -20628,7 +23210,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
} else {
return schemaNameFilterBuilder_.getMessage();
}
@@ -20669,6 +23251,7 @@ public final class UserProtos {
public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (schemaNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ schemaNameFilter_ != null &&
schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
schemaNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial();
@@ -20687,7 +23270,7 @@ public final class UserProtos {
*/
public Builder clearSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ schemaNameFilter_ = null;
onChanged();
} else {
schemaNameFilterBuilder_.clear();
@@ -20710,19 +23293,20 @@ public final class UserProtos {
if (schemaNameFilterBuilder_ != null) {
return schemaNameFilterBuilder_.getMessageOrBuilder();
} else {
- return schemaNameFilter_;
+ return schemaNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getSchemaNameFilterFieldBuilder() {
if (schemaNameFilterBuilder_ == null) {
- schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- schemaNameFilter_,
+ getSchemaNameFilter(),
getParentForChildren(),
isClean());
schemaNameFilter_ = null;
@@ -20730,9 +23314,8 @@ public final class UserProtos {
return schemaNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter table_name_filter = 3;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
@@ -20745,7 +23328,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
- return tableNameFilter_;
+ return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
} else {
return tableNameFilterBuilder_.getMessage();
}
@@ -20786,6 +23369,7 @@ public final class UserProtos {
public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (tableNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ tableNameFilter_ != null &&
tableNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
tableNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(tableNameFilter_).mergeFrom(value).buildPartial();
@@ -20804,7 +23388,7 @@ public final class UserProtos {
*/
public Builder clearTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
- tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ tableNameFilter_ = null;
onChanged();
} else {
tableNameFilterBuilder_.clear();
@@ -20827,19 +23411,20 @@ public final class UserProtos {
if (tableNameFilterBuilder_ != null) {
return tableNameFilterBuilder_.getMessageOrBuilder();
} else {
- return tableNameFilter_;
+ return tableNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter table_name_filter = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getTableNameFilterFieldBuilder() {
if (tableNameFilterBuilder_ == null) {
- tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- tableNameFilter_,
+ getTableNameFilter(),
getParentForChildren(),
isClean());
tableNameFilter_ = null;
@@ -20847,9 +23432,8 @@ public final class UserProtos {
return tableNameFilterBuilder_;
}
- // optional .exec.user.LikeFilter column_name_filter = 4;
- private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> columnNameFilterBuilder_;
/**
* <code>optional .exec.user.LikeFilter column_name_filter = 4;</code>
@@ -20862,7 +23446,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() {
if (columnNameFilterBuilder_ == null) {
- return columnNameFilter_;
+ return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
} else {
return columnNameFilterBuilder_.getMessage();
}
@@ -20903,6 +23487,7 @@ public final class UserProtos {
public Builder mergeColumnNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (columnNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ columnNameFilter_ != null &&
columnNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) {
columnNameFilter_ =
org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(columnNameFilter_).mergeFrom(value).buildPartial();
@@ -20921,7 +23506,7 @@ public final class UserProtos {
*/
public Builder clearColumnNameFilter() {
if (columnNameFilterBuilder_ == null) {
- columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance();
+ columnNameFilter_ = null;
onChanged();
} else {
columnNameFilterBuilder_.clear();
@@ -20944,41 +23529,83 @@ public final class UserProtos {
if (columnNameFilterBuilder_ != null) {
return columnNameFilterBuilder_.getMessageOrBuilder();
} else {
- return columnNameFilter_;
+ return columnNameFilter_ == null ?
+ org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
}
/**
* <code>optional .exec.user.LikeFilter column_name_filter = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>
getColumnNameFilterFieldBuilder() {
if (columnNameFilterBuilder_ == null) {
- columnNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ columnNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
- columnNameFilter_,
+ getColumnNameFilter(),
getParentForChildren(),
isClean());
columnNameFilter_ = null;
}
return columnNameFilterBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetColumnsReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetColumnsReq)
+ private static final org.apache.drill.exec.proto.UserProtos.GetColumnsReq DEFAULT_INSTANCE;
static {
- defaultInstance = new GetColumnsReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetColumnsReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetColumnsReq>
+ PARSER = new com.google.protobuf.AbstractParser<GetColumnsReq>() {
+ @java.lang.Override
+ public GetColumnsReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetColumnsReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetColumnsReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetColumnsReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetColumnsReq)
}
- public interface ColumnMetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ColumnMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.ColumnMetadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional string catalog_name = 1;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -20993,7 +23620,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getCatalogNameBytes();
- // optional string schema_name = 2;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -21008,7 +23634,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getSchemaNameBytes();
- // optional string table_name = 3;
/**
* <code>optional string table_name = 3;</code>
*/
@@ -21023,7 +23648,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getTableNameBytes();
- // optional string column_name = 4;
/**
* <code>optional string column_name = 4;</code>
*/
@@ -21038,7 +23662,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getColumnNameBytes();
- // optional int32 ordinal_position = 5;
/**
* <code>optional int32 ordinal_position = 5;</code>
*/
@@ -21048,7 +23671,6 @@ public final class UserProtos {
*/
int getOrdinalPosition();
- // optional string default_value = 6;
/**
* <code>optional string default_value = 6;</code>
*/
@@ -21063,7 +23685,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getDefaultValueBytes();
- // optional bool is_nullable = 7;
/**
* <code>optional bool is_nullable = 7;</code>
*/
@@ -21073,7 +23694,6 @@ public final class UserProtos {
*/
boolean getIsNullable();
- // optional string data_type = 8;
/**
* <code>optional string data_type = 8;</code>
*/
@@ -21088,7 +23708,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getDataTypeBytes();
- // optional int32 char_max_length = 9;
/**
* <code>optional int32 char_max_length = 9;</code>
*/
@@ -21098,7 +23717,6 @@ public final class UserProtos {
*/
int getCharMaxLength();
- // optional int32 char_octet_length = 10;
/**
* <code>optional int32 char_octet_length = 10;</code>
*/
@@ -21108,7 +23726,6 @@ public final class UserProtos {
*/
int getCharOctetLength();
- // optional int32 numeric_precision = 11;
/**
* <code>optional int32 numeric_precision = 11;</code>
*/
@@ -21118,7 +23735,6 @@ public final class UserProtos {
*/
int getNumericPrecision();
- // optional int32 numeric_precision_radix = 12;
/**
* <code>optional int32 numeric_precision_radix = 12;</code>
*/
@@ -21128,7 +23744,6 @@ public final class UserProtos {
*/
int getNumericPrecisionRadix();
- // optional int32 numeric_scale = 13;
/**
* <code>optional int32 numeric_scale = 13;</code>
*/
@@ -21138,7 +23753,6 @@ public final class UserProtos {
*/
int getNumericScale();
- // optional int32 date_time_precision = 14;
/**
* <code>optional int32 date_time_precision = 14;</code>
*/
@@ -21148,7 +23762,6 @@ public final class UserProtos {
*/
int getDateTimePrecision();
- // optional string interval_type = 15;
/**
* <code>optional string interval_type = 15;</code>
*/
@@ -21163,7 +23776,6 @@ public final class UserProtos {
com.google.protobuf.ByteString
getIntervalTypeBytes();
- // optional int32 interval_precision = 16;
/**
* <code>optional int32 interval_precision = 16;</code>
*/
@@ -21173,7 +23785,6 @@ public final class UserProtos {
*/
int getIntervalPrecision();
- // optional int32 column_size = 17;
/**
* <code>optional int32 column_size = 17;</code>
*/
@@ -21184,43 +23795,54 @@ public final class UserProtos {
int getColumnSize();
}
/**
- * Protobuf type {@code exec.user.ColumnMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Column.
* </pre>
+ *
+ * Protobuf type {@code exec.user.ColumnMetadata}
*/
- public static final class ColumnMetadata extends
- com.google.protobuf.GeneratedMessage
- implements ColumnMetadataOrBuilder {
+ public static final class ColumnMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.ColumnMetadata)
+ ColumnMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ColumnMetadata.newBuilder() to construct.
- private ColumnMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ColumnMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ColumnMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ColumnMetadata defaultInstance;
- public static ColumnMetadata getDefaultInstance() {
- return defaultInstance;
}
-
- public ColumnMetadata getDefaultInstanceForType() {
- return defaultInstance;
+ private ColumnMetadata() {
+ catalogName_ = "";
+ schemaName_ = "";
+ tableName_ = "";
+ columnName_ = "";
+ ordinalPosition_ = 0;
+ defaultValue_ = "";
+ isNullable_ = false;
+ dataType_ = "";
+ charMaxLength_ = 0;
+ charOctetLength_ = 0;
+ numericPrecision_ = 0;
+ numericPrecisionRadix_ = 0;
+ numericScale_ = 0;
+ dateTimePrecision_ = 0;
+ intervalType_ = "";
+ intervalPrecision_ = 0;
+ columnSize_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ColumnMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -21232,31 +23854,28 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- catalogName_ = input.readBytes();
+ catalogName_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- schemaName_ = input.readBytes();
+ schemaName_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- tableName_ = input.readBytes();
+ tableName_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- columnName_ = input.readBytes();
+ columnName_ = bs;
break;
}
case 40: {
@@ -21265,8 +23884,9 @@ public final class UserProtos {
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- defaultValue_ = input.readBytes();
+ defaultValue_ = bs;
break;
}
case 56: {
@@ -21275,8 +23895,9 @@ public final class UserProtos {
break;
}
case 66: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
- dataType_ = input.readBytes();
+ dataType_ = bs;
break;
}
case 72: {
@@ -21310,8 +23931,9 @@ public final class UserProtos {
break;
}
case 122: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
- intervalType_ = input.readBytes();
+ intervalType_ = bs;
break;
}
case 128: {
@@ -21324,13 +23946,20 @@ public final class UserProtos {
columnSize_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -21341,32 +23970,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.ColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder.class);
}
- public static com.google.protobuf.Parser<ColumnMetadata> PARSER =
- new com.google.protobuf.AbstractParser<ColumnMetadata>() {
- public ColumnMetadata parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ColumnMetadata(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ColumnMetadata> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string catalog_name = 1;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
- private java.lang.Object catalogName_;
+ private volatile java.lang.Object catalogName_;
/**
* <code>optional string catalog_name = 1;</code>
*/
@@ -21407,9 +24021,8 @@ public final class UserProtos {
}
}
- // optional string schema_name = 2;
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
- private java.lang.Object schemaName_;
+ private volatile java.lang.Object schemaName_;
/**
* <code>optional string schema_name = 2;</code>
*/
@@ -21450,9 +24063,8 @@ public final class UserProtos {
}
}
- // optional string table_name = 3;
public static final int TABLE_NAME_FIELD_NUMBER = 3;
- private java.lang.Object tableName_;
+ private volatile java.lang.Object tableName_;
/**
* <code>optional string table_name = 3;</code>
*/
@@ -21493,9 +24105,8 @@ public final class UserProtos {
}
}
- // optional string column_name = 4;
public static final int COLUMN_NAME_FIELD_NUMBER = 4;
- private java.lang.Object columnName_;
+ private volatile java.lang.Object columnName_;
/**
* <code>optional string column_name = 4;</code>
*/
@@ -21536,7 +24147,6 @@ public final class UserProtos {
}
}
- // optional int32 ordinal_position = 5;
public static final int ORDINAL_POSITION_FIELD_NUMBER = 5;
private int ordinalPosition_;
/**
@@ -21552,9 +24162,8 @@ public final class UserProtos {
return ordinalPosition_;
}
- // optional string default_value = 6;
public static final int DEFAULT_VALUE_FIELD_NUMBER = 6;
- private java.lang.Object defaultValue_;
+ private volatile java.lang.Object defaultValue_;
/**
* <code>optional string default_value = 6;</code>
*/
@@ -21595,7 +24204,6 @@ public final class UserProtos {
}
}
- // optional bool is_nullable = 7;
public static final int IS_NULLABLE_FIELD_NUMBER = 7;
private boolean isNullable_;
/**
@@ -21611,9 +24219,8 @@ public final class UserProtos {
return isNullable_;
}
- // optional string data_type = 8;
public static final int DATA_TYPE_FIELD_NUMBER = 8;
- private java.lang.Object dataType_;
+ private volatile java.lang.Object dataType_;
/**
* <code>optional string data_type = 8;</code>
*/
@@ -21654,7 +24261,6 @@ public final class UserProtos {
}
}
- // optional int32 char_max_length = 9;
public static final int CHAR_MAX_LENGTH_FIELD_NUMBER = 9;
private int charMaxLength_;
/**
@@ -21670,7 +24276,6 @@ public final class UserProtos {
return charMaxLength_;
}
- // optional int32 char_octet_length = 10;
public static final int CHAR_OCTET_LENGTH_FIELD_NUMBER = 10;
private int charOctetLength_;
/**
@@ -21686,7 +24291,6 @@ public final class UserProtos {
return charOctetLength_;
}
- // optional int32 numeric_precision = 11;
public static final int NUMERIC_PRECISION_FIELD_NUMBER = 11;
private int numericPrecision_;
/**
@@ -21702,7 +24306,6 @@ public final class UserProtos {
return numericPrecision_;
}
- // optional int32 numeric_precision_radix = 12;
public static final int NUMERIC_PRECISION_RADIX_FIELD_NUMBER = 12;
private int numericPrecisionRadix_;
/**
@@ -21718,7 +24321,6 @@ public final class UserProtos {
return numericPrecisionRadix_;
}
- // optional int32 numeric_scale = 13;
public static final int NUMERIC_SCALE_FIELD_NUMBER = 13;
private int numericScale_;
/**
@@ -21734,7 +24336,6 @@ public final class UserProtos {
return numericScale_;
}
- // optional int32 date_time_precision = 14;
public static final int DATE_TIME_PRECISION_FIELD_NUMBER = 14;
private int dateTimePrecision_;
/**
@@ -21750,9 +24351,8 @@ public final class UserProtos {
return dateTimePrecision_;
}
- // optional string interval_type = 15;
public static final int INTERVAL_TYPE_FIELD_NUMBER = 15;
- private java.lang.Object intervalType_;
+ private volatile java.lang.Object intervalType_;
/**
* <code>optional string interval_type = 15;</code>
*/
@@ -21793,7 +24393,6 @@ public final class UserProtos {
}
}
- // optional int32 interval_precision = 16;
public static final int INTERVAL_PRECISION_FIELD_NUMBER = 16;
private int intervalPrecision_;
/**
@@ -21809,7 +24408,6 @@ public final class UserProtos {
return intervalPrecision_;
}
- // optional int32 column_size = 17;
public static final int COLUMN_SIZE_FIELD_NUMBER = 17;
private int columnSize_;
/**
@@ -21825,60 +24423,43 @@ public final class UserProtos {
return columnSize_;
}
- private void initFields() {
- catalogName_ = "";
- schemaName_ = "";
- tableName_ = "";
- columnName_ = "";
- ordinalPosition_ = 0;
- defaultValue_ = "";
- isNullable_ = false;
- dataType_ = "";
- charMaxLength_ = 0;
- charOctetLength_ = 0;
- numericPrecision_ = 0;
- numericPrecisionRadix_ = 0;
- numericScale_ = 0;
- dateTimePrecision_ = 0;
- intervalType_ = "";
- intervalPrecision_ = 0;
- columnSize_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCatalogNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSchemaNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getTableNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getColumnNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, ordinalPosition_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getDefaultValueBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultValue_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, isNullable_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getDataTypeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, dataType_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, charMaxLength_);
@@ -21899,7 +24480,7 @@ public final class UserProtos {
output.writeInt32(14, dateTimePrecision_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeBytes(15, getIntervalTypeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, intervalType_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeInt32(16, intervalPrecision_);
@@ -21907,46 +24488,40 @@ public final class UserProtos {
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeInt32(17, columnSize_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCatalogNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSchemaNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getTableNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getColumnNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, ordinalPosition_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getDefaultValueBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultValue_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isNullable_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getDataTypeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, dataType_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
@@ -21973,8 +24548,7 @@ public final class UserProtos {
.computeInt32Size(14, dateTimePrecision_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(15, getIntervalTypeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, intervalType_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
@@ -21984,18 +24558,203 @@ public final class UserProtos {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, columnSize_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ColumnMetadata)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.ColumnMetadata other = (org.apache.drill.exec.proto.UserProtos.ColumnMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogName() == other.hasCatalogName());
+ if (hasCatalogName()) {
+ result = result && getCatalogName()
+ .equals(other.getCatalogName());
+ }
+ result = result && (hasSchemaName() == other.hasSchemaName());
+ if (hasSchemaName()) {
+ result = result && getSchemaName()
+ .equals(other.getSchemaName());
+ }
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasColumnName() == other.hasColumnName());
+ if (hasColumnName()) {
+ result = result && getColumnName()
+ .equals(other.getColumnName());
+ }
+ result = result && (hasOrdinalPosition() == other.hasOrdinalPosition());
+ if (hasOrdinalPosition()) {
+ result = result && (getOrdinalPosition()
+ == other.getOrdinalPosition());
+ }
+ result = result && (hasDefaultValue() == other.hasDefaultValue());
+ if (hasDefaultValue()) {
+ result = result && getDefaultValue()
+ .equals(other.getDefaultValue());
+ }
+ result = result && (hasIsNullable() == other.hasIsNullable());
+ if (hasIsNullable()) {
+ result = result && (getIsNullable()
+ == other.getIsNullable());
+ }
+ result = result && (hasDataType() == other.hasDataType());
+ if (hasDataType()) {
+ result = result && getDataType()
+ .equals(other.getDataType());
+ }
+ result = result && (hasCharMaxLength() == other.hasCharMaxLength());
+ if (hasCharMaxLength()) {
+ result = result && (getCharMaxLength()
+ == other.getCharMaxLength());
+ }
+ result = result && (hasCharOctetLength() == other.hasCharOctetLength());
+ if (hasCharOctetLength()) {
+ result = result && (getCharOctetLength()
+ == other.getCharOctetLength());
+ }
+ result = result && (hasNumericPrecision() == other.hasNumericPrecision());
+ if (hasNumericPrecision()) {
+ result = result && (getNumericPrecision()
+ == other.getNumericPrecision());
+ }
+ result = result && (hasNumericPrecisionRadix() == other.hasNumericPrecisionRadix());
+ if (hasNumericPrecisionRadix()) {
+ result = result && (getNumericPrecisionRadix()
+ == other.getNumericPrecisionRadix());
+ }
+ result = result && (hasNumericScale() == other.hasNumericScale());
+ if (hasNumericScale()) {
+ result = result && (getNumericScale()
+ == other.getNumericScale());
+ }
+ result = result && (hasDateTimePrecision() == other.hasDateTimePrecision());
+ if (hasDateTimePrecision()) {
+ result = result && (getDateTimePrecision()
+ == other.getDateTimePrecision());
+ }
+ result = result && (hasIntervalType() == other.hasIntervalType());
+ if (hasIntervalType()) {
+ result = result && getIntervalType()
+ .equals(other.getIntervalType());
+ }
+ result = result && (hasIntervalPrecision() == other.hasIntervalPrecision());
+ if (hasIntervalPrecision()) {
+ result = result && (getIntervalPrecision()
+ == other.getIntervalPrecision());
+ }
+ result = result && (hasColumnSize() == other.hasColumnSize());
+ if (hasColumnSize()) {
+ result = result && (getColumnSize()
+ == other.getColumnSize());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasSchemaName()) {
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ }
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasColumnName()) {
+ hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnName().hashCode();
+ }
+ if (hasOrdinalPosition()) {
+ hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getOrdinalPosition();
+ }
+ if (hasDefaultValue()) {
+ hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getDefaultValue().hashCode();
+ }
+ if (hasIsNullable()) {
+ hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsNullable());
+ }
+ if (hasDataType()) {
+ hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataType().hashCode();
+ }
+ if (hasCharMaxLength()) {
+ hash = (37 * hash) + CHAR_MAX_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getCharMaxLength();
+ }
+ if (hasCharOctetLength()) {
+ hash = (37 * hash) + CHAR_OCTET_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getCharOctetLength();
+ }
+ if (hasNumericPrecision()) {
+ hash = (37 * hash) + NUMERIC_PRECISION_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericPrecision();
+ }
+ if (hasNumericPrecisionRadix()) {
+ hash = (37 * hash) + NUMERIC_PRECISION_RADIX_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericPrecisionRadix();
+ }
+ if (hasNumericScale()) {
+ hash = (37 * hash) + NUMERIC_SCALE_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericScale();
+ }
+ if (hasDateTimePrecision()) {
+ hash = (37 * hash) + DATE_TIME_PRECISION_FIELD_NUMBER;
+ hash = (53 * hash) + getDateTimePrecision();
+ }
+ if (hasIntervalType()) {
+ hash = (37 * hash) + INTERVAL_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getIntervalType().hashCode();
+ }
+ if (hasIntervalPrecision()) {
+ hash = (37 * hash) + INTERVAL_PRECISION_FIELD_NUMBER;
+ hash = (53 * hash) + getIntervalPrecision();
+ }
+ if (hasColumnSize()) {
+ hash = (37 * hash) + COLUMN_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnSize();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -22019,66 +24778,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ColumnMetadata prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.ColumnMetadata}
- *
* <pre>
- *
* Message encapsulating metadata for a Column.
* </pre>
+ *
+ * Protobuf type {@code exec.user.ColumnMetadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.ColumnMetadata)
+ org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -22091,18 +24864,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
@@ -22142,19 +24913,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata build() {
org.apache.drill.exec.proto.UserProtos.ColumnMetadata result = buildPartial();
if (!result.isInitialized()) {
@@ -22163,6 +24933,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata buildPartial() {
org.apache.drill.exec.proto.UserProtos.ColumnMetadata result = new org.apache.drill.exec.proto.UserProtos.ColumnMetadata(this);
int from_bitField0_ = bitField0_;
@@ -22240,6 +25011,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.ColumnMetadata) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.ColumnMetadata)other);
@@ -22316,14 +25120,17 @@ public final class UserProtos {
if (other.hasColumnSize()) {
setColumnSize(other.getColumnSize());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -22333,7 +25140,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.ColumnMetadata) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -22343,7 +25150,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string catalog_name = 1;
private java.lang.Object catalogName_ = "";
/**
* <code>optional string catalog_name = 1;</code>
@@ -22357,9 +25163,12 @@ public final class UserProtos {
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22417,7 +25226,6 @@ public final class UserProtos {
return this;
}
- // optional string schema_name = 2;
private java.lang.Object schemaName_ = "";
/**
* <code>optional string schema_name = 2;</code>
@@ -22431,9 +25239,12 @@ public final class UserProtos {
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- schemaName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ schemaName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22491,7 +25302,6 @@ public final class UserProtos {
return this;
}
- // optional string table_name = 3;
private java.lang.Object tableName_ = "";
/**
* <code>optional string table_name = 3;</code>
@@ -22505,9 +25315,12 @@ public final class UserProtos {
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- tableName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ tableName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22565,7 +25378,6 @@ public final class UserProtos {
return this;
}
- // optional string column_name = 4;
private java.lang.Object columnName_ = "";
/**
* <code>optional string column_name = 4;</code>
@@ -22579,9 +25391,12 @@ public final class UserProtos {
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- columnName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ columnName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22639,7 +25454,6 @@ public final class UserProtos {
return this;
}
- // optional int32 ordinal_position = 5;
private int ordinalPosition_ ;
/**
* <code>optional int32 ordinal_position = 5;</code>
@@ -22672,7 +25486,6 @@ public final class UserProtos {
return this;
}
- // optional string default_value = 6;
private java.lang.Object defaultValue_ = "";
/**
* <code>optional string default_value = 6;</code>
@@ -22686,9 +25499,12 @@ public final class UserProtos {
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- defaultValue_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ defaultValue_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22746,7 +25562,6 @@ public final class UserProtos {
return this;
}
- // optional bool is_nullable = 7;
private boolean isNullable_ ;
/**
* <code>optional bool is_nullable = 7;</code>
@@ -22779,7 +25594,6 @@ public final class UserProtos {
return this;
}
- // optional string data_type = 8;
private java.lang.Object dataType_ = "";
/**
* <code>optional string data_type = 8;</code>
@@ -22793,9 +25607,12 @@ public final class UserProtos {
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dataType_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ dataType_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -22853,7 +25670,6 @@ public final class UserProtos {
return this;
}
- // optional int32 char_max_length = 9;
private int charMaxLength_ ;
/**
* <code>optional int32 char_max_length = 9;</code>
@@ -22886,7 +25702,6 @@ public final class UserProtos {
return this;
}
- // optional int32 char_octet_length = 10;
private int charOctetLength_ ;
/**
* <code>optional int32 char_octet_length = 10;</code>
@@ -22919,7 +25734,6 @@ public final class UserProtos {
return this;
}
- // optional int32 numeric_precision = 11;
private int numericPrecision_ ;
/**
* <code>optional int32 numeric_precision = 11;</code>
@@ -22952,7 +25766,6 @@ public final class UserProtos {
return this;
}
- // optional int32 numeric_precision_radix = 12;
private int numericPrecisionRadix_ ;
/**
* <code>optional int32 numeric_precision_radix = 12;</code>
@@ -22985,7 +25798,6 @@ public final class UserProtos {
return this;
}
- // optional int32 numeric_scale = 13;
private int numericScale_ ;
/**
* <code>optional int32 numeric_scale = 13;</code>
@@ -23018,7 +25830,6 @@ public final class UserProtos {
return this;
}
- // optional int32 date_time_precision = 14;
private int dateTimePrecision_ ;
/**
* <code>optional int32 date_time_precision = 14;</code>
@@ -23051,7 +25862,6 @@ public final class UserProtos {
return this;
}
- // optional string interval_type = 15;
private java.lang.Object intervalType_ = "";
/**
* <code>optional string interval_type = 15;</code>
@@ -23065,9 +25875,12 @@ public final class UserProtos {
public java.lang.String getIntervalType() {
java.lang.Object ref = intervalType_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- intervalType_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ intervalType_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -23125,7 +25938,6 @@ public final class UserProtos {
return this;
}
- // optional int32 interval_precision = 16;
private int intervalPrecision_ ;
/**
* <code>optional int32 interval_precision = 16;</code>
@@ -23158,7 +25970,6 @@ public final class UserProtos {
return this;
}
- // optional int32 column_size = 17;
private int columnSize_ ;
/**
* <code>optional int32 column_size = 17;</code>
@@ -23190,22 +26001,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.ColumnMetadata)
}
+ // @@protoc_insertion_point(class_scope:exec.user.ColumnMetadata)
+ private static final org.apache.drill.exec.proto.UserProtos.ColumnMetadata DEFAULT_INSTANCE;
static {
- defaultInstance = new ColumnMetadata(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ColumnMetadata();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ColumnMetadata>
+ PARSER = new com.google.protobuf.AbstractParser<ColumnMetadata>() {
+ @java.lang.Override
+ public ColumnMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ColumnMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ColumnMetadata> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ColumnMetadata> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.ColumnMetadata)
}
- public interface GetColumnsRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetColumnsRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetColumnsResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -23215,7 +26067,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // repeated .exec.user.ColumnMetadata columns = 2;
/**
* <code>repeated .exec.user.ColumnMetadata columns = 2;</code>
*/
@@ -23240,7 +26091,6 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder(
int index);
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -23255,43 +26105,39 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetColumnsResp}
- *
* <pre>
- *
* Response message for GetColumnsReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetColumnsResp}
*/
- public static final class GetColumnsResp extends
- com.google.protobuf.GeneratedMessage
- implements GetColumnsRespOrBuilder {
+ public static final class GetColumnsResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetColumnsResp)
+ GetColumnsRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetColumnsResp.newBuilder() to construct.
- private GetColumnsResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetColumnsResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetColumnsResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetColumnsResp defaultInstance;
- public static GetColumnsResp getDefaultInstance() {
- return defaultInstance;
}
-
- public GetColumnsResp getDefaultInstanceForType() {
- return defaultInstance;
+ private GetColumnsResp() {
+ status_ = 0;
+ columns_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetColumnsResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -23303,21 +26149,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -23326,7 +26166,8 @@ public final class UserProtos {
columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ColumnMetadata>();
mutable_bitField0_ |= 0x00000002;
}
- columns_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ColumnMetadata.PARSER, extensionRegistry));
+ columns_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.ColumnMetadata.PARSER, extensionRegistry));
break;
}
case 26: {
@@ -23342,13 +26183,20 @@ public final class UserProtos {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
@@ -23362,32 +26210,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetColumnsResp.class, org.apache.drill.exec.proto.UserProtos.GetColumnsResp.Builder.class);
}
- public static com.google.protobuf.Parser<GetColumnsResp> PARSER =
- new com.google.protobuf.AbstractParser<GetColumnsResp>() {
- public GetColumnsResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetColumnsResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetColumnsResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -23398,10 +26231,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // repeated .exec.user.ColumnMetadata columns = 2;
public static final int COLUMNS_FIELD_NUMBER = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> columns_;
/**
@@ -23437,7 +26271,6 @@ public final class UserProtos {
return columns_.get(index);
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -23450,53 +26283,50 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- columns_ = java.util.Collections.emptyList();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(2, columns_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -23504,21 +26334,75 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetColumnsResp other = (org.apache.drill.exec.proto.UserProtos.GetColumnsResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && getColumnsList()
+ .equals(other.getColumnsList());
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (getColumnsCount() > 0) {
+ hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnsList().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -23541,66 +26425,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetColumnsResp}
- *
* <pre>
- *
* Response message for GetColumnsReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetColumnsResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetColumnsRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetColumnsResp)
+ org.apache.drill.exec.proto.UserProtos.GetColumnsRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -23613,23 +26511,21 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getColumnsFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
@@ -23638,7 +26534,7 @@ public final class UserProtos {
columnsBuilder_.clear();
}
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -23646,19 +26542,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetColumnsResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsResp build() {
org.apache.drill.exec.proto.UserProtos.GetColumnsResp result = buildPartial();
if (!result.isInitialized()) {
@@ -23667,6 +26562,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetColumnsResp result = new org.apache.drill.exec.proto.UserProtos.GetColumnsResp(this);
int from_bitField0_ = bitField0_;
@@ -23697,6 +26593,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetColumnsResp)other);
@@ -23730,7 +26659,7 @@ public final class UserProtos {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
columnsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
@@ -23740,14 +26669,17 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -23757,7 +26689,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetColumnsResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -23767,8 +26699,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -23779,7 +26710,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -23789,7 +26722,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -23798,12 +26731,11 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // repeated .exec.user.ColumnMetadata columns = 2;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
@@ -23813,7 +26745,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> columnsBuilder_;
/**
@@ -23945,7 +26877,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ColumnMetadata> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
- super.addAll(values, columns_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
@@ -24028,11 +26961,11 @@ public final class UserProtos {
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
- columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder>(
columns_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -24043,9 +26976,8 @@ public final class UserProtos {
return columnsBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -24058,7 +26990,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -24099,6 +27031,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -24117,7 +27050,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -24140,41 +27073,83 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetColumnsResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetColumnsResp)
+ private static final org.apache.drill.exec.proto.UserProtos.GetColumnsResp DEFAULT_INSTANCE;
static {
- defaultInstance = new GetColumnsResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetColumnsResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetColumnsResp>
+ PARSER = new com.google.protobuf.AbstractParser<GetColumnsResp>() {
+ @java.lang.Override
+ public GetColumnsResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetColumnsResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetColumnsResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetColumnsResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetColumnsResp)
}
- public interface CreatePreparedStatementReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CreatePreparedStatementReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.CreatePreparedStatementReq)
+ com.google.protobuf.MessageOrBuilder {
- // optional string sql_query = 1;
/**
* <code>optional string sql_query = 1;</code>
*/
@@ -24190,45 +27165,40 @@ public final class UserProtos {
getSqlQueryBytes();
}
/**
- * Protobuf type {@code exec.user.CreatePreparedStatementReq}
- *
* <pre>
- *
* Request message to create a prepared statement. Currently prepared
* statement only accepts a SQL query. Query parameter support is not
* included in current implementation.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CreatePreparedStatementReq}
*/
- public static final class CreatePreparedStatementReq extends
- com.google.protobuf.GeneratedMessage
- implements CreatePreparedStatementReqOrBuilder {
+ public static final class CreatePreparedStatementReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.CreatePreparedStatementReq)
+ CreatePreparedStatementReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CreatePreparedStatementReq.newBuilder() to construct.
- private CreatePreparedStatementReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CreatePreparedStatementReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CreatePreparedStatementReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CreatePreparedStatementReq defaultInstance;
- public static CreatePreparedStatementReq getDefaultInstance() {
- return defaultInstance;
- }
-
- public CreatePreparedStatementReq getDefaultInstanceForType() {
- return defaultInstance;
+ private CreatePreparedStatementReq() {
+ sqlQuery_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CreatePreparedStatementReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -24240,25 +27210,26 @@ public final class UserProtos {
case 0:
done = true;
break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ sqlQuery_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- sqlQuery_ = input.readBytes();
- break;
- }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -24269,32 +27240,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.Builder.class);
}
- public static com.google.protobuf.Parser<CreatePreparedStatementReq> PARSER =
- new com.google.protobuf.AbstractParser<CreatePreparedStatementReq>() {
- public CreatePreparedStatementReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CreatePreparedStatementReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CreatePreparedStatementReq> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string sql_query = 1;
public static final int SQL_QUERY_FIELD_NUMBER = 1;
- private java.lang.Object sqlQuery_;
+ private volatile java.lang.Object sqlQuery_;
/**
* <code>optional string sql_query = 1;</code>
*/
@@ -24335,50 +27291,88 @@ public final class UserProtos {
}
}
- private void initFields() {
- sqlQuery_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getSqlQueryBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlQuery_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getSqlQueryBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlQuery_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq other = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) obj;
+
+ boolean result = true;
+ result = result && (hasSqlQuery() == other.hasSqlQuery());
+ if (hasSqlQuery()) {
+ result = result && getSqlQuery()
+ .equals(other.getSqlQuery());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSqlQuery()) {
+ hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getSqlQuery().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -24401,68 +27395,82 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.CreatePreparedStatementReq}
- *
* <pre>
- *
* Request message to create a prepared statement. Currently prepared
* statement only accepts a SQL query. Query parameter support is not
* included in current implementation.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CreatePreparedStatementReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.CreatePreparedStatementReq)
+ org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -24475,18 +27483,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
sqlQuery_ = "";
@@ -24494,19 +27500,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq build() {
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq result = buildPartial();
if (!result.isInitialized()) {
@@ -24515,6 +27520,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq result = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq(this);
int from_bitField0_ = bitField0_;
@@ -24528,6 +27534,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq)other);
@@ -24544,14 +27583,17 @@ public final class UserProtos {
sqlQuery_ = other.sqlQuery_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -24561,7 +27603,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -24571,7 +27613,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string sql_query = 1;
private java.lang.Object sqlQuery_ = "";
/**
* <code>optional string sql_query = 1;</code>
@@ -24585,9 +27626,12 @@ public final class UserProtos {
public java.lang.String getSqlQuery() {
java.lang.Object ref = sqlQuery_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sqlQuery_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sqlQuery_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -24644,217 +27688,237 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.CreatePreparedStatementReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementReq)
+ private static final org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq DEFAULT_INSTANCE;
static {
- defaultInstance = new CreatePreparedStatementReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<CreatePreparedStatementReq>
+ PARSER = new com.google.protobuf.AbstractParser<CreatePreparedStatementReq>() {
+ @java.lang.Override
+ public CreatePreparedStatementReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CreatePreparedStatementReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<CreatePreparedStatementReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CreatePreparedStatementReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementReq)
}
- public interface ResultColumnMetadataOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ResultColumnMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.ResultColumnMetadata)
+ com.google.protobuf.MessageOrBuilder {
- // optional string catalog_name = 1;
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
boolean hasCatalogName();
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
java.lang.String getCatalogName();
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
com.google.protobuf.ByteString
getCatalogNameBytes();
- // optional string schema_name = 2;
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
boolean hasSchemaName();
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
java.lang.String getSchemaName();
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
- // optional string table_name = 3;
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
boolean hasTableName();
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
java.lang.String getTableName();
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
com.google.protobuf.ByteString
getTableNameBytes();
- // optional string column_name = 4;
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
boolean hasColumnName();
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
java.lang.String getColumnName();
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
com.google.protobuf.ByteString
getColumnNameBytes();
- // optional string label = 5;
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
boolean hasLabel();
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
java.lang.String getLabel();
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
com.google.protobuf.ByteString
getLabelBytes();
- // optional string data_type = 6;
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
boolean hasDataType();
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
java.lang.String getDataType();
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
com.google.protobuf.ByteString
getDataTypeBytes();
- // optional bool is_nullable = 7;
/**
* <code>optional bool is_nullable = 7;</code>
*/
@@ -24864,12 +27928,8 @@ public final class UserProtos {
*/
boolean getIsNullable();
- // optional int32 precision = 8;
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -24877,13 +27937,12 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
boolean hasPrecision();
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -24891,94 +27950,83 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
int getPrecision();
- // optional int32 scale = 9;
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
boolean hasScale();
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
int getScale();
- // optional bool signed = 10;
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
boolean hasSigned();
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
boolean getSigned();
- // optional int32 display_size = 11;
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
boolean hasDisplaySize();
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
int getDisplaySize();
- // optional bool is_aliased = 12;
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
boolean hasIsAliased();
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
boolean getIsAliased();
- // optional .exec.user.ColumnSearchability searchability = 13;
/**
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
*/
@@ -24988,180 +28036,174 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability();
- // optional .exec.user.ColumnUpdatability updatability = 14;
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
boolean hasUpdatability();
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability();
- // optional bool auto_increment = 15;
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
boolean hasAutoIncrement();
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
boolean getAutoIncrement();
- // optional bool case_sensitivity = 16;
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
boolean hasCaseSensitivity();
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
boolean getCaseSensitivity();
- // optional bool sortable = 17;
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
boolean hasSortable();
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
boolean getSortable();
- // optional string class_name = 18;
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
boolean hasClassName();
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
java.lang.String getClassName();
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
com.google.protobuf.ByteString
getClassNameBytes();
- // optional bool is_currency = 20;
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
boolean hasIsCurrency();
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
boolean getIsCurrency();
}
/**
- * Protobuf type {@code exec.user.ResultColumnMetadata}
- *
* <pre>
- *
* Metadata of a column in query result set
* </pre>
+ *
+ * Protobuf type {@code exec.user.ResultColumnMetadata}
*/
- public static final class ResultColumnMetadata extends
- com.google.protobuf.GeneratedMessage
- implements ResultColumnMetadataOrBuilder {
+ public static final class ResultColumnMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.ResultColumnMetadata)
+ ResultColumnMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ResultColumnMetadata.newBuilder() to construct.
- private ResultColumnMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ResultColumnMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ResultColumnMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ResultColumnMetadata defaultInstance;
- public static ResultColumnMetadata getDefaultInstance() {
- return defaultInstance;
}
-
- public ResultColumnMetadata getDefaultInstanceForType() {
- return defaultInstance;
+ private ResultColumnMetadata() {
+ catalogName_ = "";
+ schemaName_ = "";
+ tableName_ = "";
+ columnName_ = "";
+ label_ = "";
+ dataType_ = "";
+ isNullable_ = false;
+ precision_ = 0;
+ scale_ = 0;
+ signed_ = false;
+ displaySize_ = 0;
+ isAliased_ = false;
+ searchability_ = 0;
+ updatability_ = 0;
+ autoIncrement_ = false;
+ caseSensitivity_ = false;
+ sortable_ = false;
+ className_ = "";
+ isCurrency_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ResultColumnMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -25173,41 +28215,40 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- catalogName_ = input.readBytes();
+ catalogName_ = bs;
break;
}
case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- schemaName_ = input.readBytes();
+ schemaName_ = bs;
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- tableName_ = input.readBytes();
+ tableName_ = bs;
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- columnName_ = input.readBytes();
+ columnName_ = bs;
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
- label_ = input.readBytes();
+ label_ = bs;
break;
}
case 50: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
- dataType_ = input.readBytes();
+ dataType_ = bs;
break;
}
case 56: {
@@ -25242,23 +28283,25 @@ public final class UserProtos {
}
case 104: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.ColumnSearchability value = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(13, rawValue);
} else {
bitField0_ |= 0x00001000;
- searchability_ = value;
+ searchability_ = rawValue;
}
break;
}
case 112: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.ColumnUpdatability value = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(14, rawValue);
} else {
bitField0_ |= 0x00002000;
- updatability_ = value;
+ updatability_ = rawValue;
}
break;
}
@@ -25278,8 +28321,9 @@ public final class UserProtos {
break;
}
case 146: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
- className_ = input.readBytes();
+ className_ = bs;
break;
}
case 160: {
@@ -25287,13 +28331,20 @@ public final class UserProtos {
isCurrency_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -25304,52 +28355,35 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder.class);
}
- public static com.google.protobuf.Parser<ResultColumnMetadata> PARSER =
- new com.google.protobuf.AbstractParser<ResultColumnMetadata>() {
- public ResultColumnMetadata parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ResultColumnMetadata(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ResultColumnMetadata> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional string catalog_name = 1;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
- private java.lang.Object catalogName_;
+ private volatile java.lang.Object catalogName_;
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
@@ -25366,13 +28400,12 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public com.google.protobuf.ByteString
getCatalogNameBytes() {
@@ -25388,31 +28421,28 @@ public final class UserProtos {
}
}
- // optional string schema_name = 2;
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
- private java.lang.Object schemaName_;
+ private volatile java.lang.Object schemaName_;
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
@@ -25429,14 +28459,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
@@ -25452,31 +28481,28 @@ public final class UserProtos {
}
}
- // optional string table_name = 3;
public static final int TABLE_NAME_FIELD_NUMBER = 3;
- private java.lang.Object tableName_;
+ private volatile java.lang.Object tableName_;
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
@@ -25493,14 +28519,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public com.google.protobuf.ByteString
getTableNameBytes() {
@@ -25516,25 +28541,24 @@ public final class UserProtos {
}
}
- // optional string column_name = 4;
public static final int COLUMN_NAME_FIELD_NUMBER = 4;
- private java.lang.Object columnName_;
+ private volatile java.lang.Object columnName_;
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
@@ -25551,11 +28575,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
@@ -25571,29 +28595,26 @@ public final class UserProtos {
}
}
- // optional string label = 5;
public static final int LABEL_FIELD_NUMBER = 5;
- private java.lang.Object label_;
+ private volatile java.lang.Object label_;
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
@@ -25610,13 +28631,12 @@ public final class UserProtos {
}
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public com.google.protobuf.ByteString
getLabelBytes() {
@@ -25632,27 +28652,24 @@ public final class UserProtos {
}
}
- // optional string data_type = 6;
public static final int DATA_TYPE_FIELD_NUMBER = 6;
- private java.lang.Object dataType_;
+ private volatile java.lang.Object dataType_;
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public boolean hasDataType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
@@ -25669,12 +28686,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public com.google.protobuf.ByteString
getDataTypeBytes() {
@@ -25690,7 +28706,6 @@ public final class UserProtos {
}
}
- // optional bool is_nullable = 7;
public static final int IS_NULLABLE_FIELD_NUMBER = 7;
private boolean isNullable_;
/**
@@ -25706,14 +28721,10 @@ public final class UserProtos {
return isNullable_;
}
- // optional int32 precision = 8;
public static final int PRECISION_FIELD_NUMBER = 8;
private int precision_;
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -25721,15 +28732,14 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -25737,122 +28747,111 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public int getPrecision() {
return precision_;
}
- // optional int32 scale = 9;
public static final int SCALE_FIELD_NUMBER = 9;
private int scale_;
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public int getScale() {
return scale_;
}
- // optional bool signed = 10;
public static final int SIGNED_FIELD_NUMBER = 10;
private boolean signed_;
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public boolean hasSigned() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public boolean getSigned() {
return signed_;
}
- // optional int32 display_size = 11;
public static final int DISPLAY_SIZE_FIELD_NUMBER = 11;
private int displaySize_;
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public boolean hasDisplaySize() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public int getDisplaySize() {
return displaySize_;
}
- // optional bool is_aliased = 12;
public static final int IS_ALIASED_FIELD_NUMBER = 12;
private boolean isAliased_;
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public boolean hasIsAliased() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public boolean getIsAliased() {
return isAliased_;
}
- // optional .exec.user.ColumnSearchability searchability = 13;
public static final int SEARCHABILITY_FIELD_NUMBER = 13;
- private org.apache.drill.exec.proto.UserProtos.ColumnSearchability searchability_;
+ private int searchability_;
/**
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
*/
@@ -25863,138 +28862,127 @@ public final class UserProtos {
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability() {
- return searchability_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.ColumnSearchability result = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.valueOf(searchability_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY : result;
}
- // optional .exec.user.ColumnUpdatability updatability = 14;
public static final int UPDATABILITY_FIELD_NUMBER = 14;
- private org.apache.drill.exec.proto.UserProtos.ColumnUpdatability updatability_;
+ private int updatability_;
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public boolean hasUpdatability() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability() {
- return updatability_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.ColumnUpdatability result = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.valueOf(updatability_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY : result;
}
- // optional bool auto_increment = 15;
public static final int AUTO_INCREMENT_FIELD_NUMBER = 15;
private boolean autoIncrement_;
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public boolean hasAutoIncrement() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public boolean getAutoIncrement() {
return autoIncrement_;
}
- // optional bool case_sensitivity = 16;
public static final int CASE_SENSITIVITY_FIELD_NUMBER = 16;
private boolean caseSensitivity_;
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public boolean hasCaseSensitivity() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public boolean getCaseSensitivity() {
return caseSensitivity_;
}
- // optional bool sortable = 17;
public static final int SORTABLE_FIELD_NUMBER = 17;
private boolean sortable_;
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public boolean hasSortable() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public boolean getSortable() {
return sortable_;
}
- // optional string class_name = 18;
public static final int CLASS_NAME_FIELD_NUMBER = 18;
- private java.lang.Object className_;
+ private volatile java.lang.Object className_;
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
@@ -26011,14 +28999,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
@@ -26034,82 +29021,60 @@ public final class UserProtos {
}
}
- // optional bool is_currency = 20;
public static final int IS_CURRENCY_FIELD_NUMBER = 20;
private boolean isCurrency_;
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public boolean hasIsCurrency() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public boolean getIsCurrency() {
return isCurrency_;
}
- private void initFields() {
- catalogName_ = "";
- schemaName_ = "";
- tableName_ = "";
- columnName_ = "";
- label_ = "";
- dataType_ = "";
- isNullable_ = false;
- precision_ = 0;
- scale_ = 0;
- signed_ = false;
- displaySize_ = 0;
- isAliased_ = false;
- searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY;
- updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY;
- autoIncrement_ = false;
- caseSensitivity_ = false;
- sortable_ = false;
- className_ = "";
- isCurrency_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCatalogNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSchemaNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getTableNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getColumnNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getLabelBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, label_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getDataTypeBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, isNullable_);
@@ -26130,10 +29095,10 @@ public final class UserProtos {
output.writeBool(12, isAliased_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
- output.writeEnum(13, searchability_.getNumber());
+ output.writeEnum(13, searchability_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeEnum(14, updatability_.getNumber());
+ output.writeEnum(14, updatability_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeBool(15, autoIncrement_);
@@ -26145,43 +29110,37 @@ public final class UserProtos {
output.writeBool(17, sortable_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
- output.writeBytes(18, getClassNameBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 18, className_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeBool(20, isCurrency_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCatalogNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSchemaNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getTableNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getColumnNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, columnName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getLabelBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, label_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getDataTypeBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
@@ -26209,11 +29168,11 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(13, searchability_.getNumber());
+ .computeEnumSize(13, searchability_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(14, updatability_.getNumber());
+ .computeEnumSize(14, updatability_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
@@ -26228,26 +29187,232 @@ public final class UserProtos {
.computeBoolSize(17, sortable_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(18, getClassNameBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, className_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, isCurrency_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata other = (org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCatalogName() == other.hasCatalogName());
+ if (hasCatalogName()) {
+ result = result && getCatalogName()
+ .equals(other.getCatalogName());
+ }
+ result = result && (hasSchemaName() == other.hasSchemaName());
+ if (hasSchemaName()) {
+ result = result && getSchemaName()
+ .equals(other.getSchemaName());
+ }
+ result = result && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ result = result && (hasColumnName() == other.hasColumnName());
+ if (hasColumnName()) {
+ result = result && getColumnName()
+ .equals(other.getColumnName());
+ }
+ result = result && (hasLabel() == other.hasLabel());
+ if (hasLabel()) {
+ result = result && getLabel()
+ .equals(other.getLabel());
+ }
+ result = result && (hasDataType() == other.hasDataType());
+ if (hasDataType()) {
+ result = result && getDataType()
+ .equals(other.getDataType());
+ }
+ result = result && (hasIsNullable() == other.hasIsNullable());
+ if (hasIsNullable()) {
+ result = result && (getIsNullable()
+ == other.getIsNullable());
+ }
+ result = result && (hasPrecision() == other.hasPrecision());
+ if (hasPrecision()) {
+ result = result && (getPrecision()
+ == other.getPrecision());
+ }
+ result = result && (hasScale() == other.hasScale());
+ if (hasScale()) {
+ result = result && (getScale()
+ == other.getScale());
+ }
+ result = result && (hasSigned() == other.hasSigned());
+ if (hasSigned()) {
+ result = result && (getSigned()
+ == other.getSigned());
+ }
+ result = result && (hasDisplaySize() == other.hasDisplaySize());
+ if (hasDisplaySize()) {
+ result = result && (getDisplaySize()
+ == other.getDisplaySize());
+ }
+ result = result && (hasIsAliased() == other.hasIsAliased());
+ if (hasIsAliased()) {
+ result = result && (getIsAliased()
+ == other.getIsAliased());
+ }
+ result = result && (hasSearchability() == other.hasSearchability());
+ if (hasSearchability()) {
+ result = result && searchability_ == other.searchability_;
+ }
+ result = result && (hasUpdatability() == other.hasUpdatability());
+ if (hasUpdatability()) {
+ result = result && updatability_ == other.updatability_;
+ }
+ result = result && (hasAutoIncrement() == other.hasAutoIncrement());
+ if (hasAutoIncrement()) {
+ result = result && (getAutoIncrement()
+ == other.getAutoIncrement());
+ }
+ result = result && (hasCaseSensitivity() == other.hasCaseSensitivity());
+ if (hasCaseSensitivity()) {
+ result = result && (getCaseSensitivity()
+ == other.getCaseSensitivity());
+ }
+ result = result && (hasSortable() == other.hasSortable());
+ if (hasSortable()) {
+ result = result && (getSortable()
+ == other.getSortable());
+ }
+ result = result && (hasClassName() == other.hasClassName());
+ if (hasClassName()) {
+ result = result && getClassName()
+ .equals(other.getClassName());
+ }
+ result = result && (hasIsCurrency() == other.hasIsCurrency());
+ if (hasIsCurrency()) {
+ result = result && (getIsCurrency()
+ == other.getIsCurrency());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCatalogName()) {
+ hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogName().hashCode();
+ }
+ if (hasSchemaName()) {
+ hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaName().hashCode();
+ }
+ if (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (hasColumnName()) {
+ hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnName().hashCode();
+ }
+ if (hasLabel()) {
+ hash = (37 * hash) + LABEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLabel().hashCode();
+ }
+ if (hasDataType()) {
+ hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataType().hashCode();
+ }
+ if (hasIsNullable()) {
+ hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsNullable());
+ }
+ if (hasPrecision()) {
+ hash = (37 * hash) + PRECISION_FIELD_NUMBER;
+ hash = (53 * hash) + getPrecision();
+ }
+ if (hasScale()) {
+ hash = (37 * hash) + SCALE_FIELD_NUMBER;
+ hash = (53 * hash) + getScale();
+ }
+ if (hasSigned()) {
+ hash = (37 * hash) + SIGNED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSigned());
+ }
+ if (hasDisplaySize()) {
+ hash = (37 * hash) + DISPLAY_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplaySize();
+ }
+ if (hasIsAliased()) {
+ hash = (37 * hash) + IS_ALIASED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsAliased());
+ }
+ if (hasSearchability()) {
+ hash = (37 * hash) + SEARCHABILITY_FIELD_NUMBER;
+ hash = (53 * hash) + searchability_;
+ }
+ if (hasUpdatability()) {
+ hash = (37 * hash) + UPDATABILITY_FIELD_NUMBER;
+ hash = (53 * hash) + updatability_;
+ }
+ if (hasAutoIncrement()) {
+ hash = (37 * hash) + AUTO_INCREMENT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAutoIncrement());
+ }
+ if (hasCaseSensitivity()) {
+ hash = (37 * hash) + CASE_SENSITIVITY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCaseSensitivity());
+ }
+ if (hasSortable()) {
+ hash = (37 * hash) + SORTABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSortable());
+ }
+ if (hasClassName()) {
+ hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getClassName().hashCode();
+ }
+ if (hasIsCurrency()) {
+ hash = (37 * hash) + IS_CURRENCY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsCurrency());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -26270,66 +29435,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.ResultColumnMetadata}
- *
* <pre>
- *
* Metadata of a column in query result set
* </pre>
+ *
+ * Protobuf type {@code exec.user.ResultColumnMetadata}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.ResultColumnMetadata)
+ org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -26342,18 +29521,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
@@ -26380,9 +29557,9 @@ public final class UserProtos {
bitField0_ = (bitField0_ & ~0x00000400);
isAliased_ = false;
bitField0_ = (bitField0_ & ~0x00000800);
- searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY;
+ searchability_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
- updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY;
+ updatability_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
autoIncrement_ = false;
bitField0_ = (bitField0_ & ~0x00004000);
@@ -26397,19 +29574,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata build() {
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata result = buildPartial();
if (!result.isInitialized()) {
@@ -26418,6 +29594,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata buildPartial() {
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata result = new org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata(this);
int from_bitField0_ = bitField0_;
@@ -26503,6 +29680,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata)other);
@@ -26585,14 +29795,17 @@ public final class UserProtos {
if (other.hasIsCurrency()) {
setIsCurrency(other.getIsCurrency());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -26602,7 +29815,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -26612,48 +29825,47 @@ public final class UserProtos {
}
private int bitField0_;
- // optional string catalog_name = 1;
private java.lang.Object catalogName_ = "";
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public com.google.protobuf.ByteString
getCatalogNameBytes() {
@@ -26669,13 +29881,12 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public Builder setCatalogName(
java.lang.String value) {
@@ -26688,13 +29899,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public Builder clearCatalogName() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -26703,13 +29913,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_name = 1;</code>
- *
* <pre>
- *
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
* </pre>
+ *
+ * <code>optional string catalog_name = 1;</code>
*/
public Builder setCatalogNameBytes(
com.google.protobuf.ByteString value) {
@@ -26722,51 +29931,50 @@ public final class UserProtos {
return this;
}
- // optional string schema_name = 2;
private java.lang.Object schemaName_ = "";
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- schemaName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ schemaName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public com.google.protobuf.ByteString
getSchemaNameBytes() {
@@ -26782,14 +29990,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public Builder setSchemaName(
java.lang.String value) {
@@ -26802,14 +30009,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -26818,14 +30024,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string schema_name = 2;</code>
- *
* <pre>
- *
* Designated column's schema name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and schema info
* is lost. If we derive the schema from plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string schema_name = 2;</code>
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
@@ -26838,51 +30043,50 @@ public final class UserProtos {
return this;
}
- // optional string table_name = 3;
private java.lang.Object tableName_ = "";
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- tableName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ tableName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public com.google.protobuf.ByteString
getTableNameBytes() {
@@ -26898,14 +30102,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public Builder setTableName(
java.lang.String value) {
@@ -26918,14 +30121,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -26934,14 +30136,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string table_name = 3;</code>
- *
* <pre>
- *
* Designated column's table name. Not set if not applicable. Initial implementation
* defaults to no value as we use LIMIT 0 queries to get the schema and table info
* is lost. If we derive the schema from query plan, we may get the right value.
* </pre>
+ *
+ * <code>optional string table_name = 3;</code>
*/
public Builder setTableNameBytes(
com.google.protobuf.ByteString value) {
@@ -26954,42 +30155,44 @@ public final class UserProtos {
return this;
}
- // optional string column_name = 4;
private java.lang.Object columnName_ = "";
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- columnName_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ columnName_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
@@ -27005,11 +30208,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public Builder setColumnName(
java.lang.String value) {
@@ -27022,11 +30225,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public Builder clearColumnName() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -27035,11 +30238,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string column_name = 4;</code>
- *
* <pre>
* column name
* </pre>
+ *
+ * <code>optional string column_name = 4;</code>
*/
public Builder setColumnNameBytes(
com.google.protobuf.ByteString value) {
@@ -27052,48 +30255,47 @@ public final class UserProtos {
return this;
}
- // optional string label = 5;
private java.lang.Object label_ = "";
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- label_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ label_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public com.google.protobuf.ByteString
getLabelBytes() {
@@ -27109,13 +30311,12 @@ public final class UserProtos {
}
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public Builder setLabel(
java.lang.String value) {
@@ -27128,13 +30329,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -27143,13 +30343,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string label = 5;</code>
- *
* <pre>
- *
* Column label name for display or print purposes.
* Ex. a column named "empName" might be labeled as "Employee Name".
* </pre>
+ *
+ * <code>optional string label = 5;</code>
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
@@ -27162,45 +30361,44 @@ public final class UserProtos {
return this;
}
- // optional string data_type = 6;
private java.lang.Object dataType_ = "";
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public boolean hasDataType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dataType_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ dataType_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public com.google.protobuf.ByteString
getDataTypeBytes() {
@@ -27216,12 +30414,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public Builder setDataType(
java.lang.String value) {
@@ -27234,12 +30431,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -27248,12 +30444,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string data_type = 6;</code>
- *
* <pre>
- *
* Data type in string format. Value is SQL standard type.
* </pre>
+ *
+ * <code>optional string data_type = 6;</code>
*/
public Builder setDataTypeBytes(
com.google.protobuf.ByteString value) {
@@ -27266,7 +30461,6 @@ public final class UserProtos {
return this;
}
- // optional bool is_nullable = 7;
private boolean isNullable_ ;
/**
* <code>optional bool is_nullable = 7;</code>
@@ -27299,13 +30493,9 @@ public final class UserProtos {
return this;
}
- // optional int32 precision = 8;
private int precision_ ;
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -27313,15 +30503,14 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -27329,15 +30518,14 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public int getPrecision() {
return precision_;
}
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -27345,6 +30533,8 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public Builder setPrecision(int value) {
bitField0_ |= 0x00000080;
@@ -27353,10 +30543,7 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional int32 precision = 8;</code>
- *
* <pre>
- *
* For numeric data, this is the maximum precision.
* For character data, this is the length in characters.
* For datetime datatypes, this is the length in characters of the String representation
@@ -27364,6 +30551,8 @@ public final class UserProtos {
* For binary data, this is the length in bytes.
* For all other types 0 is returned where the column size is not applicable.
* </pre>
+ *
+ * <code>optional int32 precision = 8;</code>
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000080);
@@ -27372,40 +30561,36 @@ public final class UserProtos {
return this;
}
- // optional int32 scale = 9;
private int scale_ ;
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public int getScale() {
return scale_;
}
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public Builder setScale(int value) {
bitField0_ |= 0x00000100;
@@ -27414,13 +30599,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional int32 scale = 9;</code>
- *
* <pre>
- *
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
* </pre>
+ *
+ * <code>optional int32 scale = 9;</code>
*/
public Builder clearScale() {
bitField0_ = (bitField0_ & ~0x00000100);
@@ -27429,37 +30613,33 @@ public final class UserProtos {
return this;
}
- // optional bool signed = 10;
private boolean signed_ ;
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public boolean hasSigned() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public boolean getSigned() {
return signed_;
}
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public Builder setSigned(boolean value) {
bitField0_ |= 0x00000200;
@@ -27468,12 +30648,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool signed = 10;</code>
- *
* <pre>
- *
* Indicates whether values in the designated column are signed numbers.
* </pre>
+ *
+ * <code>optional bool signed = 10;</code>
*/
public Builder clearSigned() {
bitField0_ = (bitField0_ & ~0x00000200);
@@ -27482,37 +30661,33 @@ public final class UserProtos {
return this;
}
- // optional int32 display_size = 11;
private int displaySize_ ;
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public boolean hasDisplaySize() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public int getDisplaySize() {
return displaySize_;
}
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public Builder setDisplaySize(int value) {
bitField0_ |= 0x00000400;
@@ -27521,12 +30696,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional int32 display_size = 11;</code>
- *
* <pre>
- *
* Maximum number of characters required to display data from the column.
* </pre>
+ *
+ * <code>optional int32 display_size = 11;</code>
*/
public Builder clearDisplaySize() {
bitField0_ = (bitField0_ & ~0x00000400);
@@ -27535,40 +30709,36 @@ public final class UserProtos {
return this;
}
- // optional bool is_aliased = 12;
private boolean isAliased_ ;
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public boolean hasIsAliased() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public boolean getIsAliased() {
return isAliased_;
}
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public Builder setIsAliased(boolean value) {
bitField0_ |= 0x00000800;
@@ -27577,13 +30747,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool is_aliased = 12;</code>
- *
* <pre>
- *
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
* </pre>
+ *
+ * <code>optional bool is_aliased = 12;</code>
*/
public Builder clearIsAliased() {
bitField0_ = (bitField0_ & ~0x00000800);
@@ -27592,8 +30761,7 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.ColumnSearchability searchability = 13;
- private org.apache.drill.exec.proto.UserProtos.ColumnSearchability searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY;
+ private int searchability_ = 0;
/**
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
*/
@@ -27604,7 +30772,9 @@ public final class UserProtos {
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability() {
- return searchability_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.ColumnSearchability result = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.valueOf(searchability_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY : result;
}
/**
* <code>optional .exec.user.ColumnSearchability searchability = 13;</code>
@@ -27614,7 +30784,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
- searchability_ = value;
+ searchability_ = value.getNumber();
onChanged();
return this;
}
@@ -27623,98 +30793,91 @@ public final class UserProtos {
*/
public Builder clearSearchability() {
bitField0_ = (bitField0_ & ~0x00001000);
- searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY;
+ searchability_ = 0;
onChanged();
return this;
}
- // optional .exec.user.ColumnUpdatability updatability = 14;
- private org.apache.drill.exec.proto.UserProtos.ColumnUpdatability updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY;
+ private int updatability_ = 0;
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public boolean hasUpdatability() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability() {
- return updatability_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.ColumnUpdatability result = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.valueOf(updatability_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY : result;
}
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public Builder setUpdatability(org.apache.drill.exec.proto.UserProtos.ColumnUpdatability value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
- updatability_ = value;
+ updatability_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
- *
* <pre>
- *
* Defaults to READ_ONLY
* </pre>
+ *
+ * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code>
*/
public Builder clearUpdatability() {
bitField0_ = (bitField0_ & ~0x00002000);
- updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY;
+ updatability_ = 0;
onChanged();
return this;
}
- // optional bool auto_increment = 15;
private boolean autoIncrement_ ;
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public boolean hasAutoIncrement() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public boolean getAutoIncrement() {
return autoIncrement_;
}
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public Builder setAutoIncrement(boolean value) {
bitField0_ |= 0x00004000;
@@ -27723,12 +30886,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool auto_increment = 15;</code>
- *
* <pre>
- *
* whether the designated column is automatically incremented.
* </pre>
+ *
+ * <code>optional bool auto_increment = 15;</code>
*/
public Builder clearAutoIncrement() {
bitField0_ = (bitField0_ & ~0x00004000);
@@ -27737,37 +30899,33 @@ public final class UserProtos {
return this;
}
- // optional bool case_sensitivity = 16;
private boolean caseSensitivity_ ;
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public boolean hasCaseSensitivity() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public boolean getCaseSensitivity() {
return caseSensitivity_;
}
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public Builder setCaseSensitivity(boolean value) {
bitField0_ |= 0x00008000;
@@ -27776,12 +30934,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool case_sensitivity = 16;</code>
- *
* <pre>
- *
* Whether column's case matters for collations and comparisons. Defaults to true.
* </pre>
+ *
+ * <code>optional bool case_sensitivity = 16;</code>
*/
public Builder clearCaseSensitivity() {
bitField0_ = (bitField0_ & ~0x00008000);
@@ -27790,37 +30947,33 @@ public final class UserProtos {
return this;
}
- // optional bool sortable = 17;
private boolean sortable_ ;
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public boolean hasSortable() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public boolean getSortable() {
return sortable_;
}
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public Builder setSortable(boolean value) {
bitField0_ |= 0x00010000;
@@ -27829,12 +30982,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool sortable = 17;</code>
- *
* <pre>
- *
* whether the column can be used in ORDER BY clause
* </pre>
+ *
+ * <code>optional bool sortable = 17;</code>
*/
public Builder clearSortable() {
bitField0_ = (bitField0_ & ~0x00010000);
@@ -27843,51 +30995,50 @@ public final class UserProtos {
return this;
}
- // optional string class_name = 18;
private java.lang.Object className_ = "";
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- className_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ className_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
@@ -27903,14 +31054,13 @@ public final class UserProtos {
}
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public Builder setClassName(
java.lang.String value) {
@@ -27923,14 +31073,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public Builder clearClassName() {
bitField0_ = (bitField0_ & ~0x00020000);
@@ -27939,14 +31088,13 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string class_name = 18;</code>
- *
* <pre>
- *
* A fully-qualified name of the Java class whose instances are created
* if the method ResultSet.getObject is called to retrieve
* a value from the column. Applicable only to JDBC clients.
* </pre>
+ *
+ * <code>optional string class_name = 18;</code>
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
@@ -27959,37 +31107,33 @@ public final class UserProtos {
return this;
}
- // optional bool is_currency = 20;
private boolean isCurrency_ ;
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public boolean hasIsCurrency() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public boolean getIsCurrency() {
return isCurrency_;
}
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public Builder setIsCurrency(boolean value) {
bitField0_ |= 0x00040000;
@@ -27998,12 +31142,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool is_currency = 20;</code>
- *
* <pre>
- *
* Is the data type a currency type? For JDBC only.
* </pre>
+ *
+ * <code>optional bool is_currency = 20;</code>
*/
public Builder clearIsCurrency() {
bitField0_ = (bitField0_ & ~0x00040000);
@@ -28011,22 +31154,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.ResultColumnMetadata)
}
+ // @@protoc_insertion_point(class_scope:exec.user.ResultColumnMetadata)
+ private static final org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata DEFAULT_INSTANCE;
static {
- defaultInstance = new ResultColumnMetadata(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ResultColumnMetadata>
+ PARSER = new com.google.protobuf.AbstractParser<ResultColumnMetadata>() {
+ @java.lang.Override
+ public ResultColumnMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ResultColumnMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ResultColumnMetadata> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ResultColumnMetadata> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.ResultColumnMetadata)
}
- public interface PreparedStatementHandleOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface PreparedStatementHandleOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.PreparedStatementHandle)
+ com.google.protobuf.MessageOrBuilder {
- // optional bytes server_info = 1;
/**
* <code>optional bytes server_info = 1;</code>
*/
@@ -28037,45 +31221,40 @@ public final class UserProtos {
com.google.protobuf.ByteString getServerInfo();
}
/**
- * Protobuf type {@code exec.user.PreparedStatementHandle}
- *
* <pre>
- *
* Server state of prepared statement. Contents are opaque to
* client. Client just need to submit this object in RunQuery to
* the prepared statement.
* </pre>
+ *
+ * Protobuf type {@code exec.user.PreparedStatementHandle}
*/
- public static final class PreparedStatementHandle extends
- com.google.protobuf.GeneratedMessage
- implements PreparedStatementHandleOrBuilder {
+ public static final class PreparedStatementHandle extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.PreparedStatementHandle)
+ PreparedStatementHandleOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use PreparedStatementHandle.newBuilder() to construct.
- private PreparedStatementHandle(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PreparedStatementHandle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private PreparedStatementHandle(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final PreparedStatementHandle defaultInstance;
- public static PreparedStatementHandle getDefaultInstance() {
- return defaultInstance;
}
-
- public PreparedStatementHandle getDefaultInstanceForType() {
- return defaultInstance;
+ private PreparedStatementHandle() {
+ serverInfo_ = com.google.protobuf.ByteString.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private PreparedStatementHandle(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -28087,25 +31266,25 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
bitField0_ |= 0x00000001;
serverInfo_ = input.readBytes();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -28116,30 +31295,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.class, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder.class);
}
- public static com.google.protobuf.Parser<PreparedStatementHandle> PARSER =
- new com.google.protobuf.AbstractParser<PreparedStatementHandle>() {
- public PreparedStatementHandle parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PreparedStatementHandle(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<PreparedStatementHandle> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional bytes server_info = 1;
public static final int SERVER_INFO_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString serverInfo_;
/**
@@ -28155,30 +31319,29 @@ public final class UserProtos {
return serverInfo_;
}
- private void initFields() {
- serverInfo_ = com.google.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, serverInfo_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -28186,19 +31349,59 @@ public final class UserProtos {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, serverInfo_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle other = (org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) obj;
+
+ boolean result = true;
+ result = result && (hasServerInfo() == other.hasServerInfo());
+ if (hasServerInfo()) {
+ result = result && getServerInfo()
+ .equals(other.getServerInfo());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasServerInfo()) {
+ hash = (37 * hash) + SERVER_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getServerInfo().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -28221,68 +31424,82 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.PreparedStatementHandle}
- *
* <pre>
- *
* Server state of prepared statement. Contents are opaque to
* client. Client just need to submit this object in RunQuery to
* the prepared statement.
* </pre>
+ *
+ * Protobuf type {@code exec.user.PreparedStatementHandle}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.PreparedStatementHandle)
+ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -28295,18 +31512,16 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
serverInfo_ = com.google.protobuf.ByteString.EMPTY;
@@ -28314,19 +31529,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle build() {
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle result = buildPartial();
if (!result.isInitialized()) {
@@ -28335,6 +31549,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle buildPartial() {
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle result = new org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle(this);
int from_bitField0_ = bitField0_;
@@ -28348,6 +31563,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle)other);
@@ -28362,14 +31610,17 @@ public final class UserProtos {
if (other.hasServerInfo()) {
setServerInfo(other.getServerInfo());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -28379,7 +31630,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -28389,7 +31640,6 @@ public final class UserProtos {
}
private int bitField0_;
- // optional bytes server_info = 1;
private com.google.protobuf.ByteString serverInfo_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes server_info = 1;</code>
@@ -28424,22 +31674,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.PreparedStatementHandle)
}
+ // @@protoc_insertion_point(class_scope:exec.user.PreparedStatementHandle)
+ private static final org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle DEFAULT_INSTANCE;
static {
- defaultInstance = new PreparedStatementHandle(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<PreparedStatementHandle>
+ PARSER = new com.google.protobuf.AbstractParser<PreparedStatementHandle>() {
+ @java.lang.Override
+ public PreparedStatementHandle parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PreparedStatementHandle(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<PreparedStatementHandle> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreparedStatementHandle> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.PreparedStatementHandle)
}
- public interface PreparedStatementOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface PreparedStatementOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.PreparedStatement)
+ com.google.protobuf.MessageOrBuilder {
- // repeated .exec.user.ResultColumnMetadata columns = 1;
/**
* <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code>
*/
@@ -28464,77 +31755,68 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder getColumnsOrBuilder(
int index);
- // optional .exec.user.PreparedStatementHandle server_handle = 2;
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
boolean hasServerHandle();
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle();
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder();
}
/**
- * Protobuf type {@code exec.user.PreparedStatement}
- *
* <pre>
- *
* Prepared statement. It contains the query metadata and handle to prepared
* statement state on server.
* </pre>
+ *
+ * Protobuf type {@code exec.user.PreparedStatement}
*/
- public static final class PreparedStatement extends
- com.google.protobuf.GeneratedMessage
- implements PreparedStatementOrBuilder {
+ public static final class PreparedStatement extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.PreparedStatement)
+ PreparedStatementOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use PreparedStatement.newBuilder() to construct.
- private PreparedStatement(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PreparedStatement(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private PreparedStatement(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final PreparedStatement defaultInstance;
- public static PreparedStatement getDefaultInstance() {
- return defaultInstance;
}
-
- public PreparedStatement getDefaultInstanceForType() {
- return defaultInstance;
+ private PreparedStatement() {
+ columns_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private PreparedStatement(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -28546,19 +31828,13 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata>();
mutable_bitField0_ |= 0x00000001;
}
- columns_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.PARSER, extensionRegistry));
+ columns_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.PARSER, extensionRegistry));
break;
}
case 18: {
@@ -28574,13 +31850,20 @@ public final class UserProtos {
bitField0_ |= 0x00000001;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
@@ -28594,30 +31877,15 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.PreparedStatement.class, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder.class);
}
- public static com.google.protobuf.Parser<PreparedStatement> PARSER =
- new com.google.protobuf.AbstractParser<PreparedStatement>() {
- public PreparedStatement parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PreparedStatement(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<PreparedStatement> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // repeated .exec.user.ResultColumnMetadata columns = 1;
public static final int COLUMNS_FIELD_NUMBER = 1;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> columns_;
/**
@@ -28653,74 +31921,68 @@ public final class UserProtos {
return columns_.get(index);
}
- // optional .exec.user.PreparedStatementHandle server_handle = 2;
public static final int SERVER_HANDLE_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle serverHandle_;
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public boolean hasServerHandle() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle() {
- return serverHandle_;
+ return serverHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : serverHandle_;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder() {
- return serverHandle_;
+ return serverHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : serverHandle_;
}
- private void initFields() {
- columns_ = java.util.Collections.emptyList();
- serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(1, columns_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(2, serverHandle_);
+ output.writeMessage(2, getServerHandle());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -28730,21 +31992,67 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, serverHandle_);
+ .computeMessageSize(2, getServerHandle());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatement)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.PreparedStatement other = (org.apache.drill.exec.proto.UserProtos.PreparedStatement) obj;
+
+ boolean result = true;
+ result = result && getColumnsList()
+ .equals(other.getColumnsList());
+ result = result && (hasServerHandle() == other.hasServerHandle());
+ if (hasServerHandle()) {
+ result = result && getServerHandle()
+ .equals(other.getServerHandle());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getColumnsCount() > 0) {
+ hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnsList().hashCode();
+ }
+ if (hasServerHandle()) {
+ hash = (37 * hash) + SERVER_HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getServerHandle().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -28767,67 +32075,81 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.PreparedStatement prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.PreparedStatement}
- *
* <pre>
- *
* Prepared statement. It contains the query metadata and handle to prepared
* statement state on server.
* </pre>
+ *
+ * Protobuf type {@code exec.user.PreparedStatement}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.PreparedStatement)
+ org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -28840,20 +32162,18 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getColumnsFieldBuilder();
getServerHandleFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
if (columnsBuilder_ == null) {
@@ -28863,7 +32183,7 @@ public final class UserProtos {
columnsBuilder_.clear();
}
if (serverHandleBuilder_ == null) {
- serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
+ serverHandle_ = null;
} else {
serverHandleBuilder_.clear();
}
@@ -28871,19 +32191,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatement getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatement build() {
org.apache.drill.exec.proto.UserProtos.PreparedStatement result = buildPartial();
if (!result.isInitialized()) {
@@ -28892,6 +32211,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatement buildPartial() {
org.apache.drill.exec.proto.UserProtos.PreparedStatement result = new org.apache.drill.exec.proto.UserProtos.PreparedStatement(this);
int from_bitField0_ = bitField0_;
@@ -28918,6 +32238,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatement) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.PreparedStatement)other);
@@ -28948,7 +32301,7 @@ public final class UserProtos {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000001);
columnsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
@@ -28958,14 +32311,17 @@ public final class UserProtos {
if (other.hasServerHandle()) {
mergeServerHandle(other.getServerHandle());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -28975,7 +32331,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.PreparedStatement) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -28985,7 +32341,6 @@ public final class UserProtos {
}
private int bitField0_;
- // repeated .exec.user.ResultColumnMetadata columns = 1;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
@@ -28995,7 +32350,7 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> columnsBuilder_;
/**
@@ -29127,7 +32482,8 @@ public final class UserProtos {
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
- super.addAll(values, columns_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
@@ -29210,11 +32566,11 @@ public final class UserProtos {
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
- columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder>(
columns_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -29225,46 +32581,42 @@ public final class UserProtos {
return columnsBuilder_;
}
- // optional .exec.user.PreparedStatementHandle server_handle = 2;
- private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle serverHandle_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> serverHandleBuilder_;
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public boolean hasServerHandle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle() {
if (serverHandleBuilder_ == null) {
- return serverHandle_;
+ return serverHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : serverHandle_;
} else {
return serverHandleBuilder_.getMessage();
}
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public Builder setServerHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) {
if (serverHandleBuilder_ == null) {
@@ -29280,13 +32632,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public Builder setServerHandle(
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder builderForValue) {
@@ -29300,17 +32651,17 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public Builder mergeServerHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) {
if (serverHandleBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ serverHandle_ != null &&
serverHandle_ != org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance()) {
serverHandle_ =
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.newBuilder(serverHandle_).mergeFrom(value).buildPartial();
@@ -29325,17 +32676,16 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public Builder clearServerHandle() {
if (serverHandleBuilder_ == null) {
- serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
+ serverHandle_ = null;
onChanged();
} else {
serverHandleBuilder_.clear();
@@ -29344,13 +32694,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder getServerHandleBuilder() {
bitField0_ |= 0x00000002;
@@ -29358,59 +32707,99 @@ public final class UserProtos {
return getServerHandleFieldBuilder().getBuilder();
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder() {
if (serverHandleBuilder_ != null) {
return serverHandleBuilder_.getMessageOrBuilder();
} else {
- return serverHandle_;
+ return serverHandle_ == null ?
+ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : serverHandle_;
}
}
/**
- * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
- *
* <pre>
- *
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>
getServerHandleFieldBuilder() {
if (serverHandleBuilder_ == null) {
- serverHandleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ serverHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>(
- serverHandle_,
+ getServerHandle(),
getParentForChildren(),
isClean());
serverHandle_ = null;
}
return serverHandleBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.PreparedStatement)
}
+ // @@protoc_insertion_point(class_scope:exec.user.PreparedStatement)
+ private static final org.apache.drill.exec.proto.UserProtos.PreparedStatement DEFAULT_INSTANCE;
static {
- defaultInstance = new PreparedStatement(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.PreparedStatement();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.PreparedStatement getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<PreparedStatement>
+ PARSER = new com.google.protobuf.AbstractParser<PreparedStatement>() {
+ @java.lang.Override
+ public PreparedStatement parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PreparedStatement(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<PreparedStatement> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PreparedStatement> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.PreparedStatement getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.PreparedStatement)
}
- public interface CreatePreparedStatementRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface CreatePreparedStatementRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.CreatePreparedStatementResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -29420,7 +32809,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // optional .exec.user.PreparedStatement prepared_statement = 2;
/**
* <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code>
*/
@@ -29434,7 +32822,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder getPreparedStatementOrBuilder();
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -29449,43 +32836,38 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.CreatePreparedStatementResp}
- *
* <pre>
- *
* Response message for CreatePreparedStatementReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CreatePreparedStatementResp}
*/
- public static final class CreatePreparedStatementResp extends
- com.google.protobuf.GeneratedMessage
- implements CreatePreparedStatementRespOrBuilder {
+ public static final class CreatePreparedStatementResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.CreatePreparedStatementResp)
+ CreatePreparedStatementRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CreatePreparedStatementResp.newBuilder() to construct.
- private CreatePreparedStatementResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CreatePreparedStatementResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CreatePreparedStatementResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CreatePreparedStatementResp defaultInstance;
- public static CreatePreparedStatementResp getDefaultInstance() {
- return defaultInstance;
}
-
- public CreatePreparedStatementResp getDefaultInstanceForType() {
- return defaultInstance;
+ private CreatePreparedStatementResp() {
+ status_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private CreatePreparedStatementResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -29497,21 +32879,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -29541,13 +32917,20 @@ public final class UserProtos {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -29558,32 +32941,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.Builder.class);
}
- public static com.google.protobuf.Parser<CreatePreparedStatementResp> PARSER =
- new com.google.protobuf.AbstractParser<CreatePreparedStatementResp>() {
- public CreatePreparedStatementResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CreatePreparedStatementResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<CreatePreparedStatementResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -29594,10 +32962,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // optional .exec.user.PreparedStatement prepared_statement = 2;
public static final int PREPARED_STATEMENT_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.PreparedStatement preparedStatement_;
/**
@@ -29610,16 +32979,15 @@ public final class UserProtos {
* <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatement getPreparedStatement() {
- return preparedStatement_;
+ return preparedStatement_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance() : preparedStatement_;
}
/**
* <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder getPreparedStatementOrBuilder() {
- return preparedStatement_;
+ return preparedStatement_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance() : preparedStatement_;
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -29632,74 +33000,128 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, preparedStatement_);
+ output.writeMessage(2, getPreparedStatement());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, preparedStatement_);
+ .computeMessageSize(2, getPreparedStatement());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp other = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && (hasPreparedStatement() == other.hasPreparedStatement());
+ if (hasPreparedStatement()) {
+ result = result && getPreparedStatement()
+ .equals(other.getPreparedStatement());
+ }
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (hasPreparedStatement()) {
+ hash = (37 * hash) + PREPARED_STATEMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getPreparedStatement().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -29723,66 +33145,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.CreatePreparedStatementResp}
- *
* <pre>
- *
* Response message for CreatePreparedStatementReq.
* </pre>
+ *
+ * Protobuf type {@code exec.user.CreatePreparedStatementResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.CreatePreparedStatementResp)
+ org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -29795,32 +33231,30 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getPreparedStatementFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (preparedStatementBuilder_ == null) {
- preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance();
+ preparedStatement_ = null;
} else {
preparedStatementBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -29828,19 +33262,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp build() {
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp result = buildPartial();
if (!result.isInitialized()) {
@@ -29849,6 +33282,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp result = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp(this);
int from_bitField0_ = bitField0_;
@@ -29878,6 +33312,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp)other);
@@ -29898,14 +33365,17 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -29915,7 +33385,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -29925,8 +33395,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -29937,7 +33406,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -29947,7 +33418,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -29956,14 +33427,13 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // optional .exec.user.PreparedStatement prepared_statement = 2;
- private org.apache.drill.exec.proto.UserProtos.PreparedStatement preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.PreparedStatement preparedStatement_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder> preparedStatementBuilder_;
/**
* <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code>
@@ -29976,7 +33446,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatement getPreparedStatement() {
if (preparedStatementBuilder_ == null) {
- return preparedStatement_;
+ return preparedStatement_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance() : preparedStatement_;
} else {
return preparedStatementBuilder_.getMessage();
}
@@ -30017,6 +33487,7 @@ public final class UserProtos {
public Builder mergePreparedStatement(org.apache.drill.exec.proto.UserProtos.PreparedStatement value) {
if (preparedStatementBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ preparedStatement_ != null &&
preparedStatement_ != org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance()) {
preparedStatement_ =
org.apache.drill.exec.proto.UserProtos.PreparedStatement.newBuilder(preparedStatement_).mergeFrom(value).buildPartial();
@@ -30035,7 +33506,7 @@ public final class UserProtos {
*/
public Builder clearPreparedStatement() {
if (preparedStatementBuilder_ == null) {
- preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance();
+ preparedStatement_ = null;
onChanged();
} else {
preparedStatementBuilder_.clear();
@@ -30058,19 +33529,20 @@ public final class UserProtos {
if (preparedStatementBuilder_ != null) {
return preparedStatementBuilder_.getMessageOrBuilder();
} else {
- return preparedStatement_;
+ return preparedStatement_ == null ?
+ org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance() : preparedStatement_;
}
}
/**
* <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder>
getPreparedStatementFieldBuilder() {
if (preparedStatementBuilder_ == null) {
- preparedStatementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ preparedStatementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder>(
- preparedStatement_,
+ getPreparedStatement(),
getParentForChildren(),
isClean());
preparedStatement_ = null;
@@ -30078,9 +33550,8 @@ public final class UserProtos {
return preparedStatementBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -30093,7 +33564,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -30134,6 +33605,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -30152,7 +33624,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -30175,78 +33647,115 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.CreatePreparedStatementResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementResp)
+ private static final org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp DEFAULT_INSTANCE;
static {
- defaultInstance = new CreatePreparedStatementResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<CreatePreparedStatementResp>
+ PARSER = new com.google.protobuf.AbstractParser<CreatePreparedStatementResp>() {
+ @java.lang.Override
+ public CreatePreparedStatementResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CreatePreparedStatementResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<CreatePreparedStatementResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<CreatePreparedStatementResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementResp)
}
- public interface GetServerMetaReqOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetServerMetaReqOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetServerMetaReq)
+ com.google.protobuf.MessageOrBuilder {
}
/**
- * Protobuf type {@code exec.user.GetServerMetaReq}
- *
* <pre>
- *
* Request message for getting server metadata
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetServerMetaReq}
*/
- public static final class GetServerMetaReq extends
- com.google.protobuf.GeneratedMessage
- implements GetServerMetaReqOrBuilder {
+ public static final class GetServerMetaReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetServerMetaReq)
+ GetServerMetaReqOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetServerMetaReq.newBuilder() to construct.
- private GetServerMetaReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetServerMetaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetServerMetaReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetServerMetaReq defaultInstance;
- public static GetServerMetaReq getDefaultInstance() {
- return defaultInstance;
}
-
- public GetServerMetaReq getDefaultInstanceForType() {
- return defaultInstance;
+ private GetServerMetaReq() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetServerMetaReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
@@ -30258,8 +33767,8 @@ public final class UserProtos {
done = true;
break;
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
@@ -30270,7 +33779,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -30281,64 +33790,81 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.Builder.class);
}
- public static com.google.protobuf.Parser<GetServerMetaReq> PARSER =
- new com.google.protobuf.AbstractParser<GetServerMetaReq>() {
- public GetServerMetaReq parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetServerMetaReq(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetServerMetaReq> getParserForType() {
- return PARSER;
- }
-
- private void initFields() {
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaReq)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetServerMetaReq other = (org.apache.drill.exec.proto.UserProtos.GetServerMetaReq) obj;
+
+ boolean result = true;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -30361,66 +33887,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetServerMetaReq prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetServerMetaReq}
- *
* <pre>
- *
* Request message for getting server metadata
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetServerMetaReq}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetServerMetaReqOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetServerMetaReq)
+ org.apache.drill.exec.proto.UserProtos.GetServerMetaReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -30433,36 +33973,33 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq build() {
org.apache.drill.exec.proto.UserProtos.GetServerMetaReq result = buildPartial();
if (!result.isInitialized()) {
@@ -30471,12 +34008,46 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetServerMetaReq result = new org.apache.drill.exec.proto.UserProtos.GetServerMetaReq(this);
onBuilt();
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaReq) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetServerMetaReq)other);
@@ -30488,14 +34059,17 @@ public final class UserProtos {
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetServerMetaReq other) {
if (other == org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -30505,7 +34079,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetServerMetaReq) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -30513,22 +34087,63 @@ public final class UserProtos {
}
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetServerMetaReq)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaReq)
+ private static final org.apache.drill.exec.proto.UserProtos.GetServerMetaReq DEFAULT_INSTANCE;
static {
- defaultInstance = new GetServerMetaReq(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetServerMetaReq();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetServerMetaReq>
+ PARSER = new com.google.protobuf.AbstractParser<GetServerMetaReq>() {
+ @java.lang.Override
+ public GetServerMetaReq parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetServerMetaReq(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetServerMetaReq> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetServerMetaReq> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaReq)
}
- public interface ConvertSupportOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ConvertSupportOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.ConvertSupport)
+ com.google.protobuf.MessageOrBuilder {
- // required .common.MinorType from = 1;
/**
* <code>required .common.MinorType from = 1;</code>
*/
@@ -30538,7 +34153,6 @@ public final class UserProtos {
*/
org.apache.drill.common.types.TypeProtos.MinorType getFrom();
- // required .common.MinorType to = 2;
/**
* <code>required .common.MinorType to = 2;</code>
*/
@@ -30551,36 +34165,33 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.ConvertSupport}
*/
- public static final class ConvertSupport extends
- com.google.protobuf.GeneratedMessage
- implements ConvertSupportOrBuilder {
+ public static final class ConvertSupport extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.ConvertSupport)
+ ConvertSupportOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ConvertSupport.newBuilder() to construct.
- private ConvertSupport(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ConvertSupport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ConvertSupport(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ConvertSupport defaultInstance;
- public static ConvertSupport getDefaultInstance() {
- return defaultInstance;
}
-
- public ConvertSupport getDefaultInstanceForType() {
- return defaultInstance;
+ private ConvertSupport() {
+ from_ = 0;
+ to_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ConvertSupport(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -30592,32 +34203,34 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- from_ = value;
+ from_ = rawValue;
}
break;
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- to_ = value;
+ to_ = rawValue;
+ }
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
}
break;
}
@@ -30627,7 +34240,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -30638,32 +34251,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.ConvertSupport.class, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder.class);
}
- public static com.google.protobuf.Parser<ConvertSupport> PARSER =
- new com.google.protobuf.AbstractParser<ConvertSupport>() {
- public ConvertSupport parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ConvertSupport(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ConvertSupport> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // required .common.MinorType from = 1;
public static final int FROM_FIELD_NUMBER = 1;
- private org.apache.drill.common.types.TypeProtos.MinorType from_;
+ private int from_;
/**
* <code>required .common.MinorType from = 1;</code>
*/
@@ -30674,12 +34272,13 @@ public final class UserProtos {
* <code>required .common.MinorType from = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getFrom() {
- return from_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(from_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
- // required .common.MinorType to = 2;
public static final int TO_FIELD_NUMBER = 2;
- private org.apache.drill.common.types.TypeProtos.MinorType to_;
+ private int to_;
/**
* <code>required .common.MinorType to = 2;</code>
*/
@@ -30690,17 +34289,17 @@ public final class UserProtos {
* <code>required .common.MinorType to = 2;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getTo() {
- return to_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(to_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
- private void initFields() {
- from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
- to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasFrom()) {
memoizedIsInitialized = 0;
@@ -30714,45 +34313,92 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, from_.getNumber());
+ output.writeEnum(1, from_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, to_.getNumber());
+ output.writeEnum(2, to_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, from_.getNumber());
+ .computeEnumSize(1, from_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, to_.getNumber());
+ .computeEnumSize(2, to_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ConvertSupport)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.ConvertSupport other = (org.apache.drill.exec.proto.UserProtos.ConvertSupport) obj;
+
+ boolean result = true;
+ result = result && (hasFrom() == other.hasFrom());
+ if (hasFrom()) {
+ result = result && from_ == other.from_;
+ }
+ result = result && (hasTo() == other.hasTo());
+ if (hasTo()) {
+ result = result && to_ == other.to_;
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFrom()) {
+ hash = (37 * hash) + FROM_FIELD_NUMBER;
+ hash = (53 * hash) + from_;
+ }
+ if (hasTo()) {
+ hash = (37 * hash) + TO_FIELD_NUMBER;
+ hash = (53 * hash) + to_;
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -30775,46 +34421,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ConvertSupport prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -30822,14 +34481,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.ConvertSupport}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.ConvertSupport)
+ org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -30842,40 +34503,37 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ from_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
- to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ to_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ConvertSupport getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ConvertSupport build() {
org.apache.drill.exec.proto.UserProtos.ConvertSupport result = buildPartial();
if (!result.isInitialized()) {
@@ -30884,6 +34542,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ConvertSupport buildPartial() {
org.apache.drill.exec.proto.UserProtos.ConvertSupport result = new org.apache.drill.exec.proto.UserProtos.ConvertSupport(this);
int from_bitField0_ = bitField0_;
@@ -30901,6 +34560,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.ConvertSupport) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.ConvertSupport)other);
@@ -30918,22 +34610,23 @@ public final class UserProtos {
if (other.hasTo()) {
setTo(other.getTo());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasFrom()) {
-
return false;
}
if (!hasTo()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -30943,7 +34636,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.ConvertSupport) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -30953,8 +34646,7 @@ public final class UserProtos {
}
private int bitField0_;
- // required .common.MinorType from = 1;
- private org.apache.drill.common.types.TypeProtos.MinorType from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ private int from_ = 0;
/**
* <code>required .common.MinorType from = 1;</code>
*/
@@ -30965,7 +34657,9 @@ public final class UserProtos {
* <code>required .common.MinorType from = 1;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getFrom() {
- return from_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(from_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
/**
* <code>required .common.MinorType from = 1;</code>
@@ -30975,7 +34669,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- from_ = value;
+ from_ = value.getNumber();
onChanged();
return this;
}
@@ -30984,13 +34678,12 @@ public final class UserProtos {
*/
public Builder clearFrom() {
bitField0_ = (bitField0_ & ~0x00000001);
- from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ from_ = 0;
onChanged();
return this;
}
- // required .common.MinorType to = 2;
- private org.apache.drill.common.types.TypeProtos.MinorType to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ private int to_ = 0;
/**
* <code>required .common.MinorType to = 2;</code>
*/
@@ -31001,7 +34694,9 @@ public final class UserProtos {
* <code>required .common.MinorType to = 2;</code>
*/
public org.apache.drill.common.types.TypeProtos.MinorType getTo() {
- return to_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(to_);
+ return result == null ? org.apache.drill.common.types.TypeProtos.MinorType.LATE : result;
}
/**
* <code>required .common.MinorType to = 2;</code>
@@ -31011,7 +34706,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- to_ = value;
+ to_ = value.getNumber();
onChanged();
return this;
}
@@ -31020,26 +34715,67 @@ public final class UserProtos {
*/
public Builder clearTo() {
bitField0_ = (bitField0_ & ~0x00000002);
- to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE;
+ to_ = 0;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.ConvertSupport)
}
+ // @@protoc_insertion_point(class_scope:exec.user.ConvertSupport)
+ private static final org.apache.drill.exec.proto.UserProtos.ConvertSupport DEFAULT_INSTANCE;
static {
- defaultInstance = new ConvertSupport(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ConvertSupport();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ConvertSupport getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ConvertSupport>
+ PARSER = new com.google.protobuf.AbstractParser<ConvertSupport>() {
+ @java.lang.Override
+ public ConvertSupport parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ConvertSupport(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ConvertSupport> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ConvertSupport> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.ConvertSupport getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.ConvertSupport)
}
- public interface GetServerMetaRespOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface GetServerMetaRespOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.GetServerMetaResp)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.RequestStatus status = 1;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -31049,7 +34785,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
- // optional .exec.user.ServerMeta server_meta = 2;
/**
* <code>optional .exec.user.ServerMeta server_meta = 2;</code>
*/
@@ -31063,7 +34798,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder getServerMetaOrBuilder();
- // optional .exec.shared.DrillPBError error = 3;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
@@ -31078,43 +34812,38 @@ public final class UserProtos {
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
- * Protobuf type {@code exec.user.GetServerMetaResp}
- *
* <pre>
- *
* Response message for GetServerMetaReq
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetServerMetaResp}
*/
- public static final class GetServerMetaResp extends
- com.google.protobuf.GeneratedMessage
- implements GetServerMetaRespOrBuilder {
+ public static final class GetServerMetaResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.GetServerMetaResp)
+ GetServerMetaRespOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use GetServerMetaResp.newBuilder() to construct.
- private GetServerMetaResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GetServerMetaResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private GetServerMetaResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final GetServerMetaResp defaultInstance;
- public static GetServerMetaResp getDefaultInstance() {
- return defaultInstance;
}
-
- public GetServerMetaResp getDefaultInstanceForType() {
- return defaultInstance;
+ private GetServerMetaResp() {
+ status_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private GetServerMetaResp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -31126,21 +34855,15 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -31170,13 +34893,20 @@ public final class UserProtos {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -31187,32 +34917,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.Builder.class);
}
- public static com.google.protobuf.Parser<GetServerMetaResp> PARSER =
- new com.google.protobuf.AbstractParser<GetServerMetaResp>() {
- public GetServerMetaResp parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new GetServerMetaResp(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<GetServerMetaResp> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_;
+ private int status_;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -31223,10 +34938,11 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
- // optional .exec.user.ServerMeta server_meta = 2;
public static final int SERVER_META_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.ServerMeta serverMeta_;
/**
@@ -31239,16 +34955,15 @@ public final class UserProtos {
* <code>optional .exec.user.ServerMeta server_meta = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ServerMeta getServerMeta() {
- return serverMeta_;
+ return serverMeta_ == null ? org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance() : serverMeta_;
}
/**
* <code>optional .exec.user.ServerMeta server_meta = 2;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder getServerMetaOrBuilder() {
- return serverMeta_;
+ return serverMeta_ == null ? org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance() : serverMeta_;
}
- // optional .exec.shared.DrillPBError error = 3;
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
@@ -31261,24 +34976,21 @@ public final class UserProtos {
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
- private void initFields() {
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
- serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance();
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (hasServerMeta()) {
if (!getServerMeta().isInitialized()) {
@@ -31290,52 +35002,109 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, status_.getNumber());
+ output.writeEnum(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, serverMeta_);
+ output.writeMessage(2, getServerMeta());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, error_);
+ output.writeMessage(3, getError());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, status_.getNumber());
+ .computeEnumSize(1, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, serverMeta_);
+ .computeMessageSize(2, getServerMeta());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, error_);
+ .computeMessageSize(3, getError());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaResp)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.GetServerMetaResp other = (org.apache.drill.exec.proto.UserProtos.GetServerMetaResp) obj;
+
+ boolean result = true;
+ result = result && (hasStatus() == other.hasStatus());
+ if (hasStatus()) {
+ result = result && status_ == other.status_;
+ }
+ result = result && (hasServerMeta() == other.hasServerMeta());
+ if (hasServerMeta()) {
+ result = result && getServerMeta()
+ .equals(other.getServerMeta());
+ }
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError()
+ .equals(other.getError());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ }
+ if (hasServerMeta()) {
+ hash = (37 * hash) + SERVER_META_FIELD_NUMBER;
+ hash = (53 * hash) + getServerMeta().hashCode();
+ }
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -31358,66 +35127,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetServerMetaResp prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.GetServerMetaResp}
- *
* <pre>
- *
* Response message for GetServerMetaReq
* </pre>
+ *
+ * Protobuf type {@code exec.user.GetServerMetaResp}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.GetServerMetaRespOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.GetServerMetaResp)
+ org.apache.drill.exec.proto.UserProtos.GetServerMetaRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -31430,32 +35213,30 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getServerMetaFieldBuilder();
getErrorFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (serverMetaBuilder_ == null) {
- serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance();
+ serverMeta_ = null;
} else {
serverMetaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
} else {
errorBuilder_.clear();
}
@@ -31463,19 +35244,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp build() {
org.apache.drill.exec.proto.UserProtos.GetServerMetaResp result = buildPartial();
if (!result.isInitialized()) {
@@ -31484,6 +35264,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp buildPartial() {
org.apache.drill.exec.proto.UserProtos.GetServerMetaResp result = new org.apache.drill.exec.proto.UserProtos.GetServerMetaResp(this);
int from_bitField0_ = bitField0_;
@@ -31513,6 +35294,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaResp) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetServerMetaResp)other);
@@ -31533,20 +35347,22 @@ public final class UserProtos {
if (other.hasError()) {
mergeError(other.getError());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasServerMeta()) {
if (!getServerMeta().isInitialized()) {
-
return false;
}
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -31556,7 +35372,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetServerMetaResp) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -31566,8 +35382,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.RequestStatus status = 1;
- private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ private int status_ = 0;
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
@@ -31578,7 +35393,9 @@ public final class UserProtos {
* <code>optional .exec.user.RequestStatus status = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
- return status_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* <code>optional .exec.user.RequestStatus status = 1;</code>
@@ -31588,7 +35405,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -31597,14 +35414,13 @@ public final class UserProtos {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
- status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS;
+ status_ = 0;
onChanged();
return this;
}
- // optional .exec.user.ServerMeta server_meta = 2;
- private org.apache.drill.exec.proto.UserProtos.ServerMeta serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.ServerMeta serverMeta_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder> serverMetaBuilder_;
/**
* <code>optional .exec.user.ServerMeta server_meta = 2;</code>
@@ -31617,7 +35433,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserProtos.ServerMeta getServerMeta() {
if (serverMetaBuilder_ == null) {
- return serverMeta_;
+ return serverMeta_ == null ? org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance() : serverMeta_;
} else {
return serverMetaBuilder_.getMessage();
}
@@ -31658,6 +35474,7 @@ public final class UserProtos {
public Builder mergeServerMeta(org.apache.drill.exec.proto.UserProtos.ServerMeta value) {
if (serverMetaBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ serverMeta_ != null &&
serverMeta_ != org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance()) {
serverMeta_ =
org.apache.drill.exec.proto.UserProtos.ServerMeta.newBuilder(serverMeta_).mergeFrom(value).buildPartial();
@@ -31676,7 +35493,7 @@ public final class UserProtos {
*/
public Builder clearServerMeta() {
if (serverMetaBuilder_ == null) {
- serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance();
+ serverMeta_ = null;
onChanged();
} else {
serverMetaBuilder_.clear();
@@ -31699,19 +35516,20 @@ public final class UserProtos {
if (serverMetaBuilder_ != null) {
return serverMetaBuilder_.getMessageOrBuilder();
} else {
- return serverMeta_;
+ return serverMeta_ == null ?
+ org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance() : serverMeta_;
}
}
/**
* <code>optional .exec.user.ServerMeta server_meta = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder>
getServerMetaFieldBuilder() {
if (serverMetaBuilder_ == null) {
- serverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ serverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder>(
- serverMeta_,
+ getServerMeta(),
getParentForChildren(),
isClean());
serverMeta_ = null;
@@ -31719,9 +35537,8 @@ public final class UserProtos {
return serverMetaBuilder_;
}
- // optional .exec.shared.DrillPBError error = 3;
- private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
@@ -31734,7 +35551,7 @@ public final class UserProtos {
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
- return error_;
+ return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
@@ -31775,6 +35592,7 @@ public final class UserProtos {
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ error_ != null &&
error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
error_ =
org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
@@ -31793,7 +35611,7 @@ public final class UserProtos {
*/
public Builder clearError() {
if (errorBuilder_ == null) {
- error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance();
+ error_ = null;
onChanged();
} else {
errorBuilder_.clear();
@@ -31816,1173 +35634,1166 @@ public final class UserProtos {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
- return error_;
+ return error_ == null ?
+ org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* <code>optional .exec.shared.DrillPBError error = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
- errorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
- error_,
+ getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.GetServerMetaResp)
}
+ // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaResp)
+ private static final org.apache.drill.exec.proto.UserProtos.GetServerMetaResp DEFAULT_INSTANCE;
static {
- defaultInstance = new GetServerMetaResp(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetServerMetaResp();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<GetServerMetaResp>
+ PARSER = new com.google.protobuf.AbstractParser<GetServerMetaResp>() {
+ @java.lang.Override
+ public GetServerMetaResp parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetServerMetaResp(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<GetServerMetaResp> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<GetServerMetaResp> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaResp)
}
- public interface ServerMetaOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface ServerMetaOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.ServerMeta)
+ com.google.protobuf.MessageOrBuilder {
- // optional bool all_tables_selectable = 1;
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
boolean hasAllTablesSelectable();
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
boolean getAllTablesSelectable();
- // optional bool blob_included_in_max_row_size = 2;
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
boolean hasBlobIncludedInMaxRowSize();
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
boolean getBlobIncludedInMaxRowSize();
- // optional bool catalog_at_start = 3;
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
boolean hasCatalogAtStart();
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
boolean getCatalogAtStart();
- // optional string catalog_separator = 4;
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
boolean hasCatalogSeparator();
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
java.lang.String getCatalogSeparator();
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
com.google.protobuf.ByteString
getCatalogSeparatorBytes();
- // optional string catalog_term = 5;
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
boolean hasCatalogTerm();
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
java.lang.String getCatalogTerm();
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
com.google.protobuf.ByteString
getCatalogTermBytes();
- // repeated .exec.user.CollateSupport collate_support = 6;
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList();
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
int getCollateSupportCount();
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index);
- // optional bool column_aliasing_supported = 7;
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
boolean hasColumnAliasingSupported();
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
boolean getColumnAliasingSupported();
- // repeated .exec.user.ConvertSupport convert_support = 8;
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport>
getConvertSupportList();
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index);
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
int getConvertSupportCount();
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>
getConvertSupportOrBuilderList();
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder(
int index);
- // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
boolean hasCorrelationNamesSupport();
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport();
- // repeated string date_time_functions = 10;
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
java.util.List<java.lang.String>
- getDateTimeFunctionsList();
+ getDateTimeFunctionsList();
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
int getDateTimeFunctionsCount();
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
java.lang.String getDateTimeFunctions(int index);
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
com.google.protobuf.ByteString
getDateTimeFunctionsBytes(int index);
- // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList();
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
int getDateTimeLiteralsSupportCount();
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index);
- // optional .exec.user.GroupBySupport group_by_support = 12;
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
boolean hasGroupBySupport();
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport();
- // optional .exec.user.IdentifierCasing identifier_casing = 13;
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
boolean hasIdentifierCasing();
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing();
- // optional string identifier_quote_string = 14;
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
boolean hasIdentifierQuoteString();
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
java.lang.String getIdentifierQuoteString();
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
com.google.protobuf.ByteString
getIdentifierQuoteStringBytes();
- // optional bool like_escape_clause_supported = 15;
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
boolean hasLikeEscapeClauseSupported();
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
boolean getLikeEscapeClauseSupported();
- // optional uint32 max_binary_literal_length = 16;
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
boolean hasMaxBinaryLiteralLength();
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
int getMaxBinaryLiteralLength();
- // optional uint32 max_catalog_name_length = 17;
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
boolean hasMaxCatalogNameLength();
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
int getMaxCatalogNameLength();
- // optional uint32 max_char_literal_length = 18;
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
boolean hasMaxCharLiteralLength();
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
int getMaxCharLiteralLength();
- // optional uint32 max_column_name_length = 19;
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
boolean hasMaxColumnNameLength();
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
int getMaxColumnNameLength();
- // optional uint32 max_columns_in_group_by = 20;
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
boolean hasMaxColumnsInGroupBy();
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
int getMaxColumnsInGroupBy();
- // optional uint32 max_columns_in_order_by = 21;
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
boolean hasMaxColumnsInOrderBy();
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
int getMaxColumnsInOrderBy();
- // optional uint32 max_columns_in_select = 22;
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
boolean hasMaxColumnsInSelect();
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
int getMaxColumnsInSelect();
- // optional uint32 max_cursor_name_length = 23;
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
boolean hasMaxCursorNameLength();
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
int getMaxCursorNameLength();
- // optional uint32 max_logical_lob_size = 24;
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
boolean hasMaxLogicalLobSize();
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
int getMaxLogicalLobSize();
- // optional uint32 max_row_size = 25;
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
boolean hasMaxRowSize();
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
int getMaxRowSize();
- // optional uint32 max_schema_name_length = 26;
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
boolean hasMaxSchemaNameLength();
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
int getMaxSchemaNameLength();
- // optional uint32 max_statement_length = 27;
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
boolean hasMaxStatementLength();
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
int getMaxStatementLength();
- // optional uint32 max_statements = 28;
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
boolean hasMaxStatements();
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
int getMaxStatements();
- // optional uint32 max_table_name_length = 29;
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
boolean hasMaxTableNameLength();
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
int getMaxTableNameLength();
- // optional uint32 max_tables_in_select = 30;
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
boolean hasMaxTablesInSelect();
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
int getMaxTablesInSelect();
- // optional uint32 max_user_name_length = 31;
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
boolean hasMaxUserNameLength();
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
int getMaxUserNameLength();
- // optional .exec.user.NullCollation null_collation = 32;
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
boolean hasNullCollation();
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation();
- // optional bool null_plus_non_null_equals_null = 33;
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
boolean hasNullPlusNonNullEqualsNull();
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
boolean getNullPlusNonNullEqualsNull();
- // repeated string numeric_functions = 34;
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
java.util.List<java.lang.String>
- getNumericFunctionsList();
+ getNumericFunctionsList();
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
int getNumericFunctionsCount();
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
java.lang.String getNumericFunctions(int index);
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
com.google.protobuf.ByteString
getNumericFunctionsBytes(int index);
- // repeated .exec.user.OrderBySupport order_by_support = 35;
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList();
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
int getOrderBySupportCount();
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index);
- // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList();
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
int getOuterJoinSupportCount();
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index);
- // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
boolean hasQuotedIdentifierCasing();
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing();
- // optional bool read_only = 38;
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
boolean hasReadOnly();
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
boolean getReadOnly();
- // optional string schema_term = 39;
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
boolean hasSchemaTerm();
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
java.lang.String getSchemaTerm();
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
com.google.protobuf.ByteString
getSchemaTermBytes();
- // optional string search_escape_string = 40;
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
boolean hasSearchEscapeString();
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
java.lang.String getSearchEscapeString();
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
com.google.protobuf.ByteString
getSearchEscapeStringBytes();
- // optional bool select_for_update_supported = 41;
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
boolean hasSelectForUpdateSupported();
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
boolean getSelectForUpdateSupported();
- // optional string special_characters = 42;
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
boolean hasSpecialCharacters();
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
java.lang.String getSpecialCharacters();
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
com.google.protobuf.ByteString
getSpecialCharactersBytes();
- // repeated string sql_keywords = 43;
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
java.util.List<java.lang.String>
- getSqlKeywordsList();
+ getSqlKeywordsList();
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
int getSqlKeywordsCount();
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
java.lang.String getSqlKeywords(int index);
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
com.google.protobuf.ByteString
getSqlKeywordsBytes(int index);
- // repeated string string_functions = 44;
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
java.util.List<java.lang.String>
- getStringFunctionsList();
+ getStringFunctionsList();
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
int getStringFunctionsCount();
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
java.lang.String getStringFunctions(int index);
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
com.google.protobuf.ByteString
getStringFunctionsBytes(int index);
- // repeated .exec.user.SubQuerySupport subquery_support = 45;
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList();
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
int getSubquerySupportCount();
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index);
- // repeated string system_functions = 46;
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
java.util.List<java.lang.String>
- getSystemFunctionsList();
+ getSystemFunctionsList();
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
int getSystemFunctionsCount();
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
java.lang.String getSystemFunctions(int index);
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
com.google.protobuf.ByteString
getSystemFunctionsBytes(int index);
- // optional string table_term = 47;
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
boolean hasTableTerm();
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
java.lang.String getTableTerm();
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
com.google.protobuf.ByteString
getTableTermBytes();
- // optional bool transaction_supported = 48;
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
boolean hasTransactionSupported();
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
boolean getTransactionSupported();
- // repeated .exec.user.UnionSupport union_support = 49;
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList();
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
int getUnionSupportCount();
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index);
- // optional string current_schema = 50;
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
boolean hasCurrentSchema();
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
java.lang.String getCurrentSchema();
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
com.google.protobuf.ByteString
getCurrentSchemaBytes();
@@ -32990,36 +36801,81 @@ public final class UserProtos {
/**
* Protobuf type {@code exec.user.ServerMeta}
*/
- public static final class ServerMeta extends
- com.google.protobuf.GeneratedMessage
- implements ServerMetaOrBuilder {
+ public static final class ServerMeta extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.ServerMeta)
+ ServerMetaOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ServerMeta.newBuilder() to construct.
- private ServerMeta(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerMeta(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ServerMeta(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ServerMeta defaultInstance;
- public static ServerMeta getDefaultInstance() {
- return defaultInstance;
}
-
- public ServerMeta getDefaultInstanceForType() {
- return defaultInstance;
+ private ServerMeta() {
+ allTablesSelectable_ = false;
+ blobIncludedInMaxRowSize_ = false;
+ catalogAtStart_ = false;
+ catalogSeparator_ = "";
+ catalogTerm_ = "";
+ collateSupport_ = java.util.Collections.emptyList();
+ columnAliasingSupported_ = false;
+ convertSupport_ = java.util.Collections.emptyList();
+ correlationNamesSupport_ = 1;
+ dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ dateTimeLiteralsSupport_ = java.util.Collections.emptyList();
+ groupBySupport_ = 1;
+ identifierCasing_ = 0;
+ identifierQuoteString_ = "";
+ likeEscapeClauseSupported_ = false;
+ maxBinaryLiteralLength_ = 0;
+ maxCatalogNameLength_ = 0;
+ maxCharLiteralLength_ = 0;
+ maxColumnNameLength_ = 0;
+ maxColumnsInGroupBy_ = 0;
+ maxColumnsInOrderBy_ = 0;
+ maxColumnsInSelect_ = 0;
+ maxCursorNameLength_ = 0;
+ maxLogicalLobSize_ = 0;
+ maxRowSize_ = 0;
+ maxSchemaNameLength_ = 0;
+ maxStatementLength_ = 0;
+ maxStatements_ = 0;
+ maxTableNameLength_ = 0;
+ maxTablesInSelect_ = 0;
+ maxUserNameLength_ = 0;
+ nullCollation_ = 0;
+ nullPlusNonNullEqualsNull_ = false;
+ numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ orderBySupport_ = java.util.Collections.emptyList();
+ outerJoinSupport_ = java.util.Collections.emptyList();
+ quotedIdentifierCasing_ = 0;
+ readOnly_ = false;
+ schemaTerm_ = "";
+ searchEscapeString_ = "";
+ selectForUpdateSupported_ = false;
+ specialCharacters_ = "";
+ sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ subquerySupport_ = java.util.Collections.emptyList();
+ systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ tableTerm_ = "";
+ transactionSupported_ = false;
+ unionSupport_ = java.util.Collections.emptyList();
+ currentSchema_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ServerMeta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
@@ -33032,13 +36888,6 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
allTablesSelectable_ = input.readBool();
@@ -33055,26 +36904,29 @@ public final class UserProtos {
break;
}
case 34: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- catalogSeparator_ = input.readBytes();
+ catalogSeparator_ = bs;
break;
}
case 42: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
- catalogTerm_ = input.readBytes();
+ catalogTerm_ = bs;
break;
}
case 48: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.CollateSupport value = org.apache.drill.exec.proto.UserProtos.CollateSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>();
+ collateSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
- collateSupport_.add(value);
+ collateSupport_.add(rawValue);
}
break;
}
@@ -33083,15 +36935,16 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.CollateSupport value = org.apache.drill.exec.proto.UserProtos.CollateSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>();
+ collateSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
- collateSupport_.add(value);
+ collateSupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
@@ -33107,39 +36960,43 @@ public final class UserProtos {
convertSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ConvertSupport>();
mutable_bitField0_ |= 0x00000080;
}
- convertSupport_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ConvertSupport.PARSER, extensionRegistry));
+ convertSupport_.add(
+ input.readMessage(org.apache.drill.exec.proto.UserProtos.ConvertSupport.PARSER, extensionRegistry));
break;
}
case 72: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport value = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(9, rawValue);
} else {
bitField0_ |= 0x00000040;
- correlationNamesSupport_ = value;
+ correlationNamesSupport_ = rawValue;
}
break;
}
case 82: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
dateTimeFunctions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
- dateTimeFunctions_.add(input.readBytes());
+ dateTimeFunctions_.add(bs);
break;
}
case 88: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value = org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(11, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>();
+ dateTimeLiteralsSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000400;
}
- dateTimeLiteralsSupport_.add(value);
+ dateTimeLiteralsSupport_.add(rawValue);
}
break;
}
@@ -33148,15 +37005,16 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value = org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(11, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>();
+ dateTimeLiteralsSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000400;
}
- dateTimeLiteralsSupport_.add(value);
+ dateTimeLiteralsSupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
@@ -33164,29 +37022,32 @@ public final class UserProtos {
}
case 96: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.GroupBySupport value = org.apache.drill.exec.proto.UserProtos.GroupBySupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(12, rawValue);
} else {
bitField0_ |= 0x00000080;
- groupBySupport_ = value;
+ groupBySupport_ = rawValue;
}
break;
}
case 104: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.IdentifierCasing value = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(13, rawValue);
} else {
bitField0_ |= 0x00000100;
- identifierCasing_ = value;
+ identifierCasing_ = rawValue;
}
break;
}
case 114: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
- identifierQuoteString_ = input.readBytes();
+ identifierQuoteString_ = bs;
break;
}
case 120: {
@@ -33276,12 +37137,13 @@ public final class UserProtos {
}
case 256: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.NullCollation value = org.apache.drill.exec.proto.UserProtos.NullCollation.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(32, rawValue);
} else {
bitField0_ |= 0x08000000;
- nullCollation_ = value;
+ nullCollation_ = rawValue;
}
break;
}
@@ -33291,24 +37153,26 @@ public final class UserProtos {
break;
}
case 274: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
numericFunctions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000002;
}
- numericFunctions_.add(input.readBytes());
+ numericFunctions_.add(bs);
break;
}
case 280: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.OrderBySupport value = org.apache.drill.exec.proto.UserProtos.OrderBySupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(35, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
- orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>();
+ orderBySupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00000004;
}
- orderBySupport_.add(value);
+ orderBySupport_.add(rawValue);
}
break;
}
@@ -33317,15 +37181,16 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.OrderBySupport value = org.apache.drill.exec.proto.UserProtos.OrderBySupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(35, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
- orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>();
+ orderBySupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00000004;
}
- orderBySupport_.add(value);
+ orderBySupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
@@ -33333,15 +37198,16 @@ public final class UserProtos {
}
case 288: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value = org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(36, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
- outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>();
+ outerJoinSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00000008;
}
- outerJoinSupport_.add(value);
+ outerJoinSupport_.add(rawValue);
}
break;
}
@@ -33350,15 +37216,16 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value = org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(36, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
- outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>();
+ outerJoinSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00000008;
}
- outerJoinSupport_.add(value);
+ outerJoinSupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
@@ -33366,12 +37233,13 @@ public final class UserProtos {
}
case 296: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.IdentifierCasing value = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(37, rawValue);
} else {
bitField0_ |= 0x20000000;
- quotedIdentifierCasing_ = value;
+ quotedIdentifierCasing_ = rawValue;
}
break;
}
@@ -33381,13 +37249,15 @@ public final class UserProtos {
break;
}
case 314: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x80000000;
- schemaTerm_ = input.readBytes();
+ schemaTerm_ = bs;
break;
}
case 322: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000001;
- searchEscapeString_ = input.readBytes();
+ searchEscapeString_ = bs;
break;
}
case 328: {
@@ -33396,37 +37266,41 @@ public final class UserProtos {
break;
}
case 338: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000004;
- specialCharacters_ = input.readBytes();
+ specialCharacters_ = bs;
break;
}
case 346: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) {
sqlKeywords_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000400;
}
- sqlKeywords_.add(input.readBytes());
+ sqlKeywords_.add(bs);
break;
}
case 354: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000800) == 0x00000800)) {
stringFunctions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000800;
}
- stringFunctions_.add(input.readBytes());
+ stringFunctions_.add(bs);
break;
}
case 360: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.SubQuerySupport value = org.apache.drill.exec.proto.UserProtos.SubQuerySupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(45, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) {
- subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>();
+ subquerySupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00001000;
}
- subquerySupport_.add(value);
+ subquerySupport_.add(rawValue);
}
break;
}
@@ -33435,31 +37309,34 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.SubQuerySupport value = org.apache.drill.exec.proto.UserProtos.SubQuerySupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(45, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) {
- subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>();
+ subquerySupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00001000;
}
- subquerySupport_.add(value);
+ subquerySupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
break;
}
case 370: {
+ com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
systemFunctions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00002000;
}
- systemFunctions_.add(input.readBytes());
+ systemFunctions_.add(bs);
break;
}
case 378: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000008;
- tableTerm_ = input.readBytes();
+ tableTerm_ = bs;
break;
}
case 384: {
@@ -33469,15 +37346,16 @@ public final class UserProtos {
}
case 392: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.UnionSupport value = org.apache.drill.exec.proto.UserProtos.UnionSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(49, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
- unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>();
+ unionSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00010000;
}
- unionSupport_.add(value);
+ unionSupport_.add(rawValue);
}
break;
}
@@ -33486,23 +37364,32 @@ public final class UserProtos {
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.UnionSupport value = org.apache.drill.exec.proto.UserProtos.UnionSupport.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(49, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
- unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>();
+ unionSupport_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField1_ |= 0x00010000;
}
- unionSupport_.add(value);
+ unionSupport_.add(rawValue);
}
}
input.popLimit(oldLimit);
break;
}
case 402: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000020;
- currentSchema_ = input.readBytes();
+ currentSchema_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -33511,7 +37398,7 @@ public final class UserProtos {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
collateSupport_ = java.util.Collections.unmodifiableList(collateSupport_);
@@ -33520,13 +37407,13 @@ public final class UserProtos {
convertSupport_ = java.util.Collections.unmodifiableList(convertSupport_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
- dateTimeFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(dateTimeFunctions_);
+ dateTimeFunctions_ = dateTimeFunctions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
dateTimeLiteralsSupport_ = java.util.Collections.unmodifiableList(dateTimeLiteralsSupport_);
}
if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
- numericFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(numericFunctions_);
+ numericFunctions_ = numericFunctions_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
orderBySupport_ = java.util.Collections.unmodifiableList(orderBySupport_);
@@ -33535,16 +37422,16 @@ public final class UserProtos {
outerJoinSupport_ = java.util.Collections.unmodifiableList(outerJoinSupport_);
}
if (((mutable_bitField1_ & 0x00000400) == 0x00000400)) {
- sqlKeywords_ = new com.google.protobuf.UnmodifiableLazyStringList(sqlKeywords_);
+ sqlKeywords_ = sqlKeywords_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00000800) == 0x00000800)) {
- stringFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(stringFunctions_);
+ stringFunctions_ = stringFunctions_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00001000) == 0x00001000)) {
subquerySupport_ = java.util.Collections.unmodifiableList(subquerySupport_);
}
if (((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
- systemFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(systemFunctions_);
+ systemFunctions_ = systemFunctions_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
unionSupport_ = java.util.Collections.unmodifiableList(unionSupport_);
@@ -33558,121 +37445,103 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.ServerMeta.class, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder.class);
}
- public static com.google.protobuf.Parser<ServerMeta> PARSER =
- new com.google.protobuf.AbstractParser<ServerMeta>() {
- public ServerMeta parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ServerMeta(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ServerMeta> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
private int bitField1_;
- // optional bool all_tables_selectable = 1;
public static final int ALL_TABLES_SELECTABLE_FIELD_NUMBER = 1;
private boolean allTablesSelectable_;
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public boolean hasAllTablesSelectable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public boolean getAllTablesSelectable() {
return allTablesSelectable_;
}
- // optional bool blob_included_in_max_row_size = 2;
public static final int BLOB_INCLUDED_IN_MAX_ROW_SIZE_FIELD_NUMBER = 2;
private boolean blobIncludedInMaxRowSize_;
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public boolean hasBlobIncludedInMaxRowSize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public boolean getBlobIncludedInMaxRowSize() {
return blobIncludedInMaxRowSize_;
}
- // optional bool catalog_at_start = 3;
public static final int CATALOG_AT_START_FIELD_NUMBER = 3;
private boolean catalogAtStart_;
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public boolean hasCatalogAtStart() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public boolean getCatalogAtStart() {
return catalogAtStart_;
}
- // optional string catalog_separator = 4;
public static final int CATALOG_SEPARATOR_FIELD_NUMBER = 4;
- private java.lang.Object catalogSeparator_;
+ private volatile java.lang.Object catalogSeparator_;
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public boolean hasCatalogSeparator() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public java.lang.String getCatalogSeparator() {
java.lang.Object ref = catalogSeparator_;
@@ -33689,11 +37558,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public com.google.protobuf.ByteString
getCatalogSeparatorBytes() {
@@ -33709,25 +37578,24 @@ public final class UserProtos {
}
}
- // optional string catalog_term = 5;
public static final int CATALOG_TERM_FIELD_NUMBER = 5;
- private java.lang.Object catalogTerm_;
+ private volatile java.lang.Object catalogTerm_;
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public boolean hasCatalogTerm() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public java.lang.String getCatalogTerm() {
java.lang.Object ref = catalogTerm_;
@@ -33744,11 +37612,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public com.google.protobuf.ByteString
getCatalogTermBytes() {
@@ -33764,291 +37632,310 @@ public final class UserProtos {
}
}
- // repeated .exec.user.CollateSupport collate_support = 6;
public static final int COLLATE_SUPPORT_FIELD_NUMBER = 6;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> collateSupport_;
+ private java.util.List<java.lang.Integer> collateSupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.CollateSupport> collateSupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.CollateSupport>() {
+ public org.apache.drill.exec.proto.UserProtos.CollateSupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.CollateSupport result = org.apache.drill.exec.proto.UserProtos.CollateSupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.CollateSupport.CS_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList() {
- return collateSupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.CollateSupport>(collateSupport_, collateSupport_converter_);
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public int getCollateSupportCount() {
return collateSupport_.size();
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index) {
- return collateSupport_.get(index);
+ return collateSupport_converter_.convert(collateSupport_.get(index));
}
- // optional bool column_aliasing_supported = 7;
public static final int COLUMN_ALIASING_SUPPORTED_FIELD_NUMBER = 7;
private boolean columnAliasingSupported_;
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public boolean hasColumnAliasingSupported() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public boolean getColumnAliasingSupported() {
return columnAliasingSupported_;
}
- // repeated .exec.user.ConvertSupport convert_support = 8;
public static final int CONVERT_SUPPORT_FIELD_NUMBER = 8;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> convertSupport_;
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> getConvertSupportList() {
return convertSupport_;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>
getConvertSupportOrBuilderList() {
return convertSupport_;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public int getConvertSupportCount() {
return convertSupport_.size();
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index) {
return convertSupport_.get(index);
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder(
int index) {
return convertSupport_.get(index);
}
- // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
public static final int CORRELATION_NAMES_SUPPORT_FIELD_NUMBER = 9;
- private org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport correlationNamesSupport_;
+ private int correlationNamesSupport_;
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public boolean hasCorrelationNamesSupport() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport() {
- return correlationNamesSupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport result = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.valueOf(correlationNamesSupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE : result;
}
- // repeated string date_time_functions = 10;
public static final int DATE_TIME_FUNCTIONS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList dateTimeFunctions_;
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getDateTimeFunctionsList() {
return dateTimeFunctions_;
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public int getDateTimeFunctionsCount() {
return dateTimeFunctions_.size();
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public java.lang.String getDateTimeFunctions(int index) {
return dateTimeFunctions_.get(index);
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public com.google.protobuf.ByteString
getDateTimeFunctionsBytes(int index) {
return dateTimeFunctions_.getByteString(index);
}
- // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
public static final int DATE_TIME_LITERALS_SUPPORT_FIELD_NUMBER = 11;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> dateTimeLiteralsSupport_;
+ private java.util.List<java.lang.Integer> dateTimeLiteralsSupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> dateTimeLiteralsSupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>() {
+ public org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport result = org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.DL_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList() {
- return dateTimeLiteralsSupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(dateTimeLiteralsSupport_, dateTimeLiteralsSupport_converter_);
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public int getDateTimeLiteralsSupportCount() {
return dateTimeLiteralsSupport_.size();
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index) {
- return dateTimeLiteralsSupport_.get(index);
+ return dateTimeLiteralsSupport_converter_.convert(dateTimeLiteralsSupport_.get(index));
}
- // optional .exec.user.GroupBySupport group_by_support = 12;
public static final int GROUP_BY_SUPPORT_FIELD_NUMBER = 12;
- private org.apache.drill.exec.proto.UserProtos.GroupBySupport groupBySupport_;
+ private int groupBySupport_;
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public boolean hasGroupBySupport() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport() {
- return groupBySupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.GroupBySupport result = org.apache.drill.exec.proto.UserProtos.GroupBySupport.valueOf(groupBySupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE : result;
}
- // optional .exec.user.IdentifierCasing identifier_casing = 13;
public static final int IDENTIFIER_CASING_FIELD_NUMBER = 13;
- private org.apache.drill.exec.proto.UserProtos.IdentifierCasing identifierCasing_;
+ private int identifierCasing_;
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public boolean hasIdentifierCasing() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing() {
- return identifierCasing_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.IdentifierCasing result = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(identifierCasing_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN : result;
}
- // optional string identifier_quote_string = 14;
public static final int IDENTIFIER_QUOTE_STRING_FIELD_NUMBER = 14;
- private java.lang.Object identifierQuoteString_;
+ private volatile java.lang.Object identifierQuoteString_;
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public boolean hasIdentifierQuoteString() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public java.lang.String getIdentifierQuoteString() {
java.lang.Object ref = identifierQuoteString_;
@@ -34065,11 +37952,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public com.google.protobuf.ByteString
getIdentifierQuoteStringBytes() {
@@ -34085,643 +37972,644 @@ public final class UserProtos {
}
}
- // optional bool like_escape_clause_supported = 15;
public static final int LIKE_ESCAPE_CLAUSE_SUPPORTED_FIELD_NUMBER = 15;
private boolean likeEscapeClauseSupported_;
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public boolean hasLikeEscapeClauseSupported() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public boolean getLikeEscapeClauseSupported() {
return likeEscapeClauseSupported_;
}
- // optional uint32 max_binary_literal_length = 16;
public static final int MAX_BINARY_LITERAL_LENGTH_FIELD_NUMBER = 16;
private int maxBinaryLiteralLength_;
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public boolean hasMaxBinaryLiteralLength() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public int getMaxBinaryLiteralLength() {
return maxBinaryLiteralLength_;
}
- // optional uint32 max_catalog_name_length = 17;
public static final int MAX_CATALOG_NAME_LENGTH_FIELD_NUMBER = 17;
private int maxCatalogNameLength_;
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public boolean hasMaxCatalogNameLength() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public int getMaxCatalogNameLength() {
return maxCatalogNameLength_;
}
- // optional uint32 max_char_literal_length = 18;
public static final int MAX_CHAR_LITERAL_LENGTH_FIELD_NUMBER = 18;
private int maxCharLiteralLength_;
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public boolean hasMaxCharLiteralLength() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public int getMaxCharLiteralLength() {
return maxCharLiteralLength_;
}
- // optional uint32 max_column_name_length = 19;
public static final int MAX_COLUMN_NAME_LENGTH_FIELD_NUMBER = 19;
private int maxColumnNameLength_;
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public boolean hasMaxColumnNameLength() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public int getMaxColumnNameLength() {
return maxColumnNameLength_;
}
- // optional uint32 max_columns_in_group_by = 20;
public static final int MAX_COLUMNS_IN_GROUP_BY_FIELD_NUMBER = 20;
private int maxColumnsInGroupBy_;
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public boolean hasMaxColumnsInGroupBy() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public int getMaxColumnsInGroupBy() {
return maxColumnsInGroupBy_;
}
- // optional uint32 max_columns_in_order_by = 21;
public static final int MAX_COLUMNS_IN_ORDER_BY_FIELD_NUMBER = 21;
private int maxColumnsInOrderBy_;
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public boolean hasMaxColumnsInOrderBy() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public int getMaxColumnsInOrderBy() {
return maxColumnsInOrderBy_;
}
- // optional uint32 max_columns_in_select = 22;
public static final int MAX_COLUMNS_IN_SELECT_FIELD_NUMBER = 22;
private int maxColumnsInSelect_;
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public boolean hasMaxColumnsInSelect() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public int getMaxColumnsInSelect() {
return maxColumnsInSelect_;
}
- // optional uint32 max_cursor_name_length = 23;
public static final int MAX_CURSOR_NAME_LENGTH_FIELD_NUMBER = 23;
private int maxCursorNameLength_;
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public boolean hasMaxCursorNameLength() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public int getMaxCursorNameLength() {
return maxCursorNameLength_;
}
- // optional uint32 max_logical_lob_size = 24;
public static final int MAX_LOGICAL_LOB_SIZE_FIELD_NUMBER = 24;
private int maxLogicalLobSize_;
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public boolean hasMaxLogicalLobSize() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public int getMaxLogicalLobSize() {
return maxLogicalLobSize_;
}
- // optional uint32 max_row_size = 25;
public static final int MAX_ROW_SIZE_FIELD_NUMBER = 25;
private int maxRowSize_;
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public boolean hasMaxRowSize() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public int getMaxRowSize() {
return maxRowSize_;
}
- // optional uint32 max_schema_name_length = 26;
public static final int MAX_SCHEMA_NAME_LENGTH_FIELD_NUMBER = 26;
private int maxSchemaNameLength_;
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public boolean hasMaxSchemaNameLength() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public int getMaxSchemaNameLength() {
return maxSchemaNameLength_;
}
- // optional uint32 max_statement_length = 27;
public static final int MAX_STATEMENT_LENGTH_FIELD_NUMBER = 27;
private int maxStatementLength_;
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public boolean hasMaxStatementLength() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public int getMaxStatementLength() {
return maxStatementLength_;
}
- // optional uint32 max_statements = 28;
public static final int MAX_STATEMENTS_FIELD_NUMBER = 28;
private int maxStatements_;
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public boolean hasMaxStatements() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public int getMaxStatements() {
return maxStatements_;
}
- // optional uint32 max_table_name_length = 29;
public static final int MAX_TABLE_NAME_LENGTH_FIELD_NUMBER = 29;
private int maxTableNameLength_;
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public boolean hasMaxTableNameLength() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public int getMaxTableNameLength() {
return maxTableNameLength_;
}
- // optional uint32 max_tables_in_select = 30;
public static final int MAX_TABLES_IN_SELECT_FIELD_NUMBER = 30;
private int maxTablesInSelect_;
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public boolean hasMaxTablesInSelect() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public int getMaxTablesInSelect() {
return maxTablesInSelect_;
}
- // optional uint32 max_user_name_length = 31;
public static final int MAX_USER_NAME_LENGTH_FIELD_NUMBER = 31;
private int maxUserNameLength_;
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public boolean hasMaxUserNameLength() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public int getMaxUserNameLength() {
return maxUserNameLength_;
}
- // optional .exec.user.NullCollation null_collation = 32;
public static final int NULL_COLLATION_FIELD_NUMBER = 32;
- private org.apache.drill.exec.proto.UserProtos.NullCollation nullCollation_;
+ private int nullCollation_;
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public boolean hasNullCollation() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation() {
- return nullCollation_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.NullCollation result = org.apache.drill.exec.proto.UserProtos.NullCollation.valueOf(nullCollation_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN : result;
}
- // optional bool null_plus_non_null_equals_null = 33;
public static final int NULL_PLUS_NON_NULL_EQUALS_NULL_FIELD_NUMBER = 33;
private boolean nullPlusNonNullEqualsNull_;
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public boolean hasNullPlusNonNullEqualsNull() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public boolean getNullPlusNonNullEqualsNull() {
return nullPlusNonNullEqualsNull_;
}
- // repeated string numeric_functions = 34;
public static final int NUMERIC_FUNCTIONS_FIELD_NUMBER = 34;
private com.google.protobuf.LazyStringList numericFunctions_;
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getNumericFunctionsList() {
return numericFunctions_;
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public int getNumericFunctionsCount() {
return numericFunctions_.size();
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public java.lang.String getNumericFunctions(int index) {
return numericFunctions_.get(index);
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public com.google.protobuf.ByteString
getNumericFunctionsBytes(int index) {
return numericFunctions_.getByteString(index);
}
- // repeated .exec.user.OrderBySupport order_by_support = 35;
public static final int ORDER_BY_SUPPORT_FIELD_NUMBER = 35;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> orderBySupport_;
+ private java.util.List<java.lang.Integer> orderBySupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OrderBySupport> orderBySupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OrderBySupport>() {
+ public org.apache.drill.exec.proto.UserProtos.OrderBySupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.OrderBySupport result = org.apache.drill.exec.proto.UserProtos.OrderBySupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.OrderBySupport.OB_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList() {
- return orderBySupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OrderBySupport>(orderBySupport_, orderBySupport_converter_);
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public int getOrderBySupportCount() {
return orderBySupport_.size();
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index) {
- return orderBySupport_.get(index);
+ return orderBySupport_converter_.convert(orderBySupport_.get(index));
}
- // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
public static final int OUTER_JOIN_SUPPORT_FIELD_NUMBER = 36;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> outerJoinSupport_;
+ private java.util.List<java.lang.Integer> outerJoinSupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> outerJoinSupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>() {
+ public org.apache.drill.exec.proto.UserProtos.OuterJoinSupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.OuterJoinSupport result = org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.OJ_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList() {
- return outerJoinSupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(outerJoinSupport_, outerJoinSupport_converter_);
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public int getOuterJoinSupportCount() {
return outerJoinSupport_.size();
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index) {
- return outerJoinSupport_.get(index);
+ return outerJoinSupport_converter_.convert(outerJoinSupport_.get(index));
}
- // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
public static final int QUOTED_IDENTIFIER_CASING_FIELD_NUMBER = 37;
- private org.apache.drill.exec.proto.UserProtos.IdentifierCasing quotedIdentifierCasing_;
+ private int quotedIdentifierCasing_;
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public boolean hasQuotedIdentifierCasing() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing() {
- return quotedIdentifierCasing_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.IdentifierCasing result = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(quotedIdentifierCasing_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN : result;
}
- // optional bool read_only = 38;
public static final int READ_ONLY_FIELD_NUMBER = 38;
private boolean readOnly_;
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public boolean getReadOnly() {
return readOnly_;
}
- // optional string schema_term = 39;
public static final int SCHEMA_TERM_FIELD_NUMBER = 39;
- private java.lang.Object schemaTerm_;
+ private volatile java.lang.Object schemaTerm_;
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public boolean hasSchemaTerm() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public java.lang.String getSchemaTerm() {
java.lang.Object ref = schemaTerm_;
@@ -34738,11 +38626,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public com.google.protobuf.ByteString
getSchemaTermBytes() {
@@ -34758,25 +38646,24 @@ public final class UserProtos {
}
}
- // optional string search_escape_string = 40;
public static final int SEARCH_ESCAPE_STRING_FIELD_NUMBER = 40;
- private java.lang.Object searchEscapeString_;
+ private volatile java.lang.Object searchEscapeString_;
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public boolean hasSearchEscapeString() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public java.lang.String getSearchEscapeString() {
java.lang.Object ref = searchEscapeString_;
@@ -34793,11 +38680,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public com.google.protobuf.ByteString
getSearchEscapeStringBytes() {
@@ -34813,49 +38700,47 @@ public final class UserProtos {
}
}
- // optional bool select_for_update_supported = 41;
public static final int SELECT_FOR_UPDATE_SUPPORTED_FIELD_NUMBER = 41;
private boolean selectForUpdateSupported_;
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public boolean hasSelectForUpdateSupported() {
return ((bitField1_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public boolean getSelectForUpdateSupported() {
return selectForUpdateSupported_;
}
- // optional string special_characters = 42;
public static final int SPECIAL_CHARACTERS_FIELD_NUMBER = 42;
- private java.lang.Object specialCharacters_;
+ private volatile java.lang.Object specialCharacters_;
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public boolean hasSpecialCharacters() {
return ((bitField1_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public java.lang.String getSpecialCharacters() {
java.lang.Object ref = specialCharacters_;
@@ -34872,11 +38757,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public com.google.protobuf.ByteString
getSpecialCharactersBytes() {
@@ -34892,197 +38777,203 @@ public final class UserProtos {
}
}
- // repeated string sql_keywords = 43;
public static final int SQL_KEYWORDS_FIELD_NUMBER = 43;
private com.google.protobuf.LazyStringList sqlKeywords_;
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getSqlKeywordsList() {
return sqlKeywords_;
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public int getSqlKeywordsCount() {
return sqlKeywords_.size();
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public java.lang.String getSqlKeywords(int index) {
return sqlKeywords_.get(index);
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public com.google.protobuf.ByteString
getSqlKeywordsBytes(int index) {
return sqlKeywords_.getByteString(index);
}
- // repeated string string_functions = 44;
public static final int STRING_FUNCTIONS_FIELD_NUMBER = 44;
private com.google.protobuf.LazyStringList stringFunctions_;
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getStringFunctionsList() {
return stringFunctions_;
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public int getStringFunctionsCount() {
return stringFunctions_.size();
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public java.lang.String getStringFunctions(int index) {
return stringFunctions_.get(index);
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public com.google.protobuf.ByteString
getStringFunctionsBytes(int index) {
return stringFunctions_.getByteString(index);
}
- // repeated .exec.user.SubQuerySupport subquery_support = 45;
public static final int SUBQUERY_SUPPORT_FIELD_NUMBER = 45;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> subquerySupport_;
+ private java.util.List<java.lang.Integer> subquerySupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.SubQuerySupport> subquerySupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.SubQuerySupport>() {
+ public org.apache.drill.exec.proto.UserProtos.SubQuerySupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.SubQuerySupport result = org.apache.drill.exec.proto.UserProtos.SubQuerySupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.SubQuerySupport.SQ_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList() {
- return subquerySupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(subquerySupport_, subquerySupport_converter_);
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public int getSubquerySupportCount() {
return subquerySupport_.size();
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index) {
- return subquerySupport_.get(index);
+ return subquerySupport_converter_.convert(subquerySupport_.get(index));
}
- // repeated string system_functions = 46;
public static final int SYSTEM_FUNCTIONS_FIELD_NUMBER = 46;
private com.google.protobuf.LazyStringList systemFunctions_;
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getSystemFunctionsList() {
return systemFunctions_;
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public int getSystemFunctionsCount() {
return systemFunctions_.size();
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public java.lang.String getSystemFunctions(int index) {
return systemFunctions_.get(index);
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public com.google.protobuf.ByteString
getSystemFunctionsBytes(int index) {
return systemFunctions_.getByteString(index);
}
- // optional string table_term = 47;
public static final int TABLE_TERM_FIELD_NUMBER = 47;
- private java.lang.Object tableTerm_;
+ private volatile java.lang.Object tableTerm_;
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public boolean hasTableTerm() {
return ((bitField1_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public java.lang.String getTableTerm() {
java.lang.Object ref = tableTerm_;
@@ -35099,11 +38990,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public com.google.protobuf.ByteString
getTableTermBytes() {
@@ -35119,83 +39010,91 @@ public final class UserProtos {
}
}
- // optional bool transaction_supported = 48;
public static final int TRANSACTION_SUPPORTED_FIELD_NUMBER = 48;
private boolean transactionSupported_;
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public boolean hasTransactionSupported() {
return ((bitField1_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public boolean getTransactionSupported() {
return transactionSupported_;
}
- // repeated .exec.user.UnionSupport union_support = 49;
public static final int UNION_SUPPORT_FIELD_NUMBER = 49;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> unionSupport_;
+ private java.util.List<java.lang.Integer> unionSupport_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.UnionSupport> unionSupport_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.UnionSupport>() {
+ public org.apache.drill.exec.proto.UserProtos.UnionSupport convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.UnionSupport result = org.apache.drill.exec.proto.UserProtos.UnionSupport.valueOf(from);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.UnionSupport.U_UNKNOWN : result;
+ }
+ };
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList() {
- return unionSupport_;
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.UnionSupport>(unionSupport_, unionSupport_converter_);
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public int getUnionSupportCount() {
return unionSupport_.size();
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index) {
- return unionSupport_.get(index);
+ return unionSupport_converter_.convert(unionSupport_.get(index));
}
- // optional string current_schema = 50;
public static final int CURRENT_SCHEMA_FIELD_NUMBER = 50;
- private java.lang.Object currentSchema_;
+ private volatile java.lang.Object currentSchema_;
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public boolean hasCurrentSchema() {
return ((bitField1_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public java.lang.String getCurrentSchema() {
java.lang.Object ref = currentSchema_;
@@ -35212,11 +39111,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public com.google.protobuf.ByteString
getCurrentSchemaBytes() {
@@ -35232,62 +39131,12 @@ public final class UserProtos {
}
}
- private void initFields() {
- allTablesSelectable_ = false;
- blobIncludedInMaxRowSize_ = false;
- catalogAtStart_ = false;
- catalogSeparator_ = "";
- catalogTerm_ = "";
- collateSupport_ = java.util.Collections.emptyList();
- columnAliasingSupported_ = false;
- convertSupport_ = java.util.Collections.emptyList();
- correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE;
- dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- dateTimeLiteralsSupport_ = java.util.Collections.emptyList();
- groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE;
- identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
- identifierQuoteString_ = "";
- likeEscapeClauseSupported_ = false;
- maxBinaryLiteralLength_ = 0;
- maxCatalogNameLength_ = 0;
- maxCharLiteralLength_ = 0;
- maxColumnNameLength_ = 0;
- maxColumnsInGroupBy_ = 0;
- maxColumnsInOrderBy_ = 0;
- maxColumnsInSelect_ = 0;
- maxCursorNameLength_ = 0;
- maxLogicalLobSize_ = 0;
- maxRowSize_ = 0;
- maxSchemaNameLength_ = 0;
- maxStatementLength_ = 0;
- maxStatements_ = 0;
- maxTableNameLength_ = 0;
- maxTablesInSelect_ = 0;
- maxUserNameLength_ = 0;
- nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN;
- nullPlusNonNullEqualsNull_ = false;
- numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- orderBySupport_ = java.util.Collections.emptyList();
- outerJoinSupport_ = java.util.Collections.emptyList();
- quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
- readOnly_ = false;
- schemaTerm_ = "";
- searchEscapeString_ = "";
- selectForUpdateSupported_ = false;
- specialCharacters_ = "";
- sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- subquerySupport_ = java.util.Collections.emptyList();
- systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- tableTerm_ = "";
- transactionSupported_ = false;
- unionSupport_ = java.util.Collections.emptyList();
- currentSchema_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
for (int i = 0; i < getConvertSupportCount(); i++) {
if (!getConvertSupport(i).isInitialized()) {
@@ -35299,9 +39148,9 @@ public final class UserProtos {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, allTablesSelectable_);
}
@@ -35312,13 +39161,13 @@ public final class UserProtos {
output.writeBool(3, catalogAtStart_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getCatalogSeparatorBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, catalogSeparator_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getCatalogTermBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, catalogTerm_);
}
for (int i = 0; i < collateSupport_.size(); i++) {
- output.writeEnum(6, collateSupport_.get(i).getNumber());
+ output.writeEnum(6, collateSupport_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(7, columnAliasingSupported_);
@@ -35327,22 +39176,22 @@ public final class UserProtos {
output.writeMessage(8, convertSupport_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeEnum(9, correlationNamesSupport_.getNumber());
+ output.writeEnum(9, correlationNamesSupport_);
}
for (int i = 0; i < dateTimeFunctions_.size(); i++) {
- output.writeBytes(10, dateTimeFunctions_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, dateTimeFunctions_.getRaw(i));
}
for (int i = 0; i < dateTimeLiteralsSupport_.size(); i++) {
- output.writeEnum(11, dateTimeLiteralsSupport_.get(i).getNumber());
+ output.writeEnum(11, dateTimeLiteralsSupport_.get(i));
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeEnum(12, groupBySupport_.getNumber());
+ output.writeEnum(12, groupBySupport_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeEnum(13, identifierCasing_.getNumber());
+ output.writeEnum(13, identifierCasing_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBytes(14, getIdentifierQuoteStringBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, identifierQuoteString_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBool(15, likeEscapeClauseSupported_);
@@ -35396,68 +39245,68 @@ public final class UserProtos {
output.writeUInt32(31, maxUserNameLength_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
- output.writeEnum(32, nullCollation_.getNumber());
+ output.writeEnum(32, nullCollation_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
output.writeBool(33, nullPlusNonNullEqualsNull_);
}
for (int i = 0; i < numericFunctions_.size(); i++) {
- output.writeBytes(34, numericFunctions_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 34, numericFunctions_.getRaw(i));
}
for (int i = 0; i < orderBySupport_.size(); i++) {
- output.writeEnum(35, orderBySupport_.get(i).getNumber());
+ output.writeEnum(35, orderBySupport_.get(i));
}
for (int i = 0; i < outerJoinSupport_.size(); i++) {
- output.writeEnum(36, outerJoinSupport_.get(i).getNumber());
+ output.writeEnum(36, outerJoinSupport_.get(i));
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
- output.writeEnum(37, quotedIdentifierCasing_.getNumber());
+ output.writeEnum(37, quotedIdentifierCasing_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
output.writeBool(38, readOnly_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
- output.writeBytes(39, getSchemaTermBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 39, schemaTerm_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(40, getSearchEscapeStringBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 40, searchEscapeString_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
output.writeBool(41, selectForUpdateSupported_);
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(42, getSpecialCharactersBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 42, specialCharacters_);
}
for (int i = 0; i < sqlKeywords_.size(); i++) {
- output.writeBytes(43, sqlKeywords_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 43, sqlKeywords_.getRaw(i));
}
for (int i = 0; i < stringFunctions_.size(); i++) {
- output.writeBytes(44, stringFunctions_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 44, stringFunctions_.getRaw(i));
}
for (int i = 0; i < subquerySupport_.size(); i++) {
- output.writeEnum(45, subquerySupport_.get(i).getNumber());
+ output.writeEnum(45, subquerySupport_.get(i));
}
for (int i = 0; i < systemFunctions_.size(); i++) {
- output.writeBytes(46, systemFunctions_.getByteString(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 46, systemFunctions_.getRaw(i));
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(47, getTableTermBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 47, tableTerm_);
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
output.writeBool(48, transactionSupported_);
}
for (int i = 0; i < unionSupport_.size(); i++) {
- output.writeEnum(49, unionSupport_.get(i).getNumber());
+ output.writeEnum(49, unionSupport_.get(i));
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(50, getCurrentSchemaBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 50, currentSchema_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -35474,18 +39323,16 @@ public final class UserProtos {
.computeBoolSize(3, catalogAtStart_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getCatalogSeparatorBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, catalogSeparator_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getCatalogTermBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, catalogTerm_);
}
{
int dataSize = 0;
for (int i = 0; i < collateSupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(collateSupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(collateSupport_.get(i));
}
size += dataSize;
size += 1 * collateSupport_.size();
@@ -35500,13 +39347,12 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(9, correlationNamesSupport_.getNumber());
+ .computeEnumSize(9, correlationNamesSupport_);
}
{
int dataSize = 0;
for (int i = 0; i < dateTimeFunctions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(dateTimeFunctions_.getByteString(i));
+ dataSize += computeStringSizeNoTag(dateTimeFunctions_.getRaw(i));
}
size += dataSize;
size += 1 * getDateTimeFunctionsList().size();
@@ -35515,22 +39361,21 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < dateTimeLiteralsSupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(dateTimeLiteralsSupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(dateTimeLiteralsSupport_.get(i));
}
size += dataSize;
size += 1 * dateTimeLiteralsSupport_.size();
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(12, groupBySupport_.getNumber());
+ .computeEnumSize(12, groupBySupport_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(13, identifierCasing_.getNumber());
+ .computeEnumSize(13, identifierCasing_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(14, getIdentifierQuoteStringBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, identifierQuoteString_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
@@ -35602,7 +39447,7 @@ public final class UserProtos {
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(32, nullCollation_.getNumber());
+ .computeEnumSize(32, nullCollation_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
size += com.google.protobuf.CodedOutputStream
@@ -35611,8 +39456,7 @@ public final class UserProtos {
{
int dataSize = 0;
for (int i = 0; i < numericFunctions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(numericFunctions_.getByteString(i));
+ dataSize += computeStringSizeNoTag(numericFunctions_.getRaw(i));
}
size += dataSize;
size += 2 * getNumericFunctionsList().size();
@@ -35621,7 +39465,7 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < orderBySupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(orderBySupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(orderBySupport_.get(i));
}
size += dataSize;
size += 2 * orderBySupport_.size();
@@ -35630,40 +39474,36 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < outerJoinSupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(outerJoinSupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(outerJoinSupport_.get(i));
}
size += dataSize;
size += 2 * outerJoinSupport_.size();
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(37, quotedIdentifierCasing_.getNumber());
+ .computeEnumSize(37, quotedIdentifierCasing_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(38, readOnly_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(39, getSchemaTermBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, schemaTerm_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(40, getSearchEscapeStringBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, searchEscapeString_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(41, selectForUpdateSupported_);
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(42, getSpecialCharactersBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, specialCharacters_);
}
{
int dataSize = 0;
for (int i = 0; i < sqlKeywords_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(sqlKeywords_.getByteString(i));
+ dataSize += computeStringSizeNoTag(sqlKeywords_.getRaw(i));
}
size += dataSize;
size += 2 * getSqlKeywordsList().size();
@@ -35671,8 +39511,7 @@ public final class UserProtos {
{
int dataSize = 0;
for (int i = 0; i < stringFunctions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(stringFunctions_.getByteString(i));
+ dataSize += computeStringSizeNoTag(stringFunctions_.getRaw(i));
}
size += dataSize;
size += 2 * getStringFunctionsList().size();
@@ -35681,7 +39520,7 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < subquerySupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(subquerySupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(subquerySupport_.get(i));
}
size += dataSize;
size += 2 * subquerySupport_.size();
@@ -35689,15 +39528,13 @@ public final class UserProtos {
{
int dataSize = 0;
for (int i = 0; i < systemFunctions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(systemFunctions_.getByteString(i));
+ dataSize += computeStringSizeNoTag(systemFunctions_.getRaw(i));
}
size += dataSize;
size += 2 * getSystemFunctionsList().size();
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(47, getTableTermBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, tableTerm_);
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
@@ -35707,27 +39544,469 @@ public final class UserProtos {
int dataSize = 0;
for (int i = 0; i < unionSupport_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(unionSupport_.get(i).getNumber());
+ .computeEnumSizeNoTag(unionSupport_.get(i));
}
size += dataSize;
size += 2 * unionSupport_.size();
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(50, getCurrentSchemaBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, currentSchema_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ServerMeta)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.ServerMeta other = (org.apache.drill.exec.proto.UserProtos.ServerMeta) obj;
+
+ boolean result = true;
+ result = result && (hasAllTablesSelectable() == other.hasAllTablesSelectable());
+ if (hasAllTablesSelectable()) {
+ result = result && (getAllTablesSelectable()
+ == other.getAllTablesSelectable());
+ }
+ result = result && (hasBlobIncludedInMaxRowSize() == other.hasBlobIncludedInMaxRowSize());
+ if (hasBlobIncludedInMaxRowSize()) {
+ result = result && (getBlobIncludedInMaxRowSize()
+ == other.getBlobIncludedInMaxRowSize());
+ }
+ result = result && (hasCatalogAtStart() == other.hasCatalogAtStart());
+ if (hasCatalogAtStart()) {
+ result = result && (getCatalogAtStart()
+ == other.getCatalogAtStart());
+ }
+ result = result && (hasCatalogSeparator() == other.hasCatalogSeparator());
+ if (hasCatalogSeparator()) {
+ result = result && getCatalogSeparator()
+ .equals(other.getCatalogSeparator());
+ }
+ result = result && (hasCatalogTerm() == other.hasCatalogTerm());
+ if (hasCatalogTerm()) {
+ result = result && getCatalogTerm()
+ .equals(other.getCatalogTerm());
+ }
+ result = result && collateSupport_.equals(other.collateSupport_);
+ result = result && (hasColumnAliasingSupported() == other.hasColumnAliasingSupported());
+ if (hasColumnAliasingSupported()) {
+ result = result && (getColumnAliasingSupported()
+ == other.getColumnAliasingSupported());
+ }
+ result = result && getConvertSupportList()
+ .equals(other.getConvertSupportList());
+ result = result && (hasCorrelationNamesSupport() == other.hasCorrelationNamesSupport());
+ if (hasCorrelationNamesSupport()) {
+ result = result && correlationNamesSupport_ == other.correlationNamesSupport_;
+ }
+ result = result && getDateTimeFunctionsList()
+ .equals(other.getDateTimeFunctionsList());
+ result = result && dateTimeLiteralsSupport_.equals(other.dateTimeLiteralsSupport_);
+ result = result && (hasGroupBySupport() == other.hasGroupBySupport());
+ if (hasGroupBySupport()) {
+ result = result && groupBySupport_ == other.groupBySupport_;
+ }
+ result = result && (hasIdentifierCasing() == other.hasIdentifierCasing());
+ if (hasIdentifierCasing()) {
+ result = result && identifierCasing_ == other.identifierCasing_;
+ }
+ result = result && (hasIdentifierQuoteString() == other.hasIdentifierQuoteString());
+ if (hasIdentifierQuoteString()) {
+ result = result && getIdentifierQuoteString()
+ .equals(other.getIdentifierQuoteString());
+ }
+ result = result && (hasLikeEscapeClauseSupported() == other.hasLikeEscapeClauseSupported());
+ if (hasLikeEscapeClauseSupported()) {
+ result = result && (getLikeEscapeClauseSupported()
+ == other.getLikeEscapeClauseSupported());
+ }
+ result = result && (hasMaxBinaryLiteralLength() == other.hasMaxBinaryLiteralLength());
+ if (hasMaxBinaryLiteralLength()) {
+ result = result && (getMaxBinaryLiteralLength()
+ == other.getMaxBinaryLiteralLength());
+ }
+ result = result && (hasMaxCatalogNameLength() == other.hasMaxCatalogNameLength());
+ if (hasMaxCatalogNameLength()) {
+ result = result && (getMaxCatalogNameLength()
+ == other.getMaxCatalogNameLength());
+ }
+ result = result && (hasMaxCharLiteralLength() == other.hasMaxCharLiteralLength());
+ if (hasMaxCharLiteralLength()) {
+ result = result && (getMaxCharLiteralLength()
+ == other.getMaxCharLiteralLength());
+ }
+ result = result && (hasMaxColumnNameLength() == other.hasMaxColumnNameLength());
+ if (hasMaxColumnNameLength()) {
+ result = result && (getMaxColumnNameLength()
+ == other.getMaxColumnNameLength());
+ }
+ result = result && (hasMaxColumnsInGroupBy() == other.hasMaxColumnsInGroupBy());
+ if (hasMaxColumnsInGroupBy()) {
+ result = result && (getMaxColumnsInGroupBy()
+ == other.getMaxColumnsInGroupBy());
+ }
+ result = result && (hasMaxColumnsInOrderBy() == other.hasMaxColumnsInOrderBy());
+ if (hasMaxColumnsInOrderBy()) {
+ result = result && (getMaxColumnsInOrderBy()
+ == other.getMaxColumnsInOrderBy());
+ }
+ result = result && (hasMaxColumnsInSelect() == other.hasMaxColumnsInSelect());
+ if (hasMaxColumnsInSelect()) {
+ result = result && (getMaxColumnsInSelect()
+ == other.getMaxColumnsInSelect());
+ }
+ result = result && (hasMaxCursorNameLength() == other.hasMaxCursorNameLength());
+ if (hasMaxCursorNameLength()) {
+ result = result && (getMaxCursorNameLength()
+ == other.getMaxCursorNameLength());
+ }
+ result = result && (hasMaxLogicalLobSize() == other.hasMaxLogicalLobSize());
+ if (hasMaxLogicalLobSize()) {
+ result = result && (getMaxLogicalLobSize()
+ == other.getMaxLogicalLobSize());
+ }
+ result = result && (hasMaxRowSize() == other.hasMaxRowSize());
+ if (hasMaxRowSize()) {
+ result = result && (getMaxRowSize()
+ == other.getMaxRowSize());
+ }
+ result = result && (hasMaxSchemaNameLength() == other.hasMaxSchemaNameLength());
+ if (hasMaxSchemaNameLength()) {
+ result = result && (getMaxSchemaNameLength()
+ == other.getMaxSchemaNameLength());
+ }
+ result = result && (hasMaxStatementLength() == other.hasMaxStatementLength());
+ if (hasMaxStatementLength()) {
+ result = result && (getMaxStatementLength()
+ == other.getMaxStatementLength());
+ }
+ result = result && (hasMaxStatements() == other.hasMaxStatements());
+ if (hasMaxStatements()) {
+ result = result && (getMaxStatements()
+ == other.getMaxStatements());
+ }
+ result = result && (hasMaxTableNameLength() == other.hasMaxTableNameLength());
+ if (hasMaxTableNameLength()) {
+ result = result && (getMaxTableNameLength()
+ == other.getMaxTableNameLength());
+ }
+ result = result && (hasMaxTablesInSelect() == other.hasMaxTablesInSelect());
+ if (hasMaxTablesInSelect()) {
+ result = result && (getMaxTablesInSelect()
+ == other.getMaxTablesInSelect());
+ }
+ result = result && (hasMaxUserNameLength() == other.hasMaxUserNameLength());
+ if (hasMaxUserNameLength()) {
+ result = result && (getMaxUserNameLength()
+ == other.getMaxUserNameLength());
+ }
+ result = result && (hasNullCollation() == other.hasNullCollation());
+ if (hasNullCollation()) {
+ result = result && nullCollation_ == other.nullCollation_;
+ }
+ result = result && (hasNullPlusNonNullEqualsNull() == other.hasNullPlusNonNullEqualsNull());
+ if (hasNullPlusNonNullEqualsNull()) {
+ result = result && (getNullPlusNonNullEqualsNull()
+ == other.getNullPlusNonNullEqualsNull());
+ }
+ result = result && getNumericFunctionsList()
+ .equals(other.getNumericFunctionsList());
+ result = result && orderBySupport_.equals(other.orderBySupport_);
+ result = result && outerJoinSupport_.equals(other.outerJoinSupport_);
+ result = result && (hasQuotedIdentifierCasing() == other.hasQuotedIdentifierCasing());
+ if (hasQuotedIdentifierCasing()) {
+ result = result && quotedIdentifierCasing_ == other.quotedIdentifierCasing_;
+ }
+ result = result && (hasReadOnly() == other.hasReadOnly());
+ if (hasReadOnly()) {
+ result = result && (getReadOnly()
+ == other.getReadOnly());
+ }
+ result = result && (hasSchemaTerm() == other.hasSchemaTerm());
+ if (hasSchemaTerm()) {
+ result = result && getSchemaTerm()
+ .equals(other.getSchemaTerm());
+ }
+ result = result && (hasSearchEscapeString() == other.hasSearchEscapeString());
+ if (hasSearchEscapeString()) {
+ result = result && getSearchEscapeString()
+ .equals(other.getSearchEscapeString());
+ }
+ result = result && (hasSelectForUpdateSupported() == other.hasSelectForUpdateSupported());
+ if (hasSelectForUpdateSupported()) {
+ result = result && (getSelectForUpdateSupported()
+ == other.getSelectForUpdateSupported());
+ }
+ result = result && (hasSpecialCharacters() == other.hasSpecialCharacters());
+ if (hasSpecialCharacters()) {
+ result = result && getSpecialCharacters()
+ .equals(other.getSpecialCharacters());
+ }
+ result = result && getSqlKeywordsList()
+ .equals(other.getSqlKeywordsList());
+ result = result && getStringFunctionsList()
+ .equals(other.getStringFunctionsList());
+ result = result && subquerySupport_.equals(other.subquerySupport_);
+ result = result && getSystemFunctionsList()
+ .equals(other.getSystemFunctionsList());
+ result = result && (hasTableTerm() == other.hasTableTerm());
+ if (hasTableTerm()) {
+ result = result && getTableTerm()
+ .equals(other.getTableTerm());
+ }
+ result = result && (hasTransactionSupported() == other.hasTransactionSupported());
+ if (hasTransactionSupported()) {
+ result = result && (getTransactionSupported()
+ == other.getTransactionSupported());
+ }
+ result = result && unionSupport_.equals(other.unionSupport_);
+ result = result && (hasCurrentSchema() == other.hasCurrentSchema());
+ if (hasCurrentSchema()) {
+ result = result && getCurrentSchema()
+ .equals(other.getCurrentSchema());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAllTablesSelectable()) {
+ hash = (37 * hash) + ALL_TABLES_SELECTABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAllTablesSelectable());
+ }
+ if (hasBlobIncludedInMaxRowSize()) {
+ hash = (37 * hash) + BLOB_INCLUDED_IN_MAX_ROW_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBlobIncludedInMaxRowSize());
+ }
+ if (hasCatalogAtStart()) {
+ hash = (37 * hash) + CATALOG_AT_START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCatalogAtStart());
+ }
+ if (hasCatalogSeparator()) {
+ hash = (37 * hash) + CATALOG_SEPARATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogSeparator().hashCode();
+ }
+ if (hasCatalogTerm()) {
+ hash = (37 * hash) + CATALOG_TERM_FIELD_NUMBER;
+ hash = (53 * hash) + getCatalogTerm().hashCode();
+ }
+ if (getCollateSupportCount() > 0) {
+ hash = (37 * hash) + COLLATE_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + collateSupport_.hashCode();
+ }
+ if (hasColumnAliasingSupported()) {
+ hash = (37 * hash) + COLUMN_ALIASING_SUPPORTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getColumnAliasingSupported());
+ }
+ if (getConvertSupportCount() > 0) {
+ hash = (37 * hash) + CONVERT_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + getConvertSupportList().hashCode();
+ }
+ if (hasCorrelationNamesSupport()) {
+ hash = (37 * hash) + CORRELATION_NAMES_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + correlationNamesSupport_;
+ }
+ if (getDateTimeFunctionsCount() > 0) {
+ hash = (37 * hash) + DATE_TIME_FUNCTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDateTimeFunctionsList().hashCode();
+ }
+ if (getDateTimeLiteralsSupportCount() > 0) {
+ hash = (37 * hash) + DATE_TIME_LITERALS_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + dateTimeLiteralsSupport_.hashCode();
+ }
+ if (hasGroupBySupport()) {
+ hash = (37 * hash) + GROUP_BY_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + groupBySupport_;
+ }
+ if (hasIdentifierCasing()) {
+ hash = (37 * hash) + IDENTIFIER_CASING_FIELD_NUMBER;
+ hash = (53 * hash) + identifierCasing_;
+ }
+ if (hasIdentifierQuoteString()) {
+ hash = (37 * hash) + IDENTIFIER_QUOTE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getIdentifierQuoteString().hashCode();
+ }
+ if (hasLikeEscapeClauseSupported()) {
+ hash = (37 * hash) + LIKE_ESCAPE_CLAUSE_SUPPORTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLikeEscapeClauseSupported());
+ }
+ if (hasMaxBinaryLiteralLength()) {
+ hash = (37 * hash) + MAX_BINARY_LITERAL_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxBinaryLiteralLength();
+ }
+ if (hasMaxCatalogNameLength()) {
+ hash = (37 * hash) + MAX_CATALOG_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxCatalogNameLength();
+ }
+ if (hasMaxCharLiteralLength()) {
+ hash = (37 * hash) + MAX_CHAR_LITERAL_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxCharLiteralLength();
+ }
+ if (hasMaxColumnNameLength()) {
+ hash = (37 * hash) + MAX_COLUMN_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxColumnNameLength();
+ }
+ if (hasMaxColumnsInGroupBy()) {
+ hash = (37 * hash) + MAX_COLUMNS_IN_GROUP_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxColumnsInGroupBy();
+ }
+ if (hasMaxColumnsInOrderBy()) {
+ hash = (37 * hash) + MAX_COLUMNS_IN_ORDER_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxColumnsInOrderBy();
+ }
+ if (hasMaxColumnsInSelect()) {
+ hash = (37 * hash) + MAX_COLUMNS_IN_SELECT_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxColumnsInSelect();
+ }
+ if (hasMaxCursorNameLength()) {
+ hash = (37 * hash) + MAX_CURSOR_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxCursorNameLength();
+ }
+ if (hasMaxLogicalLobSize()) {
+ hash = (37 * hash) + MAX_LOGICAL_LOB_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxLogicalLobSize();
+ }
+ if (hasMaxRowSize()) {
+ hash = (37 * hash) + MAX_ROW_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxRowSize();
+ }
+ if (hasMaxSchemaNameLength()) {
+ hash = (37 * hash) + MAX_SCHEMA_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxSchemaNameLength();
+ }
+ if (hasMaxStatementLength()) {
+ hash = (37 * hash) + MAX_STATEMENT_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxStatementLength();
+ }
+ if (hasMaxStatements()) {
+ hash = (37 * hash) + MAX_STATEMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxStatements();
+ }
+ if (hasMaxTableNameLength()) {
+ hash = (37 * hash) + MAX_TABLE_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxTableNameLength();
+ }
+ if (hasMaxTablesInSelect()) {
+ hash = (37 * hash) + MAX_TABLES_IN_SELECT_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxTablesInSelect();
+ }
+ if (hasMaxUserNameLength()) {
+ hash = (37 * hash) + MAX_USER_NAME_LENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxUserNameLength();
+ }
+ if (hasNullCollation()) {
+ hash = (37 * hash) + NULL_COLLATION_FIELD_NUMBER;
+ hash = (53 * hash) + nullCollation_;
+ }
+ if (hasNullPlusNonNullEqualsNull()) {
+ hash = (37 * hash) + NULL_PLUS_NON_NULL_EQUALS_NULL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getNullPlusNonNullEqualsNull());
+ }
+ if (getNumericFunctionsCount() > 0) {
+ hash = (37 * hash) + NUMERIC_FUNCTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericFunctionsList().hashCode();
+ }
+ if (getOrderBySupportCount() > 0) {
+ hash = (37 * hash) + ORDER_BY_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + orderBySupport_.hashCode();
+ }
+ if (getOuterJoinSupportCount() > 0) {
+ hash = (37 * hash) + OUTER_JOIN_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + outerJoinSupport_.hashCode();
+ }
+ if (hasQuotedIdentifierCasing()) {
+ hash = (37 * hash) + QUOTED_IDENTIFIER_CASING_FIELD_NUMBER;
+ hash = (53 * hash) + quotedIdentifierCasing_;
+ }
+ if (hasReadOnly()) {
+ hash = (37 * hash) + READ_ONLY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReadOnly());
+ }
+ if (hasSchemaTerm()) {
+ hash = (37 * hash) + SCHEMA_TERM_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaTerm().hashCode();
+ }
+ if (hasSearchEscapeString()) {
+ hash = (37 * hash) + SEARCH_ESCAPE_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getSearchEscapeString().hashCode();
+ }
+ if (hasSelectForUpdateSupported()) {
+ hash = (37 * hash) + SELECT_FOR_UPDATE_SUPPORTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSelectForUpdateSupported());
+ }
+ if (hasSpecialCharacters()) {
+ hash = (37 * hash) + SPECIAL_CHARACTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecialCharacters().hashCode();
+ }
+ if (getSqlKeywordsCount() > 0) {
+ hash = (37 * hash) + SQL_KEYWORDS_FIELD_NUMBER;
+ hash = (53 * hash) + getSqlKeywordsList().hashCode();
+ }
+ if (getStringFunctionsCount() > 0) {
+ hash = (37 * hash) + STRING_FUNCTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getStringFunctionsList().hashCode();
+ }
+ if (getSubquerySupportCount() > 0) {
+ hash = (37 * hash) + SUBQUERY_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + subquerySupport_.hashCode();
+ }
+ if (getSystemFunctionsCount() > 0) {
+ hash = (37 * hash) + SYSTEM_FUNCTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getSystemFunctionsList().hashCode();
+ }
+ if (hasTableTerm()) {
+ hash = (37 * hash) + TABLE_TERM_FIELD_NUMBER;
+ hash = (53 * hash) + getTableTerm().hashCode();
+ }
+ if (hasTransactionSupported()) {
+ hash = (37 * hash) + TRANSACTION_SUPPORTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getTransactionSupported());
+ }
+ if (getUnionSupportCount() > 0) {
+ hash = (37 * hash) + UNION_SUPPORT_FIELD_NUMBER;
+ hash = (53 * hash) + unionSupport_.hashCode();
+ }
+ if (hasCurrentSchema()) {
+ hash = (37 * hash) + CURRENT_SCHEMA_FIELD_NUMBER;
+ hash = (53 * hash) + getCurrentSchema().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -35751,46 +40030,59 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ServerMeta prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -35798,14 +40090,16 @@ public final class UserProtos {
* Protobuf type {@code exec.user.ServerMeta}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.ServerMeta)
+ org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -35818,19 +40112,17 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getConvertSupportFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
allTablesSelectable_ = false;
@@ -35853,15 +40145,15 @@ public final class UserProtos {
} else {
convertSupportBuilder_.clear();
}
- correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE;
+ correlationNamesSupport_ = 1;
bitField0_ = (bitField0_ & ~0x00000100);
dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
dateTimeLiteralsSupport_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
- groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE;
+ groupBySupport_ = 1;
bitField0_ = (bitField0_ & ~0x00000800);
- identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ identifierCasing_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
identifierQuoteString_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
@@ -35899,7 +40191,7 @@ public final class UserProtos {
bitField0_ = (bitField0_ & ~0x20000000);
maxUserNameLength_ = 0;
bitField0_ = (bitField0_ & ~0x40000000);
- nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN;
+ nullCollation_ = 0;
bitField0_ = (bitField0_ & ~0x80000000);
nullPlusNonNullEqualsNull_ = false;
bitField1_ = (bitField1_ & ~0x00000001);
@@ -35909,7 +40201,7 @@ public final class UserProtos {
bitField1_ = (bitField1_ & ~0x00000004);
outerJoinSupport_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000008);
- quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ quotedIdentifierCasing_ = 0;
bitField1_ = (bitField1_ & ~0x00000010);
readOnly_ = false;
bitField1_ = (bitField1_ & ~0x00000020);
@@ -35940,19 +40232,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ServerMeta getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ServerMeta build() {
org.apache.drill.exec.proto.UserProtos.ServerMeta result = buildPartial();
if (!result.isInitialized()) {
@@ -35961,6 +40252,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ServerMeta buildPartial() {
org.apache.drill.exec.proto.UserProtos.ServerMeta result = new org.apache.drill.exec.proto.UserProtos.ServerMeta(this);
int from_bitField0_ = bitField0_;
@@ -36010,8 +40302,7 @@ public final class UserProtos {
}
result.correlationNamesSupport_ = correlationNamesSupport_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
- dateTimeFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(
- dateTimeFunctions_);
+ dateTimeFunctions_ = dateTimeFunctions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.dateTimeFunctions_ = dateTimeFunctions_;
@@ -36109,8 +40400,7 @@ public final class UserProtos {
}
result.nullPlusNonNullEqualsNull_ = nullPlusNonNullEqualsNull_;
if (((bitField1_ & 0x00000002) == 0x00000002)) {
- numericFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(
- numericFunctions_);
+ numericFunctions_ = numericFunctions_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00000002);
}
result.numericFunctions_ = numericFunctions_;
@@ -36149,14 +40439,12 @@ public final class UserProtos {
}
result.specialCharacters_ = specialCharacters_;
if (((bitField1_ & 0x00000400) == 0x00000400)) {
- sqlKeywords_ = new com.google.protobuf.UnmodifiableLazyStringList(
- sqlKeywords_);
+ sqlKeywords_ = sqlKeywords_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00000400);
}
result.sqlKeywords_ = sqlKeywords_;
if (((bitField1_ & 0x00000800) == 0x00000800)) {
- stringFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(
- stringFunctions_);
+ stringFunctions_ = stringFunctions_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00000800);
}
result.stringFunctions_ = stringFunctions_;
@@ -36166,8 +40454,7 @@ public final class UserProtos {
}
result.subquerySupport_ = subquerySupport_;
if (((bitField1_ & 0x00002000) == 0x00002000)) {
- systemFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(
- systemFunctions_);
+ systemFunctions_ = systemFunctions_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00002000);
}
result.systemFunctions_ = systemFunctions_;
@@ -36194,6 +40481,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.ServerMeta) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.ServerMeta)other);
@@ -36256,7 +40576,7 @@ public final class UserProtos {
convertSupport_ = other.convertSupport_;
bitField0_ = (bitField0_ & ~0x00000080);
convertSupportBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConvertSupportFieldBuilder() : null;
} else {
convertSupportBuilder_.addAllMessages(other.convertSupport_);
@@ -36471,20 +40791,22 @@ public final class UserProtos {
currentSchema_ = other.currentSchema_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getConvertSupportCount(); i++) {
if (!getConvertSupport(i).isInitialized()) {
-
return false;
}
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -36494,7 +40816,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.ServerMeta) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -36505,34 +40827,33 @@ public final class UserProtos {
private int bitField0_;
private int bitField1_;
- // optional bool all_tables_selectable = 1;
private boolean allTablesSelectable_ ;
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public boolean hasAllTablesSelectable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public boolean getAllTablesSelectable() {
return allTablesSelectable_;
}
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public Builder setAllTablesSelectable(boolean value) {
bitField0_ |= 0x00000001;
@@ -36541,11 +40862,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool all_tables_selectable = 1;</code>
- *
* <pre>
* True if current user can use all tables returned by GetTables
* </pre>
+ *
+ * <code>optional bool all_tables_selectable = 1;</code>
*/
public Builder clearAllTablesSelectable() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -36554,34 +40875,33 @@ public final class UserProtos {
return this;
}
- // optional bool blob_included_in_max_row_size = 2;
private boolean blobIncludedInMaxRowSize_ ;
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public boolean hasBlobIncludedInMaxRowSize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public boolean getBlobIncludedInMaxRowSize() {
return blobIncludedInMaxRowSize_;
}
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public Builder setBlobIncludedInMaxRowSize(boolean value) {
bitField0_ |= 0x00000002;
@@ -36590,11 +40910,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool blob_included_in_max_row_size = 2;</code>
- *
* <pre>
* True if BLOB are included into the max row size
* </pre>
+ *
+ * <code>optional bool blob_included_in_max_row_size = 2;</code>
*/
public Builder clearBlobIncludedInMaxRowSize() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -36603,34 +40923,33 @@ public final class UserProtos {
return this;
}
- // optional bool catalog_at_start = 3;
private boolean catalogAtStart_ ;
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public boolean hasCatalogAtStart() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public boolean getCatalogAtStart() {
return catalogAtStart_;
}
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public Builder setCatalogAtStart(boolean value) {
bitField0_ |= 0x00000004;
@@ -36639,11 +40958,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool catalog_at_start = 3;</code>
- *
* <pre>
* True if catalog name is at the start of a fully qualified table
* </pre>
+ *
+ * <code>optional bool catalog_at_start = 3;</code>
*/
public Builder clearCatalogAtStart() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -36652,42 +40971,44 @@ public final class UserProtos {
return this;
}
- // optional string catalog_separator = 4;
private java.lang.Object catalogSeparator_ = "";
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public boolean hasCatalogSeparator() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public java.lang.String getCatalogSeparator() {
java.lang.Object ref = catalogSeparator_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogSeparator_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogSeparator_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public com.google.protobuf.ByteString
getCatalogSeparatorBytes() {
@@ -36703,11 +41024,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public Builder setCatalogSeparator(
java.lang.String value) {
@@ -36720,11 +41041,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public Builder clearCatalogSeparator() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -36733,11 +41054,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_separator = 4;</code>
- *
* <pre>
* The catalog separator
* </pre>
+ *
+ * <code>optional string catalog_separator = 4;</code>
*/
public Builder setCatalogSeparatorBytes(
com.google.protobuf.ByteString value) {
@@ -36750,42 +41071,44 @@ public final class UserProtos {
return this;
}
- // optional string catalog_term = 5;
private java.lang.Object catalogTerm_ = "";
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public boolean hasCatalogTerm() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public java.lang.String getCatalogTerm() {
java.lang.Object ref = catalogTerm_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- catalogTerm_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ catalogTerm_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public com.google.protobuf.ByteString
getCatalogTermBytes() {
@@ -36801,11 +41124,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public Builder setCatalogTerm(
java.lang.String value) {
@@ -36818,11 +41141,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public Builder clearCatalogTerm() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -36831,11 +41154,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string catalog_term = 5;</code>
- *
* <pre>
* The term used to designate catalogs
* </pre>
+ *
+ * <code>optional string catalog_term = 5;</code>
*/
public Builder setCatalogTermBytes(
com.google.protobuf.ByteString value) {
@@ -36848,51 +41171,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.CollateSupport collate_support = 6;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> collateSupport_ =
+ private java.util.List<java.lang.Integer> collateSupport_ =
java.util.Collections.emptyList();
private void ensureCollateSupportIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>(collateSupport_);
+ collateSupport_ = new java.util.ArrayList<java.lang.Integer>(collateSupport_);
bitField0_ |= 0x00000020;
}
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList() {
- return java.util.Collections.unmodifiableList(collateSupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.CollateSupport>(collateSupport_, collateSupport_converter_);
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public int getCollateSupportCount() {
return collateSupport_.size();
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index) {
- return collateSupport_.get(index);
+ return collateSupport_converter_.convert(collateSupport_.get(index));
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public Builder setCollateSupport(
int index, org.apache.drill.exec.proto.UserProtos.CollateSupport value) {
@@ -36900,46 +41223,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureCollateSupportIsMutable();
- collateSupport_.set(index, value);
+ collateSupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public Builder addCollateSupport(org.apache.drill.exec.proto.UserProtos.CollateSupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureCollateSupportIsMutable();
- collateSupport_.add(value);
+ collateSupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public Builder addAllCollateSupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.CollateSupport> values) {
ensureCollateSupportIsMutable();
- super.addAll(values, collateSupport_);
+ for (org.apache.drill.exec.proto.UserProtos.CollateSupport value : values) {
+ collateSupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
- *
* <pre>
* COLLATE support
* </pre>
+ *
+ * <code>repeated .exec.user.CollateSupport collate_support = 6;</code>
*/
public Builder clearCollateSupport() {
collateSupport_ = java.util.Collections.emptyList();
@@ -36948,34 +41273,33 @@ public final class UserProtos {
return this;
}
- // optional bool column_aliasing_supported = 7;
private boolean columnAliasingSupported_ ;
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public boolean hasColumnAliasingSupported() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public boolean getColumnAliasingSupported() {
return columnAliasingSupported_;
}
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public Builder setColumnAliasingSupported(boolean value) {
bitField0_ |= 0x00000040;
@@ -36984,11 +41308,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool column_aliasing_supported = 7;</code>
- *
* <pre>
* True if column aliasing is supported
* </pre>
+ *
+ * <code>optional bool column_aliasing_supported = 7;</code>
*/
public Builder clearColumnAliasingSupported() {
bitField0_ = (bitField0_ & ~0x00000040);
@@ -36997,7 +41321,6 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.ConvertSupport convert_support = 8;
private java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> convertSupport_ =
java.util.Collections.emptyList();
private void ensureConvertSupportIsMutable() {
@@ -37007,15 +41330,15 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> convertSupportBuilder_;
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> getConvertSupportList() {
if (convertSupportBuilder_ == null) {
@@ -37025,11 +41348,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public int getConvertSupportCount() {
if (convertSupportBuilder_ == null) {
@@ -37039,11 +41362,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index) {
if (convertSupportBuilder_ == null) {
@@ -37053,11 +41376,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder setConvertSupport(
int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport value) {
@@ -37074,11 +41397,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder setConvertSupport(
int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) {
@@ -37092,11 +41415,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder addConvertSupport(org.apache.drill.exec.proto.UserProtos.ConvertSupport value) {
if (convertSupportBuilder_ == null) {
@@ -37112,11 +41435,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder addConvertSupport(
int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport value) {
@@ -37133,11 +41456,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder addConvertSupport(
org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) {
@@ -37151,11 +41474,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder addConvertSupport(
int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) {
@@ -37169,17 +41492,18 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder addAllConvertSupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupport> values) {
if (convertSupportBuilder_ == null) {
ensureConvertSupportIsMutable();
- super.addAll(values, convertSupport_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, convertSupport_);
onChanged();
} else {
convertSupportBuilder_.addAllMessages(values);
@@ -37187,11 +41511,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder clearConvertSupport() {
if (convertSupportBuilder_ == null) {
@@ -37204,11 +41528,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public Builder removeConvertSupport(int index) {
if (convertSupportBuilder_ == null) {
@@ -37221,22 +41545,22 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder getConvertSupportBuilder(
int index) {
return getConvertSupportFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder(
int index) {
@@ -37246,11 +41570,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>
getConvertSupportOrBuilderList() {
@@ -37261,22 +41585,22 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder addConvertSupportBuilder() {
return getConvertSupportFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance());
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder addConvertSupportBuilder(
int index) {
@@ -37284,21 +41608,21 @@ public final class UserProtos {
index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance());
}
/**
- * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
- *
* <pre>
* CONVERT support
* </pre>
+ *
+ * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder>
getConvertSupportBuilderList() {
return getConvertSupportFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>
getConvertSupportFieldBuilder() {
if (convertSupportBuilder_ == null) {
- convertSupportBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ convertSupportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>(
convertSupport_,
((bitField0_ & 0x00000080) == 0x00000080),
@@ -37309,59 +41633,59 @@ public final class UserProtos {
return convertSupportBuilder_;
}
- // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;
- private org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE;
+ private int correlationNamesSupport_ = 1;
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public boolean hasCorrelationNamesSupport() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport() {
- return correlationNamesSupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport result = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.valueOf(correlationNamesSupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE : result;
}
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public Builder setCorrelationNamesSupport(org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
- correlationNamesSupport_ = value;
+ correlationNamesSupport_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
- *
* <pre>
* Correlation names support
* </pre>
+ *
+ * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code>
*/
public Builder clearCorrelationNamesSupport() {
bitField0_ = (bitField0_ & ~0x00000100);
- correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE;
+ correlationNamesSupport_ = 1;
onChanged();
return this;
}
- // repeated string date_time_functions = 10;
private com.google.protobuf.LazyStringList dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDateTimeFunctionsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
@@ -37370,53 +41694,53 @@ public final class UserProtos {
}
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getDateTimeFunctionsList() {
- return java.util.Collections.unmodifiableList(dateTimeFunctions_);
+ return dateTimeFunctions_.getUnmodifiableView();
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public int getDateTimeFunctionsCount() {
return dateTimeFunctions_.size();
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public java.lang.String getDateTimeFunctions(int index) {
return dateTimeFunctions_.get(index);
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public com.google.protobuf.ByteString
getDateTimeFunctionsBytes(int index) {
return dateTimeFunctions_.getByteString(index);
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public Builder setDateTimeFunctions(
int index, java.lang.String value) {
@@ -37429,11 +41753,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public Builder addDateTimeFunctions(
java.lang.String value) {
@@ -37446,25 +41770,26 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public Builder addAllDateTimeFunctions(
java.lang.Iterable<java.lang.String> values) {
ensureDateTimeFunctionsIsMutable();
- super.addAll(values, dateTimeFunctions_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, dateTimeFunctions_);
onChanged();
return this;
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public Builder clearDateTimeFunctions() {
dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -37473,11 +41798,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string date_time_functions = 10;</code>
- *
* <pre>
* Supported ODBC/JDBC Date Time scalar functions
* </pre>
+ *
+ * <code>repeated string date_time_functions = 10;</code>
*/
public Builder addDateTimeFunctionsBytes(
com.google.protobuf.ByteString value) {
@@ -37490,51 +41815,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> dateTimeLiteralsSupport_ =
+ private java.util.List<java.lang.Integer> dateTimeLiteralsSupport_ =
java.util.Collections.emptyList();
private void ensureDateTimeLiteralsSupportIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
- dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(dateTimeLiteralsSupport_);
+ dateTimeLiteralsSupport_ = new java.util.ArrayList<java.lang.Integer>(dateTimeLiteralsSupport_);
bitField0_ |= 0x00000400;
}
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList() {
- return java.util.Collections.unmodifiableList(dateTimeLiteralsSupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(dateTimeLiteralsSupport_, dateTimeLiteralsSupport_converter_);
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public int getDateTimeLiteralsSupportCount() {
return dateTimeLiteralsSupport_.size();
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index) {
- return dateTimeLiteralsSupport_.get(index);
+ return dateTimeLiteralsSupport_converter_.convert(dateTimeLiteralsSupport_.get(index));
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public Builder setDateTimeLiteralsSupport(
int index, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value) {
@@ -37542,46 +41867,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureDateTimeLiteralsSupportIsMutable();
- dateTimeLiteralsSupport_.set(index, value);
+ dateTimeLiteralsSupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public Builder addDateTimeLiteralsSupport(org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureDateTimeLiteralsSupportIsMutable();
- dateTimeLiteralsSupport_.add(value);
+ dateTimeLiteralsSupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public Builder addAllDateTimeLiteralsSupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> values) {
ensureDateTimeLiteralsSupportIsMutable();
- super.addAll(values, dateTimeLiteralsSupport_);
+ for (org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value : values) {
+ dateTimeLiteralsSupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
- *
* <pre>
* Supported Date Time literals
* </pre>
+ *
+ * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code>
*/
public Builder clearDateTimeLiteralsSupport() {
dateTimeLiteralsSupport_ = java.util.Collections.emptyList();
@@ -37590,146 +41917,150 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.GroupBySupport group_by_support = 12;
- private org.apache.drill.exec.proto.UserProtos.GroupBySupport groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE;
+ private int groupBySupport_ = 1;
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public boolean hasGroupBySupport() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport() {
- return groupBySupport_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.GroupBySupport result = org.apache.drill.exec.proto.UserProtos.GroupBySupport.valueOf(groupBySupport_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE : result;
}
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public Builder setGroupBySupport(org.apache.drill.exec.proto.UserProtos.GroupBySupport value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
- groupBySupport_ = value;
+ groupBySupport_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
- *
* <pre>
* Group By support
* </pre>
+ *
+ * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code>
*/
public Builder clearGroupBySupport() {
bitField0_ = (bitField0_ & ~0x00000800);
- groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE;
+ groupBySupport_ = 1;
onChanged();
return this;
}
- // optional .exec.user.IdentifierCasing identifier_casing = 13;
- private org.apache.drill.exec.proto.UserProtos.IdentifierCasing identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ private int identifierCasing_ = 0;
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public boolean hasIdentifierCasing() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing() {
- return identifierCasing_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.IdentifierCasing result = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(identifierCasing_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN : result;
}
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public Builder setIdentifierCasing(org.apache.drill.exec.proto.UserProtos.IdentifierCasing value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
- identifierCasing_ = value;
+ identifierCasing_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
- *
* <pre>
* Unquoted Identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code>
*/
public Builder clearIdentifierCasing() {
bitField0_ = (bitField0_ & ~0x00001000);
- identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ identifierCasing_ = 0;
onChanged();
return this;
}
- // optional string identifier_quote_string = 14;
private java.lang.Object identifierQuoteString_ = "";
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public boolean hasIdentifierQuoteString() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public java.lang.String getIdentifierQuoteString() {
java.lang.Object ref = identifierQuoteString_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- identifierQuoteString_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ identifierQuoteString_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public com.google.protobuf.ByteString
getIdentifierQuoteStringBytes() {
@@ -37745,11 +42076,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public Builder setIdentifierQuoteString(
java.lang.String value) {
@@ -37762,11 +42093,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public Builder clearIdentifierQuoteString() {
bitField0_ = (bitField0_ & ~0x00002000);
@@ -37775,11 +42106,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string identifier_quote_string = 14;</code>
- *
* <pre>
* Quote string for identifiers
* </pre>
+ *
+ * <code>optional string identifier_quote_string = 14;</code>
*/
public Builder setIdentifierQuoteStringBytes(
com.google.protobuf.ByteString value) {
@@ -37792,34 +42123,33 @@ public final class UserProtos {
return this;
}
- // optional bool like_escape_clause_supported = 15;
private boolean likeEscapeClauseSupported_ ;
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public boolean hasLikeEscapeClauseSupported() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public boolean getLikeEscapeClauseSupported() {
return likeEscapeClauseSupported_;
}
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public Builder setLikeEscapeClauseSupported(boolean value) {
bitField0_ |= 0x00004000;
@@ -37828,11 +42158,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool like_escape_clause_supported = 15;</code>
- *
* <pre>
* True if LIKE supports an ESCAPE clause
* </pre>
+ *
+ * <code>optional bool like_escape_clause_supported = 15;</code>
*/
public Builder clearLikeEscapeClauseSupported() {
bitField0_ = (bitField0_ & ~0x00004000);
@@ -37841,34 +42171,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_binary_literal_length = 16;
private int maxBinaryLiteralLength_ ;
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public boolean hasMaxBinaryLiteralLength() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public int getMaxBinaryLiteralLength() {
return maxBinaryLiteralLength_;
}
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public Builder setMaxBinaryLiteralLength(int value) {
bitField0_ |= 0x00008000;
@@ -37877,11 +42206,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_binary_literal_length = 16;</code>
- *
* <pre>
* Maximum number of hexa characters for binary literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_binary_literal_length = 16;</code>
*/
public Builder clearMaxBinaryLiteralLength() {
bitField0_ = (bitField0_ & ~0x00008000);
@@ -37890,34 +42219,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_catalog_name_length = 17;
private int maxCatalogNameLength_ ;
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public boolean hasMaxCatalogNameLength() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public int getMaxCatalogNameLength() {
return maxCatalogNameLength_;
}
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public Builder setMaxCatalogNameLength(int value) {
bitField0_ |= 0x00010000;
@@ -37926,11 +42254,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_catalog_name_length = 17;</code>
- *
* <pre>
* Maximum length of catalog names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_catalog_name_length = 17;</code>
*/
public Builder clearMaxCatalogNameLength() {
bitField0_ = (bitField0_ & ~0x00010000);
@@ -37939,34 +42267,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_char_literal_length = 18;
private int maxCharLiteralLength_ ;
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public boolean hasMaxCharLiteralLength() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public int getMaxCharLiteralLength() {
return maxCharLiteralLength_;
}
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public Builder setMaxCharLiteralLength(int value) {
bitField0_ |= 0x00020000;
@@ -37975,11 +42302,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_char_literal_length = 18;</code>
- *
* <pre>
* Maximum number of characters for string literals (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_char_literal_length = 18;</code>
*/
public Builder clearMaxCharLiteralLength() {
bitField0_ = (bitField0_ & ~0x00020000);
@@ -37988,34 +42315,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_column_name_length = 19;
private int maxColumnNameLength_ ;
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public boolean hasMaxColumnNameLength() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public int getMaxColumnNameLength() {
return maxColumnNameLength_;
}
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public Builder setMaxColumnNameLength(int value) {
bitField0_ |= 0x00040000;
@@ -38024,11 +42350,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_column_name_length = 19;</code>
- *
* <pre>
* Maximum length of column names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_column_name_length = 19;</code>
*/
public Builder clearMaxColumnNameLength() {
bitField0_ = (bitField0_ & ~0x00040000);
@@ -38037,34 +42363,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_columns_in_group_by = 20;
private int maxColumnsInGroupBy_ ;
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public boolean hasMaxColumnsInGroupBy() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public int getMaxColumnsInGroupBy() {
return maxColumnsInGroupBy_;
}
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public Builder setMaxColumnsInGroupBy(int value) {
bitField0_ |= 0x00080000;
@@ -38073,11 +42398,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_columns_in_group_by = 20;</code>
- *
* <pre>
* Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_group_by = 20;</code>
*/
public Builder clearMaxColumnsInGroupBy() {
bitField0_ = (bitField0_ & ~0x00080000);
@@ -38086,34 +42411,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_columns_in_order_by = 21;
private int maxColumnsInOrderBy_ ;
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public boolean hasMaxColumnsInOrderBy() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public int getMaxColumnsInOrderBy() {
return maxColumnsInOrderBy_;
}
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public Builder setMaxColumnsInOrderBy(int value) {
bitField0_ |= 0x00100000;
@@ -38122,11 +42446,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_columns_in_order_by = 21;</code>
- *
* <pre>
* Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_order_by = 21;</code>
*/
public Builder clearMaxColumnsInOrderBy() {
bitField0_ = (bitField0_ & ~0x00100000);
@@ -38135,34 +42459,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_columns_in_select = 22;
private int maxColumnsInSelect_ ;
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public boolean hasMaxColumnsInSelect() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public int getMaxColumnsInSelect() {
return maxColumnsInSelect_;
}
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public Builder setMaxColumnsInSelect(int value) {
bitField0_ |= 0x00200000;
@@ -38171,11 +42494,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_columns_in_select = 22;</code>
- *
* <pre>
* Maximum number of columns in SELECT expressions (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_columns_in_select = 22;</code>
*/
public Builder clearMaxColumnsInSelect() {
bitField0_ = (bitField0_ & ~0x00200000);
@@ -38184,34 +42507,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_cursor_name_length = 23;
private int maxCursorNameLength_ ;
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public boolean hasMaxCursorNameLength() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public int getMaxCursorNameLength() {
return maxCursorNameLength_;
}
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public Builder setMaxCursorNameLength(int value) {
bitField0_ |= 0x00400000;
@@ -38220,11 +42542,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_cursor_name_length = 23;</code>
- *
* <pre>
* Maximum length of cursor names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_cursor_name_length = 23;</code>
*/
public Builder clearMaxCursorNameLength() {
bitField0_ = (bitField0_ & ~0x00400000);
@@ -38233,34 +42555,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_logical_lob_size = 24;
private int maxLogicalLobSize_ ;
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public boolean hasMaxLogicalLobSize() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public int getMaxLogicalLobSize() {
return maxLogicalLobSize_;
}
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public Builder setMaxLogicalLobSize(int value) {
bitField0_ |= 0x00800000;
@@ -38269,11 +42590,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_logical_lob_size = 24;</code>
- *
* <pre>
* Maximum logical size for LOB types (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_logical_lob_size = 24;</code>
*/
public Builder clearMaxLogicalLobSize() {
bitField0_ = (bitField0_ & ~0x00800000);
@@ -38282,34 +42603,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_row_size = 25;
private int maxRowSize_ ;
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public boolean hasMaxRowSize() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public int getMaxRowSize() {
return maxRowSize_;
}
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public Builder setMaxRowSize(int value) {
bitField0_ |= 0x01000000;
@@ -38318,11 +42638,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_row_size = 25;</code>
- *
* <pre>
* Maximum number of bytes for a single row (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_row_size = 25;</code>
*/
public Builder clearMaxRowSize() {
bitField0_ = (bitField0_ & ~0x01000000);
@@ -38331,34 +42651,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_schema_name_length = 26;
private int maxSchemaNameLength_ ;
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public boolean hasMaxSchemaNameLength() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public int getMaxSchemaNameLength() {
return maxSchemaNameLength_;
}
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public Builder setMaxSchemaNameLength(int value) {
bitField0_ |= 0x02000000;
@@ -38367,11 +42686,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_schema_name_length = 26;</code>
- *
* <pre>
* Maximum length of schema names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_schema_name_length = 26;</code>
*/
public Builder clearMaxSchemaNameLength() {
bitField0_ = (bitField0_ & ~0x02000000);
@@ -38380,34 +42699,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_statement_length = 27;
private int maxStatementLength_ ;
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public boolean hasMaxStatementLength() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public int getMaxStatementLength() {
return maxStatementLength_;
}
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public Builder setMaxStatementLength(int value) {
bitField0_ |= 0x04000000;
@@ -38416,11 +42734,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_statement_length = 27;</code>
- *
* <pre>
* Maximum length for statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statement_length = 27;</code>
*/
public Builder clearMaxStatementLength() {
bitField0_ = (bitField0_ & ~0x04000000);
@@ -38429,34 +42747,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_statements = 28;
private int maxStatements_ ;
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public boolean hasMaxStatements() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public int getMaxStatements() {
return maxStatements_;
}
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public Builder setMaxStatements(int value) {
bitField0_ |= 0x08000000;
@@ -38465,11 +42782,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_statements = 28;</code>
- *
* <pre>
* Maximum number of statements (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_statements = 28;</code>
*/
public Builder clearMaxStatements() {
bitField0_ = (bitField0_ & ~0x08000000);
@@ -38478,34 +42795,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_table_name_length = 29;
private int maxTableNameLength_ ;
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public boolean hasMaxTableNameLength() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public int getMaxTableNameLength() {
return maxTableNameLength_;
}
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public Builder setMaxTableNameLength(int value) {
bitField0_ |= 0x10000000;
@@ -38514,11 +42830,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_table_name_length = 29;</code>
- *
* <pre>
* Maximum length of table names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_table_name_length = 29;</code>
*/
public Builder clearMaxTableNameLength() {
bitField0_ = (bitField0_ & ~0x10000000);
@@ -38527,34 +42843,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_tables_in_select = 30;
private int maxTablesInSelect_ ;
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public boolean hasMaxTablesInSelect() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public int getMaxTablesInSelect() {
return maxTablesInSelect_;
}
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public Builder setMaxTablesInSelect(int value) {
bitField0_ |= 0x20000000;
@@ -38563,11 +42878,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_tables_in_select = 30;</code>
- *
* <pre>
* Maximum number of tables in a SELECT expression (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_tables_in_select = 30;</code>
*/
public Builder clearMaxTablesInSelect() {
bitField0_ = (bitField0_ & ~0x20000000);
@@ -38576,34 +42891,33 @@ public final class UserProtos {
return this;
}
- // optional uint32 max_user_name_length = 31;
private int maxUserNameLength_ ;
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public boolean hasMaxUserNameLength() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public int getMaxUserNameLength() {
return maxUserNameLength_;
}
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public Builder setMaxUserNameLength(int value) {
bitField0_ |= 0x40000000;
@@ -38612,11 +42926,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional uint32 max_user_name_length = 31;</code>
- *
* <pre>
* Maximum length of user names (0 if unlimited or unknown)
* </pre>
+ *
+ * <code>optional uint32 max_user_name_length = 31;</code>
*/
public Builder clearMaxUserNameLength() {
bitField0_ = (bitField0_ & ~0x40000000);
@@ -38625,86 +42939,86 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.NullCollation null_collation = 32;
- private org.apache.drill.exec.proto.UserProtos.NullCollation nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN;
+ private int nullCollation_ = 0;
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public boolean hasNullCollation() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation() {
- return nullCollation_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.NullCollation result = org.apache.drill.exec.proto.UserProtos.NullCollation.valueOf(nullCollation_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN : result;
}
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public Builder setNullCollation(org.apache.drill.exec.proto.UserProtos.NullCollation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x80000000;
- nullCollation_ = value;
+ nullCollation_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.NullCollation null_collation = 32;</code>
- *
* <pre>
* How NULL are sorted
* </pre>
+ *
+ * <code>optional .exec.user.NullCollation null_collation = 32;</code>
*/
public Builder clearNullCollation() {
bitField0_ = (bitField0_ & ~0x80000000);
- nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN;
+ nullCollation_ = 0;
onChanged();
return this;
}
- // optional bool null_plus_non_null_equals_null = 33;
private boolean nullPlusNonNullEqualsNull_ ;
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public boolean hasNullPlusNonNullEqualsNull() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public boolean getNullPlusNonNullEqualsNull() {
return nullPlusNonNullEqualsNull_;
}
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public Builder setNullPlusNonNullEqualsNull(boolean value) {
bitField1_ |= 0x00000001;
@@ -38713,11 +43027,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool null_plus_non_null_equals_null = 33;</code>
- *
* <pre>
* True if NULL + non NULL is NULL
* </pre>
+ *
+ * <code>optional bool null_plus_non_null_equals_null = 33;</code>
*/
public Builder clearNullPlusNonNullEqualsNull() {
bitField1_ = (bitField1_ & ~0x00000001);
@@ -38726,7 +43040,6 @@ public final class UserProtos {
return this;
}
- // repeated string numeric_functions = 34;
private com.google.protobuf.LazyStringList numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNumericFunctionsIsMutable() {
if (!((bitField1_ & 0x00000002) == 0x00000002)) {
@@ -38735,53 +43048,53 @@ public final class UserProtos {
}
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getNumericFunctionsList() {
- return java.util.Collections.unmodifiableList(numericFunctions_);
+ return numericFunctions_.getUnmodifiableView();
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public int getNumericFunctionsCount() {
return numericFunctions_.size();
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public java.lang.String getNumericFunctions(int index) {
return numericFunctions_.get(index);
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public com.google.protobuf.ByteString
getNumericFunctionsBytes(int index) {
return numericFunctions_.getByteString(index);
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public Builder setNumericFunctions(
int index, java.lang.String value) {
@@ -38794,11 +43107,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public Builder addNumericFunctions(
java.lang.String value) {
@@ -38811,25 +43124,26 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public Builder addAllNumericFunctions(
java.lang.Iterable<java.lang.String> values) {
ensureNumericFunctionsIsMutable();
- super.addAll(values, numericFunctions_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, numericFunctions_);
onChanged();
return this;
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public Builder clearNumericFunctions() {
numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -38838,11 +43152,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string numeric_functions = 34;</code>
- *
* <pre>
* Supported ODBC/JDBC numeric scalar functions
* </pre>
+ *
+ * <code>repeated string numeric_functions = 34;</code>
*/
public Builder addNumericFunctionsBytes(
com.google.protobuf.ByteString value) {
@@ -38855,51 +43169,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.OrderBySupport order_by_support = 35;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> orderBySupport_ =
+ private java.util.List<java.lang.Integer> orderBySupport_ =
java.util.Collections.emptyList();
private void ensureOrderBySupportIsMutable() {
if (!((bitField1_ & 0x00000004) == 0x00000004)) {
- orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>(orderBySupport_);
+ orderBySupport_ = new java.util.ArrayList<java.lang.Integer>(orderBySupport_);
bitField1_ |= 0x00000004;
}
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList() {
- return java.util.Collections.unmodifiableList(orderBySupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OrderBySupport>(orderBySupport_, orderBySupport_converter_);
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public int getOrderBySupportCount() {
return orderBySupport_.size();
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index) {
- return orderBySupport_.get(index);
+ return orderBySupport_converter_.convert(orderBySupport_.get(index));
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public Builder setOrderBySupport(
int index, org.apache.drill.exec.proto.UserProtos.OrderBySupport value) {
@@ -38907,46 +43221,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureOrderBySupportIsMutable();
- orderBySupport_.set(index, value);
+ orderBySupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public Builder addOrderBySupport(org.apache.drill.exec.proto.UserProtos.OrderBySupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBySupportIsMutable();
- orderBySupport_.add(value);
+ orderBySupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public Builder addAllOrderBySupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.OrderBySupport> values) {
ensureOrderBySupportIsMutable();
- super.addAll(values, orderBySupport_);
+ for (org.apache.drill.exec.proto.UserProtos.OrderBySupport value : values) {
+ orderBySupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code>
*/
public Builder clearOrderBySupport() {
orderBySupport_ = java.util.Collections.emptyList();
@@ -38955,51 +43271,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.OuterJoinSupport outer_join_support = 36;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> outerJoinSupport_ =
+ private java.util.List<java.lang.Integer> outerJoinSupport_ =
java.util.Collections.emptyList();
private void ensureOuterJoinSupportIsMutable() {
if (!((bitField1_ & 0x00000008) == 0x00000008)) {
- outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(outerJoinSupport_);
+ outerJoinSupport_ = new java.util.ArrayList<java.lang.Integer>(outerJoinSupport_);
bitField1_ |= 0x00000008;
}
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList() {
- return java.util.Collections.unmodifiableList(outerJoinSupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(outerJoinSupport_, outerJoinSupport_converter_);
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public int getOuterJoinSupportCount() {
return outerJoinSupport_.size();
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index) {
- return outerJoinSupport_.get(index);
+ return outerJoinSupport_converter_.convert(outerJoinSupport_.get(index));
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public Builder setOuterJoinSupport(
int index, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value) {
@@ -39007,46 +43323,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureOuterJoinSupportIsMutable();
- outerJoinSupport_.set(index, value);
+ outerJoinSupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public Builder addOuterJoinSupport(org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureOuterJoinSupportIsMutable();
- outerJoinSupport_.add(value);
+ outerJoinSupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public Builder addAllOuterJoinSupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> values) {
ensureOuterJoinSupportIsMutable();
- super.addAll(values, outerJoinSupport_);
+ for (org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value : values) {
+ outerJoinSupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
- *
* <pre>
* Outer join suport
* </pre>
+ *
+ * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code>
*/
public Builder clearOuterJoinSupport() {
outerJoinSupport_ = java.util.Collections.emptyList();
@@ -39055,86 +43373,86 @@ public final class UserProtos {
return this;
}
- // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
- private org.apache.drill.exec.proto.UserProtos.IdentifierCasing quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ private int quotedIdentifierCasing_ = 0;
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public boolean hasQuotedIdentifierCasing() {
return ((bitField1_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing() {
- return quotedIdentifierCasing_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.IdentifierCasing result = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(quotedIdentifierCasing_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN : result;
}
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public Builder setQuotedIdentifierCasing(org.apache.drill.exec.proto.UserProtos.IdentifierCasing value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000010;
- quotedIdentifierCasing_ = value;
+ quotedIdentifierCasing_ = value.getNumber();
onChanged();
return this;
}
/**
- * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
- *
* <pre>
* Quoted identifier casing
* </pre>
+ *
+ * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code>
*/
public Builder clearQuotedIdentifierCasing() {
bitField1_ = (bitField1_ & ~0x00000010);
- quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN;
+ quotedIdentifierCasing_ = 0;
onChanged();
return this;
}
- // optional bool read_only = 38;
private boolean readOnly_ ;
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public boolean hasReadOnly() {
return ((bitField1_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public Builder setReadOnly(boolean value) {
bitField1_ |= 0x00000020;
@@ -39143,11 +43461,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool read_only = 38;</code>
- *
* <pre>
* True if connection access is read only
* </pre>
+ *
+ * <code>optional bool read_only = 38;</code>
*/
public Builder clearReadOnly() {
bitField1_ = (bitField1_ & ~0x00000020);
@@ -39156,42 +43474,44 @@ public final class UserProtos {
return this;
}
- // optional string schema_term = 39;
private java.lang.Object schemaTerm_ = "";
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public boolean hasSchemaTerm() {
return ((bitField1_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public java.lang.String getSchemaTerm() {
java.lang.Object ref = schemaTerm_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- schemaTerm_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ schemaTerm_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public com.google.protobuf.ByteString
getSchemaTermBytes() {
@@ -39207,11 +43527,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public Builder setSchemaTerm(
java.lang.String value) {
@@ -39224,11 +43544,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public Builder clearSchemaTerm() {
bitField1_ = (bitField1_ & ~0x00000040);
@@ -39237,11 +43557,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string schema_term = 39;</code>
- *
* <pre>
* The term used to designate a schema
* </pre>
+ *
+ * <code>optional string schema_term = 39;</code>
*/
public Builder setSchemaTermBytes(
com.google.protobuf.ByteString value) {
@@ -39254,42 +43574,44 @@ public final class UserProtos {
return this;
}
- // optional string search_escape_string = 40;
private java.lang.Object searchEscapeString_ = "";
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public boolean hasSearchEscapeString() {
return ((bitField1_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public java.lang.String getSearchEscapeString() {
java.lang.Object ref = searchEscapeString_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- searchEscapeString_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ searchEscapeString_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public com.google.protobuf.ByteString
getSearchEscapeStringBytes() {
@@ -39305,11 +43627,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public Builder setSearchEscapeString(
java.lang.String value) {
@@ -39322,11 +43644,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public Builder clearSearchEscapeString() {
bitField1_ = (bitField1_ & ~0x00000080);
@@ -39335,11 +43657,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string search_escape_string = 40;</code>
- *
* <pre>
* Characters used for escaping (empty if not suported)
* </pre>
+ *
+ * <code>optional string search_escape_string = 40;</code>
*/
public Builder setSearchEscapeStringBytes(
com.google.protobuf.ByteString value) {
@@ -39352,34 +43674,33 @@ public final class UserProtos {
return this;
}
- // optional bool select_for_update_supported = 41;
private boolean selectForUpdateSupported_ ;
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public boolean hasSelectForUpdateSupported() {
return ((bitField1_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public boolean getSelectForUpdateSupported() {
return selectForUpdateSupported_;
}
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public Builder setSelectForUpdateSupported(boolean value) {
bitField1_ |= 0x00000100;
@@ -39388,11 +43709,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool select_for_update_supported = 41;</code>
- *
* <pre>
* True if SELECT FOR UPDATE is supported
* </pre>
+ *
+ * <code>optional bool select_for_update_supported = 41;</code>
*/
public Builder clearSelectForUpdateSupported() {
bitField1_ = (bitField1_ & ~0x00000100);
@@ -39401,42 +43722,44 @@ public final class UserProtos {
return this;
}
- // optional string special_characters = 42;
private java.lang.Object specialCharacters_ = "";
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public boolean hasSpecialCharacters() {
return ((bitField1_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public java.lang.String getSpecialCharacters() {
java.lang.Object ref = specialCharacters_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- specialCharacters_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ specialCharacters_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public com.google.protobuf.ByteString
getSpecialCharactersBytes() {
@@ -39452,11 +43775,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public Builder setSpecialCharacters(
java.lang.String value) {
@@ -39469,11 +43792,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public Builder clearSpecialCharacters() {
bitField1_ = (bitField1_ & ~0x00000200);
@@ -39482,11 +43805,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string special_characters = 42;</code>
- *
* <pre>
* List of extra characters that can be used in identifier names
* </pre>
+ *
+ * <code>optional string special_characters = 42;</code>
*/
public Builder setSpecialCharactersBytes(
com.google.protobuf.ByteString value) {
@@ -39499,7 +43822,6 @@ public final class UserProtos {
return this;
}
- // repeated string sql_keywords = 43;
private com.google.protobuf.LazyStringList sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSqlKeywordsIsMutable() {
if (!((bitField1_ & 0x00000400) == 0x00000400)) {
@@ -39508,53 +43830,53 @@ public final class UserProtos {
}
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getSqlKeywordsList() {
- return java.util.Collections.unmodifiableList(sqlKeywords_);
+ return sqlKeywords_.getUnmodifiableView();
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public int getSqlKeywordsCount() {
return sqlKeywords_.size();
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public java.lang.String getSqlKeywords(int index) {
return sqlKeywords_.get(index);
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public com.google.protobuf.ByteString
getSqlKeywordsBytes(int index) {
return sqlKeywords_.getByteString(index);
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public Builder setSqlKeywords(
int index, java.lang.String value) {
@@ -39567,11 +43889,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public Builder addSqlKeywords(
java.lang.String value) {
@@ -39584,25 +43906,26 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public Builder addAllSqlKeywords(
java.lang.Iterable<java.lang.String> values) {
ensureSqlKeywordsIsMutable();
- super.addAll(values, sqlKeywords_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, sqlKeywords_);
onChanged();
return this;
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public Builder clearSqlKeywords() {
sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -39611,11 +43934,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string sql_keywords = 43;</code>
- *
* <pre>
* list of SQL keywords
* </pre>
+ *
+ * <code>repeated string sql_keywords = 43;</code>
*/
public Builder addSqlKeywordsBytes(
com.google.protobuf.ByteString value) {
@@ -39628,7 +43951,6 @@ public final class UserProtos {
return this;
}
- // repeated string string_functions = 44;
private com.google.protobuf.LazyStringList stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringFunctionsIsMutable() {
if (!((bitField1_ & 0x00000800) == 0x00000800)) {
@@ -39637,53 +43959,53 @@ public final class UserProtos {
}
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getStringFunctionsList() {
- return java.util.Collections.unmodifiableList(stringFunctions_);
+ return stringFunctions_.getUnmodifiableView();
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public int getStringFunctionsCount() {
return stringFunctions_.size();
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public java.lang.String getStringFunctions(int index) {
return stringFunctions_.get(index);
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public com.google.protobuf.ByteString
getStringFunctionsBytes(int index) {
return stringFunctions_.getByteString(index);
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public Builder setStringFunctions(
int index, java.lang.String value) {
@@ -39696,11 +44018,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public Builder addStringFunctions(
java.lang.String value) {
@@ -39713,25 +44035,26 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public Builder addAllStringFunctions(
java.lang.Iterable<java.lang.String> values) {
ensureStringFunctionsIsMutable();
- super.addAll(values, stringFunctions_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, stringFunctions_);
onChanged();
return this;
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public Builder clearStringFunctions() {
stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -39740,11 +44063,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string string_functions = 44;</code>
- *
* <pre>
* Supported ODBC/JDBC string scalar functions
* </pre>
+ *
+ * <code>repeated string string_functions = 44;</code>
*/
public Builder addStringFunctionsBytes(
com.google.protobuf.ByteString value) {
@@ -39757,51 +44080,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.SubQuerySupport subquery_support = 45;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> subquerySupport_ =
+ private java.util.List<java.lang.Integer> subquerySupport_ =
java.util.Collections.emptyList();
private void ensureSubquerySupportIsMutable() {
if (!((bitField1_ & 0x00001000) == 0x00001000)) {
- subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(subquerySupport_);
+ subquerySupport_ = new java.util.ArrayList<java.lang.Integer>(subquerySupport_);
bitField1_ |= 0x00001000;
}
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList() {
- return java.util.Collections.unmodifiableList(subquerySupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(subquerySupport_, subquerySupport_converter_);
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public int getSubquerySupportCount() {
return subquerySupport_.size();
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index) {
- return subquerySupport_.get(index);
+ return subquerySupport_converter_.convert(subquerySupport_.get(index));
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public Builder setSubquerySupport(
int index, org.apache.drill.exec.proto.UserProtos.SubQuerySupport value) {
@@ -39809,46 +44132,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureSubquerySupportIsMutable();
- subquerySupport_.set(index, value);
+ subquerySupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public Builder addSubquerySupport(org.apache.drill.exec.proto.UserProtos.SubQuerySupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubquerySupportIsMutable();
- subquerySupport_.add(value);
+ subquerySupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public Builder addAllSubquerySupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.SubQuerySupport> values) {
ensureSubquerySupportIsMutable();
- super.addAll(values, subquerySupport_);
+ for (org.apache.drill.exec.proto.UserProtos.SubQuerySupport value : values) {
+ subquerySupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
- *
* <pre>
* Subquery support
* </pre>
+ *
+ * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code>
*/
public Builder clearSubquerySupport() {
subquerySupport_ = java.util.Collections.emptyList();
@@ -39857,7 +44182,6 @@ public final class UserProtos {
return this;
}
- // repeated string system_functions = 46;
private com.google.protobuf.LazyStringList systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSystemFunctionsIsMutable() {
if (!((bitField1_ & 0x00002000) == 0x00002000)) {
@@ -39866,53 +44190,53 @@ public final class UserProtos {
}
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
- public java.util.List<java.lang.String>
+ public com.google.protobuf.ProtocolStringList
getSystemFunctionsList() {
- return java.util.Collections.unmodifiableList(systemFunctions_);
+ return systemFunctions_.getUnmodifiableView();
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public int getSystemFunctionsCount() {
return systemFunctions_.size();
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public java.lang.String getSystemFunctions(int index) {
return systemFunctions_.get(index);
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public com.google.protobuf.ByteString
getSystemFunctionsBytes(int index) {
return systemFunctions_.getByteString(index);
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public Builder setSystemFunctions(
int index, java.lang.String value) {
@@ -39925,11 +44249,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public Builder addSystemFunctions(
java.lang.String value) {
@@ -39942,25 +44266,26 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public Builder addAllSystemFunctions(
java.lang.Iterable<java.lang.String> values) {
ensureSystemFunctionsIsMutable();
- super.addAll(values, systemFunctions_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, systemFunctions_);
onChanged();
return this;
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public Builder clearSystemFunctions() {
systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -39969,11 +44294,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated string system_functions = 46;</code>
- *
* <pre>
* Supported ODBC/JDBC systen scalar functions
* </pre>
+ *
+ * <code>repeated string system_functions = 46;</code>
*/
public Builder addSystemFunctionsBytes(
com.google.protobuf.ByteString value) {
@@ -39986,42 +44311,44 @@ public final class UserProtos {
return this;
}
- // optional string table_term = 47;
private java.lang.Object tableTerm_ = "";
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public boolean hasTableTerm() {
return ((bitField1_ & 0x00004000) == 0x00004000);
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public java.lang.String getTableTerm() {
java.lang.Object ref = tableTerm_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- tableTerm_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ tableTerm_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public com.google.protobuf.ByteString
getTableTermBytes() {
@@ -40037,11 +44364,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public Builder setTableTerm(
java.lang.String value) {
@@ -40054,11 +44381,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public Builder clearTableTerm() {
bitField1_ = (bitField1_ & ~0x00004000);
@@ -40067,11 +44394,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string table_term = 47;</code>
- *
* <pre>
* The term used to designate a table
* </pre>
+ *
+ * <code>optional string table_term = 47;</code>
*/
public Builder setTableTermBytes(
com.google.protobuf.ByteString value) {
@@ -40084,34 +44411,33 @@ public final class UserProtos {
return this;
}
- // optional bool transaction_supported = 48;
private boolean transactionSupported_ ;
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public boolean hasTransactionSupported() {
return ((bitField1_ & 0x00008000) == 0x00008000);
}
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public boolean getTransactionSupported() {
return transactionSupported_;
}
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public Builder setTransactionSupported(boolean value) {
bitField1_ |= 0x00008000;
@@ -40120,11 +44446,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional bool transaction_supported = 48;</code>
- *
* <pre>
* True if transaction is supported
* </pre>
+ *
+ * <code>optional bool transaction_supported = 48;</code>
*/
public Builder clearTransactionSupported() {
bitField1_ = (bitField1_ & ~0x00008000);
@@ -40133,51 +44459,51 @@ public final class UserProtos {
return this;
}
- // repeated .exec.user.UnionSupport union_support = 49;
- private java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> unionSupport_ =
+ private java.util.List<java.lang.Integer> unionSupport_ =
java.util.Collections.emptyList();
private void ensureUnionSupportIsMutable() {
if (!((bitField1_ & 0x00010000) == 0x00010000)) {
- unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>(unionSupport_);
+ unionSupport_ = new java.util.ArrayList<java.lang.Integer>(unionSupport_);
bitField1_ |= 0x00010000;
}
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList() {
- return java.util.Collections.unmodifiableList(unionSupport_);
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, org.apache.drill.exec.proto.UserProtos.UnionSupport>(unionSupport_, unionSupport_converter_);
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public int getUnionSupportCount() {
return unionSupport_.size();
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index) {
- return unionSupport_.get(index);
+ return unionSupport_converter_.convert(unionSupport_.get(index));
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public Builder setUnionSupport(
int index, org.apache.drill.exec.proto.UserProtos.UnionSupport value) {
@@ -40185,46 +44511,48 @@ public final class UserProtos {
throw new NullPointerException();
}
ensureUnionSupportIsMutable();
- unionSupport_.set(index, value);
+ unionSupport_.set(index, value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public Builder addUnionSupport(org.apache.drill.exec.proto.UserProtos.UnionSupport value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnionSupportIsMutable();
- unionSupport_.add(value);
+ unionSupport_.add(value.getNumber());
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public Builder addAllUnionSupport(
java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.UnionSupport> values) {
ensureUnionSupportIsMutable();
- super.addAll(values, unionSupport_);
+ for (org.apache.drill.exec.proto.UserProtos.UnionSupport value : values) {
+ unionSupport_.add(value.getNumber());
+ }
onChanged();
return this;
}
/**
- * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
- *
* <pre>
* UNION support
* </pre>
+ *
+ * <code>repeated .exec.user.UnionSupport union_support = 49;</code>
*/
public Builder clearUnionSupport() {
unionSupport_ = java.util.Collections.emptyList();
@@ -40233,42 +44561,44 @@ public final class UserProtos {
return this;
}
- // optional string current_schema = 50;
private java.lang.Object currentSchema_ = "";
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public boolean hasCurrentSchema() {
return ((bitField1_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public java.lang.String getCurrentSchema() {
java.lang.Object ref = currentSchema_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- currentSchema_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ currentSchema_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public com.google.protobuf.ByteString
getCurrentSchemaBytes() {
@@ -40284,11 +44614,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public Builder setCurrentSchema(
java.lang.String value) {
@@ -40301,11 +44631,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public Builder clearCurrentSchema() {
bitField1_ = (bitField1_ & ~0x00020000);
@@ -40314,11 +44644,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string current_schema = 50;</code>
- *
* <pre>
* current schema
* </pre>
+ *
+ * <code>optional string current_schema = 50;</code>
*/
public Builder setCurrentSchemaBytes(
com.google.protobuf.ByteString value) {
@@ -40330,22 +44660,63 @@ public final class UserProtos {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.ServerMeta)
}
+ // @@protoc_insertion_point(class_scope:exec.user.ServerMeta)
+ private static final org.apache.drill.exec.proto.UserProtos.ServerMeta DEFAULT_INSTANCE;
static {
- defaultInstance = new ServerMeta(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ServerMeta();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.ServerMeta getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<ServerMeta>
+ PARSER = new com.google.protobuf.AbstractParser<ServerMeta>() {
+ @java.lang.Override
+ public ServerMeta parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ServerMeta(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<ServerMeta> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ServerMeta> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.ServerMeta getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.ServerMeta)
}
- public interface RunQueryOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
+ public interface RunQueryOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:exec.user.RunQuery)
+ com.google.protobuf.MessageOrBuilder {
- // optional .exec.user.QueryResultsMode results_mode = 1;
/**
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
*/
@@ -40355,7 +44726,6 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode();
- // optional .exec.shared.QueryType type = 2;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -40365,156 +44735,140 @@ public final class UserProtos {
*/
org.apache.drill.exec.proto.UserBitShared.QueryType getType();
- // optional string plan = 3;
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
boolean hasPlan();
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
java.lang.String getPlan();
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
com.google.protobuf.ByteString
getPlanBytes();
- // repeated .exec.bit.control.PlanFragment fragments = 4;
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment>
getFragmentsList();
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index);
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
int getFragmentsCount();
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentsOrBuilderList();
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder(
int index);
- // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
boolean hasPreparedStatementHandle();
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle();
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder();
}
/**
- * Protobuf type {@code exec.user.RunQuery}
- *
* <pre>
- *
* Request message for running a query.
* </pre>
+ *
+ * Protobuf type {@code exec.user.RunQuery}
*/
- public static final class RunQuery extends
- com.google.protobuf.GeneratedMessage
- implements RunQueryOrBuilder {
+ public static final class RunQuery extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:exec.user.RunQuery)
+ RunQueryOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RunQuery.newBuilder() to construct.
- private RunQuery(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private RunQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private RunQuery(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RunQuery defaultInstance;
- public static RunQuery getDefaultInstance() {
- return defaultInstance;
}
-
- public RunQuery getDefaultInstanceForType() {
- return defaultInstance;
+ private RunQuery() {
+ resultsMode_ = 1;
+ type_ = 1;
+ plan_ = "";
+ fragments_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RunQuery(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -40526,38 +44880,34 @@ public final class UserProtos {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.QueryResultsMode value = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- resultsMode_ = value;
+ resultsMode_ = rawValue;
}
break;
}
case 16: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserBitShared.QueryType value = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = rawValue;
}
break;
}
case 26: {
+ com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- plan_ = input.readBytes();
+ plan_ = bs;
break;
}
case 34: {
@@ -40565,7 +44915,8 @@ public final class UserProtos {
fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>();
mutable_bitField0_ |= 0x00000008;
}
- fragments_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
+ fragments_.add(
+ input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry));
break;
}
case 42: {
@@ -40581,13 +44932,20 @@ public final class UserProtos {
bitField0_ |= 0x00000008;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
@@ -40601,32 +44959,17 @@ public final class UserProtos {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.drill.exec.proto.UserProtos.RunQuery.class, org.apache.drill.exec.proto.UserProtos.RunQuery.Builder.class);
}
- public static com.google.protobuf.Parser<RunQuery> PARSER =
- new com.google.protobuf.AbstractParser<RunQuery>() {
- public RunQuery parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RunQuery(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<RunQuery> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // optional .exec.user.QueryResultsMode results_mode = 1;
public static final int RESULTS_MODE_FIELD_NUMBER = 1;
- private org.apache.drill.exec.proto.UserProtos.QueryResultsMode resultsMode_;
+ private int resultsMode_;
/**
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
*/
@@ -40637,12 +44980,13 @@ public final class UserProtos {
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode() {
- return resultsMode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.QueryResultsMode result = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.valueOf(resultsMode_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL : result;
}
- // optional .exec.shared.QueryType type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_;
+ private int type_;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -40653,30 +44997,29 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
- // optional string plan = 3;
public static final int PLAN_FIELD_NUMBER = 3;
- private java.lang.Object plan_;
+ private volatile java.lang.Object plan_;
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public boolean hasPlan() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public java.lang.String getPlan() {
java.lang.Object ref = plan_;
@@ -40693,12 +45036,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public com.google.protobuf.ByteString
getPlanBytes() {
@@ -40714,161 +45056,145 @@ public final class UserProtos {
}
}
- // repeated .exec.bit.control.PlanFragment fragments = 4;
public static final int FRAGMENTS_FIELD_NUMBER = 4;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_;
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() {
return fragments_;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentsOrBuilderList() {
return fragments_;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public int getFragmentsCount() {
return fragments_.size();
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) {
return fragments_.get(index);
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder(
int index) {
return fragments_.get(index);
}
- // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
public static final int PREPARED_STATEMENT_HANDLE_FIELD_NUMBER = 5;
private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle preparedStatementHandle_;
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public boolean hasPreparedStatementHandle() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle() {
- return preparedStatementHandle_;
+ return preparedStatementHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : preparedStatementHandle_;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder() {
- return preparedStatementHandle_;
+ return preparedStatementHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : preparedStatementHandle_;
}
- private void initFields() {
- resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL;
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
- plan_ = "";
- fragments_ = java.util.Collections.emptyList();
- preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, resultsMode_.getNumber());
+ output.writeEnum(1, resultsMode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, type_.getNumber());
+ output.writeEnum(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getPlanBytes());
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, plan_);
}
for (int i = 0; i < fragments_.size(); i++) {
output.writeMessage(4, fragments_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(5, preparedStatementHandle_);
+ output.writeMessage(5, getPreparedStatementHandle());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, resultsMode_.getNumber());
+ .computeEnumSize(1, resultsMode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, type_.getNumber());
+ .computeEnumSize(2, type_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getPlanBytes());
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, plan_);
}
for (int i = 0; i < fragments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -40876,21 +45202,92 @@ public final class UserProtos {
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, preparedStatementHandle_);
+ .computeMessageSize(5, getPreparedStatementHandle());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.RunQuery)) {
+ return super.equals(obj);
+ }
+ org.apache.drill.exec.proto.UserProtos.RunQuery other = (org.apache.drill.exec.proto.UserProtos.RunQuery) obj;
+
+ boolean result = true;
+ result = result && (hasResultsMode() == other.hasResultsMode());
+ if (hasResultsMode()) {
+ result = result && resultsMode_ == other.resultsMode_;
+ }
+ result = result && (hasType() == other.hasType());
+ if (hasType()) {
+ result = result && type_ == other.type_;
+ }
+ result = result && (hasPlan() == other.hasPlan());
+ if (hasPlan()) {
+ result = result && getPlan()
+ .equals(other.getPlan());
+ }
+ result = result && getFragmentsList()
+ .equals(other.getFragmentsList());
+ result = result && (hasPreparedStatementHandle() == other.hasPreparedStatementHandle());
+ if (hasPreparedStatementHandle()) {
+ result = result && getPreparedStatementHandle()
+ .equals(other.getPreparedStatementHandle());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasResultsMode()) {
+ hash = (37 * hash) + RESULTS_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + resultsMode_;
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasPlan()) {
+ hash = (37 * hash) + PLAN_FIELD_NUMBER;
+ hash = (53 * hash) + getPlan().hashCode();
+ }
+ if (getFragmentsCount() > 0) {
+ hash = (37 * hash) + FRAGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getFragmentsList().hashCode();
+ }
+ if (hasPreparedStatementHandle()) {
+ hash = (37 * hash) + PREPARED_STATEMENT_HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getPreparedStatementHandle().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
@@ -40913,66 +45310,80 @@ public final class UserProtos {
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RunQuery prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code exec.user.RunQuery}
- *
* <pre>
- *
* Request message for running a query.
* </pre>
+ *
+ * Protobuf type {@code exec.user.RunQuery}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.drill.exec.proto.UserProtos.RunQueryOrBuilder {
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:exec.user.RunQuery)
+ org.apache.drill.exec.proto.UserProtos.RunQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -40985,25 +45396,23 @@ public final class UserProtos {
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getFragmentsFieldBuilder();
getPreparedStatementHandleFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL;
+ resultsMode_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
plan_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
@@ -41014,7 +45423,7 @@ public final class UserProtos {
fragmentsBuilder_.clear();
}
if (preparedStatementHandleBuilder_ == null) {
- preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
+ preparedStatementHandle_ = null;
} else {
preparedStatementHandleBuilder_.clear();
}
@@ -41022,19 +45431,18 @@ public final class UserProtos {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RunQuery getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.RunQuery.getDefaultInstance();
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RunQuery build() {
org.apache.drill.exec.proto.UserProtos.RunQuery result = buildPartial();
if (!result.isInitialized()) {
@@ -41043,6 +45451,7 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RunQuery buildPartial() {
org.apache.drill.exec.proto.UserProtos.RunQuery result = new org.apache.drill.exec.proto.UserProtos.RunQuery(this);
int from_bitField0_ = bitField0_;
@@ -41081,6 +45490,39 @@ public final class UserProtos {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.drill.exec.proto.UserProtos.RunQuery) {
return mergeFrom((org.apache.drill.exec.proto.UserProtos.RunQuery)other);
@@ -41122,7 +45564,7 @@ public final class UserProtos {
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000008);
fragmentsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentsFieldBuilder() : null;
} else {
fragmentsBuilder_.addAllMessages(other.fragments_);
@@ -41132,14 +45574,17 @@ public final class UserProtos {
if (other.hasPreparedStatementHandle()) {
mergePreparedStatementHandle(other.getPreparedStatementHandle());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -41149,7 +45594,7 @@ public final class UserProtos {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.drill.exec.proto.UserProtos.RunQuery) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -41159,8 +45604,7 @@ public final class UserProtos {
}
private int bitField0_;
- // optional .exec.user.QueryResultsMode results_mode = 1;
- private org.apache.drill.exec.proto.UserProtos.QueryResultsMode resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL;
+ private int resultsMode_ = 1;
/**
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
*/
@@ -41171,7 +45615,9 @@ public final class UserProtos {
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
*/
public org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode() {
- return resultsMode_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserProtos.QueryResultsMode result = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.valueOf(resultsMode_);
+ return result == null ? org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL : result;
}
/**
* <code>optional .exec.user.QueryResultsMode results_mode = 1;</code>
@@ -41181,7 +45627,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- resultsMode_ = value;
+ resultsMode_ = value.getNumber();
onChanged();
return this;
}
@@ -41190,13 +45636,12 @@ public final class UserProtos {
*/
public Builder clearResultsMode() {
bitField0_ = (bitField0_ & ~0x00000001);
- resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL;
+ resultsMode_ = 1;
onChanged();
return this;
}
- // optional .exec.shared.QueryType type = 2;
- private org.apache.drill.exec.proto.UserBitShared.QueryType type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ private int type_ = 1;
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
@@ -41207,7 +45652,9 @@ public final class UserProtos {
* <code>optional .exec.shared.QueryType type = 2;</code>
*/
public org.apache.drill.exec.proto.UserBitShared.QueryType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ org.apache.drill.exec.proto.UserBitShared.QueryType result = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(type_);
+ return result == null ? org.apache.drill.exec.proto.UserBitShared.QueryType.SQL : result;
}
/**
* <code>optional .exec.shared.QueryType type = 2;</code>
@@ -41217,7 +45664,7 @@ public final class UserProtos {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
@@ -41226,50 +45673,49 @@ public final class UserProtos {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
- type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL;
+ type_ = 1;
onChanged();
return this;
}
- // optional string plan = 3;
private java.lang.Object plan_ = "";
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public boolean hasPlan() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public java.lang.String getPlan() {
java.lang.Object ref = plan_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- plan_ = s;
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ plan_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public com.google.protobuf.ByteString
getPlanBytes() {
@@ -41285,12 +45731,11 @@ public final class UserProtos {
}
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public Builder setPlan(
java.lang.String value) {
@@ -41303,12 +45748,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public Builder clearPlan() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -41317,12 +45761,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional string plan = 3;</code>
- *
* <pre>
- *
* Input for query type LOGICAL, PHYSICAL or SQL.
* </pre>
+ *
+ * <code>optional string plan = 3;</code>
*/
public Builder setPlanBytes(
com.google.protobuf.ByteString value) {
@@ -41335,7 +45778,6 @@ public final class UserProtos {
return this;
}
- // repeated .exec.bit.control.PlanFragment fragments = 4;
private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_ =
java.util.Collections.emptyList();
private void ensureFragmentsIsMutable() {
@@ -41345,16 +45787,15 @@ public final class UserProtos {
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> fragmentsBuilder_;
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() {
if (fragmentsBuilder_ == null) {
@@ -41364,12 +45805,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public int getFragmentsCount() {
if (fragmentsBuilder_ == null) {
@@ -41379,12 +45819,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) {
if (fragmentsBuilder_ == null) {
@@ -41394,12 +45833,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder setFragments(
int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) {
@@ -41416,12 +45854,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder setFragments(
int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) {
@@ -41435,12 +45872,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder addFragments(org.apache.drill.exec.proto.BitControl.PlanFragment value) {
if (fragmentsBuilder_ == null) {
@@ -41456,12 +45892,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder addFragments(
int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) {
@@ -41478,12 +45913,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder addFragments(
org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) {
@@ -41497,12 +45931,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder addFragments(
int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) {
@@ -41516,18 +45949,18 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder addAllFragments(
java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.PlanFragment> values) {
if (fragmentsBuilder_ == null) {
ensureFragmentsIsMutable();
- super.addAll(values, fragments_);
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, fragments_);
onChanged();
} else {
fragmentsBuilder_.addAllMessages(values);
@@ -41535,12 +45968,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder clearFragments() {
if (fragmentsBuilder_ == null) {
@@ -41553,12 +45985,11 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public Builder removeFragments(int index) {
if (fragmentsBuilder_ == null) {
@@ -41571,24 +46002,22 @@ public final class UserProtos {
return this;
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder getFragmentsBuilder(
int index) {
return getFragmentsFieldBuilder().getBuilder(index);
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder(
int index) {
@@ -41598,12 +46027,11 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentsOrBuilderList() {
@@ -41614,24 +46042,22 @@ public final class UserProtos {
}
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder() {
return getFragmentsFieldBuilder().addBuilder(
org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance());
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder(
int index) {
@@ -41639,22 +46065,21 @@ public final class UserProtos {
index, org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance());
}
/**
- * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
- *
* <pre>
- *
* Input for query type EXECUTION. Input is a set of executable fragments.
* </pre>
+ *
+ * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code>
*/
public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment.Builder>
getFragmentsBuilderList() {
return getFragmentsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>
getFragmentsFieldBuilder() {
if (fragmentsBuilder_ == null) {
- fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>(
fragments_,
((bitField0_ & 0x00000008) == 0x00000008),
@@ -41665,46 +46090,42 @@ public final class UserProtos {
return fragmentsBuilder_;
}
- // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
+ private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle preparedStatementHandle_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> preparedStatementHandleBuilder_;
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public boolean hasPreparedStatementHandle() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle() {
if (preparedStatementHandleBuilder_ == null) {
- return preparedStatementHandle_;
+ return preparedStatementHandle_ == null ? org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : preparedStatementHandle_;
} else {
return preparedStatementHandleBuilder_.getMessage();
}
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public Builder setPreparedStatementHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) {
if (preparedStatementHandleBuilder_ == null) {
@@ -41720,13 +46141,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public Builder setPreparedStatementHandle(
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder builderForValue) {
@@ -41740,17 +46160,17 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public Builder mergePreparedStatementHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) {
if (preparedStatementHandleBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ preparedStatementHandle_ != null &&
preparedStatementHandle_ != org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance()) {
preparedStatementHandle_ =
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.newBuilder(preparedStatementHandle_).mergeFrom(value).buildPartial();
@@ -41765,17 +46185,16 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public Builder clearPreparedStatementHandle() {
if (preparedStatementHandleBuilder_ == null) {
- preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
+ preparedStatementHandle_ = null;
onChanged();
} else {
preparedStatementHandleBuilder_.clear();
@@ -41784,13 +46203,12 @@ public final class UserProtos {
return this;
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder getPreparedStatementHandleBuilder() {
bitField0_ |= 0x00000010;
@@ -41798,216 +46216,256 @@ public final class UserProtos {
return getPreparedStatementHandleFieldBuilder().getBuilder();
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder() {
if (preparedStatementHandleBuilder_ != null) {
return preparedStatementHandleBuilder_.getMessageOrBuilder();
} else {
- return preparedStatementHandle_;
+ return preparedStatementHandle_ == null ?
+ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance() : preparedStatementHandle_;
}
}
/**
- * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
- *
* <pre>
- *
* Input for query type PREPARED_STATEMENT. Input is a prepared statement handle
* to state on server side which is returned in response to CreatePreparedStatementReq.
* </pre>
+ *
+ * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>
getPreparedStatementHandleFieldBuilder() {
if (preparedStatementHandleBuilder_ == null) {
- preparedStatementHandleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ preparedStatementHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>(
- preparedStatementHandle_,
+ getPreparedStatementHandle(),
getParentForChildren(),
isClean());
preparedStatementHandle_ = null;
}
return preparedStatementHandleBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:exec.user.RunQuery)
}
+ // @@protoc_insertion_point(class_scope:exec.user.RunQuery)
+ private static final org.apache.drill.exec.proto.UserProtos.RunQuery DEFAULT_INSTANCE;
static {
- defaultInstance = new RunQuery(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.RunQuery();
+ }
+
+ public static org.apache.drill.exec.proto.UserProtos.RunQuery getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser<RunQuery>
+ PARSER = new com.google.protobuf.AbstractParser<RunQuery>() {
+ @java.lang.Override
+ public RunQuery parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RunQuery(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<RunQuery> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<RunQuery> getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.drill.exec.proto.UserProtos.RunQuery getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:exec.user.RunQuery)
}
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_Property_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_Property_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_UserProperties_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_UserProperties_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_RpcEndpointInfos_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_UserToBitHandshake_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_UserToBitHandshake_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_RequestResults_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_RequestResults_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetQueryPlanFragments_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_QueryPlanFragments_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_QueryPlanFragments_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_BitToUserHandshake_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_BitToUserHandshake_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_LikeFilter_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_LikeFilter_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetCatalogsReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetCatalogsReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_CatalogMetadata_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_CatalogMetadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetCatalogsResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetCatalogsResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetSchemasReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetSchemasReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_SchemaMetadata_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_SchemaMetadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetSchemasResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetSchemasResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetTablesReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetTablesReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_TableMetadata_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_TableMetadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetTablesResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetTablesResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetColumnsReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetColumnsReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_ColumnMetadata_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_ColumnMetadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetColumnsResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetColumnsResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_CreatePreparedStatementReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_ResultColumnMetadata_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_PreparedStatementHandle_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_PreparedStatement_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_PreparedStatement_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_CreatePreparedStatementResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetServerMetaReq_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetServerMetaReq_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_ConvertSupport_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_ConvertSupport_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_GetServerMetaResp_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_GetServerMetaResp_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_ServerMeta_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_ServerMeta_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
+ private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exec_user_RunQuery_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_exec_user_RunQuery_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
@@ -42020,7 +46478,7 @@ public final class UserProtos {
"pointInfos\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(" +
"\t\022\024\n\014majorVersion\030\003 \001(\r\022\024\n\014minorVersion\030" +
"\004 \001(\r\022\024\n\014patchVersion\030\005 \001(\r\022\023\n\013applicati" +
- "on\030\006 \001(\t\022\023\n\013buildNumber\030\007 \001(\r\022\030\n\020version",
+ "on\030\006 \001(\t\022\023\n\013buildNumber\030\007 \001(\r\022\030\n\020version" +
"Qualifier\030\010 \001(\t\"\375\002\n\022UserToBitHandshake\022." +
"\n\007channel\030\001 \001(\0162\027.exec.shared.RpcChannel" +
":\004USER\022\031\n\021support_listening\030\002 \001(\010\022\023\n\013rpc" +
@@ -42030,7 +46488,7 @@ public final class UserProtos {
"ort_complex_types\030\006 \001(\010:\005false\022\036\n\017suppor" +
"t_timeout\030\007 \001(\010:\005false\0221\n\014client_infos\030\010" +
" \001(\0132\033.exec.user.RpcEndpointInfos\022,\n\014sas" +
- "l_support\030\t \001(\0162\026.exec.user.SaslSupport\"",
+ "l_support\030\t \001(\0162\026.exec.user.SaslSupport\"" +
"S\n\016RequestResults\022&\n\010query_id\030\001 \001(\0132\024.ex" +
"ec.shared.QueryId\022\031\n\021maximum_responses\030\002" +
" \001(\005\"g\n\025GetQueryPlanFragments\022\r\n\005query\030\001" +
@@ -42040,7 +46498,7 @@ public final class UserProtos {
"ed.QueryResult.QueryState\022&\n\010query_id\030\002 " +
"\001(\0132\024.exec.shared.QueryId\0221\n\tfragments\030\003" +
" \003(\0132\036.exec.bit.control.PlanFragment\022(\n\005" +
- "error\030\004 \001(\0132\031.exec.shared.DrillPBError\"\253",
+ "error\030\004 \001(\0132\031.exec.shared.DrillPBError\"\253" +
"\002\n\022BitToUserHandshake\022\023\n\013rpc_version\030\002 \001" +
"(\005\022*\n\006status\030\003 \001(\0162\032.exec.user.Handshake" +
"Status\022\017\n\007errorId\030\004 \001(\t\022\024\n\014errorMessage\030" +
@@ -42050,7 +46508,7 @@ public final class UserProtos {
"exec.user.RpcType\022\021\n\tencrypted\030\t \001(\010\022\026\n\016" +
"maxWrappedSize\030\n \001(\005\"-\n\nLikeFilter\022\017\n\007pa" +
"ttern\030\001 \001(\t\022\016\n\006escape\030\002 \001(\t\"D\n\016GetCatalo" +
- "gsReq\0222\n\023catalog_name_filter\030\001 \001(\0132\025.exe",
+ "gsReq\0222\n\023catalog_name_filter\030\001 \001(\0132\025.exe" +
"c.user.LikeFilter\"M\n\017CatalogMetadata\022\024\n\014" +
"catalog_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022" +
"\017\n\007connect\030\003 \001(\t\"\223\001\n\017GetCatalogsResp\022(\n\006" +
@@ -42060,7 +46518,7 @@ public final class UserProtos {
"BError\"v\n\rGetSchemasReq\0222\n\023catalog_name_" +
"filter\030\001 \001(\0132\025.exec.user.LikeFilter\0221\n\022s" +
"chema_name_filter\030\002 \001(\0132\025.exec.user.Like" +
- "Filter\"i\n\016SchemaMetadata\022\024\n\014catalog_name",
+ "Filter\"i\n\016SchemaMetadata\022\024\n\014catalog_name" +
"\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\r\n\005owner\030\003 \001" +
"(\t\022\014\n\004type\030\004 \001(\t\022\017\n\007mutable\030\005 \001(\t\"\220\001\n\016Ge" +
"tSchemasResp\022(\n\006status\030\001 \001(\0162\030.exec.user" +
@@ -42070,7 +46528,7 @@ public final class UserProtos {
"\023catalog_name_filter\030\001 \001(\0132\025.exec.user.L" +
"ikeFilter\0221\n\022schema_name_filter\030\002 \001(\0132\025." +
"exec.user.LikeFilter\0220\n\021table_name_filte" +
- "r\030\003 \001(\0132\025.exec.user.LikeFilter\022\031\n\021table_",
+ "r\030\003 \001(\0132\025.exec.user.LikeFilter\022\031\n\021table_" +
"type_filter\030\004 \003(\t\"\\\n\rTableMetadata\022\024\n\014ca" +
"talog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n" +
"\ntable_name\030\003 \001(\t\022\014\n\004type\030\004 \001(\t\"\215\001\n\rGetT" +
@@ -42080,7 +46538,7 @@ public final class UserProtos {
"ed.DrillPBError\"\333\001\n\rGetColumnsReq\0222\n\023cat" +
"alog_name_filter\030\001 \001(\0132\025.exec.user.LikeF" +
"ilter\0221\n\022schema_name_filter\030\002 \001(\0132\025.exec" +
- ".user.LikeFilter\0220\n\021table_name_filter\030\003 ",
+ ".user.LikeFilter\0220\n\021table_name_filter\030\003 " +
"\001(\0132\025.exec.user.LikeFilter\0221\n\022column_nam" +
"e_filter\030\004 \001(\0132\025.exec.user.LikeFilter\"\251\003" +
"\n\016ColumnMetadata\022\024\n\014catalog_name\030\001 \001(\t\022\023" +
@@ -42090,7 +46548,7 @@ public final class UserProtos {
"able\030\007 \001(\010\022\021\n\tdata_type\030\010 \001(\t\022\027\n\017char_ma" +
"x_length\030\t \001(\005\022\031\n\021char_octet_length\030\n \001(" +
"\005\022\031\n\021numeric_precision\030\013 \001(\005\022\037\n\027numeric_" +
- "precision_radix\030\014 \001(\005\022\025\n\rnumeric_scale\030\r",
+ "precision_radix\030\014 \001(\005\022\025\n\rnumeric_scale\030\r" +
" \001(\005\022\033\n\023date_time_precision\030\016 \001(\005\022\025\n\rint" +
"erval_type\030\017 \001(\t\022\032\n\022interval_precision\030\020" +
" \001(\005\022\023\n\013column_size\030\021 \001(\005\"\220\001\n\016GetColumns" +
@@ -42100,7 +46558,7 @@ public final class UserProtos {
"DrillPBError\"/\n\032CreatePreparedStatementR" +
"eq\022\021\n\tsql_query\030\001 \001(\t\"\326\003\n\024ResultColumnMe" +
"tadata\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" +
- "ame\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013column_",
+ "ame\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013column_" +
"name\030\004 \001(\t\022\r\n\005label\030\005 \001(\t\022\021\n\tdata_type\030\006" +
" \001(\t\022\023\n\013is_nullable\030\007 \001(\010\022\021\n\tprecision\030\010" +
" \001(\005\022\r\n\005scale\030\t \001(\005\022\016\n\006signed\030\n \001(\010\022\024\n\014d" +
@@ -42110,7 +46568,7 @@ public final class UserProtos {
"c.user.ColumnUpdatability\022\026\n\016auto_increm" +
"ent\030\017 \001(\010\022\030\n\020case_sensitivity\030\020 \001(\010\022\020\n\010s" +
"ortable\030\021 \001(\010\022\022\n\nclass_name\030\022 \001(\t\022\023\n\013is_" +
- "currency\030\024 \001(\010\".\n\027PreparedStatementHandl",
+ "currency\030\024 \001(\010\".\n\027PreparedStatementHandl" +
"e\022\023\n\013server_info\030\001 \001(\014\"\200\001\n\021PreparedState" +
"ment\0220\n\007columns\030\001 \003(\0132\037.exec.user.Result" +
"ColumnMetadata\0229\n\rserver_handle\030\002 \001(\0132\"." +
@@ -42120,7 +46578,7 @@ public final class UserProtos {
"statement\030\002 \001(\0132\034.exec.user.PreparedStat" +
"ement\022(\n\005error\030\003 \001(\0132\031.exec.shared.Drill" +
"PBError\"\022\n\020GetServerMetaReq\"P\n\016ConvertSu" +
- "pport\022\037\n\004from\030\001 \002(\0162\021.common.MinorType\022\035",
+ "pport\022\037\n\004from\030\001 \002(\0162\021.common.MinorType\022\035" +
"\n\002to\030\002 \002(\0162\021.common.MinorType\"\223\001\n\021GetSer" +
"verMetaResp\022(\n\006status\030\001 \001(\0162\030.exec.user." +
"RequestStatus\022*\n\013server_meta\030\002 \001(\0132\025.exe" +
@@ -42130,7 +46588,7 @@ public final class UserProtos {
"ed_in_max_row_size\030\002 \001(\010\022\030\n\020catalog_at_s" +
"tart\030\003 \001(\010\022\031\n\021catalog_separator\030\004 \001(\t\022\024\n" +
"\014catalog_term\030\005 \001(\t\0222\n\017collate_support\030\006" +
- " \003(\0162\031.exec.user.CollateSupport\022!\n\031colum",
+ " \003(\0162\031.exec.user.CollateSupport\022!\n\031colum" +
"n_aliasing_supported\030\007 \001(\010\0222\n\017convert_su" +
"pport\030\010 \003(\0132\031.exec.user.ConvertSupport\022E" +
"\n\031correlation_names_support\030\t \001(\0162\".exec" +
@@ -42140,7 +46598,7 @@ public final class UserProtos {
"alsSupport\0223\n\020group_by_support\030\014 \001(\0162\031.e" +
"xec.user.GroupBySupport\0226\n\021identifier_ca" +
"sing\030\r \001(\0162\033.exec.user.IdentifierCasing\022" +
- "\037\n\027identifier_quote_string\030\016 \001(\t\022$\n\034like",
+ "\037\n\027identifier_quote_string\030\016 \001(\t\022$\n\034like" +
"_escape_clause_supported\030\017 \001(\010\022!\n\031max_bi" +
"nary_literal_length\030\020 \001(\r\022\037\n\027max_catalog" +
"_name_length\030\021 \001(\r\022\037\n\027max_char_literal_l" +
@@ -42150,7 +46608,7 @@ public final class UserProtos {
"umns_in_select\030\026 \001(\r\022\036\n\026max_cursor_name_" +
"length\030\027 \001(\r\022\034\n\024max_logical_lob_size\030\030 \001" +
"(\r\022\024\n\014max_row_size\030\031 \001(\r\022\036\n\026max_schema_n" +
- "ame_length\030\032 \001(\r\022\034\n\024max_statement_length",
+ "ame_length\030\032 \001(\r\022\034\n\024max_statement_length" +
"\030\033 \001(\r\022\026\n\016max_statements\030\034 \001(\r\022\035\n\025max_ta" +
"ble_name_length\030\035 \001(\r\022\034\n\024max_tables_in_s" +
"elect\030\036 \001(\r\022\034\n\024max_user_name_length\030\037 \001(" +
@@ -42160,7 +46618,7 @@ public final class UserProtos {
"\n\020order_by_support\030# \003(\0162\031.exec.user.Ord" +
"erBySupport\0227\n\022outer_join_support\030$ \003(\0162" +
"\033.exec.user.OuterJoinSupport\022=\n\030quoted_i" +
- "dentifier_casing\030% \001(\0162\033.exec.user.Ident",
+ "dentifier_casing\030% \001(\0162\033.exec.user.Ident" +
"ifierCasing\022\021\n\tread_only\030& \001(\010\022\023\n\013schema" +
"_term\030\' \001(\t\022\034\n\024search_escape_string\030( \001(" +
"\t\022#\n\033select_for_update_supported\030) \001(\010\022\032" +
@@ -42170,7 +46628,7 @@ public final class UserProtos {
"ySupport\022\030\n\020system_functions\030. \003(\t\022\022\n\nta" +
"ble_term\030/ \001(\t\022\035\n\025transaction_supported\030" +
"0 \001(\010\022.\n\runion_support\0301 \003(\0162\027.exec.user" +
- ".UnionSupport\022\026\n\016current_schema\0302 \001(\t\"\353\001",
+ ".UnionSupport\022\026\n\016current_schema\0302 \001(\t\"\353\001" +
"\n\010RunQuery\0221\n\014results_mode\030\001 \001(\0162\033.exec." +
"user.QueryResultsMode\022$\n\004type\030\002 \001(\0162\026.ex" +
"ec.shared.QueryType\022\014\n\004plan\030\003 \001(\t\0221\n\tfra" +
@@ -42180,7 +46638,7 @@ public final class UserProtos {
"RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003ACK\020\001\022\013\n\007GOODB" +
"YE\020\002\022\r\n\tRUN_QUERY\020\003\022\020\n\014CANCEL_QUERY\020\004\022\023\n" +
"\017REQUEST_RESULTS\020\005\022\027\n\023RESUME_PAUSED_QUER" +
- "Y\020\013\022\034\n\030GET_QUERY_PLAN_FRAGMENTS\020\014\022\020\n\014GET",
+ "Y\020\013\022\034\n\030GET_QUERY_PLAN_FRAGMENTS\020\014\022\020\n\014GET" +
"_CATALOGS\020\016\022\017\n\013GET_SCHEMAS\020\017\022\016\n\nGET_TABL" +
"ES\020\020\022\017\n\013GET_COLUMNS\020\021\022\035\n\031CREATE_PREPARED" +
"_STATEMENT\020\026\022\023\n\017GET_SERVER_META\020\010\022\016\n\nQUE" +
@@ -42190,7 +46648,7 @@ public final class UserProtos {
"ATEMENT\020\027\022\017\n\013SERVER_META\020\t\022\020\n\014QUERY_RESU" +
"LT\020\n\022\020\n\014SASL_MESSAGE\020\030*H\n\013SaslSupport\022\030\n" +
"\024UNKNOWN_SASL_SUPPORT\020\000\022\r\n\tSASL_AUTH\020\001\022\020" +
- "\n\014SASL_PRIVACY\020\002*#\n\020QueryResultsMode\022\017\n\013",
+ "\n\014SASL_PRIVACY\020\002*#\n\020QueryResultsMode\022\017\n\013" +
"STREAM_FULL\020\001*q\n\017HandshakeStatus\022\013\n\007SUCC" +
"ESS\020\001\022\030\n\024RPC_VERSION_MISMATCH\020\002\022\017\n\013AUTH_" +
"FAILED\020\003\022\023\n\017UNKNOWN_FAILURE\020\004\022\021\n\rAUTH_RE" +
@@ -42200,7 +46658,7 @@ public final class UserProtos {
"BILITY\020\000\022\010\n\004NONE\020\001\022\010\n\004CHAR\020\002\022\n\n\006NUMBER\020\003" +
"\022\007\n\003ALL\020\004*K\n\022ColumnUpdatability\022\030\n\024UNKNO" +
"WN_UPDATABILITY\020\000\022\r\n\tREAD_ONLY\020\001\022\014\n\010WRIT" +
- "ABLE\020\002*1\n\016CollateSupport\022\016\n\nCS_UNKNOWN\020\000",
+ "ABLE\020\002*1\n\016CollateSupport\022\016\n\nCS_UNKNOWN\020\000" +
"\022\017\n\013CS_GROUP_BY\020\001*J\n\027CorrelationNamesSup" +
"port\022\013\n\007CN_NONE\020\001\022\026\n\022CN_DIFFERENT_NAMES\020" +
"\002\022\n\n\006CN_ANY\020\003*\271\003\n\027DateTimeLiteralsSuppor" +
@@ -42210,7 +46668,7 @@ public final class UserProtos {
"L_DAY\020\006\022\024\n\020DL_INTERVAL_HOUR\020\007\022\026\n\022DL_INTE" +
"RVAL_MINUTE\020\010\022\026\n\022DL_INTERVAL_SECOND\020\t\022\035\n" +
"\031DL_INTERVAL_YEAR_TO_MONTH\020\n\022\033\n\027DL_INTER" +
- "VAL_DAY_TO_HOUR\020\013\022\035\n\031DL_INTERVAL_DAY_TO_",
+ "VAL_DAY_TO_HOUR\020\013\022\035\n\031DL_INTERVAL_DAY_TO_" +
"MINUTE\020\014\022\035\n\031DL_INTERVAL_DAY_TO_SECOND\020\r\022" +
"\036\n\032DL_INTERVAL_HOUR_TO_MINUTE\020\016\022\036\n\032DL_IN" +
"TERVAL_HOUR_TO_SECOND\020\017\022 \n\034DL_INTERVAL_M" +
@@ -42220,7 +46678,7 @@ public final class UserProtos {
"erCasing\022\016\n\nIC_UNKNOWN\020\000\022\023\n\017IC_STORES_LO" +
"WER\020\001\022\023\n\017IC_STORES_MIXED\020\002\022\023\n\017IC_STORES_" +
"UPPER\020\003\022\025\n\021IC_SUPPORTS_MIXED\020\004*X\n\rNullCo" +
- "llation\022\016\n\nNC_UNKNOWN\020\000\022\017\n\013NC_AT_START\020\001",
+ "llation\022\016\n\nNC_UNKNOWN\020\000\022\017\n\013NC_AT_START\020\001" +
"\022\r\n\tNC_AT_END\020\002\022\013\n\007NC_HIGH\020\003\022\n\n\006NC_LOW\020\004" +
"*E\n\016OrderBySupport\022\016\n\nOB_UNKNOWN\020\000\022\020\n\014OB" +
"_UNRELATED\020\001\022\021\n\rOB_EXPRESSION\020\002*\226\001\n\020Oute" +
@@ -42230,205 +46688,19 @@ public final class UserProtos {
"\025OJ_ALL_COMPARISON_OPS\020\007*\204\001\n\017SubQuerySup" +
"port\022\016\n\nSQ_UNKNOWN\020\000\022\021\n\rSQ_CORRELATED\020\001\022" +
"\024\n\020SQ_IN_COMPARISON\020\002\022\020\n\014SQ_IN_EXISTS\020\003\022" +
- "\020\n\014SQ_IN_INSERT\020\004\022\024\n\020SQ_IN_QUANTIFIED\020\005*",
+ "\020\n\014SQ_IN_INSERT\020\004\022\024\n\020SQ_IN_QUANTIFIED\020\005*" +
";\n\014UnionSupport\022\r\n\tU_UNKNOWN\020\000\022\013\n\007U_UNIO" +
"N\020\001\022\017\n\013U_UNION_ALL\020\002B+\n\033org.apache.drill" +
".exec.protoB\nUserProtosH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- internal_static_exec_user_Property_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_exec_user_Property_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_Property_descriptor,
- new java.lang.String[] { "Key", "Value", });
- internal_static_exec_user_UserProperties_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_exec_user_UserProperties_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_UserProperties_descriptor,
- new java.lang.String[] { "Properties", });
- internal_static_exec_user_RpcEndpointInfos_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_RpcEndpointInfos_descriptor,
- new java.lang.String[] { "Name", "Version", "MajorVersion", "MinorVersion", "PatchVersion", "Application", "BuildNumber", "VersionQualifier", });
- internal_static_exec_user_UserToBitHandshake_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_exec_user_UserToBitHandshake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_UserToBitHandshake_descriptor,
- new java.lang.String[] { "Channel", "SupportListening", "RpcVersion", "Credentials", "Properties", "SupportComplexTypes", "SupportTimeout", "ClientInfos", "SaslSupport", });
- internal_static_exec_user_RequestResults_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_exec_user_RequestResults_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_RequestResults_descriptor,
- new java.lang.String[] { "QueryId", "MaximumResponses", });
- internal_static_exec_user_GetQueryPlanFragments_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetQueryPlanFragments_descriptor,
- new java.lang.String[] { "Query", "Type", "SplitPlan", });
- internal_static_exec_user_QueryPlanFragments_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_exec_user_QueryPlanFragments_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_QueryPlanFragments_descriptor,
- new java.lang.String[] { "Status", "QueryId", "Fragments", "Error", });
- internal_static_exec_user_BitToUserHandshake_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_exec_user_BitToUserHandshake_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_BitToUserHandshake_descriptor,
- new java.lang.String[] { "RpcVersion", "Status", "ErrorId", "ErrorMessage", "ServerInfos", "AuthenticationMechanisms", "SupportedMethods", "Encrypted", "MaxWrappedSize", });
- internal_static_exec_user_LikeFilter_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_exec_user_LikeFilter_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_LikeFilter_descriptor,
- new java.lang.String[] { "Pattern", "Escape", });
- internal_static_exec_user_GetCatalogsReq_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_exec_user_GetCatalogsReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetCatalogsReq_descriptor,
- new java.lang.String[] { "CatalogNameFilter", });
- internal_static_exec_user_CatalogMetadata_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_exec_user_CatalogMetadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_CatalogMetadata_descriptor,
- new java.lang.String[] { "CatalogName", "Description", "Connect", });
- internal_static_exec_user_GetCatalogsResp_descriptor =
- getDescriptor().getMessageTypes().get(11);
- internal_static_exec_user_GetCatalogsResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetCatalogsResp_descriptor,
- new java.lang.String[] { "Status", "Catalogs", "Error", });
- internal_static_exec_user_GetSchemasReq_descriptor =
- getDescriptor().getMessageTypes().get(12);
- internal_static_exec_user_GetSchemasReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetSchemasReq_descriptor,
- new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", });
- internal_static_exec_user_SchemaMetadata_descriptor =
- getDescriptor().getMessageTypes().get(13);
- internal_static_exec_user_SchemaMetadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_SchemaMetadata_descriptor,
- new java.lang.String[] { "CatalogName", "SchemaName", "Owner", "Type", "Mutable", });
- internal_static_exec_user_GetSchemasResp_descriptor =
- getDescriptor().getMessageTypes().get(14);
- internal_static_exec_user_GetSchemasResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetSchemasResp_descriptor,
- new java.lang.String[] { "Status", "Schemas", "Error", });
- internal_static_exec_user_GetTablesReq_descriptor =
- getDescriptor().getMessageTypes().get(15);
- internal_static_exec_user_GetTablesReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetTablesReq_descriptor,
- new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "TableTypeFilter", });
- internal_static_exec_user_TableMetadata_descriptor =
- getDescriptor().getMessageTypes().get(16);
- internal_static_exec_user_TableMetadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_TableMetadata_descriptor,
- new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "Type", });
- internal_static_exec_user_GetTablesResp_descriptor =
- getDescriptor().getMessageTypes().get(17);
- internal_static_exec_user_GetTablesResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetTablesResp_descriptor,
- new java.lang.String[] { "Status", "Tables", "Error", });
- internal_static_exec_user_GetColumnsReq_descriptor =
- getDescriptor().getMessageTypes().get(18);
- internal_static_exec_user_GetColumnsReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetColumnsReq_descriptor,
- new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "ColumnNameFilter", });
- internal_static_exec_user_ColumnMetadata_descriptor =
- getDescriptor().getMessageTypes().get(19);
- internal_static_exec_user_ColumnMetadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_ColumnMetadata_descriptor,
- new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "OrdinalPosition", "DefaultValue", "IsNullable", "DataType", "CharMaxLength", "CharOctetLength", "NumericPrecision", "NumericPrecisionRadix", "NumericScale", "DateTimePrecision", "IntervalType", "IntervalPrecision", "ColumnSize", });
- internal_static_exec_user_GetColumnsResp_descriptor =
- getDescriptor().getMessageTypes().get(20);
- internal_static_exec_user_GetColumnsResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetColumnsResp_descriptor,
- new java.lang.String[] { "Status", "Columns", "Error", });
- internal_static_exec_user_CreatePreparedStatementReq_descriptor =
- getDescriptor().getMessageTypes().get(21);
- internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_CreatePreparedStatementReq_descriptor,
- new java.lang.String[] { "SqlQuery", });
- internal_static_exec_user_ResultColumnMetadata_descriptor =
- getDescriptor().getMessageTypes().get(22);
- internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_ResultColumnMetadata_descriptor,
- new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "Label", "DataType", "IsNullable", "Precision", "Scale", "Signed", "DisplaySize", "IsAliased", "Searchability", "Updatability", "AutoIncrement", "CaseSensitivity", "Sortable", "ClassName", "IsCurrency", });
- internal_static_exec_user_PreparedStatementHandle_descriptor =
- getDescriptor().getMessageTypes().get(23);
- internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_PreparedStatementHandle_descriptor,
- new java.lang.String[] { "ServerInfo", });
- internal_static_exec_user_PreparedStatement_descriptor =
- getDescriptor().getMessageTypes().get(24);
- internal_static_exec_user_PreparedStatement_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_PreparedStatement_descriptor,
- new java.lang.String[] { "Columns", "ServerHandle", });
- internal_static_exec_user_CreatePreparedStatementResp_descriptor =
- getDescriptor().getMessageTypes().get(25);
- internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_CreatePreparedStatementResp_descriptor,
- new java.lang.String[] { "Status", "PreparedStatement", "Error", });
- internal_static_exec_user_GetServerMetaReq_descriptor =
- getDescriptor().getMessageTypes().get(26);
- internal_static_exec_user_GetServerMetaReq_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetServerMetaReq_descriptor,
- new java.lang.String[] { });
- internal_static_exec_user_ConvertSupport_descriptor =
- getDescriptor().getMessageTypes().get(27);
- internal_static_exec_user_ConvertSupport_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_ConvertSupport_descriptor,
- new java.lang.String[] { "From", "To", });
- internal_static_exec_user_GetServerMetaResp_descriptor =
- getDescriptor().getMessageTypes().get(28);
- internal_static_exec_user_GetServerMetaResp_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_GetServerMetaResp_descriptor,
- new java.lang.String[] { "Status", "ServerMeta", "Error", });
- internal_static_exec_user_ServerMeta_descriptor =
- getDescriptor().getMessageTypes().get(29);
- internal_static_exec_user_ServerMeta_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_ServerMeta_descriptor,
- new java.lang.String[] { "AllTablesSelectable", "BlobIncludedInMaxRowSize", "CatalogAtStart", "CatalogSeparator", "CatalogTerm", "CollateSupport", "ColumnAliasingSupported", "ConvertSupport", "CorrelationNamesSupport", "DateTimeFunctions", "DateTimeLiteralsSupport", "GroupBySupport", "IdentifierCasing", "IdentifierQuoteString", "LikeEscapeClauseSupported", "MaxBinaryLiteralLength", "MaxCatalogNameLength", "MaxCharLiteralLength", "MaxColumnNameLength", "MaxColumnsInGroupBy", "MaxColumnsInOrderBy", "MaxColumnsInSelect", "MaxCursorNameLength", "MaxLogicalLobSize", "MaxRowSize", "MaxSchemaNameLength", "MaxStatementLength", "MaxStatements", "MaxTableNameLength", "MaxTablesInSelect", "MaxUserNameLength", "NullCollation", "NullPlusNonNullEqualsNull", "NumericFunctions", "OrderBySupport", "OuterJoinSupport", "QuotedIdentifierCasing", "ReadOnly", "SchemaTerm", "SearchEscapeString", "SelectForUpdateSupported", "SpecialCharacters", "SqlKeywords", "StringFunctions", "SubquerySupport", "SystemFunctions", "TableTerm", "TransactionSupported", "UnionSupport", "CurrentSchema", });
- internal_static_exec_user_RunQuery_descriptor =
- getDescriptor().getMessageTypes().get(30);
- internal_static_exec_user_RunQuery_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_exec_user_RunQuery_descriptor,
- new java.lang.String[] { "ResultsMode", "Type", "Plan", "Fragments", "PreparedStatementHandle", });
- return null;
- }
- };
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
@@ -42439,6 +46711,198 @@ public final class UserProtos {
org.apache.drill.exec.proto.BitControl.getDescriptor(),
org.apache.drill.exec.proto.ExecProtos.getDescriptor(),
}, assigner);
+ internal_static_exec_user_Property_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_exec_user_Property_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_Property_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_exec_user_UserProperties_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_exec_user_UserProperties_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_UserProperties_descriptor,
+ new java.lang.String[] { "Properties", });
+ internal_static_exec_user_RpcEndpointInfos_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_RpcEndpointInfos_descriptor,
+ new java.lang.String[] { "Name", "Version", "MajorVersion", "MinorVersion", "PatchVersion", "Application", "BuildNumber", "VersionQualifier", });
+ internal_static_exec_user_UserToBitHandshake_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_exec_user_UserToBitHandshake_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_UserToBitHandshake_descriptor,
+ new java.lang.String[] { "Channel", "SupportListening", "RpcVersion", "Credentials", "Properties", "SupportComplexTypes", "SupportTimeout", "ClientInfos", "SaslSupport", });
+ internal_static_exec_user_RequestResults_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_exec_user_RequestResults_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_RequestResults_descriptor,
+ new java.lang.String[] { "QueryId", "MaximumResponses", });
+ internal_static_exec_user_GetQueryPlanFragments_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetQueryPlanFragments_descriptor,
+ new java.lang.String[] { "Query", "Type", "SplitPlan", });
+ internal_static_exec_user_QueryPlanFragments_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_exec_user_QueryPlanFragments_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_QueryPlanFragments_descriptor,
+ new java.lang.String[] { "Status", "QueryId", "Fragments", "Error", });
+ internal_static_exec_user_BitToUserHandshake_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_exec_user_BitToUserHandshake_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_BitToUserHandshake_descriptor,
+ new java.lang.String[] { "RpcVersion", "Status", "ErrorId", "ErrorMessage", "ServerInfos", "AuthenticationMechanisms", "SupportedMethods", "Encrypted", "MaxWrappedSize", });
+ internal_static_exec_user_LikeFilter_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_exec_user_LikeFilter_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_LikeFilter_descriptor,
+ new java.lang.String[] { "Pattern", "Escape", });
+ internal_static_exec_user_GetCatalogsReq_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_exec_user_GetCatalogsReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetCatalogsReq_descriptor,
+ new java.lang.String[] { "CatalogNameFilter", });
+ internal_static_exec_user_CatalogMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_exec_user_CatalogMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_CatalogMetadata_descriptor,
+ new java.lang.String[] { "CatalogName", "Description", "Connect", });
+ internal_static_exec_user_GetCatalogsResp_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_exec_user_GetCatalogsResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetCatalogsResp_descriptor,
+ new java.lang.String[] { "Status", "Catalogs", "Error", });
+ internal_static_exec_user_GetSchemasReq_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_exec_user_GetSchemasReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetSchemasReq_descriptor,
+ new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", });
+ internal_static_exec_user_SchemaMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_exec_user_SchemaMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_SchemaMetadata_descriptor,
+ new java.lang.String[] { "CatalogName", "SchemaName", "Owner", "Type", "Mutable", });
+ internal_static_exec_user_GetSchemasResp_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_exec_user_GetSchemasResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetSchemasResp_descriptor,
+ new java.lang.String[] { "Status", "Schemas", "Error", });
+ internal_static_exec_user_GetTablesReq_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_exec_user_GetTablesReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetTablesReq_descriptor,
+ new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "TableTypeFilter", });
+ internal_static_exec_user_TableMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_exec_user_TableMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_TableMetadata_descriptor,
+ new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "Type", });
+ internal_static_exec_user_GetTablesResp_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_exec_user_GetTablesResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetTablesResp_descriptor,
+ new java.lang.String[] { "Status", "Tables", "Error", });
+ internal_static_exec_user_GetColumnsReq_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_exec_user_GetColumnsReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetColumnsReq_descriptor,
+ new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "ColumnNameFilter", });
+ internal_static_exec_user_ColumnMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_exec_user_ColumnMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_ColumnMetadata_descriptor,
+ new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "OrdinalPosition", "DefaultValue", "IsNullable", "DataType", "CharMaxLength", "CharOctetLength", "NumericPrecision", "NumericPrecisionRadix", "NumericScale", "DateTimePrecision", "IntervalType", "IntervalPrecision", "ColumnSize", });
+ internal_static_exec_user_GetColumnsResp_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_exec_user_GetColumnsResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetColumnsResp_descriptor,
+ new java.lang.String[] { "Status", "Columns", "Error", });
+ internal_static_exec_user_CreatePreparedStatementReq_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_CreatePreparedStatementReq_descriptor,
+ new java.lang.String[] { "SqlQuery", });
+ internal_static_exec_user_ResultColumnMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_ResultColumnMetadata_descriptor,
+ new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "Label", "DataType", "IsNullable", "Precision", "Scale", "Signed", "DisplaySize", "IsAliased", "Searchability", "Updatability", "AutoIncrement", "CaseSensitivity", "Sortable", "ClassName", "IsCurrency", });
+ internal_static_exec_user_PreparedStatementHandle_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_PreparedStatementHandle_descriptor,
+ new java.lang.String[] { "ServerInfo", });
+ internal_static_exec_user_PreparedStatement_descriptor =
+ getDescriptor().getMessageTypes().get(24);
+ internal_static_exec_user_PreparedStatement_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_PreparedStatement_descriptor,
+ new java.lang.String[] { "Columns", "ServerHandle", });
+ internal_static_exec_user_CreatePreparedStatementResp_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_CreatePreparedStatementResp_descriptor,
+ new java.lang.String[] { "Status", "PreparedStatement", "Error", });
+ internal_static_exec_user_GetServerMetaReq_descriptor =
+ getDescriptor().getMessageTypes().get(26);
+ internal_static_exec_user_GetServerMetaReq_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetServerMetaReq_descriptor,
+ new java.lang.String[] { });
+ internal_static_exec_user_ConvertSupport_descriptor =
+ getDescriptor().getMessageTypes().get(27);
+ internal_static_exec_user_ConvertSupport_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_ConvertSupport_descriptor,
+ new java.lang.String[] { "From", "To", });
+ internal_static_exec_user_GetServerMetaResp_descriptor =
+ getDescriptor().getMessageTypes().get(28);
+ internal_static_exec_user_GetServerMetaResp_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_GetServerMetaResp_descriptor,
+ new java.lang.String[] { "Status", "ServerMeta", "Error", });
+ internal_static_exec_user_ServerMeta_descriptor =
+ getDescriptor().getMessageTypes().get(29);
+ internal_static_exec_user_ServerMeta_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_ServerMeta_descriptor,
+ new java.lang.String[] { "AllTablesSelectable", "BlobIncludedInMaxRowSize", "CatalogAtStart", "CatalogSeparator", "CatalogTerm", "CollateSupport", "ColumnAliasingSupported", "ConvertSupport", "CorrelationNamesSupport", "DateTimeFunctions", "DateTimeLiteralsSupport", "GroupBySupport", "IdentifierCasing", "IdentifierQuoteString", "LikeEscapeClauseSupported", "MaxBinaryLiteralLength", "MaxCatalogNameLength", "MaxCharLiteralLength", "MaxColumnNameLength", "MaxColumnsInGroupBy", "MaxColumnsInOrderBy", "MaxColumnsInSelect", "MaxCursorNameLength", "MaxLogicalLobSize", "MaxRowSize", "MaxSchemaNameLength", "MaxStatementLength", "MaxStatements", "MaxTableNameLength", "MaxTablesInSelect", "MaxUserNameLength", "NullCollation", "NullPlusNonNullEqualsNull", "NumericFunctions", "OrderBySupport", "OuterJoinSupport", "QuotedIdentifierCasing", "ReadOnly", "SchemaTerm", "SearchEscapeString", "SelectForUpdateSupported", "SpecialCharacters", "SqlKeywords", "StringFunctions", "SubquerySupport", "SystemFunctions", "TableTerm", "TransactionSupported", "UnionSupport", "CurrentSchema", });
+ internal_static_exec_user_RunQuery_descriptor =
+ getDescriptor().getMessageTypes().get(30);
+ internal_static_exec_user_RunQuery_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_exec_user_RunQuery_descriptor,
+ new java.lang.String[] { "ResultsMode", "Type", "Plan", "Fragments", "PreparedStatementHandle", });
+ org.apache.drill.exec.proto.SchemaDefProtos.getDescriptor();
+ org.apache.drill.common.types.TypeProtos.getDescriptor();
+ org.apache.drill.exec.proto.UserBitShared.getDescriptor();
+ org.apache.drill.exec.proto.BitData.getDescriptor();
+ org.apache.drill.exec.proto.BitControl.getDescriptor();
+ org.apache.drill.exec.proto.ExecProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)